code stringlengths 2 1.05M |
|---|
'use strict';
import angular from 'angular';
// import ngAnimate from 'angular-animate';
import ngCookies from 'angular-cookies';
import ngResource from 'angular-resource';
import ngSanitize from 'angular-sanitize';
import uiRouter from 'angular-ui-router';
import angularAnimate from 'angular-animate';
import angularA... |
module.exports = {
url : 'mongodb://localhost/rpgblocnote'
}
|
var path = require("path");
module.exports = {
entry: {
'client': './src/client/main.js'
},
output: {
path: "./dist",
filename: "[name]/bundle.js"
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel',
exclude: /node_modules/,
query: {
preset... |
const Ssm = require('selenium-screen-master');
const SERVER_URL = 'http://statlex.github.io/';
const WEB_DRIVER_SERVER_URL = 'http://localhost:4444/wd/hub';
const WebDriver = require('selenium-webdriver');
const byCss = WebDriver.By.css;
const driver = new WebDriver
.Builder()
.usingServer(WEB_DRIVER_SERVER_U... |
import { createHashHistory } from 'history';
import { createStore, applyMiddleware } from 'redux';
import { connectRouter, routerMiddleware } from 'connected-react-router';
import thunkMiddleware from 'redux-thunk';
import createLogger from 'redux-logger';
import * as storage from 'redux-storage'
import createEngine f... |
$(document).ready(function () {
$("#form1").submit(function () {
//remove all the class add the messagebox classes and start fading
if ($("#usuario").val().length === 0) {
$("#msgbox").text('');
$("#msgboxcodigo").removeClass().addClass('messageboxerror').text('El códi... |
// Generated by CoffeeScript 1.3.3
(function() {
var EventStream, qs, request,
__slice = [].slice;
request = require('request');
qs = require('querystring');
EventStream = require('eventsource');
exports.Datomic = (function() {
var get, is_object, parse_opts;
function Datomic(server, port, al... |
/*
* jsPlumb
*
* Title:jsPlumb 1.3.0
*
* Provides a way to visually connect elements on an HTML page, using either SVG, Canvas
* elements, or VML.
*
* This file contains the jsPlumb core code.
*
* Copyright (c) 2010 - 2011 Simon Porritt (http://jsplumb.org)
*
* http://jsplumb.org
* http://code.google... |
/**
* --------------------------------------------------------------------------
* Bootstrap (v5.1.3): index.esm.js
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
* --------------------------------------------------------------------------
*/
import '../node_modules/focus-visible/dist/... |
/**
* Companion test for providerFactory.
*/
define(['angularAMD', 'angular-mocks', 'component'], function (angularAMD) {
var inject = angularAMD.inject;
return function (result) {
describe("Utest " + result.suffix + " Services", function () {
it(".constant check.", function () {
... |
import escapeStringRegexp from 'escape-string-regexp';
import React from 'react';
import { StaticRouter } from 'react-router-dom';
import { renderToString } from 'react-dom/server';
import { HeadProvider } from 'react-head';
import App from '../../App';
const renderMiddleware = () => (req, res) => {
let html = req.h... |
// Copyright 2015 Yahoo! Inc.
// Copyrights licensed under the Mit License. See the accompanying LICENSE file for terms.
var testGen = require('../../testGen');
var expect = require('chai').expect;
describe('Chroma', function () {
describe('True-Color', function () {
testGen.addDecodeTests({
resourceGroup: ['... |
const sass = require('node-sass')
module.exports = function (grunt) {
require('load-grunt-tasks')(grunt)
grunt.initConfig({
source: 'src',
build: '../app/content/themes/build',
sass: {
options: {
// implementation: sass,
includePaths: ['<%= source %>/assets/bower_components/mat... |
"use strict";
/**
* Student Class
*/
export default class Student {
/**
* Student Constructor
* @param rcsId
* @param firstName
* @param lastName
* @param role
*/
constructor(rcsId, firstName, lastName, role) {
this._rcsId = rcsId;
this._firstName = firstName;
this._lastName = last... |
define(["knockout", "async", "underscore"], function(ko, async, _) {
"use strict";
// Set up socket connection to server
var socket = io.connect("/socket/v1");
// Create state object (singleton)
var state = {
isInitialized: ko.observable(false),
transfers: ko.observableArray([]),
agents: ko.observableArray(... |
'use strict';
// Games controller
angular.module('games').controller('GameRoomController', ['$rootScope', '$scope', 'Authentication', 'Socket', '$state', '$window',
function($rootScope, $scope, Authentication, Socket, $state, $window) {
$scope.authentication = Authentication;
$scope.GameRoom = {};... |
var model = module.exports = require('craft').model.define();
model.name('dice')
.author('dragos')
.version('1.0.0');
//
// Parameters
//
model.parameter('no_of_sides').defaultValue(6)
//
// Examples
//
model.example('default dice')
//
// Factory
//
model.factory(function($$$, params) {
//vars
var ... |
import React, { PureComponent } from 'react'
import { connect } from 'react-redux'
import {
ListItem,
ListItemText,
ListItemAvatar
} from 'material-ui/List'
import Avatar from 'material-ui/Avatar'
import Collapse from 'material-ui/transitions/Collapse'
import Divider from 'material-ui/Divider'
import RoundListI... |
(function (root) {
"use strict";
function ClassEmit() {
}
ClassEmit.prototype.on = function(name, callback, context) {
var self = this;
context = context || this;
if(!name || typeof callback !== 'function') {
throw new Error('Parameter missing');
}
var events = this.__events || (this.__events = {})... |
'use strict';
/* Services */
angular.module('contactsApp.services', []).
// Get All Contacts
factory('getAllContacts', ['$http', function ($http) {
var items = {};
items.data = {};
items.getItems = function() {
var config = {
cache: true
};
$http.get('rnfunctions/get_... |
import React, {Component} from 'react'
export default class InputField extends Component {
constructor(props, context) {
super(props, context)
this.state = {
text: this.props.inputValue.value || ''
}
}
handleSubmit(e){
const text = e.target.value.trim()
i... |
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var path_1 = require('path');
var seed_config_1 ... |
'use strict';
import { REQUEST_TIMEOUT } from '../lib/constants';
import { default as baseRequest } from 'request';
import _ from 'lodash';
import { default as moment } from 'moment-timezone';
import parallelLimit from 'async/parallelLimit';
import Bottleneck from 'bottleneck';
import { unifyMeasurementUnits } from '.... |
version https://git-lfs.github.com/spec/v1
oid sha256:1b2d7ac2e79ccb9f6a59df184563cfb83ed515b2d4d3e94ec518caddd7a72676
size 2965
|
"use strict";
var sinon = require("sinon");
var setCookie = require("../lib/set-cookie.js");
describe("set-cookie-parser", function () {
var sandbox = sinon.createSandbox();
afterEach(function () {
// completely restore all fakes created through the sandbox
sandbox.restore();
});
// see #34, #36
it... |
var user = require('../lib/user');
var logger = require('../lib/logger');
var cliUtil = require('../lib/cli-util');
var sfClient = require('../lib/sf-client');
var resolve = require('../lib/resolve');
var run = module.exports.run = function(opts, cb) {
return resolve(cb, function(){
return sfClient.get... |
var FS = require('./../FamilySearch'),
utils = require('./../utils'),
maybe = utils.maybe;
/**
* @ngdoc function
* @name memories.types:constructor.MemoryArtifactRef
* @description
*
* Memory Artifact Reference
*
* @param {Object=} data an object with optional attributes {description, qualifi... |
/* global module:false */
module.exports = function(grunt) {
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner:
'/*!\n' +
' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +
' * http://lab.hakim.se/reveal-js\n'... |
/*! Copyright (c) 2014 Joshua Miller (http://www.jo5h.com)
* Licensed under the MIT License (LICENSE.txt).
*
* Version: 0.0.1
*
* Requires: jQuery 1.8+
*
*/
(function ( $ ) {
$.fn.datatiles = function( options ) {
// Define possible tile layouts
var layouts = {
"10":[
[1,2,2,... |
import gps from "../../../../iRobots/gps.js";
import Job from "../../model/job";
import loader from "../../../../iRobots/loader.js";
export default class Parse {
constructor(city, kd, source) {
this.city = city;
this.kd = kd;
this.source = source;
}
//根据返回的数据看是否自动停止解析
maxPageSi... |
System.config({
baseURL: "/",
defaultJSExtensions: true,
transpiler: "typescript",
typescriptOptions: {
"module": "commonjs",
"emitDecoratorMetadata": true,
"experimentalDecorators": true
},
paths: {
"npm:*": "jspm_packages/npm/*",
"github:*": "jspm_packages/github/*",
"app": "source... |
'use strict';
const proxyquire = require('proxyquire').noCallThru(),
BaseController = require('../../../../common/base.controller'),
httpMocks = require('node-mocks-http'),
Q = require('q');
const profileProperties = require('./profileProperties');
describe('controllers/api/ProfileController', () => {
... |
/**
* Created by ls-mac on 2017/3/1.
*/
import React , {Component} from 'react';
import {AppRegistry , TabBarIOS, Text , View, StyleSheet, Dimensions, WebView} from 'react-native';
export default class LSNewsDetail extends Component{
constructor(props){
super(props);
this.state = {
h... |
import Ember from 'ember';
import layout from '../templates/components/crud-relationship-write';
export default Ember.Component.extend({
actions: {
change( selected ) {
this.sendAction( 'onchange', selected );
}
},
layout,
label: null,
modelName: null,
selectedR... |
/**
* @author [Cesar HERNANDEZ ANTONIO] <[cesar19_fr@outlook.com]>
*/
/* Listeners */
var click_logo = document.getElementById('logo');
if (click_logo)
{
if (click_logo.addEventListener)
{
click_logo.addEventListener('click', showHome, false);
}
else
{
click_logo.attachEvent('oncli... |
/**
* Based heavily on https://github.com/webpack/webpack/blob/
* c0afdf9c6abc1dd70707c594e473802a566f7b6e/hot/only-dev-server.js
* Original copyright Tobias Koppers @sokra (MIT license)
*/
/* global window __webpack_hash__ */
if (!module.hot) {
throw new Error("[HMR] Hot Module Replacement is disabled.");
}
... |
/**
* Creates an ol.Overlay for displaying attributes.
* Used by draw and featuredisplay, and not added directly.
*/
// import templates
import tpl from './popup.htm.js';
import Component from './component.js';
import olMap from '../../olMap.js';
import Overlay from "ol/Overlay.js";
// import { Overlay } from '../.... |
let { getInfo } = require('./ex-object')
const request = require('request');
let address = encodeURI('台灣大學')
let url = `https://maps.googleapis.com/maps/api/geocode/json?address=${address}`
request(url, function (error, response, body) {
let obj = JSON.parse(body);
let info = getInfo(obj);
console.log('getInfo... |
'use strict';
var webpack = require('wepack');
var webpackConfig = require('./webpack.config.test.js');
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['mocha'],
files: [
'test/loader.js'
],
exclude: [],
preprocessors: {
... |
(function () {
'use strict';
var test = new ldd3.LinearLinearChart('#chart', 800, 600)
.title('Linear linear chart')
.x(d => d.videoViews)
.xFormat('.2g')
.y(d => d.subscribers)
.yFormat('.2g')
.hasLine(false)
.hasPoints(true);
d3.json('data/Linea... |
(function ($) {
class PlaneBufferGeometry extends Bonnie3D.Geometry {
constructor() {
super();
}
}
Bonnie3D.PlaneBufferGeometry = PlaneBufferGeometry;
}(this)); |
/*global define */
define(['lib/stapes', 'views/MainView', 'models/Settings', 'views/SettingsView', 'views/EffectsView', 'data/MicroWire', 'api/USB'], function (Stapes, MainView, Settings, SettingsView, EffectsView, MicroWire, USB) {
'use strict';
return Stapes.subclass(/** @lends AppController.prototype *... |
var UserItem = React.createClass({
handlerItemClick: function() {
if (this.props.onItemClick) {
this.props.onItemClick(this.props.user);
}
},
render: function() {
var className = (this.props.currentUser == this.props.user)
? "user-item active"
: "user-item";
return (
<div className={cl... |
(function() {
'use strict';
angular
.module('mobility')
.controller('SplashController', SplashController);
function SplashController() {
var vm = this;
vm.splashText = 'Splash Page';
}
})();
|
'use strict';
const parse = require('shell-quote-word');
const unescape = require('unescape-js');
const map = require('map-iterable');
const tokens = require('../../../utils/tokens');
function unquote(text) {
const unquoted = parse(text);
if (unquoted.length === 0) {
return text;
}
if (unquoted[0].comment) {
... |
import React from 'react';
import ReactDOM from 'react-dom';
import './children.css';
const Paper = ({children}) => <div className="paper">{children}</div>;
const App = () => (
<div className="children">
<Paper>It's a simple material paper</Paper>
<Paper>
It's a form
<form... |
var assert = require("assert");
var Lib = require("./../eweda");
describe('unfoldr', function() {
var unfoldr = Lib.unfoldr;
it('should unfold simple functions with a starting point to create a list', function() {
assert.deepEqual(unfoldr(function(n) {if (n > 0) {return [n, n - 1];}}, 10), [10,... |
(function(HTML) {
/*
======== A Handy Little QUnit Reference ========
http://api.qunitjs.com/
Test methods:
module(name, {[setup][ ,teardown]})
test(name, callback)
expect(numberOfAssertions)
stop(increment)
start(decrement)
Test assertions:
ok(value, [message])
equal(actual, expected, [message])
notEq... |
module.exports = function Response(code, msg, error) {
this.code = code;
this.msg = msg || '';
this.error = error || {};
}; |
Ext.require([
'Ext.form.field.File',
'Ext.form.Panel',
'Ext.window.MessageBox'
]);
Ext.onReady(function() {
// Class which shows invisible file input field.
if (window.location.href.indexOf('debug') !== -1) {
Ext.getBody().addCls('x-debug');
}
var msg = function(title, msg) {
... |
export const config = { amp: true }
export default () => (
<div>
{/* I throw an error since <amp-img/> should be used instead */}
<img src='/dog.gif' height={400} width={800} />
</div>
)
|
/**
* @overview ccm component for rendering a fill-in-the-blank text
* @author André Kless <andre.kless@web.de> 2017-2018
* @license The MIT License (MIT)
* @version latest (4.0.0)
* @changes
* version 4.0.0 (13.04.2018): changed marking of gaps
* - '*' instead of '[[' and ']]' (more easy to find on keyboards)
... |
const mainStyles = {
color: {
textMenu: '#FFF',
textMenuAlternate: '#000',
textContent: '#262626',
primary: '#F75',
missingFields: '#fc6d4b',
backgroundNeutral: '#FFF',
backgroundIcon: '#e5e3e3',
backgroundLink: '#f6f6f6',
inputPlaceholder: '#b7b7b7',
inputBorder: '#b7b7b7',
... |
"use strict";
const util = require("util");
const finance = require("finance");
const getOptimalPortfolio = util.promisify(finance.portfolio.getOptimalPortfolio);
exports.handler = async event => {
console.log("Function `post-optimalportfolio` invoked"); // eslint-disable-line
const ptfParams = JSON.parse(e... |
'use strict';
/* Controllers */
angular.module('pigion.controllers', []).
controller('MyCtrl1', [function() {
}])
.controller('MyCtrl2', [function() {
}]); |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React, { Component, PropTypes } from 'react';
impor... |
const { fromGlobalId } = require('graphql-relay');
const { getTask, getTaskList, getTaskType, getTaskTypeList, getUser } = require('../api');
const GETTERS = {
TaskType: getTask,
TaskListType: getTaskList,
TaskTypeType: getTaskType,
TaskTypeListType: getTaskTypeList,
UserType: getUser,
};
module.exports = a... |
import { createStore,applyMiddleware } from "redux";
import reducer from "../reducers";
import thunk from "redux-thunk";
import { composeWithDevTools } from "remote-redux-devtools";
export default function configureStore(initialState) {
const store = createStore(
reducer,
initialState,
composeWithDevTool... |
// Base16 Materia
// Scheme: Defman21
var color_scheme = {
'base00': '#263238',
'base01': '#2C393F',
'base02': '#37474F',
'base03': '#707880',
'base04': '#C9CCD3',
'base05': '#CDD3DE',
'base06': '#D5DBE5',
'base07': '#FFFFFF',
'base08': '#EC5F67',... |
require("./main.css!");
var xhr = new XMLHttpRequest();
xhr.open("GET", "dist/images/logo.png");
xhr.onload = function(){
window.MODULE = {};
};
xhr.send();
|
import ApplicationSerializer from 'ember-fhir-adapter/serializers/application';
var GoalOutcomeComponent = ApplicationSerializer.extend({
attrs:{
resultCodeableConcept : {embedded: 'always'},
resultReference : {embedded: 'always'}
}
});
export default GoalOutcomeComponent;
|
var api = require(process.cwd() + '/lib/reddit_api')
, assert = require('assert')
, nock = require('nock');
//Fixtures
var setupFixtures = function() {
nock('http://www.reddit.com')
.get('/r/cats_from_file.json')
.replyWithFile(200, process.cwd() + "/specs/fixtures/cats.json");
nock('http://www.red... |
var helper = require("../../../helper");
var Account = require("../../../data/auth/account-data-util");
var AuthManager = require("../../../../src/managers/auth/auth-manager");
var instanceManager = null;
var validate = require("spot-models").validator.auth.account;
var should = require("should");
before("#00. connec... |
import { isEmpty } from "@ember/utils";
export function isSameDay(date, opts) {
let formatString = "YYYY";
const current = moment();
const currentDate = moment(date);
if (opts && opts.anniversary) {
if (current.format(formatString) <= currentDate.format(formatString)) {
return false;
}
}
fo... |
import $ from 'jquery';
import { Foundation } from '../foundation.core';
import * as CoreUtils from '../foundation.util.core';
import { Box } from '../foundation.util.box'
import { onImagesLoaded } from '../foundation.util.imageLoader';
import { Keyboard } from '../foundation.util.keyboard';
import { MediaQuery } from... |
(function (init) { "use strict";
if (typeof define === 'function' && define.amd) {
define(["sermat"], init); // AMD module.
} else if (typeof exports === 'object' && module.exports) {
module.exports = init(require("sermat")); // CommonJS module.
} else {
this.base = init(this.Sermat); // Browser.
... |
import callApi from '../../util/apiCaller';
export function addQuizRequest(quiz) {
return callApi('quizzes', 'post', {quiz})
.then(res => res.quiz);
}
export function editQuizRequest(quiz) {
return callApi('quizzes', 'put', {quiz})
.then(res => res.quiz);
}
export function deleteQuizRequest(cuid) {
... |
jQuery(function($) {
$.fn.tags = function(tag_options) {
return this.each(function() {
var tag_hashes_span = $(this).find('span.tag_hashes');
var tag_hashes_span_id = tag_hashes_span.attr('id');
var suggestion_counter = 0;
var focus = [];
var deleting = fal... |
lychee.define('tool.Main').requires([
'lychee.data.JSON',
'tool.state.Project',
'tool.state.Scene'
]).includes([
'lychee.app.Main'
]).tags({
platform: 'html'
}).exports(function(lychee, tool, global, attachments) {
var _JSON = lychee.data.JSON;
var PROJECT = null;
/*
* HACKS
*/
(function(global) {
... |
/**
* @fileoverview Disallow reassignment of function parameters.
* @author Nat Burns
*/
"use strict";
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
let stopNodePattern = /(?:State... |
//配置数据源
const config = {
authDomain: "dictionary.wilddogio.com",
syncURL: 'https://dictionary.wilddogio.com'
}
//应用初始化
wilddog.initializeApp(config)
//获取应用实例
const getWilddog = () => {
return wilddog
}
//获取词条Reference
const getRef = () => {
return wilddog.sync().ref('/words')
}
//获取作者Reference
const getAuth... |
$(function() {
$(".delTally").click(function() {
var id = $(this).attr("href").split("|")[0];
var token = $(this).attr("href").split("|")[1];
var rowToHide = $(this).closest("tr");
$.ajax({
type: "DELETE",
url: "delete/" + id + "/" + token,
success: function(response) {
var ... |
/* eslint-env mocha */
/* eslint-disable func-names, prefer-arrow-callback, no-unused-expressions */
import { Meteor } from 'meteor/meteor';
import { chai } from 'meteor/practicalmeteor:chai';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import { findWithType, findWithClass } from 'react... |
// adapted from https://bl.ocks.org/mbostock/3887118
LineChartClass = function(id, data, yvalue, ylabel) {
// Function to create a chart line with d3.js
// id: set id in the svg (string)
// data: data object containing the {time: xvalue used (float), yvalue: value defined for yvalue key (value)}
// yvalue: key to d... |
"use strict"
var path = require('path');
//get file name without extension
var scriptName = path.basename(__filename);
scriptName = scriptName.substring(0, scriptName.length-3);
const DatabaseConnectionError = require('./DatabaseConnectionError');
class DatabaseConnectionRejectedError extends DatabaseConnectionError{
... |
"use strict";
var DEFAULT = require.main.require("./constants/defaultConfig").META;
var procedures = {};
exports.DEFAULT = DEFAULT;
exports.procedures = procedures;
// procedures["0.1.0"] = function (meta) {
// return "0.2.0";
// };
|
var Node = require('famous/core/Node');
var physics = require('famous/physics');
var FamousEngine = require('famous/core/FamousEngine');
var Gravity1D = physics.Gravity1D;
var Gravity3D = physics.Gravity3D;
var Color = require('famous/utilities/Color');
var Sphere = physics.Sphere;
var Wall = physics.Wall;
var Bullet =... |
/**
* @author Pascal Gleske / https://github.com/PasGl
*/
oobloxTorusKnot = function ()
{
this.mesh = new THREE.Mesh( new THREE.BoxGeometry(1, 1, 1), new THREE.MeshStandardMaterial({metalness: 0.01,roughness: 0.3}));
this.mesh.receiveShadow = true;
this.mesh.castShadow = true;
this.mesh.vrObjectTypeID = "TTK";
... |
$( document ).ready(function() {
function WeatherWidget(id, parentContainer) {
this.API_URL = 'https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%3D12591774%20AND%20u%3D%22c%22&format=json&diagnostics=true&callback=';
this.id = id;
this.parentContainer = parentC... |
var utils = require('./utils')
var config = require('../config/env/default')
var isProduction = process.env.NODE_ENV === 'production'
module.exports = {
loaders: utils.cssLoaders({
sourceMap: isProduction
? config.build.productionSourceMap
: config.dev.cssSourceMap,
extract: isProduction
})
}
|
(function(){
'use strict';
angular.module('courses')
.service('CoursesService', ['$q', '$http', 'localStorageService', CoursesService]);
/**
* Users DataService
* Uses embedded, hard-coded data model; acts asynchronously to simulate
* remote data service call(s).
*
* @returns {{loadAll: Function}}
... |
/* eslint-disable import/no-extraneous-dependencies */
import config from 'config';
import path from 'path';
import webpack from 'webpack';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
import AssetsPlugin from 'assets-webpack-plugin';
const definePlugins = () => {
const plugins = [];
let outputCssF... |
("undefined" != typeof EventTarget ? [EventTarget.prototype, window] : [Node.prototype, window, Document.prototype]).forEach(function (proto) {
proto.on = function (event, selector, cb) {
this.handlers = Anno.make(this, "handlers");
var self = this,
se = Anno.specialEvents[event];
... |
import Grid from '../../index';
import React, { Component } from 'react';
import {render} from 'react-dom';
import './index.less';
const data = Array.from(new Array(9)).map((_val, i) => ({
icon: 'https://gw.alipayobjects.com/zos/rmsportal/nywPmnTAvTmLusPxHPSu.png',
text: `name${i}`,
}));
const data1 = Array.from(... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @license
* Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
* This code may only be used under the BSD style license found at
* http://polymer.github.io/LICENSE.txt The complete set of authors may be found
* at h... |
/* *****************************************************************************
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
* Copyright (c) The Caleydo Team. All rights reserved.
* Licensed under the new BSD license, available at http://caleydo.org/license
*********************************... |
'use strict';
var deprecate = require('util-deprecate');
var classNames = require('classnames');
module.exports = deprecate(classNames, '`rcUtil.joinClasses()` is deprecated, use `classNames()` by `require(\'classnames\')` instead'); |
angular.module('ngBoilerplate.manageSearch.editSearch', [
])
.controller('EditSearchCtrl', function EditSearchCtrl($rootScope, $scope, $modalInstance,searchData,storeFactory,categoryFactory,searchFactory) {
//item
$scope.item = searchData;
//init
$scope.storeList=[];
$scope.categoryList=[];
... |
exports.up = (knex, Promise) => {
return knex.schema.createTableIfNotExists('eval_tags', (table) => {
table.increments('id').primary()
table.string('tag')
})
}
exports.down = (knex, Promise) => {
return knex.schema.dropTableIfExists('eval_tags')
}
|
require("kaoscript/register");
var Type = require("@kaoscript/runtime").Type;
module.exports = function() {
var __ks_Number = require("../_/_number.ks")().__ks_Number;
function hex(n) {
if(arguments.length < 1) {
throw new SyntaxError("Wrong number of arguments (" + arguments.length + " for 1)");
}
if(n === ... |
var
sharedb = require('sharedb/lib/client')
richText = require('rich-text'),
quill = require('quill'),
showdown = require('showdown');
var constants = require('../shared/constants.js');
// setup sharedb types
sharedb.types.register(richText.type);
/**
* Creates a new Editor instance.
* @param {s... |
<script>
haystack = new Array()
haystack[4] = "Needle"
haystack[11] = "Needle"
haystack[17] = "Needle"
for (j = 0 ; j < 20 ; ++j)
{
if (haystack[j] == "Needle")
{
document.write("<br />- Found at location " + j + "<br />")
continue
}
document.write(j + ", ")
}
</script> |
var sinon = require('sinon');// for test
sinon.stub(client, 'mkdirAsync', function() {
return new Promise(function(resolve) {
setTimeout(function() {
resolve();
}, 1);
});
});
sinon.stub(client, 'upload', function(fromPath, toPath) {
var isError = /cat-98359_1920/.test(fromPat... |
/**
* TMDb Service "Networks" module
*/
(function () {
'use strict';
angular.module( 'com.missofis.TMDb.Networks', [] );
})(); |
/*
aem browser side library
*/
define(['underscore','backbone'],function(_,Backbone) {
var AEM=Backbone.Model.extend({
vpos: 0,
tagname:"",
//author: "",
extra: null,
slot : function() { return Math.floor(this.get("vpos") / 4096) },
token: function() { return this.get("vpos") % 4096 },
initia... |
(function () {
'use strict';
angular
.module('paycelApp')
.factory('User', User);
User.$inject = ['$resource'];
function User ($resource) {
var service = $resource('api/users/:login', {}, {
'query': {method: 'GET', isArray: true},
'get': {
... |
/**
* Created by Jayson Martinez on 4/24/2015.
*/
$(document).ready(function(){
var student_list = new Bloodhound({
datumTokenizer: Bloodhound.tokenizers.obj.whitespace('value'),
queryTokenizer: Bloodhound.tokenizers.whitespace,
limit:8,
remote: '/search/search_by_id/%QUERY'
}... |
module.exports = function() {
return 'super.super.secret.shhh';
} |
import withStyles from '@material-ui/core/styles/withStyles';
import colors from '@material-ui/core/colors/common';
export default withStyles(theme => ({
bold: {
fontWeight: 500,
},
item: {
paddingLeft: theme.spacing.unit * 2,
paddingRight: theme.spacing.unit * 2,
paddingTop: theme.spacing.unit /... |
var probasketballapi = require('../../src/probasketball')
, expect = require('expect.js')
, config = require('./utils/config')
, init = require('./utils/hooks').init
var endpoints = [
{
name: 'Players',
collection: ['players'],
filter: { first_name: 'James', last_name: 'Harden' },
find_property... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.