code stringlengths 2 1.05M |
|---|
const ws = new global.WebSocket('ws://')
ws.onopen = (event) => {
console.log(event)
this.onmessage = (msg) => {
console.log(msg)
}
}
ws.onclose = (event) => {
console.log(event)
}
|
///////////////////////////////////////////////////////////////////////////////
// WebkitJs Objects - Copyright (c) 2013 Niclas Norgren - niclas@n3g.net
// Released under the MIT license.
// http://opensource.org/licenses/MIT
///////////////////////////////////////////////////////////////////////////////
// requires
g... |
'use strict';
exports.__esModule = true;
var _trackHelper = require('./trackHelper');
var _helpers = require('./helpers');
var _helpers2 = _interopRequireDefault(_helpers);
var _objectAssign = require('object-assign');
var _objectAssign2 = _interopRequireDefault(_objectAssign);
var _reactDom = require('react-dom... |
$(document).ready(function(){
$('.page-body-right #content').css({color:'gray'});
$('.page-body-right #content').one('focus',function(){
$(this).val('');
});
//类型选择
$('.page-body-right #ques-type').on('change',function(){
var type_id = $(this).find("option:selected").attr('value');
if( typ... |
require('./main.css');
let component = require('./component');
document.body.appendChild(component()); |
const Hapi = require('hapi');
const Inert = require('inert');
const Request = require('request');
const Querystring = require('querystring');
const Env = require('env2')('./config.env');
const cookieAuth = require('hapi-auth-cookie');
const server = new Hapi.Server();
const port = process.env.PORT || 3000;
// separat... |
import React from 'react';
import { shallow } from 'enzyme';
import expect from 'expect';
import { GroupButton }
from '../../../components/dashboard/GroupButton.jsx';
import mockData from '../../mockData';
describe('GroupButton Component', () => {
it('should render GroupButton component', () => {
const wrappe... |
'use strict';
const router = require('express').Router();
const auth = require('./authentication');
router.post('/', auth.authenticate);
module.exports = router;
|
define([
'jquery',
'../utils'
], function ($, Utils) {
function AttachBody (decorated, $element, options) {
this.$dropdownParent = options.get('dropdownParent') || document.body;
decorated.call(this, $element, options);
}
AttachBody.prototype.bind = function (decorated, container, $container) {
... |
/*!
* ezLife AutoIn - The most easiest Anime i.ntere.st bot ever made
* https://github.com/KazeFlame/ezLife-AutoIn/
*
* Copyright 2015 by KazeFlame and contributors
* Released under the MIT license
* https://github.com/KazeFlame/ezLife-AutoIn/blob/master/LICENSE
*
*/
KangoAPI.onReady(function(){
kango.brow... |
// 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... |
// Script: jQuery hashchange event
//
// *Version: 1.3, Last updated: 7/21/2010*
//
// Project Home - http://benalman.com/projects/jquery-hashchange-plugin/
// GitHub - http://github.com/cowboy/jquery-hashchange/
// Source - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.js
// ... |
/*
* grunt-assetic-dump
* https://github.com/adam187/grunt-assetic-dump
*
* Copyright (c) 2013 Adam Misiorny
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/*... |
'use strict';
var yeoman = require('yeoman-generator');
module.exports = yeoman.generators.Base.extend({
initializing: function () {},
prompting: function() {
var done = this.async();
var prompts = [];
this.prompt(prompts, function(answers) {
this.props = answers;
done();
}.bind(this... |
var should = require('should');
var EventEmitter = require('events').EventEmitter;
var Midi = require('../../midi');
describe('midi.Input', function() {
var input;
beforeEach(()=>{
input = new Midi.Input();;
})
afterEach(()=>{
input.closePort();
})
it('should raise when not called with new', func... |
import buble from 'rollup-plugin-buble'
import resolve from 'rollup-plugin-node-resolve'
export default {
entry: 'src/index.js',
moduleName: 'WASD_Tetris',
plugins: [
buble(),
resolve()
],
banner: '/*!\n' +
' * (c) 2016-' + new Date().getFullYear() + ' WASD-ORG\n' +
' * Released under the MIT Lic... |
const assert = require("assert");
const path = require("path");
const _ = require("underscore");
module.exports = function (opcua) {
opcua.ISA95.utils = {};
const BrowseDirection = opcua.browse_service.BrowseDirection;
function _coerceISA95ReferenceType(addressSpace,obj) {
const _coerced = type... |
var Model = require('../lib/Model');
var Properties = require('../lib/Properties');
describe('Model', function() {
it('should assign properties to the object', function () {
var aModel = new Model('test', {
a: Properties.string
}, {a: 'test'});
expect(aModel.a).toEqual('test');
});
it('should rename pr... |
/*#if PROD*/
includeCore('browser/vendors/jquery-migrate-1.2.1-prod');
/*#else*/
includeCore('browser/vendors/jquery-migrate-1.2.1-dev');
/*#/if*/ |
a >>= 1 |
var API_v2_0 = require('./API_v2_0');
var util = require('util');
// Public Functions
var API_v2_1 = function (v, storeT, storeL) {
API_v2_0.apply(this, arguments);
this.baseUrl = "https://api.mysportsfeeds.com/v2.1/pull";
};
util.inherits(API_v2_1, API_v2_0);
exports = module.exports = API_v2_1;
|
import triangularSequence from '../src/triangularSequence/triangularSequence';
test('triangularSequence', () => {
expect(triangularSequence(0)).toEqual([]);
expect(triangularSequence(1)).toEqual([1]);
expect(triangularSequence(2)).toEqual([1, 2]);
expect(triangularSequence(3)).toEqual([1, 2, 2]);
expect(tria... |
/*
* freakLoad - v0.1.0
* Preloader JS library
* https://github.com/nofreakz/freakLoad
*
* Copyright (c) 2014
* MIT License
*/
;(function($, win, doc) {
'use strict';
/*
* DEFAULTS
*/
var _plugin = 'freakLoad',
itemTpl = {
node: undefined,
url: '',
... |
import setupStore from 'dummy/tests/helpers/store';
import Ember from 'ember';
import { isEnabled } from 'ember-data/-private';
import testInDebug from 'dummy/tests/helpers/test-in-debug';
import {module, test} from 'qunit';
import DS from 'ember-data';
var Post, post, Comment, comment, Favorite, favorite, env, seri... |
const { compile, not } = require('../index')
test('not', () => {
expect(compile(not.str)).toEqual({
not: {
type: 'string'
}
})
})
|
'use strict';
module.exports = function(app) {
var users = require('../../app/controllers/users');
var nutritions = require('../../app/controllers/nutritions');
// Nutritions Routes
app.route('/nutritions')
.get(users.requiresLogin, nutritions.list)
.post(users.requiresLogin, nutritions.create);
app.route('... |
describe("Utils", function() {
var Utils = require('../lib/Utils');
var utils;
beforeEach(function() {
utils = new Utils();
});
it("should be able to validate that an empty string does not pass", function() {
var result = utils.validatePassedString("");
expect(result).toBe(false);
});
it("s... |
/* @flow */
export default class ModelHelper {
/*
static toGlobalId(model: Model): string {
invariant(model, 'Argument \'model\' is null');
if (model.type.endsWith('Edge')) {
return toGlobalId(
model.type,
this._getGlobalIdParam(model.outID) + '___' + this._getGlobalIdParam(model.inID))... |
import { __decorate } from "tslib";
import * as au from "../aurelia";
let ClickCounter = class ClickCounter {
constructor() {
this.count = 0;
}
increment() {
this.count++;
}
};
ClickCounter = __decorate([
au.customElement("click-counter")
], ClickCounter);
export { Click... |
#!/usr/bin/env node
"use strict";
var fs = require("fs");
var path = require("path");
var SnakeParser = require("../src/snakeParser.js");
// Helper
function exitSuccess() {
process.exit(0);
}
function exitFailure() {
process.exit(1);
}
function abort(message) {
console.error(message);
exitFailure();
}
fun... |
/**
* Module dependencies.
*/
var express = require('express')
, http = require('http')
, path = require('path')
, fs = require('fs')
, qs = require('querystring')
, persist = require("persist")
, morgan = require('morgan')
, cookieParser = require('cookie-parser')
, methodOverride = require('method-override')
, error... |
"use strict"
const logger = require('../config/logger').mainLogger
module.exports.floodFill = function (map) {
const cells = []
for (let i = 0; i < map.cells.length; i++) {
const cell = map.cells[i]
cells[cell.x + ',' + cell.y + ',' + cell.z] = cell
}
const startTile = cells[map.startTile.x + ',' + ... |
var postcss = require('postcss');
// Default properties for all layouts.
var defaults = {};
defaults.container = {
"box-sizing": "border-box",
"margin-left": "0",
"margin-right": "0",
"text-align": "initial",
"font-size": "initial"
}
defaults.item = {
"box-sizing": "border-box",
"display": "initial",
... |
// es6 shim
(function() {
if( !String.prototype.startsWith ) {
String.prototype.startsWith = function(s) {
return this.indexOf(s) === 0;
};
}
if( !String.prototype.endsWith ) {
String.prototype.endsWith = function(s) {
var t = String(s);
var index = this.lastIndexOf(t);
return index >= 0 && index ... |
var mongoose = require('mongoose');
var fs = require('fs');
var chance = new (require('chance'))();
var express = require('express')
, passport = require('passport')
, ws = require('ws').Server;
// Setup all
var app = express();
// Prepare Schemas
var models_path = __dirname + '/app/schemas'
fs.re... |
// including plugins
var gulp = require('gulp'),
uglify = require("gulp-uglify"),
minifyCss = require("gulp-minify-css"),
sass = require("gulp-sass"),
rename = require("gulp-rename");
// task
gulp.task('dist', function() {
gulp.src('./src/scripts/*.js') // path to your files
.pipe(uglify()... |
function foo() {
debugger;
console.log('foo');
}
|
//main.js
/**
* The Google Earth Plugin Instance Object
* All functionality is provided by interacting with the GE Instance
* @type {GEPlugin}
*/
var ge;
/**
* Load the required API Libraries from the Google API Loader
* @param {string} The library to load
* @param {string} The library version number
* @param... |
'use strict';
export { default as default } from './admin-page';
|
// @flow
import React, { useEffect, useState } from 'react';
import cx from 'classnames';
import CollapsibleRow from '../CollapsibleRow/CollapsibleRow';
import css from './CollapsibleProgressSteps.css';
type Props = {
data: Array<Object>
}
const CollapsibleProgressSteps = ({ data }: Props) => {
const [steps, set... |
/**
* Created by dhruti on 26-07-2014.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var DeptEmployeeSchema = new Schema({
name: {
type: String,
default: '',
required: 'Please fill Employee name',
trim: true
},
created: {
type: Date,
... |
var EXPORT = ['Delegator'];
/*
* メソッドの委譲を行う
*/
let Delegator = function(obj, propertyDelegate) {
this.__target__obj = obj;
if (typeof propertyDelegate == 'undefined')
propertyDelegate = true;
if (propertyDelegate) {
this.__propertyDelegate__();
}
};
Delegator.prototype = {
ge... |
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
/* @flow */
export const input = `
type Demo = number;
declare var demo: Demo;
`;
export const expected = `
const Demo = "number";
__assumeDataProperty(global, "demo", __abstract(Demo));
`; |
// https://www.concurrencylabs.com/blog/configure-your-lambda-function-like-a-champ-sail-smoothly/
var AWS = require('aws-sdk');
var s3 = new AWS.S3({"signatureVersion":"v4"});
/*
PRE-REQUISITES:
- Become familiar with AWS Lambda function aliases and versions: http://docs.aws.amazon.com/lambda/latest/dg/aliases-intro.... |
/* jshint jquery: true, strict: false */
/* global klass: false, jQuery: false */
var VatNumberCheckObject = {
/**
* A css class selector to trigger `check` logic.
*
* @type {string}
*/
elementSelector: '',
/**
* An url to use for checking.
*
* @type {string}
*/
checkUrl: '',
/**
* An object... |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: '<json:package.json>',
meta: {
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\n" : "" %>' +
'* Copyright (c) <%... |
"use strict";
var cluster = require("cluster"),
os = require("os");
if (cluster.isMaster) {
for (var i = 0; i < os.cpus().length; i++) {
cluster.fork();
}
} else {
// TODO refactor to return an app object
require("./index");
}
|
import Samay from '@/Samay';
describe("Addition Subtraction", () => {
let samay, clone;
beforeEach(() => {
samay = new Samay(2015,9,5,9,30,14,500);
clone = samay.clone();
})
it("can add and subtract years", () => {
expect(clone._year).toBe(2015)
clone.addYears(4);
expect(clone._year).to... |
const EJS = require('ejs2');
module.exports = new EJS({ cache: true });
|
/**
* Pico's Default Theme - JavaScript helper
*
* Pico is a stupidly simple, blazing fast, flat file CMS.
*
* @author Daniel Rudolf
* @link http://picocms.org
* @license http://opensource.org/licenses/MIT The MIT License
* @version 1.1
*/
function main()
{
// capability CSS classes
document.docum... |
$(function() {
// 共通の変数は`NS`名前空間をスコープにします。
var NS = NS || {};
// ブレイクポイントを定数で管理します。
NS.BREAK_POINT_SM = 400;
NS.BREAK_POINT_MD = 768;
NS.BREAK_POINT_LG = 1000;
NS.BREAK_POINT_XL = 1200;
// `NS.viewportWidth`に現在のviewportの横幅を格納する。
NS.viewportWidth = window.innerWidth;
$(window).on('resize', debounce... |
import "../core/array";
import "selection";
d3_selectionPrototype.call = function(callback) {
var args = d3_array(arguments);
callback.apply(args[0] = this, args);
return this;
};
|
/**
* # plugins.js
*
* Plugins are like middleware, they get used 'automagically'
*
*/
'use strict';
/**
* ## plugins
*
* when a route is config'd with auth, the hapi-auth-jwt will be invoked
*
* the good module prints out messages
*/
module.exports = [
{
register: require('hapi-auth-jwt'),
options: {}
... |
import React, { Component, PropTypes } from 'react';
import Input from 'react-toolbox/lib/input';
import InstString from '../instrument-string/instrument-string';
import './chord-chart.scss';
export default class ChordChart extends Component {
static propTypes = {
chord: PropTypes.object,
numFret... |
var game = new Phaser.Game(640, 480, Phaser.CANVAS, 'Ilegal');
//INITIALIZE HERE THE CANVAS AND OTHER STUFFS LIKE DEVICE TYPE AND RESOLUTION
var Boot = function(game){};
Boot.prototype = {
preload: function() {
this.load.image('preloaderBg', 'assets/preload/loading-bg.png');
this.load.image('preloaderBar', 'asset... |
'use strict';
var pg = require('pg');
var Promise = require('promise');
var Mapper = function() {
this.connectionString = 'postgres://postgres:synapse1@localhost/example_vm';
};
Mapper.prototype.query = function(query) {
var mapper = this;
return new Promise(function (resolve, reject) {
pg.c... |
export { default } from './MediaCard.container'
|
import React from 'react';
import IconBase from 'react-icon-base';
export default class FaGetPocket extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m35.9 2.9q1.5 0 2.5 1t1 2.4v11.6q0 4-1.5 7.5t-4.1 6.2-6.1 4-7.5 1.5q-3.9 0... |
// DOM Ready
$(function() {
// PNG Fallback for SVG
if(!Modernizr.svg) {
$('img[src*="svg"]').attr('src', function() {
return $(this).attr('src').replace('.svg', '.png');
});
}
// Basic FitVids
$(".container").fitVids();
$(".videoWrapper").fitVids();
// Placeholder
$(... |
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import withStyles from '../styles/withStyles';
import { fade } from '../styles/colorManipulator';
export const styles = theme => ({
/* Styles applied to the root element. */
root: {
height: 1,
margin: 0, // Reset browse... |
/*! nut 0.4.2 (https://github.com/pyrsmk/nut) */
!function(a,b,c){"undefined"!=typeof module&&module.exports?module.exports=c:"function"==typeof define&&define.amd?define(c):a[b]=c}(this,"nut",function(){var a=function(a){var b=document.getElementById(a);return b?[b]:[]},b=function(a,c){var d,e=c.firstChild,f=[];if(e)d... |
'use strict';
/**
* Module dependencies.
*/
var fs = require('fs'),
http = require('http'),
https = require('https'),
socketio = require('socket.io'),
express = require('express'),
morgan = require('morgan'),
bodyParser = require('body-parser'),
session = require('express-session'),
compress = requir... |
#! /usr/bin/env node
var tools = require('../api/tools');
var mainCommands = require('./main-commands');
var commands = {
runUserCommand : function (userCommand) {
var cliCommand = commands.formatUserCommand(userCommand);
var mainCommand = cliCommand.commands[0];
//if no main command found show help file unle... |
$(document).ready(function() {
'use strict';
if (applicationStatusCode == 1)
$('.ui.basic.modal').modal('show');
$('.ui.dropdown').dropdown({
on: 'hover'
});
$('.masthead .information').transition('scale in', 1000);
var animateIcons = function() {
$('.ui.feature .icon .icon').transition({
animation: ... |
export default [
"Puolet viljantilan päästöistä syntyvät lannotteiden käytöstä"
] |
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { PropTypes } from 'react';
import styles from './contentPressMention.css';
import withStyles from '../../../decorators/withStyles';
@withStyles(styles)
//ContentPressMention Component
class ContentPressMention extends React.Comp... |
define(['global/session', 'services/errorhandler',
'services/config', 'plugins/router', 'services/logger'],
function (session, errorhandler, config, router, logger) {
var unitofwork = session.unitofwork();
var vm = {
activate: activate,
attached: attached,
... |
'use strict';
const assert = require('assert');
const { inspect } = require('util');
const {
mustCall,
mustCallAtLeast,
setupSimple,
} = require('./common.js');
const DEBUG = false;
const setup = setupSimple.bind(undefined, DEBUG);
{
const { client, server } = setup('Simple exec()');
const COMMAND = 'fo... |
export * from './client-exports'
// TODO: add exports all test case in pages
/**
import * as all from '../components/client-exports-all'
import * as allClient from '../components/client-exports-all.client'
export default function Page() {
const { a, b, c, d, e } = all
const { a: ac, b: bc, c: cc, d: dc, e: ec } ... |
'use strict';
var ejs = { renderFile: require('ejs-locals') };
var phantomjs = require('phantomjs');
var nodePhantom = require('node-phantom-simple');
var phantom;
var debug = require('./debug');
var log = debug.getLogger({ prefix: '[pdfgen]- ' });
var paperSize = { format: 'Letter', orientation: 'portrait', margi... |
'use strict'
const fs = require('fs')
const path = require('path')
const stripeComments = require('strip-css-comments')
module.exports = function getLessVariables(theme) {
return getContent(theme)
}
function trim (str) {
if (!str) {
return ''
} else {
return str.replace(/^\s+|\s+$/g, '')
}
}
functio... |
import './lottery/base.js'
import './lottery/timer.js'
import './lottery/calculate.js'
import './lottery/interface.js'
|
'use strict';
// Modules
require('should');
// Subject
var error_not_found = require('../../../app/errors/not_found.error.js');
describe('Error - ErrorNotFound', function () {
it('should have a name of "ErrorNotFound"', function () {
new error_not_found().should.have.property('name').and.equal('ErrorNotFound... |
class Rocket {
constructor(
context,
canvasWidth,
canvasHeight,
width,
height,
orientationDirection,
rotationRate,
xVector,
yVector,
x,
y,
color) {
// "this" refers to the instance of Rocket that I'm currently working with
// Add properties to "this" when each instance of the class sho... |
"use strict";
const getFirstIndex = require("./getFirstIndex");
const TimeUtils = require("./TimeUtils");
const dateToSeconds = TimeUtils.dateToSeconds;
const hoursToSeconds = TimeUtils.hoursToSeconds;
// get the current salat index from a list of times
const getCurrent = (times, date) => {
const now = date || n... |
/**
Universe.js Classes
*/
var UNIVERSE = UNIVERSE || {};
/**
A simple Universe for drawing 3D modeling and simulation using WebGL
@constructor
@param {Date} time - The current universe time
@param {double} refreshRate - The refresh rate for the universe in milliseconds
@param {DOMElement} con... |
// We want to use this to test the user service
// TODO: Add ability to create/use a separate test DB
var assert = require("assert"),
async = require('async'),
_ = require('lodash'),
Sequelize = require('sequelize'),
// Grab the models using our connection
models = require('../models')(new Sequelize(
'care',
... |
'use strict';
exports.keys = '123456';
exports.nohm = {
};
|
'use strict';
const Cashy = require('../../index.js');
const Table = require('../lib/table.js');
const format = require('../lib/format.js');
// Output table
const out = new Table(process.stdout);
module.exports = (program) => program
.command('balance')
.option('-d, --date <date>', 'balances at this date')
.optio... |
export * from './links/state';
import './settings';
|
export default {
version: '1.0.44',
apiUrl: 'wss://ws.binaryws.com/websockets/v3',
brand: 'Binary',
logo: '/img/binary-symbol-logo.svg',
affiliateToken: '',
colors: {
brandColor: '#123123',
},
};
|
define("ace/mode/xml_highlight_rules", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var XmlHighlightRules = fu... |
var passport = require('passport')
, LocalStrategy = require('passport-local').Strategy;
passport.use(new LocalStrategy(
function(username, password, done) {
User.findOne({ username: username }, function(err, user) {
if (err) { return done(err); }
if (!user) {
return done(null, false, { mes... |
/*
* Command to inline push ( Push to channel remotely)
*/
var inlinePushPassword = Ape.config("inlinepush.conf", "password");
var inlinePushAllowedIps = Ape.config("inlinepush.conf", "ips");
Ape.registerCmd("inlinepush", false, function(params, info) {
if( inlinePushAllowedIps !== "" && inlinePushAllowedIps.i... |
var mentor = mentor || {};
// Single Droplet View
mentor.DropletView = Backbone.View.extend({
tagName: 'div',
// Re–render the item
render: function() {
var templateSource = $('#droplet-template').html();
var template = Handlebars.compile(templateSource);
var compiled = template(this.model.toJSON(... |
import Ember from 'ember';
import {test, moduleForComponent} from 'ember-qunit';
const {run} = Ember;
moduleForComponent('gh-find-in-webview', 'Unit | Component | gh find in webview', {
unit: true,
// specify the other units that are required for this test
needs: ['service:window-menu', 'util:find-vis... |
module.exports = {
build_dll: function() {
return new Promise(function (resolve, reject) {
console.log("_postinstall > NPM: DLL build started. Please wait..");
require('child_process').execSync('npm run build:dll', {stdio:[0,1,2]});
console.log("_postinstall > NPM: DLL build completed");
... |
module.exports = function(db) {
var viewers = db.collection('viewers');
return {
updateViewers: function(req, res, next) {
var viewerList = req.body.viewers;
var savedViewers = [];
var i = 0;
function saveViewer(viewerName) {
vie... |
import React from 'react';
import { Container, Content, Button, Text, List, ListItem, SwipeRow, Icon, Fab } from 'native-base';
import { FlatList } from 'react-native';
import I18n from 'yasav/locales/i18n'
import { GenericHeader } from 'yasav/src/viewElements/shared/Header';
import Style from '../styles/style.js';
imp... |
var multipleChoice = require('./multiple_choice/module');
var numeric = require('./numeric/module');
var freeResponse = require('./free_response/module');
var imageUpload = require('./image_upload/module');
module.exports = angular.module('app.components.quiz', [
multipleChoice.name,
numeric.name,
freeRes... |
(function (factory) {
if (typeof module === "object" && typeof module.exports === "object") {
var v = factory(require, exports);
if (v !== undefined) module.exports = v;
}
else if (typeof define === "function" && define.amd) {
define(["require", "exports"], factory);
}
})(functio... |
const {
OPCUAClient,
ClientSubscription,
AttributeIds,
ClientMonitoredItemGroup,
StatusCodes,
ClientSidePublishEngine,
Subscription
} = require("node-opcua");
const { perform_operation_on_session_async } = require("../../test_helpers/perform_operation_on_client_session");
const sinon = requi... |
import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../../actions'
let AddTodo = ({ dispatch }) => {
let input;
return (
<div>
<form onSubmit={ e => {
e.preventDefault();
if (!input.value.trim()) {
return;
}
dispatch(addTodo(... |
// Karma configuration
// Generated on Fri Dec 05 2014 16:49:29 GMT-0500 (EST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/k... |
google.maps.__gjsload__('stats', function(_){var ZZ=function(a,b,c){var d=[];_.Mb(a,function(a,c){d.push(c+b+a)});return d.join(c)},$Z=function(a,b,c,d){var e={};e.host=window.document.location&&window.document.location.host||window.location.host;e.v=a;e.r=Math.round(1/b);c&&(e.client=c);d&&(e.key=d);return e},a_=funct... |
exports.ansibleVariable = require('./ansibleVariable');
exports.folderize = require('./folderize');
|
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var ActionShoppingCart = React.createClass({
displayName: 'ActionShoppingCart',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: "M7 18c-1.1 0-1.... |
exports = module.exports = function(app, models) {
var _ = require('underscore');
var add = function(req, res) {
var doc = req.body;
var grant = req.body.grant;
var keys = _.keys(grant);
var grant_new = {};
_.each(keys,function(key){
var feature = grant[key];
if(feature.getOne || feature.ge... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define({widgetLabel:"\u0102_Attachments____________\u0219",attachmentDetails:"\u0102_Attachment details___________________\u0219",add:"\u0102_Add_______\u0219",upd... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.