code
stringlengths
2
1.05M
(function() { 'use strict'; angular.module('onEnter', []) .directive('onEnter', [function() { var linkFunc = function(scope, el, attrs) { el.on('keypress', function(event) { if (event.keyCode !== 13 || event.shiftKey) return; event.preventDefault(); scope.$apply(attrs.onEnter); ...
(function() { 'use strict'; angular .module('blocks.storage') .factory('$localStorage', factory); factory.$inject = ['$window']; /* @ngInject */ function factory($window) { var service = { set: set, get: get, setObject: setObject, ...
'use strict'; const debug = require('debug')('wechat-JSSDK'); const isEmpty = require('lodash.isempty'); const urlParser = require('url'); const utils = require('./utils'); const config = require('./config'); const Store = require('./store/Store'); const FileStore = require('./store/FileStore'); const wxConfig = c...
define("ghost/routes/settings/tags", ["ghost/routes/authenticated","ghost/mixins/current-user-settings","ghost/mixins/pagination-route","exports"], function(__dependency1__, __dependency2__, __dependency3__, __exports__) { "use strict"; var AuthenticatedRoute = __dependency1__["default"]; var CurrentUs...
const path = require('path'); const util = require('./util'); class Manager { /** * @param {string} id */ static async import(id) { if (module.import) { return await module.import(id); } return { default: module.require(id) }; } /** * @param {string} ...
import prompt from 'prompt'; import io from 'socket.io-client'; import fetch from 'node-fetch'; import imessagemodule from 'imessagemodule'; import sqlite from 'sqlite3'; import glob from 'glob'; const IMESSAGE_DB = process.env.HOME + '/Library/Messages/chat.db'; //const URL_BASE = 'http://imessage.dokku.jdupserver.c...
function anadir_carrito(nameform, sitio, canal, promocion) { var tienda = 'http://kiosco/'; //##c## var formid = document.getElementById(nameform+promocion); var parametros = { "guidx" : formid.guidx.value, 'guidz' : formid.guidz.value, 'imagen' : formid.imagen.value, '...
const Dare = require('../../src/'); // Test Generic DB functions const sqlEqual = require('../lib/sql-equal'); const DareError = require('../../src/utils/error'); describe('post', () => { let dare; beforeEach(() => { dare = new Dare(); // Should not be called... dare.execute = () => { throw new Error...
`use strict`; const mocha = require('mocha'); console.log({ mocha: mocha });
import React, { PropTypes, Component } from 'react'; import Son from './Son'; class Dad extends Component { static defaultProps = { name: 'A' }; static propTypes = { name: PropTypes.string }; constructor(props) { super(props); this.state = { happy: true }; console.log("-----...
import DS from 'ember-data'; import Validator from '../../mixins/model-validator'; export default DS.Model.extend(Validator,{ favoriteColor: DS.attr('string'), validations: { favoriteColor: { color: true } } });
import { createStore } from 'redux'; import rootReducer from '../reducers'; export default function configureStore(initialState) { const store = createStore( rootReducer, initialState ); return store; }
var test = require('../index').test; var html = require('../html').html; var log = require('../index').log; var http = require('http'); var assert = require('assert'); var success_server = http.createServer(function(req, res) { res.writeHead(200, { 'Content-type': 'text/html' }); res.write('<html><head><title>OK</...
function initAnimations(Q) { Q.animations('person', { idle_front: { frames: [0] }, running_front: { frames: [1,0,2,0], rate: 1/4 }, striking_front: { frames: [3], rate: 1/4, next: 'idle_front' }, idle_left: { frames: [4] }, running_left: { frames: [5,4,6,4], rate: 1/4 }, striking_left: { frame...
(function($){//Модули: var defaultOptions = { nameIFrame: "", minWIFrame: 320, minHIFrame: 480, $dimensions: undefined }; var resizeIFrame = function($container, options) { this._options = options; var ____ = this; ____._last_cursor_Y = 0; ____._last_cursor_X = 0; this._create =...
'use strict'; module.exports = { __configKey__: { /** * Connection details for resque service * * @see {@link https://github.com/taskrabbit/node-resque} * @type {Object} */ connection: { package: 'ioredis', host: '127.0.0.1', password: '', port: 6379, ...
function factorial(num) { if (num === 0 || num === 1) return 1; for(var i = num - 1; i >= 1; i--) { num *= i; } return num; } console.log(factorial(process.argv[2]))
import * as db from '../db.js'; export function createRoom(req) { let url = req.body.url; let title = req.body.title; if(url){ if(!/^http:\/\/|https:\/\//.test(url)){ url = 'http://' + url; } let room = db.createRoom(url.trim(), title.trim()); return Promise.resolve(room); } else{ ...
var searchData= [ ['factory',['Factory',['../interfacewcmf_1_1lib_1_1core_1_1_factory.html',1,'wcmf::lib::core']]], ['failurecontroller',['FailureController',['../classwcmf_1_1application_1_1controller_1_1_failure_controller.html',1,'wcmf::application::controller']]], ['fatal',['fatal',['../classwcmf_1_1lib_1_1co...
import Ember from 'ember'; const {assert, isArray} = Ember; const {keys} = Object; export default Ember.Mixin.create({ /* Don't render anything directly. */ tagName: '', /* The attributes that need to be passed to this component. */ attrs: { context: null, name: null, range: null, ...
"use strict"; const pgn = require("./lib/pgn"); const winston = require("winston"); const startTime = Date.now(); function getRuntime() { return (Date.now() - startTime)/1000; } function printRuntime(runTime) { winston.info(`links search had a runtime of ${runTime}s`); } exports.demo = function () { con...
import React from 'react'; import RoutingContext from 'react-router/lib/RoutingContext'; import { getPrefetchedData, getDeferredData } from 'react-fetcher'; import ReduxContextContainer from './redux-context-container'; export default class ReduxContext extends React.Component { static childContextTypes = { ...
import { createSelector } from 'reselect'; import { calculatePayments } from '../helpers/saving'; const getSavings = (state) => state.saving; export default createSelector( [ getSavings ], (saving) => { return calculatePayments({ ...saving }) } );
/** * @author Abe Pazos / https://hamoid.com * @author Mugen87 / https://github.com/Mugen87 */ import { Geometry } from '../core/Geometry'; import { PolyhedronBufferGeometry } from './PolyhedronGeometry'; // DodecahedronGeometry function DodecahedronGeometry( radius, detail ) { Geometry.call( this )...
var fs = require('fs'); var utils = require('./utils'); function toLookLike() { var compare = function (actual, expected) { var result = { pass: null, message: null }; var path = utils.getFixturePathByName(expected); if(!fs.existsSync(path)) { r...
Ext.onReady(function () { Ext.define('App.Model', { extend: 'Ext.data.Model', fields: [{ name: 'f', type: 'string' }, { name: 'l', type: 'string' }], identifier: 'uuid', getFullName: function () { return this...
angular.module('jv.json-viewer', []);
//Choose type of accounts - disabled next button, only undisable it if user selects Abridged, Micro or Dormant $( document ) .ready( function () { $( '#choose-accounts-button' ) .attr( 'disabled', 'true' ); // Disables Next button on page load $( 'input:radio[name=choosetypeaccounts]' ) .click( function () {...
import { factory } from '../../../utils/factory' const name = 'splitUnit' const dependencies = ['typed'] export const createSplitUnit = /* #__PURE__ */ factory(name, dependencies, ({ typed }) => { /** * Split a unit in an array of units whose sum is equal to the original unit. * * Syntax: * * spl...
'use strict'; define(['phaser', 'util'], function(Phaser, Util) { function BlueNumber(game, parent, fx) { Phaser.Group.call(this, game, parent); this.fx = fx; this.digit = this.create(0, 0, 'marbleatlas', 'COMMON03_DIGIT_0'); this.digit.animations.add('0', ['COMMON03_DIGIT_0']); ...
/** * == DOM == * The DOM section **/ /** * == ajax == * The AJAX section **/ /** * == lang == * The LANG section **/ /** section: DOM * class Element * The Element class **/ /** related to: Element * $(element) -> Element * the $ function **/ /**...
CartesTXT = [ { _id: "oHrrKjiBHgjBPvLEY", carteId: "L1", intitule : {fr:"Lanceur léger #1", en:"Lightweight launcher #1"}, description : {fr:"Cette fusée, type Pegasus, lance des charges légères (maximum 400Kg, uniquement en orbite basse) depuis un avion. Elle est assez fiable (85%).", en:"This rocket...
angular.module('hello-oauth-angular-example-app').controller('LoginController', function ($q, helloOauth) { 'use strict'; var vm = this; vm.loginResponses = {}; vm.logoutResponses = {}; vm.services = ['facebook', 'google']; vm.loginWithService = function loginWithService(service) { return helloOauth(service).l...
import Controller from '@ember/controller'; import { text } from '../utils/samples'; export default class TestController extends Controller { text = text; }
/*! * d3pie * @author Ben Keen * @version 0.1.9 * @date June 17th, 2015 * @repo http://github.com/benkeen/d3pie */ // UMD pattern from https://github.com/umdjs/umd/blob/master/returnExports.js (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous modu...
angular.module('quiz', [ 'templates-app', 'templates-common', 'quiz.home', 'quiz.quiz', 'quiz.login', 'quiz.info', 'ui.router' ]).config([ '$stateProvider', '$urlRouterProvider', '$locationProvider', function myAppConfig($stateProvider, $urlRouterProvider, $locationProvider) { $urlRouterProvid...
var PORT = process.env.PORT || 8080, http = require("http"), https = require("https"), express = require('express'), app = express(), server = http.createServer(app), WebSocketServer = require('ws').Server, wss = new WebSocketServer({ server: server }); // Serve static HTML and JS files...
/* global API_HOST */ import fetch from 'isomorphic-fetch'; import { player } from 'reducers'; const url = '/api/players'; const REQUEST = 'player/REQUEST'; const OK = 'player/OK'; const ERROR = 'player/ERROR'; export const playerActions = { REQUEST, OK, ERROR, }; const getPlayerRequest = id => ({ type: REQUE...
/** * Created by viatsyshyn on 24.10.13. */ NAMESPACE('ria.dom', function () { "use strict"; function def(data, def) { return ria.__API.merge(data || {}, def); } var window = _GLOBAL; var Node = _BROWSER ? _GLOBAL.Node : Object; /** @class ria.dom.Events */ CLASS( FINAL, '...
import * as React from 'react'; function ArrowCircleUpIcon(props) { return ( <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" {...props} > <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2...
(function (angular) { "use strict"; angular .module('content.core') .directive('uiSelect', UiSelectDirective) .controller('UiSelectCtrl', UiSelectCtrl); UiSelectDirective.$inject = []; function UiSelectDirective() { return { restrict: 'E', requi...
'use strict'; const { expect } = require('chai'); const { infoReducer } = require('../src/components/info_window/reducers'); describe('interface.components.character_sheet.reducer', function() { describe('.infoReducer', function() { let initial_state; let action; context('on a INFO_WINDOW_ALERT event'...
(function ajaxClientInit(module) { 'use strict'; var _ = require('underscore'); module.exports = { init: function ($, undefined) { var isJson = function (text) { return (/^[\],:{}\s]*$/.test(text.replace(/\\["\\\/bfnrtu]/g, '@'). replace(/"[^"\\\...
window.__imported__ = window.__imported__ || {}; window.__imported__["afsafdsasdgc/layers.json.js"] = [ { "maskFrame" : null, "id" : "7373D5FE-CB1D-4B96-B571-CDD2D6F0AD2A", "visible" : true, "children" : [ { "maskFrame" : null, "id" : "F334880F-CA47-4914-8E59-5DD840494EF7", ...
/*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under the MIT license */ if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } +function ($) { 'use strict'; var version = $.fn.jquery.split(' ')[0].split('.'); if ((...
const resolveTask = require('./../common/factories/resolveTask'); const rejectTask = require('./../common/factories/rejectTask'); const errors = require('../errors'); const isAdmin = require('./../common/actions/isAdmin'); const toggleCompetitionVisibility = require('./actions/toggleCompetitionVisibility'); module.ex...
/* 小动态瀑布流 * nano from https://github.com/trix/nano.git * * 返回 json 的结构: * { * "photos": { * "total": 60, * "photo": [{ * "name": "heyun51@gmail.com", * "price": "359.00", * "id": 1796, * "quantity": 0 * }], * "perpage": 10, * "page": 4, *...
const buildMonorepoIndex = require('./build-monorepo-index'); const glob = require('glob'); const path = require('path'); const fs = require('fs'); const publishUtils = require('./utils'); const shell = require('shelljs'); function buildStorybook(currentPackage, outputDirectory, npmScriptName) { console.log(`=> Buil...
import React from 'react'; import { Card, Button, CardHeader, CardFooter, CardBody, CardTitle, CardText } from 'reactstrap'; const Example = (props) => { return ( <div> <Card> <CardHeader>Header</CardHeader> <CardBody> <CardTitle tag="h5">Special Title Treatment</CardTitle> ...
import Hook from 'util/hook' import genSchema from './gensrc/schema' import genResolver from './gensrc/resolver' import {deepMergeToFirst} from 'util/deepMerge' // Hook to add mongodb resolver Hook.on('resolver', ({db, resolvers}) => { deepMergeToFirst(resolvers, genResolver(db)) }) // Hook to add mongodb schema ...
var express = require('express'), app = express(); var port = 8000; app.use(express.static(__dirname + '/dist')); console.log('listening on port: ' + port); app.listen(port)
/* https://developer.github.com/v3/media/ http://tools.ietf.org/html/rfc4288#section-3.2 Example: application/vnd.<company>[.version].param[+json] */ // Load libraries const Joi = require('joi'); // Declare internals const internals = { schema: Joi.object({ vendor: Joi.string().required(), defau...
/* global it */ 'use strict'; var runBenchmark = require('./common').runBenchmark; var dataSizes = [5, 10, 20, 50, 100, 500, 1000, 2000, 5000, 10000, 100000, 1000000]; var bindingsCount = [5, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100]; var PAGE_URL = 'http://localhost:8080'; var benchmarks = [ function (binding...
var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('To quarters four hallo\n'); }).listen(8888, '127.0.0.1'); console.log('Server running at http://127.0.0.1:8888/');
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ retu...
/* * @Author: Picker * @Date: 2017-05-24 16:39:08 * @Last Modified by: Picker * @Last Modified time: 2017-05-27 15:40:36 */ import component from 'element-ui/lib/input'; import { PROPS_MAPPING } from './constants'; import { getDefaultAttrsFromProps, mergePropsMapping } from '../utils'; /** * convert original In...
var webpack = require('webpack'); var cssnext = require('postcss-cssnext'); var postcssFocus = require('postcss-focus'); var postcssReporter = require('postcss-reporter'); module.exports = { devtool: 'cheap-module-eval-source-map', entry: { app: [ 'eventsource-polyfill', 'webpack-hot-middleware/cl...
module.exports = (grunt) => { "use strict"; require("load-grunt-tasks")(grunt); const banner = "/* https://github.com/micmro/performance-bookmarklet by Michael Mrowetz @MicMro\n build:<%= grunt.template.today(\"dd/mm/yyyy\") %> */\n"; grunt.initConfig({ copy : { distBookmarklet: { files: [{ expan...
Object.defineProperty( Object.prototype, 'getField', { value: function(field) { if ( field === '' ) return this; let i, ref = this, path = field.toString().split('.'), len = path.length; for ( i = 0; ...
/** * @param {number[]} nums * @return {number} */ var maxSubArray = function(nums) { if (!nums || !nums.length) { return []; } let max = { start: 0, end: 0, val: nums[0] }; const dp = [{ start: 0, end: 0, val: nums[0] }]; for (let ii = 1; ii < nums.length; ii++) { dp[ii] = {}; dp[ii].end = ii...
/* * Globalize Culture tn * * http://github.com/jquery/globalize * * Copyright Software Freedom Conservancy, Inc. * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * This file was generated by the Globalize Culture Generator * Translation: bugs found in this file need to b...
import Component from '@glimmer/component'; import { action } from '@ember/object'; import { createPopper } from '@popperjs/core'; export default class TooltipComponent extends Component { _popper = null; @action setup(element) { this._popper = createPopper(this.args.target, element, this.args.options ?? {}...
mix.declare("mix.coll.HashMap", ["mix.Utils", "mix.Detector"], function(Utils, Detector) { var E; mix.declare("mix.coll.Entry", function() { function Entry(key, value) { this.key = key; this.value = value; this.next = null; } return E = Entry; }); "use strict"; var isSymbolAvailable = Detector.s...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createHistory from 'history/lib/createBrowserHistory'; import createStore from './redux/create'; import ApiClient from '....
// // Vivado(TM) // rundef.js: a Vivado-generated Runs Script for WSH 5.1/5.6 // Copyright 1986-2015 Xilinx, Inc. All Rights Reserved. // var WshShell = new ActiveXObject( "WScript.Shell" ); var ProcEnv = WshShell.Environment( "Process" ); var PathVal = ProcEnv("PATH"); if ( PathVal.length == 0 ) { PathVal = "D:/Xil...
import expect from 'expect'; import { shallow } from 'enzyme'; import React from 'react'; import { LoginButton } from '../login-button'; describe('<LoginButton />', () => { it('should render RaisedButton', () => { const app = shallow(<LoginButton />); expect(app.find('RaisedButton').length).toEqual(1); ...
// Представление мира. var WorldView = function (world) { var me = this; me.world = world; world.view = me; // Полотно для рисования. me.paper = Snap(me.world.width, me.world.height); // Режим выделения. me._isGlobalSelectionOn = true; me._generateLandscape('trees', 80, 'rgb(0,GG,0)'); me._generat...
var fs = require('fs') var path = require('path') // Load banks var banks = {} var banksFolders = fs.readdirSync(path.join(__dirname, '/banks/')) for (var i = 0; i < banksFolders.length; i++) { banks[banksFolders[i]] = require(path.join(__dirname, '/banks/' + banksFolders[i] + '/index.js')) } exports.Boleto = requi...
export { SetUserInfo } from './set-user-info';
var path = require('path') var dataRootDir = process.env.MULTIPLOT_DATA_ROOT if (!dataRootDir) { console.log('Note: please specify the MULTIPLOT_DATA_ROOT environment variable in order to visualize your specific data') dataRootDir = path.normalize(path.join(__dirname, '..', 'example_data')) } module.exports ...
'use strict'; var mongoose = require('mongoose'); var UserSchema = new mongoose.Schema({ email: String, username: String, password: String, profile_picture: String, description: String, created_at: Date, updated_at: Date, language: String }); UserSchema.methods.customCreate = function...
import * as React from 'react'; import Box from '@mui/material/Box'; import Slider from '@mui/material/Slider'; function valuetext(value) { return `${value}°C`; } export default function ColorSlider() { return ( <Box sx={{ width: 300 }}> <Slider aria-label="Temperature" defaultValue={30}...
var del = require('del') , gulp = require('gulp') , chmod = require('gulp-chmod') , concat = require('gulp-concat') , header = require('gulp-header') , rename = require('gulp-rename') , size = require('gulp-size') , trim = require('gulp-trimlines') , uglify = require('gulp-ugl...
var webpack = require("webpack"); module.exports = { entry: [ "./src/main" ], output: { path: __dirname + '/build/', filename: 'bundle.js', publicPath: '/build/', library: "stately", libraryTarget: "umd" }, resolve: { extensions: ['', '.js', ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const http = require("http"); const _debug = require("debug"); const app_1 = require("./app"); const postgres_1 = require("./helpers/db/postgres"); const config_1 = require("./config"); const debug = _debug('bear:app'); const PORT = config_1.d...
// @flow import React from 'react' import {Map} from 'react-leaflet' import AddTripPatternLayer from '../add-trip-pattern-layer' import {mockWithProvider, mockSegment} from '../../../utils/mock-data' describe('Project-Map > AddTripPatternLayer', () => { it('renders correctly', () => { // mount component exp...
/* global window: true */ (function (w) { 'use strict'; var routes = []; var map = {}; var reference = 'routie'; var oldReference = w[reference]; var ROUTE_CTX_BEFORE = 'before'; var ROUTE_CTX_AFTER = 'after'; var previousRoute = ''; var Route = function (path, name) { ...
'use strict'; /* * MenuItem * */ import React, { PropTypes } from 'react'; const MenuItem = ({ id, title, onSelectionChange }) => ( <div className='menu-item' onClick={ () => onSelectionChange(id) }>{ title }</div> ); MenuItem.propTypes = { id: PropTypes.string, // only id never change for one schema ite...
import signToken from './signToken' const user = { id: '2c062e26-df71-48ce-b363-4ae9b966e7a0', email: 'fake@email.com', roles: [ { id: 1, uuid: '3d062e26-df71-48ce-b363-4ae9b966e7a0', name: 'User', }, ], } it('creates a signed jsonwebtoken', () => { const token = signToken(user) ...
/* CryptoJS v3.1.2 code.google.com/p/crypto-js (c) 2009-2013 by Jeff Mott. All rights reserved. code.google.com/p/crypto-js/wiki/License */ var CryptoJS = CryptoJS || function (u, p) { var d = {}, l = d.lib = {}, s = function () { }, t = l.Base = { extend: function (a) { s.protot...
var appRoot = require('app-root-path'); var mongoose = require('mongoose'); var moment = require ('moment'); var Courses = require(appRoot + '/modules/catalogs/courses.js'); var async = require('asyncawait/async'); var await = require('asyncawait/await'); function CourseListAuthor(){ } CourseListAuthor.prototype.init...
if (Meteor.isClient) { Meteor.startup(function() { Session.set("showLoadingIndicator", true); TAPi18n.setLanguage(getUserLanguage()) .done(function() { Session.set("showLoadingIndicator", false); }) .fail(function(error_message) { // Handle the situation console.log(error_message); }); })...
/** * The store could be just a global object. I read and write as I please. * It could also have some useful methods. Get children, updateItem, etc. * Also it could emit a change event. But how to handle that change? * Is it fast to listen to that on hundreds of row components? * * What do I ever need to do? * ...
const {SHA256} = require('crypto-js') const jwt = require('jsonwebtoken') // let {User} = require('./../node-samples/mongo-api/models/user'); // const {User} = require('./../node-samples/mongo-api/models/user') let getToken = (data,salt) => { let promise = new Promise( (resolve, reject) => { jwt.sign(dat...
const Slack = require('../services/slack') // http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/ElasticBeanstalk.html const elasticbeanstalk = require('aws-sdk/clients/elasticbeanstalk') const eb = new elasticbeanstalk({ accessKeyId: process.env.AWS_ACCESS_KEY, secretAccessKey: process.env.AWS_SECRET_KEY, r...
/** * * View * **/ Ext.define('App.form.order.step2',{ extend : 'Ext.panel.Panel', extend : 'Ext.grid.Panel', alias: 'widget.frmOrderStep2', requires: [ 'Ext.ux.DataTip', ], columns: [ { xtype: 'rownumberer'}, // { text: 'Id', dataIndex: 'id' }, { text: 'Name', dataIndex:...
var masiro = new Array(); masiro = "<?= $result ?>"; masiro = shuffle(masiro); for (var i = 0; i <= masiro.length - 1; i++) { document.write("<a class='example-image-link' href='img/masiro/" + masiro[i] + "' data-lightbox='example-set' data-title='Click'><img class='example-image' src='img/masiro/" + masiro[i] + "' al...
const mongoose = require('mongoose') const select = require('mongoose-json-select') const shortid = require('shortid') const TokenSchema = new mongoose.Schema({ tokenId: { type: String, default: shortid.generate }, owner: { type: String, required: true }, name: { type: String, default: 'Token' }, des...
'use strict'; const utils = require('../utils/utils'); const processor = require('./processor'); const constant = require('./constant'); const tagNameRE = /(end)?(\w+)/; const spaceReg = /(>|)(?:\t| )*(?:\r?\n)+(?:\t| )*(<|)/; let mus; class Ast { constructor(html, options = {}, fileUrl) { this.root = []; th...
var dir_53507bf88ef5425748f9348c5ded7768 = [ [ "structs", "dir_54d77f48aecee2faf230fe9d00e6d3d2.html", "dir_54d77f48aecee2faf230fe9d00e6d3d2" ], [ "Channel.hpp", "_channel_8hpp_source.html", null ], [ "Client.hpp", "_client_8hpp_source.html", null ], [ "functions.hpp", "functions_8hpp_source.html", null...
Date.prototype.format = function (mask, utc) { return dateFormat(this, mask, utc); }; var currentMonth = new Date(); currentMonth.setUTCDate(1, 0, 0, 0, 0); var map = L.map('map', { zoom: 2, fullscreenControl: true, timeDimension: true, timeDimensionOptions:{ timeInterval: "1981-09/" + cur...
/** * authority-mgr.js */ define('authority-mgr',['jquery','base','liger.all'],function(require, exports, module){ var Base = require("base"); var $ = require("jquery"); require("liger.all")($); var ctx = Base.common.utils.getContextPath(); var typeEnum = {0:'超级管理员',1:'普通管理员',2:'高级用户',3:'普通用户',4:'过期用户'};...
import React, {Component} from 'react'; import {Link} from 'react-router' class Product extends Component { render() { var booleanCheck = function (value) { if (value == true) { return "Yes" } else { return "No" } }; re...
define(['dummy'], function (Dummy) { var view = new Dummy.View(); $('main').html("POOP") })
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","nb",{title:"Instruksjoner for tilgjengelighet",contents:"Innhold for hjelp. Trykk ESC for å lukke denne dialogen.",legend:[{name:"Gene...
import firebase from 'firebase'; import React, { Component } from 'react'; import { View } from 'react-native'; import { FormLabel, FormInput, Button } from 'react-native-elements'; import axios from 'axios'; const ROOT_URL = 'https://us-central1-one-time-password-d704a.cloudfunctions.net'; class SignInForm extends C...
Package.describe({ 'summary': 'Fetch data from our Kadira Fetchman', 'name': 'local:kadira-data' }); Npm.depends({ "lru-cache": "2.6.4", "mongo-sharded-cluster": "1.2.0" }); Package.onTest(function(api) { configurePackage(api); api.addFiles([ 'test/server/init.js', 'test/server/helpers.js', '...
var StellarSdk = require('stellar-sdk'); StellarSdk.Network.useTestNetwork(); var server = new StellarSdk.Server('https://horizon-testnet.stellar.org'); // Keys for accounts to issue and receive the new asset var issuingKeys = StellarSdk.Keypair .fromSecret('SCZANGBA5YHTNYVVV4C3U252E2B6P6F5T3U6MM63WBSBZATAQI3EBTQ4')...
// Compiled by ClojureScript 1.9.229 {} goog.provide('conway.core'); goog.require('cljs.core'); goog.require('reagent.core'); goog.require('conway.game'); conway.core.game_state = reagent.core.atom.call(null,conway.game.alternate.call(null,(9),(9),conway.game.alternate.call(null,(9),(10),conway.game.alternate.call(null...