text
stringlengths
7
3.69M
import React from "react"; import {Card} from "antd"; const NoBorder = () => { return ( <Card title="Card title" bordered={false}> <p>Various versions have evolved over the years, sometimes by accident. The point of using Lorem Ipsum as opposed to using 'Content here, content here', making i...
var services ; module.exports = { ready : (s) => services = s , core : () => services }
$(document).ready(function(){ $("#search-btn").click(function(){ $.validator.addMethod('validatePlaceInput', function(value, element){ return this.optional(element) ||/^(?=.{1,50}$)[a-zA-Z]+(\s[a-zA-Z]+)*$/.test(value)}, `Only Letters and spaces. No continuous spaces are allowed!`); }); $("#search-flight...
var Pull = function(element, options) { var $main = $('#wrapper') var $list = $main.find(options.list_id) var $pullDown = $main.find('#pull-down') var $pullDownLabel = $main.find('#pull-down-label') var $pullUp = $main.find('#pull-up') var topOffset = -$pullDown.outerHeight() var iScroll = $.AMUI.iScrol...
exports.mongoDB = (error) => { let errorVal = []; if (error.customError) { errorVal.push(error.customError); return errorVal; } if (!error.errors.legnth) { for (const key in error.errors) { errorVal.push(error.errors[key].message); } } return errorV...
import Vue from 'vue' import Router from 'vue-router' import Home from '@/layout/Home' import Index from '@/page/index' import MovieHot from '@/page/movieHot' import MovieSoon from '@/page/movieSoon' import MovieTop from '@/page/movieTop' import MovieDetail from '@/page/movieDetail' import Celebrity from '@/page/celebr...
module.exports = { main: require("./main.js"), normal: require("./npc.js"), shopkeeper: require("./shopkeeper.js"), }
import React from 'react'; const Common = (props) => { return ( <div> <section id="header" className="display-flex align-items-center"> <div className="container-fluid nav_bg"> <div className="row"> <div className="col-10 mx-auto"> ...
var tileMgr = {}; tileMgr.validate = function(event){ var self = {}; var candidate = $(this); self.isActiveMove = function( candidate ){ //console.log("isActiveMove"); if( ANIMIX.activeMove ){ self.backtracking( candidate ); } else { //console.log("not activ...
import express from "express"; import props from "../settings/props.js"; import cors from "cors"; import Todos from "../models/Todos.js"; const app = express(); app.use(cors({ origin: true }), express.json()); const seq = props.sequelize; // const check = props.seqAuth(seq); app.get("/todo/list", (req, res) => { T...
'use strict'; import $ from 'jquery'; import slick from 'slick-carousel'; export default class Carousel { constructor() { } init() { $(".hero-slider").slick({ // normal options... slidesToShow: 1, slidesToScroll: 1, autoplay: true, autoplaySpeed: 5000, ...
(function() { 'use strict'; angular .module('app.admin') .controller('AdminController', AdminController); AdminController.$inject = ["queuingservice", "$mdToast"]; function AdminController(queuingservice, $mdToast) { var vm = this; vm.availableAircraft = []; vm.currentSelectedAircraft = null; vm.sele...
/*const mongoose = require('mongoose'); mongoose.connect('mongodb://localhost/micoleccion', {useMongoClient : true}); var db = mongoose.connection; db.on('err', function(){ console.log("Error al tratar de conectar con mongo"); }); db.once('open', function(err){ if(err) console.log('error'); cons...
define(['angular', 'jquery', 'rd.services.PopupService', 'rd.services.EventService','css!rd.styles.Alert', 'rd.services.Utils'], function() { var alertModule = angular.module('rd.services.Alert', ['rd.services.PopupService', 'rd.services.EventService', 'rd.services.Utils']); alertModule.constant("ButtonType...
import React from 'react' import { render } from 'react-dom' import Multipane from '../src/Multipane' import MultipaneResizer from '../src/MultipaneResizer' import './style.scss' const App = () => <Multipane styleName={'vertical-panes'}> <div className={'pane pane-1'}> <p>tttest</p> </div> <Multipa...
/** * Creates am identity? Works, but not sure if we should use this */ export function createAMTestUser() { return cy.request({ method: 'POST', url: `https://${Cypress.env('FQDN')}/am/json/realms/root/authenticate`, headers: { 'X-OpenAM-Username': Cypress.env('AM_USERNAME'), 'X-OpenAM-Passw...
var struct____class____file__8js_8js = [ [ "struct__class__file_8js", "struct____class____file__8js_8js.html#a2a03cb8b7535d4b2b0107df18bd84fd6", null ] ];
//Config for Localhost // var Config = { // "serverip": '127.0.0.1', // "serverport": '8080' // }; //Config for Modulus var Config = { "serverip": '0.0.0.0' "serverport": process.env.PORT }; module.exports = Config;
// Generated by CoffeeScript 1.7.1 (function() { var loadVideo, videoControls; loadVideo = (function() { function loadVideo(id, url) { var mpPatt, mpResult, oggPatt, oggResult, webmPatt, webmResult; this.id = id; this.url = url; oggPatt = new RegExp("\.og[gv]"); oggResult = oggPat...
import React from 'react'; import List from '../components/List.jsx'; class WaitingOnPlayerList extends React.Component { constructor() { super(); this.getRequiredPlayers = this.getRequiredPlayers.bind(this); this.renderItems = this.renderItems.bind(this); this.itemStyle = { backgroundColor: "#C8D8EB", ...
const webpack = require('webpack'); const merge = require('webpack-merge'); const CleanWebpackPlugin = require('clean-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const OptimizeCssAssetsWebpackPlugin = require('optimize-css-assets-webpack-plugin'); const TerserPlugin = require('ter...
console.log("importing module folder"); var fs = require("fs"); var path = require("path"); var self = function(data){ this.directory = data[0]; console.log("imported module folder"); } self.prototype.getERROR = function(e,msg){ console.log("ERROR EN MODULO DE CARPETAS:::::::::"+msg); console.log(e); return {st...
const joi = require('@hapi/joi'); const bcrypt = require('bcryptjs'); const jwt = require('jsonwebtoken'); const config = require('config') const User = require('../models/User') //Test Purpose via auth middleware: const authUser = async (req, res) => { try { const user = await User.findById(req.user.id)....
$(document).ready(function () { // console.log('hello'); $('#checkbox1').mousedown(function () { if (!$(this).is(':checked')) { this.checked = confirm("Are you sure?"); $(this).trigger("change"); } }); //This is used to add new scheduler. var addSchedulerFo...
(function(){ // Resultat var resultat; // Resultat anterior var resAnterior; // Historial var historial; // Numero actual var numActual; // Boto clicat abans var btnAnterior; // Ha clicat operador? var clicaOperador; // Operador clicat var operador; // Operado...
describe('examples/combined-hbs-jsx', () => { describe('Handlebars output passed to a JSX component', () => { beforeEach(async () => { await page.goto('http://localhost:3456/hbs-to-jsx', { waitUntil: 'load' }) }) it('renders the JSX component (imported from local path) as a parent of the Handlebars...
import axios from 'axios'; import { errorMessage, successMessage } from './flash-message'; export function submitForm (name, paid) { return dispatch => axios.post( `/ajax/others/insert-into/${ name }`, { paid }) .then( res => { if (res.status === 201) { dispatch( successMessage( 'Успіх! Показники ...
const mongoose = require('mongoose'); const { Schema, model } = mongoose; const courseSchema = new Schema( { name: { type: String, required: true }, teacherId: { type: String, required: true }, studentsFBId: [{ type: String, required: true }] }, { times...
const Discord = require("discord.js"); const config = require('../config.js'); const moment = require("moment"); module.exports = { name: 'about', description: "about bot", async execute(message, args, client) { const duration = moment.duration(message.client.uptime).format(" D [days], H [hrs], m [mi...
import { combineReducers } from 'redux'; import mainState from "./mainState.js"; import { routerReducer } from 'react-router-redux'; const appState = (state = mainState(), action) => { switch (action.type) { case 'MAIL_SEND_SUCCESS': { alert("MAIL_SEND_SUCCESS"); ...
import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; import _createClass from "@babel/runtime/helpers/createClass"; import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn"; import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf"; import _inherits from "@babe...
module.exports = { name:'resume', description:'Resumes the current song', execute(options){ if(!options.guild.me.voice.channel || options.client.queue.get(options.guild.id) && options.client.queue.get(options.guild.id).is_playing == false) return options.send('I\'m not playing music.'); if(options.member....
$(document).ready(function(){ $("#article").hide(); $("#show-article").css('cursor', 'pointer').click(function(){ $("#article").slideToggle('slow'); $("#show-article").css({'border-bottom': 'none'}) }) $("input[name='link']").focus(function(){ var text = $("input[name=...
webpackJsonp([3],{ /***/ 6: /***/ (function(module, exports, __webpack_require__) { console.log('hello world'); __webpack_require__(0) __webpack_require__(7); /***/ }), /***/ 7: /***/ (function(module, exports) { // removed by extract-text-webpack-plugin /***/ }) },[6]);
import React from 'react' import style from '../style' const Shape = ({ weight, size = { width: 1, height: 1 }, spacing = 0, className, component, debug = false }) => { /* ClassName */ const generateShapeClassName = () => { let result = 'shape' return result } const generateInnerClassName...
import mongoose from 'mongoose'; const contactCollection = mongoose.model('contacts', new mongoose.Schema({ Name: { type: String, required: true }, email: { type: String, required: true }, comment: { type: String, minlength: 5, maxlength: 1000...
/** * Created by Administrator on 2017/4/3. */ angular.module("addActivity") .directive("addActivityPage",function () { return{ restrict:"ACE", replace:true, templateUrl:"../addActivity/addActivity_template.html" } })
const User = require('./users'); const Order = require('./orders'); const HostingTariff = require('./hostingTariffs'); // Order.hasOne(HostingTariffs, { // foreignKey: 'tariff_id' // }); // User.hasOne(Order, { foreignKey: 'id', sourceKey: 'order_id', as: 'ActiveOrder' }) User.hasMany(Order, { foreignKey:...
import React, { Component } from 'react'; import '../assets/scss/Menu.scss'; class Menu extends Component { render() { return ( <nav className="menu"> <div className="menu__content"> <div className="menu__logo"> <span></span> <...
import { connect } from 'react-redux'; import NotebooksIndexItem from './notebooks_index_item'; import { setCurrentNote, fetchNotes } from '../../../actions/note_actions'; import { setCurrentNotebook, createNotebook, deleteNotebook, fetchNotebooks } from '../../../actions/notebook_actions'; import { setCurrentTag } fro...
var OP = {}; // A poor-man's access to relational data. OP.Objection = function(id, doc) { this._id = id; for(var k in doc) { this[k] = doc[k]; } OP.Subjectification.obj[this._id] = this; }; OP.Objection.prototype.get = function(k) { return OP.Subjectification.obj[this[k]]; }; OP.Objection....
import { IndividualSubmenuMain } from "./individual-submenu-main"; //Código individual do item export const SubmenuItemMain = ({ categoria, filterData}) => { return categoria.map((individualItem) => ( <IndividualSubmenuMain key={individualItem.ID} individualItem={individualItem} ...
const config = require('../../config.json') const sqlType = config.feedManagement.sqlType.toLowerCase() const defaultConfigs = require('../../util/configCheck.js').defaultConfigs exports.selectTable = function (con, table, callback) { if (sqlType === 'mysql') return con.query(`select table_name from information_sche...
import React from 'react' class Question extends React.Component { constructor(props){ super(props) } render(){ return ( <div>stuff here</div> ) }; } export default Question;
import React from 'react' import image from '../assets/login-form.jpg' export default class Login extends React.Component { render() { return ( <div className="trek" style={{height: '100vh', backgroundImage: `url(${image})`}}> <h1>Share trekgegevens</h1> <div className="row"> <div...
import './grid.scss'; import './color.scss'; import './common.scss';
import React, {Component} from 'react'; import {Appbar} from 'react-native-paper'; import {StyleSheet, StatusBar, View} from 'react-native'; import AntDesign from 'react-native-vector-icons/AntDesign'; import Feather from 'react-native-vector-icons/Feather'; import Ionicons from 'react-native-vector-icons/Ionicons'; im...
import React from "react"; import { makeStyles } from "@material-ui/core/styles"; import Paper from "@material-ui/core/Paper"; import Breadcrumbs from "@material-ui/core/Breadcrumbs"; import Typography from "@material-ui/core/Typography"; import { Link as RouterLink, withRouter } from "react-router-dom"; import Link fr...
var express = require('express'); var router = express.Router(); var router = express(); router.use(function(req, res, next) { res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept"); next(); }); var recipePuppy = require...
angular.module('influences') .controller('indexCtrl', function($scope, userService) { userService.getCurrentUser().then(function(user) { if (user) this.currentUser = user; }.bind(this)) this.active = {}; $scope.$on('activateModal', function(s, modalType) { this.active = {}; this.active.moda...
import Vue, { VueRouter, Vuetify } from "./dist/vue.mjs"; import Theme from "./setup/Theme.vue"; import Create from "./setup/Create.vue"; Vue.use(VueRouter); const router = new VueRouter({ routes: [{ path: "/", name: "Create", component: Create }] }); const vuetify = new Vuetify({ icons: { ...
//= require ./nvd3/lib/d3.v3 //= require ./nvd3/nv.d3.js //= require ./nvd3/src/core //= require ./nvd3/src/tooltip //= require ./nvd3/src/utils.js //= require ./nvd3/src/interactiveLayer.js //= require ./nvd3/src/models/axis.js //= require ./nvd3/src/models/bullet.js //= require ./nvd3/src/models/bulletChart.js //= re...
import React from "react"; import { SafeAreaView, StatusBar, StyleSheet } from "react-native"; import { AuthProvider } from "./src/contexts/AuthProvider"; import { Colors } from "./src/config"; import Navigator from "./src/navigators"; export default function App() { return ( <AuthProvider> <SafeAreaView style=...
export default function indexCtrl(lessonsConfig) { this.config = lessonsConfig; };
import React, {Component} from "react"; import {Col, Row} from "antd"; import Basic from "./Basic"; import SeclectSize from "./SelectSize"; import SearchField from "./SearchField"; import SelectTag from "./SelectTag"; import SelectMultiple from "./SelectMultiple"; import SelectOption from "./SelectOption"; im...
jQuery(document).ready(function($) { // when the frequency pull down is changed, show the appropriate "extra" fields $(document).on('change','.small-step-frequency',function() { displayFrequencyFields( $(this) ); $('input[type=checkbox]').uniform(); }); // hide the small-step, display the form $(docu...
import CSSReset from './CSSReset' export default CSSReset
import React from "react" import {render} from "react-dom" import {Provider} from "react-redux" import {store} from "./state/store" import App from "./App" render(<Provider store={store}><App/> </Provider>, document.getElementById("root"))
var _41 = { _51: [{ _61: ["tph_MAD_LoadingBar.js"] }, { _61: ["uph_Config.js"] }], _71: [], _81: [{ _91: "sp_pen", width: 31, height: 278, _a1: !1, _b1: !1, preload: !1, _c1: 30, _d1: 277, _e1: [...
function testClosure(){ for (var i=0;i<=5;i++){ //var i belonging to testClosure scope // when the callback is run it refers to i and receives the value of i =6 in all cases setTimeout(function(){console.log("first count: " + i)},i); //j is the local variable to for loop only: per-it...
var args = process.argv.slice(2); function sum(acc, val){ return acc + val; } var sum = args.map(Number).reduce(sum, 0); console.log(sum);
const { assert } = require("chai"); const ERC4907Demo = artifacts.require("ERC4907Demo"); contract("test", async (accounts) => { it("should set user to Bob", async () => { // Get initial balances of first and second account. const Alice = accounts[0]; const Bob = accounts[1]; const instance = await...
//require('look').start(); describe("piper", function(){ var expect = require('expect.js') var piper = require(__dirname + '/../index.js') var p = piper var V = require('momentum') var R = V.r function riser(to){ var a = [], i; for ( i=0; i<to-1; i++ ){ a[i] = 0 } a[i] = ...
$(document).ready(function () { $('#citySwitch').styler(); $('body').find('.jq-selectbox__dropdown ul').mCustomScrollbar({ theme: 'vskidke', mouseWheel: true }); discountCreateError(); flashMessages(); $("#fileID").change(function(){ readURL(this); }); ...
import React, { useState ,useEffect} from 'react'; import { post } from "@u/http"; import { NavBar, Icon,Modal } from 'antd-mobile'; import { useHistory } from 'react-router-dom' import { Wrap, Main } from './SignIn.styled.js' import back from '@a/images/iconku/u529.png' import headPic from '@a/images/iconku/u4996.png'...
const { path } = require('@vuepress/shared-utils') function color2Rgb(color) { var reg = /^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/; var sColor = color.toLowerCase(); if(sColor && reg.test(sColor)){ if(sColor.length === 4){ var sColorNew = "#"; for(var i=1; i<4; i+=1){ sColorNew ...
// roundDown :: Number -> Number const roundDown = x => Math.floor(x) export default roundDown
angular.module('config', []) .constant('API_ENDPOINTS', (function() { return { BRANDS_GET : '/get_all_brands', GRAPH_DATA_GET : '/get_graph_data/BRAND/STATTYPE/SUBSTATTYPE/DATE' }; })());
//App Actions export const SET_THEME = 'SET_THEME'; //Authentication Actions export const alertConstants = { SUCCESS: 'ALERT_SUCCESS', ERROR: 'ALERT_ERROR', CLEAR: 'ALERT_CLEAR' }; export const userConstants = { REGISTER_REQUEST: 'USERS_REGISTER_REQUEST', REGISTER_SUCCESS: 'USERS_REGISTER_SUCCESS', REGIST...
const { GoogleSpreadsheet } = require('google-spreadsheet'); const credentials = require('./json/credentials.json'); let googleId = '1-B3FpZPj6n673FQbLblQrZe2OLYkYGZobBXsNzQclO4'; /** * Funcion asincrona que recibe un arreglo con las claves de los PVVC y los agrega al * documento en Google Docs. * @param {*} value...
var Game = require('./game-commands'); require('../stylesheets/style.css'); new Game();
var searchData= [ ['media_5froot',['MEDIA_ROOT',['../namespaceblogproj_1_1settings.html#a614b4b3b7f6280602a354734a9574444',1,'blogproj::settings']]], ['media_5furl',['MEDIA_URL',['../namespaceblogproj_1_1settings.html#abd9b885dfabb4265579418f19ccd4706',1,'blogproj::settings']]], ['meta',['Meta',['../classhomepage...
import React from 'react'; import renderer from 'react-test-renderer'; import {Provider} from "react-redux"; import GameScreen from './game-screen.jsx'; import {GameType} from '../../consts.js'; import configureStore from "redux-mock-store"; import NameSpace from '../../reducer/name-space'; const mockStore = configure...
import React from "react"; import Header from "./header"; import Footer from "./footer"; import Container from "./container"; export default class Layout extends React.Component { render() { const title = "Welcome Sebastien"; return ( <div> <Header title={title} /> <h2>je fais...
const css = require('./main.less'); const eventStream = require('../../../event-stream'); const f = require('flyd'); f.obj = require('flyd/module/obj'); const R = require('ramda'); const Ru = require('@panosoft/ramda-utils'); require('../../f-button'); require('../../f-icon'); /** * Properties: * - items:[vnode] - i...
import React from 'react'; import 'bootstrap/dist/css/bootstrap.min.css'; import { Navbar, Nav, Container, NavDropdown } from 'react-bootstrap'; import { Link } from "react-router-dom"; import './Header.css'; // import Avatar from '@material-ui/core/Avatar'; import Logout from './Logout'; // import Reviews from './page...
import React, { Component } from 'react' import cls from "classnames" import Link from 'next/link' import { Dropdown } from 'semantic-ui-react' import { Grid } from 'semantic-ui-react' import Router from 'next/router' import fetch from '../../utils/fetch' import styles from "./index.less" const categories = [ { n...
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class Register extends Component { constructor() { super(); this.state = { email: '', password: '', errors: {} }; } onChange = e => { this.setState({ [e.tar...
var files________8js____8js__8js_8js = [ [ "files____8js__8js_8js", "files________8js____8js__8js_8js.html#afae973c2f3459b45aaafe1492ec9b477", null ] ];
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
function barrelDistortion(pixels) { "use strict"; var width = pixels.width; var height = pixels.height; var xmid = width / 2; var ymid = height / 2; var rMax = Math.sqrt(Math.pow(xmid, 2) + Math.pow(ymid, 2)); var x; var y; var gnRadius; var x2; var y2; var gnRadius2; ...
var obj = { name : "Open menu menu" }; function addClass(object, cls) { var newObj = object.name.split(" "); for(var i = 0; i < newObj.length; i++) { if(newObj[i] === cls){ return; } } newObj.push(cls); return object.name = newObj.join(' '); } addClass(obj, "Open")...
$(function () { //设置日期 setMonthDate(); $("#printBtn").bind('click',{title: '月工资分析表',rowNum:20},printData); $("#exportBtn").bind('click',{title: '月工资分析表',pojo:'MonthAnalyze'},exportExcel); }); /** 车间加载成功 选中第一个 */ function loadCombox(data){ $("#shop ").combobox('select',da...
import api from './base' const apiURL = 'https://gbc083.herokuapp.com/api' export const baseApi = api(apiURL) const Api = { request(path, options) { return baseApi.request(path, options) }, } export default Api
const fetch = require('../../utils/fetch.js') var app = getApp() Page({ /** * 页面的初始数据 */ data: { openId: '', addrList: '', dete: false, selList: [], anchor: '1', being: true }, /** * 生命周期函数--监听页面加载 */ onLoad: function() { var that = this; that.setData({ openI...
import styled from "@emotion/styled"; const NewButton = styled.button` background: ${(props) => (props.primary ? props.primary : "#8eaedd")}; padding: 10px 12px; border-radius: 7px; text-align: left; outline: none; border: none; color: white; font-weight: bold; &:hover { background: ${(props) =>...
import classes from './Footer.module.css'; export const Footer = () => { return ( <footer> <div className={classes.leftFooter}>&copy; 2021 GigaChad Sports</div> <div className={classes.rightFooter}> <a href="https://instagram.com" target="_blank" rel="noreferrer"> <img s...
import React from 'react'; import { Button, Form, FormControl } from 'react-bootstrap'; import './HeaderMain.css' const HeaderMain = () => { return ( <div> <section className="header-main"> <div className="container"> <div className="row"> ...
// first step is import react. import React, {Component} from 'react'; // importy react router dom import './App.css'; //URL for the API in below line for Endpoint 2 const APII = 'https://hn.algolia.com/api/v1/search?query='; const DEFAULT_QUERY = 'redux'; class App1 extends Component { constructor(...
export default { products: [ { id: "1001", name: "เสื้อผ้า", price: 200, stock: 10, pic: './images/pic1.jpg' }, { id: "1002", name: "กางเกง", price: 1200, stock: 50, pic: '...
/* A factor chain is an array where each previous element is a factor of the next consecutive element. The following is a factor chain: [3, 6, 12, 36] // 3 is a factor of 6 // 6 is a factor of 12 // 12 is a factor of 36 Create a function that determines whether or not an array is a factor chain. */ function factorCha...
const express = require('express'); const router = express.Router(); const bodyParser = require('body-parser') router.use(bodyParser.json()) const create = require('../routes/create'); const read = require('../routes/read'); const update = require('../routes/update'); const del = require('../routes/delete'); ro...
function openWin(url) { var myWin = window.open(url,"helpWin","statusbar,menubar,height=500,width=400,resizable,scrollbars=auto"); helpWin.focus(); }
import * as methods from './risk' describe('#risk', () => { it(`should get the right risk points, which are risk points for every 5 minute block for the first 3 hours and then every hour block after that up to 72 hours.`.replace(/s+/g, ' '), () => { var result = methods.getRiskPoints( { latit...
"use strict"; var routerApp = angular.module('FoundDonorController', []); routerApp.controller('FoundDonorListController', function($window,$scope,$state,$stateParams,$http, $rootScope,$custom, $log,alertify,FoundDonorService,CommonService) { $scope.showLoader = true; $rootScope.$broadcast('showLoader',$sc...
var db = require('../models'); var FacebookStrategy = require('passport-facebook').Strategy; passport.use(new FacebookStrategy({ clientID: FACEBOOK_APP_ID, clientSecret: FACEBOOK_APP_SECRET, callbackURL: "http://localhost:3000/auth/facebook/callback", profileFields: ['email', 'displayName'] }, func...
const triangle = array => { const edges = array.sort((a,b) => (a - b)); for(let i = 2; i < edges.length; i++) { let x = edges[i-2]; let y = edges[i-1]; let z = edges[i]; if(x+y <= z) continue; if(x+z <= y) continue; if(y+z <= x) continue; return 1; } return 0; }; module.exports = tr...
window.onload = init; window.onresize = resizeboard; var maindiv; var canvas = null, ctx = null, dicecanvas = null, dicectx = null, upcanvas = null, upctx = null; CanvasRenderingContext2D.prototype.roundRect = function (x, y, w, h, r) { if (w < 2 * r) r = w / 2; if (h < 2 * r) r = h / 2; this.beginPa...
import BackgroundManager from '../js/managers/background'; import sound from '../../public/assets/music/monster.mp3'; import SoundManager from '../js/managers/sound'; import DialogManager from '../js/managers/dialog'; import State from '../js/managers/state'; import nextNode from '../nodes/2-saveHaku'; import video fro...
import React, { memo } from 'react' import { renderRoutes } from 'react-router-config'; import routes from './router'; import CMAppHeader from '@/components/app-header'; import CMAppFooter from '@/components/app-footer'; import { HashRouter } from 'react-router-dom'; export default memo(function App() { return ( ...