code
stringlengths
2
1.05M
import {Object3D} from 'three'; import {$wrap, $defaults, $extend, $define} from '../utils/ComponentUtils'; import {extend} from '../utils/index'; function CameraComponent(targetComponent) { const resultComponent = class CameraComponentEnhance extends targetComponent { static defautls = extend(targetComponent.d...
/** * */ var app = app || {}; var FichaMonitoreoCollection; app.meta.collections.FichaMonitoreoCollection = FichaMonitoreoCollection = Backbone.Collection.extend({ url: baseUrl + '/fichamonitoreo', model: FichaMonitoreoModel });
'use strict'; // putting the utilities in the main file function colorNameToHex(colour) { var colours = {"aliceblue": "#f0f8ff", "antiquewhite": "#faebd7", "aqua": "#00ffff", "aquamarine": "#7fffd4", "azure": "#f0ffff", "beige": "#f5f5dc", "bisque": "#ffe4c4", "black": "#000000", "blanchedalmond": "#ffebcd...
; (function($, window, document, undefined) { $.widget('mondo.input', $.mondo.base, { 'options': { 'type': 'all', 'valid': 'is-valid', 'invalid': 'is-invalid' }, 'validationTimer': null, // validation tasks // key = type of input to validate // value = array of functions t...
// for loginaccount.jsx to unlock account for logging in again after changing password Meteor.methods({ unlockAcc() { const userId = Meteor.userId(); Meteor.users.update(userId, { $set: { "profile.accountLock" : false } }); return userId; } });
import { css } from 'emotion'; import { Color, mobileMaxWidth } from 'constants/css'; export const commentContainer = css` display: flex; width: 100%; flex-direction: column; margin-top: 1.5rem; position: relative; font-size: 1.6rem; .dropdown-wrapper { right: 0; position: absolute; } .conten...
function demo() { cam ( 0, 10, 40 ); // infinie plane add({type:'plane', group:1}); // static box add({ type:'box', size:[10,10,1], pos:[0,4.6,8.2], rot:[45,0,0], mass:0, group:1, mask:4 }); add({ type:'box', size:[10,1,10], pos:[0,1,0], rot:[0,0,0], mass:0, group:1, mask:4 }); // box fil...
// We want to be able to access Lichess' variables--specifically _ld_--so we // inject a <script> tag into the page with the following code inside, which // then sets a data-* attribute to the <body> tag of the page so that other // parts of the extension can access the info inside _ld_. var get_ld_ = function() { if ...
const R = require('ramda') const Bluebird = require('bluebird') const urarse = require('urarse') const assert = require('assert') const Status = require('./lib/status.js') const RabbitMQ = require('./lib/event-source/rabbitmq.js') function run(router, message) { return Bluebird.resolve( router.rou...
"use strict"; var expect = require("expect.js"), path = require("path"); var Server = require("../../lib/server/Server.class.js"); describe("Server", function () { /* describe("#bootstrap", function() { var server; beforeEach(function() { server = new Server(); }); ...
"use strict" var simpleportal = require("simpleportal"), fs = require("fs"), lwip = require('lwip'), Util = require("./lib/util"); /* * Creating the CRUD Service for service user and using user as the * collection name. */ var mediadirService = new simpleportal.Service.CRUDService({ collection:'mediadir', na...
module.exports = { trailer: require('./Trailer'), comment: require('./Comment') };
/*globals describe, it */ import chai, {expect} from 'chai' import sinonChai from 'sinon-chai' import {spy} from 'sinon' import cancellable, {CancellationError} from '../src' chai.use(sinonChai) describe('CancellationError', () => { it('is an Error', () => { const message = 'an error message' const error = ...
'use strict' var child = require('child_process') function GitFn (version, options) { this._version = version this._options = { cwd: options.dir, env: process.env, setsid: false, stdio: [0, 1, 2] } } module.exports = GitFn GitFn.prototype = { tag: function (cb) { var cmd = ['git', 'tag', ...
/* * angular-ui-bootstrap * http://angular-ui.github.io/bootstrap/ * Version: 0.11.2 - 2014-09-26 * License: MIT */ angular.module("ui.bootstrap", ["ui.bootstrap.tpls", "ui.bootstrap.transition","ui.bootstrap.collapse","ui.bootstrap.accordion","ui.bootstrap.alert","ui.bootstrap.bindHtml","ui.bootstrap.buttons","u...
/** * @file Модули. Модуль "DummyOneToMany". Операции. Операция обновления элемента. * @author Maxim Kuzmin * @copyright MIT License. Copyright (c) 2016 Maxim Kuzmin. Contacts: https://github.com/maxim-kuzmin */ (function () { 'use strict'; angular.module('app.Host').factory('Module.DummyOneToMany.Operat...
/// <reference path="Xrm.js" /> var EntityLogicalName = "task"; var Form_b62ce022_cc0f_4c8c_bb29_21948f70dc74_Properties = { actualdurationminutes: "actualdurationminutes", category: "category", description: "description", ownerid: "ownerid", prioritycode: "prioritycode", regardingobjectid: "re...
ModuleEditionDetails.InfosGeneralesModule = ModuleEditionDetails.InfosGeneralesModule || (function () { //args: // panelID // vueID var _args = {}; return { init: function (args) { _args = $.extend({ }, args); }, start: function () { ...
"use strict"; let topicId = currentTopic(); let activeUsers = ["Sam", "Tyler", "Brook"]; for(let user of activeUsers) { notifyTopicReply(topicId, user); }
import { send } from '../helpers/util'; import { downloadSmogonImages, getSmogonImageNames, getSmogonData, storeSmogonData } from '../models/smogon'; export default api => { api.get('/api/smogon/images', getSmogonImageNames, downloadSmogonImages, send); api.get('/api/smogon/data', getSmogonData, storeSm...
'use strict'; const playPause = require('./playpause'); const commonFunctions = require('./commonFunctions'); const Promise = require('bluebird'); const debug = require('debug')('helpers:playlist'); function playPlaylist(player, playlistName, timeout) { let trackChanged; const promiseTimeout = timeout || 2000...
LEVELDATA = [ // LEVEL 1 { text: 'PRESS SPACE TO BUMP!', timelimit: 0, showtarget: false, map: [ [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [ 1, 7, 1, 3, 4, 1, 1, 3, 4, 1], [ 5, 5, 5, 5, 5, 5, 5, 5, 5, 5], [ 5,10, 6, 6,27, 6, 6, 6, 6, 5], [ 5, 6, 6, 6, 6, 6, 6,26, 6, 5...
/*! * Copyright(c) 2014 Jan Blaha * * Extension used for authenticating user. When the extension is enabled user needs to specify * credentials before the jsreport will serve the request. * * Browser requests are authenticated using cookie. * API requests are authenticated using basic auth. */ var q = require(...
/** * @jest-environment puppeteer * @flow */ import { scroll, screenshot } from '../utils/puppeteer.js'; it('should follow the cursor', async () => { const page = await browser.newPage(); await page.goto(`${TEST_URL}/virtual-reference.html`); await scroll(page, '#scroll', 200); expect(await screenshot(pag...
$(function(){ // Bid button $('.bid-form button').click(function(){ var l = Ladda.create(this); l.start(); var auc_id = $('#bid_id').val(); var price = $('#bid_price').val(); console.log(auc_id); $.ajax({ url: '/admin/api/bid', type: 'POST', data: { csrf_token_key: "<?= \Security::fetch_tok...
"use strict"; var dataflow = require("dataflow"), program = JSON.parse(process.argv[2]); dataflow.create(program).receive("start", true);
 /** * @function * @param {String} key * @returns {String} * Returns the resource string on the current language */ Statistics.i18n = function (key) { return Statistics.i18n[Statistics.i18n.currentLang][key]; } /** * @memberOf Statistics.i18n * @property {String} currentLang * Represents the current la...
import forge from 'src/index' import MockAssert from 'src/mocks/mock-assert' import { getManifest } from 'spec/ts-helper' import { install as installMock, uninstall as uninstallMock, mockRequest, mockClient, unusedMocks, m, } from 'src/test' describe('Test lib / mock request', () => { let client befo...
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Link } from 'react-router'; import classNames from 'classnames'; import { parseAppName, getAppIconClassName } from '../utils'; import Popup from './popup'; import CardLoaderFull from './card_loader_full'; import CONSTANTS from '../co...
/*jslint node: true */ // "use strict" ; const express = require('express'); var router = express.Router(); const passport = require('passport'); const helpers = require(app_root + '/routes/helpers/helpers'); const path = require('path'); const fs = require('fs-extra'); const queries = require(app_root + '/routes/queri...
version https://git-lfs.github.com/spec/v1 oid sha256:00ce6bbd6272b1cd36ab6755b6e5c0ad8d2708ddd578bb6f64b8df006eed6e55 size 18753
version https://git-lfs.github.com/spec/v1 oid sha256:e965aa4e3331bbcb2b209c31382e31036a5703d6769135025e309e18c134da09 size 22754
'use strict'; var crypto = require('crypto'); module.exports = function(Live) { Live.observe('before save', function (ctx, next) { // console.log('Save a Live instance: ' + ctx.instance.clientId); // var clientId = ctx.instance.clientId; var data = new Date().getTime(); var id = crypto.createHash('m...
'use strict'; var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProp...
/** * @author Pedro Sanders * @since v1 * * Sip provider for Registry module */ const isRegistered = (regs, gwRef) => regs.filter(r => JSON.parse(r).gwRef === gwRef).length > 0 const isStaticMode = gw => gw.spec.credentials === undefined const unregistered = (regs, gateways) => gateways && regs ? gateways....
;(function($) { 'use strict'; // Defining PhotoRoller $.photoroller = function(options) { // Preparing options options = $.extend({ startpoint: 1, jump_back: false, jumppoint_click: true }, options); var defineTarget = function() { var main = $('#photoroller'); ...
describe('This spec', function () { it('should succeed', function () { expect(5).to.be.a('number'); }); });
// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information. define([ '../Core/_Global', '../Core/_Base', '../Core/_BaseUtils', '../Core/_ErrorFromName', '../Core/_Events', '../Core/_Log', '../Core...
const AppliedDecorator = require('./AppliedDecorator'); const ArrowFunctionExpression = require('./ArrowFunctionExpression'); const BlockStatement = require('./BlockStatement'); const CallExpression = require('./CallExpression'); const ClassMethod = require('./ClassMethod'); const ClassProperty = require('./ClassProper...
'use strict'; var EnhancedRequest = require('../../scripts/enhanced-request'), sporks = require('sporks'), Backoff = require('backoff-promise'), Promise = require('sporks/scripts/promise'), Slouch = require('../../scripts'), utils = require('../utils'); describe('enhanced-request', function () { var cons...
/** * react-stack react-stack * * Copyright © 2016. JonirRings. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Layout from '../components/Layout';...
'use strict'; var should = require('should'), request = require('supertest'), path = require('path'), mongoose = require('mongoose'), User = mongoose.model('User'), Article = mongoose.model('Article'), express = require(path.resolve('./config/lib/express')); /** * Globals */ var app, agent, credent...
'use strict'; var app = require('../app'), db = require('../db/test'), request = require('supertest'), should = require('should'); describe('user', function() { before(function(done) { db.connect(done); }); beforeEach(function(done) { db.clear(done);...
/*! Ajax-Include - v0.1.4 - 2015-03-16 * http://filamentgroup.com/lab/ajax_includes_modular_content/ * Copyright (c) 2015 @scottjehl, Filament Group, Inc.; Licensed MIT */ (function( $, win, undefined ){ if( typeof win.AjaxInclude !== 'undefined' ) { var originalMakeReq = win.AjaxInclude.makeReq; win.AjaxInclude...
// apparently node requires create a singleton instance, so having multiple requires is not a problem var express = require('express'); var router = express.Router(); router.post('/', function(req, res) { // login code goes here i guess }); module.exports = router;
/** * Developer: Stepan Burguchev * Date: 7/7/2014 * Copyright: 2009-2016 Comindware® * All Rights Reserved * Published under the MIT license */ "use strict"; import { keypress, Handlebars } from '../../libApi'; import { helpers, htmlHelpers } from '../../utils/utilsApi'; import template from ...
const errors = require("./errors"); const logger = require("./logger"); const cause = new Error("Kaboom"); describe("ResponseError()", () => { test("creates a response error with specified message and status", () => { const err = new errors.ResponseError(499, "Oopsie"); expect(err).toMatchObject({ status: 4...
/** * Created by wenyuan on 2015-03-26. */ var mongoose = require('mongoose'); var config = { host: 'localhost', port: '27017', db: 'io' //user: 'oss', //pwd: 'oss' }; var url; if(config.user){ url = 'mongodb://'+config.user+':'+config.pwd+'@'+config.host+':'+config.port+'/'+config.db; } else...
/** * Module dependencies. */ var mongoose = require('mongoose') var RecentlyViewed = mongoose.model('RecentlyViewed') var utils = require('../../lib/utils') var extend = require('util')._extend /** * Load */ exports.load = function (req, res, next, id){ var User = mongoose.model('User'); RecentlyViewed.lo...
export const flatten = x => [].concat(...x); export const polygon = wkt => wkt .replace(/POLYGON \(\(|\)\)/g, '') .split(', ') .map(point => point.split(' ').map(parseFloat));
export default function renderArea(viewport, drawingConfig) { const {config, graphics, shouldRender, y, hovered, height: predefinedHeight} = drawingConfig; const height = predefinedHeight || config.height; graphics.clear(); const centerLine = y + height / 2; if (shouldRender) { graphics.line...
// Map base class var MapLayer = Fiber.extend(function() { return { // The `init` method serves as the constructor. init: function(id, layerData, layerType) { this.layerId = id; this.layerType = layerType; this.layerData = layerData; ...
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdStayCurrentLandscape(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M2.02 14c0-2.21 1.77-4 3.98-4h36c2.21 0 4 1.79 4 4v20c0 2.21-1.79 4-4 4H6c-2.21 0-4-1.79-4-4l.02-20zM38 14H10v20h28V14z" /> </IconBa...
/* * GET home page. */ var url = require('url'); exports.index = function(req, res){ var host = "http://" + req.headers.host.replace(/\:([0-9]*)/g, ""); res.render('index', { title: 'Chattr', host: host }); };
// Gulp: Dependencies var gulp = require('gulp'); var sass = require('gulp-sass'); var del = require('del'); var size = require('gulp-size'); var concat = require('gulp-concat'); var uglify = require('gulp-uglify'); var uglifycss = require('gulp-uglifycss'); var autoprefixer = require('gulp-autoprefixer'); var imagemin...
(function() { if (!window.ul) ul = {}; //PKV (key-value pair) protocol ul.pkv = { //generate PKV string n=v\n str: function(n,v) { return n.toString() + '=' + ((v === undefined) ? '' : v.toString()) + '\n'; }, get: function(port, names, delay, asArray, c...
module.exports = function(grunt) { var path = require('path'); var RuthaGruntUI = require('rutha-grunt-tasks-ui')(grunt); require('time-grunt')(grunt); require('load-grunt-config')(grunt, { configPath: path.join(process.cwd(), 'node_modules/rutha-grunt-tasks-ui/grunt'), //path to task.js files,...
var struct_t_i_m___clock_config_type_def = [ [ "ClockFilter", "struct_t_i_m___clock_config_type_def.html#adaf66568c766f75c4c661a872ca399e3", null ], [ "ClockPolarity", "struct_t_i_m___clock_config_type_def.html#a66453fa8dc8a300267ff5aba08eff5c4", null ], [ "ClockPrescaler", "struct_t_i_m___clock_config_type...
/** * SettingsController * @namespace thingy.profiles.controllers */ (function () { 'use strict'; angular .module('thingy.profiles.controllers') .controller('SettingsController', SettingsController); SettingsController.$inject = [ '$location', '$scope', '$routeParams', 'Authentication', 'Profile', '...
import Application from '../app'; import config from '../config/environment'; import { setApplication } from '@ember/test-helpers'; import { start } from 'ember-qunit'; import setupSinon from 'ember-sinon-qunit'; setupSinon(); setApplication(Application.create(config.APP)); start();
import Bcrypt from 'bcrypt-nodejs'; module.exports = (sequelize, DataTypes) => { const users = sequelize.define('users', { firstName: { type: DataTypes.STRING, allowNull: false }, lastName: { type: DataTypes.STRING, allowNull: false }, email: { type: DataTypes.STRING...
module.exports = function authentication(loginUrl, expiryUnit, expiryNum) { var tokens = require('./tokens')('X-Auth-Token', expiryUnit, expiryNum); function authenticator(req, res, next) { if (tokens.approved(req)) { return next() } tokens.add(res); res.redirect(40...
function Search() { var content=document.getElementById("searchInput"); console.log(content); }
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * French language. */ /**#@+ @type String @example */ /** * Contains the dic...
var mongoose = require('mongoose'); var Schema = mongoose.Schema; var bcrypt = require('bcrypt'); var userSchema = new Schema({ username: {type: String, unique: true, required: true}, password: {type: String, required: true}, admin: {type: Boolean, default: false, required: true}, email: {type: String, require...
const assert = require('assert') const { unparse } = require('uuid-parse') const supertest = require('supertest') const createApp = require('../app') const { createSetup, getAuthPassword } = require('./lib') const { createPlayer } = require('./fixtures') describe('Mutation assignRole', () => { let setup let reques...
import { Ok, Err } from "../../../misc/fp.js"; export default class Inode { constructor(config = {}) { // Defaults this.file = true; this.directory = true; this.executable = false; this.raw = undefined; // Overwrite defaults Object.assign(this, config); } // Array(HTMLElement) get ...
App = require('app'); module.exports = App.ErrorRoute = Ember.Route.extend({ });
/* * This file is part of the Sententiaregum project. * * (c) Maximilian Bosch <maximilian.bosch.27@gmail.com> * (c) Ben Bieler <benjaminbieler2014@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ 'use strict'; import ...
export function placeholder(val, placeholder = '', equal) { return (isUndef(val) || val === equal) ? placeholder : val; } export function isUndef(val) { return val === null || val === undefined; }
var express = require('express'); var app = module.exports = express(); var path = require('path'); var bcrypt = require('bcrypt-nodejs'); var moment = require('moment'); // pie chart settings var pie = require('./pie'); app.set('views', path.join(__dirname, 'views')); app.get(/\/view9(?:\/(\w+))?/, function (req, ...
// TwilioQuest 3.1.26 // Works in: // - 3.1.26 // // Fun fact: I walk into this good at Python, but terrible at JS. // Let's see if basic competency can be established just using // TwilioQuest and what I already know from Python/C++ // // Divide by two is... ugh. // Is there no argparse for Node? Really? // Didn't...
'use strict'; module.exports.object = require('./lib/object'); module.exports.array = require('./lib/array');
var IndexController = function() { }; IndexController.prototype.index = function() { return false; }; module.exports = IndexController;
var bitauth = require('../bitauth'); module.exports = function(req, res, next) { if(req.headers && req.headers['x-pubkey'] && req.headers['x-signature']) { // Check signature is valid // First construct data to check signature on var fullUrl = req.protocol + '://' + req.get('host') + req.url; var dat...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = isInIframe; /** * Check if the page is loaded inside an iframe * * @return {Boolean} true if in iframe, false if not * * @example js * import isInIframe from 'coffeekraken-sugar/js/dom/isInIframe' * if (isI...
//*********************************** */ //SUBJECT AREA Admin //*********************************** */ //------------------------------------/ //INDEX Page //------------------------------------/ doWhenPresent('body.a_subject_areas.index', function subjectareaAdminIndexPageIsReady() { $('.footable').footable(); }...
export default class TestController{ constructor(test, $http, jsonpatch, $scope){ this.$http = $http; this.test = test.data; this.lastModified = test.headers('last-modified'); this.error = null; this.patches = []; this.fields = [{ type: 'horizontalMarkdownArea', modelOptions: this....
/* Menu */ +function($, window, document, Math) { "use strict"; var Menu = function(element, options) { this.$ = $(element); this.options = this.getOptions(options); this.init(); }; Menu.DEFAULTS = {auto: false, foldicon: 'icon-chevron-right'}; Menu.prototyp...
import { getCell, getColumnByCell, getRowIdentity } from './util'; import ElCheckbox from 'element-ui/packages/checkbox'; export default { components: { ElCheckbox }, props: { store: { required: true }, context: {}, layout: { required: true }, rowClassName: [String, Funct...
// Karma configuration // Generated on Mon Nov 14 2016 14:24:26 GMT+0100 (CET) module.exports = function (config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: 'src/', // frameworks to use // available frameworks: https://npmjs.org/browse/keywo...
'use strict'; var assert = require('assert'); var isExpression = require('is-expression'); var characterParser = require('character-parser'); var error = require('pug-error'); module.exports = lex; module.exports.Lexer = Lexer; function lex(str, options) { var lexer = new Lexer(str, options); return JSON.parse(JS...
// // Copyright (C) 2016 Changzhou TwistSnake Co.,Ltd // // 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 applic...
var takeawayerApp = angular.module("takeawayerApp", ["angularUtils.directives.dirPagination", "ngRoute", "ngCookies", "ngStorage"]); takeawayerApp.config(function (paginationTemplateProvider) { paginationTemplateProvider.setPath("dirPagination.tpl.html"); }); takeawayerApp.config(["$routeProvider", "$locationProv...
/** * @since 2021-08-14 * @author vivaxy */ import * as Y from 'yjs'; import { toJSON, DATA_TYPES } from '../../../data-viewer'; import Struct from './Struct'; import Value from '../../Value'; import './Share.css'; function AbstractType(props) { const value = toJSON(props.value, Y); if (value.type === DATA_TYP...
import React from 'react'; import {render} from 'react-dom'; import configureStore from './store/configureStore'; import {Provider} from 'react-redux'; import {Router, browserHistory} from 'react-router'; import routes from './routes'; import '../node_modules/semantic-ui-css/semantic.css'; import * as routeChangeAction...
import yaml from 'npm:js-yaml'; import Changeset from 'ember-changeset'; import Ember from 'ember'; const { $ } = Ember; export default Ember.Object.extend({ init() { this._super(...arguments); this.set('spec', { table: this.get('table'), fields: {}, filter: {}, sort: [] }); this.set('changeset', new Ch...
$(function(){ $('.message .close') .on('click', function() { $(this) .closest('.message') .transition('fade') ; }); // $('#top-message').delay(2000).fadeOut(); });
"use strict"; var findYoutubeUrls = require("../index.js"); var expect = require("chai").expect; describe('Does not find urls', function() { it('Should return null', function() { var urls = findYoutubeUrls("No youtube url here"); expect(urls).to.equal(null); }); it('Should return null from invalid url...
var gulp = require('gulp'); var rename = require('gulp-rename'); var uglify = require('gulp-uglify'); gulp.task('default', ['mini']); gulp.task('mini',function(){ gulp.src('./js/event.js') .pipe(uglify()) .pipe(rename({suffix: '.min', extname:'.js'})) .pipe(gulp.dest('./js')); });
const t = function () { if (true) { throw new Error(); } }();
/** * Created by Samuel Schmid * * handles routing of RESTAPIEXPRESS for api description * for example http://localhost:3000/v1/ * */ /** * * @type {ApiDescriptionRouter} */ module.exports = ApiDescriptionRouter; var fs = require('fs'); /** * @class ApiDescriptionRouter * @constructor */ function ApiDescr...
(function (Modernizr, google) { "use strict"; var loadMap = function($element, center, zoom) { var mapOptions = { center: new google.maps.LatLng(0, 0), zoom: (Number(zoom) || 8), mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map($element[0], mapOptions); var geocoder = new google....
import React, { Component } from 'react'; import { Row, Grid } from "react-native-easy-grid"; import { Button } from 'react-native'; /** * Shows the basic Hit/Miss/End Round controls for Cricket */ export default class Control extends Component { constructor(props) { super(props); } render() ...
import R from 'ramda'; import Immutable from 'immutable'; import {win} from '../globals'; import {memoizeShallow} from '../utils'; import {fromCamelCase} from '../utils/toCamelCase'; import {_hashEventStreamDiff} from '../streams/hashEventStreamDiff'; const HASH = "#"; const PARAM_SPLIT_ON = "&"; const VALUE_SPLIT_ON ...
import fetchJsonp from'fetch-jsonp' const apiBase = 'https://itunes.apple.com/search' let lastQuery = '' let lastResults = [] export default function lookup (q) { const query = q.trim() const encoded = window.encodeURI(query) const url = `${apiBase}?country=JP&media=music&term=${encoded}` /** 直前と同じくエリーの場合はキ...
import 'babel-polyfill'; import pjson from '../package.json'; import program from 'commander'; import { readFile, sanityCheck, writeFile } from './file'; import { lexFile } from './lexer'; import { parseFile } from './parser'; function* dataToStrings(data) { while (data.length) { let item = data.splice(0, 1)[...
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { render } from 'react-dom'; import Tether, { HORIZONTAL_ATTACHMENTS, VERTICAL_ATTACHMENTS } from '../Tether'; import VERTICAL_ATTACHMENT_FIXTURES from './verticalAttachmentFixtures'; import HORIZONTAL_ATTACHMENT_FIXTURES from './hori...
$(document).ready(function () { $('#taula').DataTable(); $('.article').hide(); $('.comment').hide(); $('#deviceInfo').hide(); $('.emotes').hide(); $('.article').slideDown(); $('.comment').slideDown(); $('#deviceInfo').slideDown(); $('#emoteBt').click(function (){ $('.emotes').slideToggle(); ...
(function () { var URL = window.UEDITOR_HOME_URL || getUEBasePath(); window.UEDITOR_CONFIG = { UEDITOR_HOME_URL: URL // 服务器统一请求接口路径 , serverUrl: "/api/ueditor" //工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的从新定义 /*, toolbars: [[ 'fulls...