code stringlengths 2 1.05M |
|---|
export { default } from 'ember-flexberry-gis/geo-providers/yandex-maps-geocoder';
|
$(document).ready(function(){
$(".boxOptions1").dxBox({
direction: "row",
width: "100%",
height: 75
});
$("#boxOptions2").dxBox({
direction: "row",
width: "100%",
height: 75,
align: "center",
crossAlign: "center"
});
$("#boxOptions3")... |
import { controller } from 'app/<%= componentPath %>/controller';
function State ($stateProvider) {
'use strict';
'ngInject';
$stateProvider.state('<%= componentPath %>', {
url: '/<%= componentPath %>',
templateUrl: '<%= componentPath %>/template.html',
controller: controller
}... |
var React = require('react');
var connect = require('react-redux').connect;
var _ = require('underscore');
var bindActionCreators = require('redux').bindActionCreators;
var Actions = require('../../actions/IndVars');
var expActions = require('../../actions/Experiments');
Actions = _.extend(Actions, expActions);
var mon... |
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import purebem from 'purebem';
import { ref } from 'src/firebase';
import { Button, Spinner, Status } from 'src/core/components';
import { button as update } from 'src/redux/components/search/actions';
const block = purebem.of('search... |
;(function () {
'use strict';
// iPad and iPod detection
var isiPad = function(){
return (navigator.platform.indexOf("iPad") != -1);
};
var isiPhone = function(){
return (
(navigator.platform.indexOf("iPhone") != -1) ||
(navigator.platform.indexOf("iPod") != -1)
);
};
// Fast ... |
import React from 'react';
function AboutPage() {
return (
<div>
<h1>About Us</h1>
<p>Coming soon</p>
</div>
);
}
export default AboutPage;
|
"use strict";
module.exports = function (name, label) {
if (label) return label;
return name.split("_").join(" ").ucfirst();
}; |
require('source-map-support').install();
var Mocha = require('mocha');
var fs = require('fs');
var path = require('path');
var walk = require('walk');
var mocha = new Mocha({
reporter: 'list'
});
var walker = walk.walk(__dirname);
walker.on('file', (root, fileStats, next) => {
if (fileStats.name.substr(-8) ==... |
path = require('path');
module.exports = function (message) {
return function (req, res, next) {
decoded = decodeURIComponent(req.url);
if (decoded != path.join('/', decoded)) {
res.writeHead(403, {"Content-Type": "text/plain"});
res.write(message || "403 Forbidden");
res.end();
} else {
next();
}... |
describe("Weather",function(){
var whatitis;
beforeEach(function(){
whatitis = new Weather();
});
describe('grab',function(){
it('should return a string',function(){
whatitis.grab();
// HOW TO TEST SUCCESS .getJSON RESPONSE???
expect().toBe(string);
})
});
}); |
/**
* @fileoverview Tests for `maximumLineLength` (JSCS) translation
* @author Breno Lima de Freitas <https://breno.io>
* @copyright 2016 Breno Lima de Freitas. All rights reserved.
* See LICENSE file in root directory for full license.
*/
'use strict'
//----------------------------------------------------------... |
// For an introduction to the Page Control template, see the following documentation:
// http://go.microsoft.com/fwlink/?LinkId=232511
(function () {
"use strict";
WinJS.UI.Pages.define("/pages/xor/xor.html", {
// This function is called whenever a user navigates to this page. It
// populates ... |
'use strict';
/**
* Module dependencies.
*/
var path = require('path'),
config = require(path.resolve('./config/config')),
errorHandler = require(path.resolve('./modules/core/server/controllers/errors.server.controller')),
nodemailer = require('nodemailer'),
async = require('async'),
crypto = require('cryp... |
/** 插入自定义html模块 (可用于插入广告模块等)
* {
* homeSidebarB: htmlString, 首页侧边栏底部
*
* sidebarT: htmlString, 所有左侧边栏顶部
* sidebarB: htmlString, 所有左侧边栏底部
*
* pageT: htmlString, 页面顶部
* pageB: htmlString, 页面底部
* pageTshowMode: string, 页面顶部-显示方式:未配置默认所有页面;'article' => 仅文章页①; 'custom' => 仅自定义页①
* pageBshowMode: stri... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define(["require","exports","../../../../../../core/tsSupport/makeTemplateObjectHelper","../util/DecodeNormal.glsl","../../shaderModules/interfaces"],function(l,e,... |
const slackWebAPIAdapter = require('../../libs/slackWebAPIAdapter')
const slackAdapter = new slackWebAPIAdapter()
const { Admin } = require('../models')
slackAdapter.get('users.list', {})
.then(json => {
let adminMembers = json.members.filter(member => member.is_admin === true)
adminMembers.map(admin => {
... |
/* jshint node: true */
'use strict';
// cInfo: { cId, dir, attrList }
function Cluster(endpoint, cInfo) {
// this.epId = cInfo.epId;
this.endpoint = endpoint;
this.cId = cInfo.cId;
this.name = 'xxx'; // find from zcl defs, if not found, give it 'manuSpecificCluster'
this.dir = cInfo.dir;
... |
define({load:function(e,t,n,r){if(e==="broken"){var i=new Error("broken");i.plugMessage=e,n.error(i)}else n(e)}}); |
define(function (require) {
require("jquery");
var Uuid = require("core/Uuid");
var TEMPLATE = '<div id="{{TREE_ID}}"></div>';
function Tree() {
this._root = null;
this._uuid = null;
this._tree = null;
this._renderers = {};
this._data = null;
this._converter = null;
//this._data =... |
"use strict";
/**
* Defines swig tags for templates
* @param {Object} swig Swig engine to add tags to
* @param {Object} context Context that all tags have access to
*/
module.exports.init = function(swig, context) {
/**
* Array of tagObjects. A tag object contains the keys
* name, parse, c... |
import Component from '@ember/component';
import layout from '../../templates/components/bootstrap/-form-controls';
export default Component.extend({
layout
});
|
'use strict';
var ruleMap = {
'es3-member-expression-literals': [],
'es3-property-literals': [],
'es5-property-mutators': [],
'es2015-arrow-functions': ['arrowFunctions'],
'es2015-block-scoping': ['blockBindings'],
'es2015-classes': ['classes'],
'es2015-computed-properties': ['objectLiteralComputedProper... |
var Webpack = require("webpack");
var HtmlwebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: ["./src/"],
output: {
path: __dirname + "/build/",
filename: "bundle.js"
},
resolve: {
alias: {
jquery: "jquery/src/jquery"
}
},
plugins: [
new HtmlwebpackPlugin({
... |
/*!
* memories: A simple in-memory caching module for Node.js
*
* Copyright(c) 2012 Sven Lito. <me@svenlito.com>
* MIT LICENCE
*
*/
"use strict";
var util = require('util');
var cache = {},
now = function() {
return (new Date()).getTime();
};
var memories = {
put: function(key, value, validFo... |
'use strict';
const AuthPlugin = require('../../../server/auth');
const AuthenticatedAccount = require('../fixtures/credentials-account');
const AuthenticatedAdmin = require('../fixtures/credentials-admin');
const Code = require('code');
const Config = require('../../../config');
const Hapi = require('hapi');
const Hap... |
/*
Progress Bar Module R1.1
Copyright 2010-2015 Bryan Garaventa (WhatSock.com)
Part of AccDC, a Cross-Browser JavaScript accessibility API, distributed under the terms of the Open Source Initiative OSI - MIT License
*/
$A.createEl("progress");(function(){$A.setProgressBar=function(a){if(!a||!a.id||!a.config){return nu... |
/**
* Deployment environment configuration: create a copy of this file called
* env.js to enable SharePoint deployments; visit
* https://github.com/s-KaiNet/spsave#credentials for more information on the
* various configuration options available in spsave and node-sp-auth
*/
module.exports = {
site: 'https://con... |
// @flow
import { type Element } from 'react';
import { type Request } from './request';
export type NextPage = (props: Request) => Element<*>;
|
import Users from 'meteor/nova:users';
/*
Let's create a new "mods" group that can edit and delete any posts
*/
Users.createGroup("mods");
Users.groups.mods.can("posts.edit.all"); // mods can edit anybody's posts
Users.groups.mods.can("posts.remove.all"); // mods can delete anybody's posts
|
var _ = require('lodash');
var express = require('express');
var path = require('path');
var httpProxy = require('http-proxy');
var http = require('http');
var proxy = httpProxy.createProxyServer({
changeOrigin: true,
ws: true
});
var app = express();
var isProduction = process.env.NODE_ENV === 'production';
va... |
import { ELEMENT, YIELDER } from '../config/types';
import runloop from '../global/runloop';
import createItem from './items/createItem';
import ReferenceResolver from './resolvers/ReferenceResolver';
import { bind, rebind, toEscapedString, toString, unbind, unrender, update } from '../shared/methodCallers';
import pro... |
var hubMap = {
version: ".1"
};
function HubMap(options) {
this.options = options;
this.data = "";
this.map = false;
this.legend = "";
this.options.scale = (options.scale !== "" ? parseInt(options.scale) : null);
this.options.legendCategories = options.legendCategories || [];
this.baseLayer = "";
thi... |
import React from 'react';
export class PolicyItem extends React.Component {
render() {
return (
<div>
<label>Policy Item</label>
</div>
)
}
}
|
"use strict";
let slackToken = process.env.SLACK_TOKEN;
let callback = function() { };
let messageId = 0;
let wsSender = function (message) {
console.log("[-] WebSocket is not connected; can't send " + message)
};
const connectWithSlack = function() {
let slackSocket;
const https = require("https");
co... |
(function(module) {
var aboutController = {};
aboutController.reveal = function() {
$('.tab-content').fadeOut();
$('#about').fadeIn();
};
module.aboutController = aboutController;
})(window);
|
'use strict';
var Signer = require('./Signer');
var _ = require('lodash');
/**
* An existing template can be used by making an HTTP POST request to the
* document containing some key parameters.
* All optional and required parameters are listed in the table below.
*
* @param {String} templateId [descriptio... |
/*
* Copyright (c) 2015 Nick Jurgens <nicholas2010081@gmail.com>
*/
export default function(text, message) {
return 'http://arbornetworks.jobs';
}
|
/**
* Roundcube Webmail Client Script
*
* This file is part of the Roundcube Webmail client
*
* @licstart The following is the entire license notice for the
* JavaScript code in this file.
*
* Copyright (C) 2005-2014, The Roundcube Dev Team
* Copyright (C) 2011-2014, Kolab Systems AG
*
* The JavaScript code... |
/* globals $ */
/*
Create a function that takes an id or DOM element and:
If an id is provided, select the element
Finds all elements with class button or content within the provided element
Change the content of all .button elements with "hide"
When a .button is clicked:
Find the topmost .con... |
function CLASS_MYPHOTOS(){ //抽象类(属性,初始化)
this.init();
}
CLASS_MYPHOTOS.prototype={
init: function(){
this.$selfInforA = $('.selfInfor').children('a');
this.$f_r = $('.f_r');
this.plug('avatarDialog',[this.$selfInforA]);
this.plug('masonry',[this.$f_r]);
},
plug:function(method,arg){
var se... |
import Store from './app/services/store'
import './sass/global.scss'
@inject(EventAggregator, Store)
export class App {
constructor(ea, store) {
this.log = LogManager.getLogger(`Saeris.io/${this.constructor.name}`)
this.ea = ea
this.store = store
this.state = store.state
}
attached() {
this.... |
// var express = require('express');
// var router = express.Router();
// /* GET home page. */
// router.get('*', function(req, res, next) {
// res.render('index', { title: 'urbinsight' });
// });
// module.exports = router;
/**
* The Index of Routes
*/
module.exports = function (app) {
// Lots Route
app.... |
Grailbird.data.tweets_2009_04 =
[ {
"source" : "\u003Ca href=\"http:\/\/twitter.com\" rel=\"nofollow\"\u003ETwitter Web Client\u003C\/a\u003E",
"entities" : {
"user_mentions" : [ ],
"media" : [ ],
"hashtags" : [ ],
"urls" : [ ]
},
"geo" : { },
"id_str" : "1657471970",
"text" : "New blog po... |
alchemy.input = (function() {
var settings = alchemy.settings,
inputHandlers;
var keys = {
37 : "KEY_LEFT",
38 : "KEY_UP",
39 : "KEY_RIGHT",
40 : "KEY_DOWN",
13 : "KEY_ENTER",
32 : "KEY_SPACE",
65 : "KEY_A",
66 : "KEY_B",
67 : "KEY... |
/*
* Test Cases for the Troll Library
*/
describe('Troll', function() {
var troll = require('../');
troll.addStrategies([
troll.PREMADESTRATEGIES.PASSPORT
]);
var req = {
user: {
},
session: {
}
};
var res = {
redirect:function() {
thr... |
var Author = require('../models/Author');
var Video = require('../models/Video');
var async = require('async');
var _ = require('underscore');
exports.defaultGametype = function (video, next) {
video.gametype = "dota1";
next();
};
exports.authorDefaultGametype = function (video, next) {
Author.findOne({nam... |
// Service to manage the assembla options object. Stored in chrome.sstorage.sync
// so that it syncs across devices
angular.module("app")
.factory("assemblaOptionsService", ['$rootScope', '$filter', '$timeout', function($rootScope, $filter, $timeout) {
// Options Object
var aos = {
options: {},
status: {
... |
require('./common');
exports['Request to host with a script handler'] = function (test) {
antinode.start(settings, function() {
test_http(test, {
'method':'GET',
'pathname':'/',
'headers': { 'host' : 'scripthost.com' }
},... |
function renderChart(data) {
console.log(data)
var sad_percentage = Math.ceil(data.sad * 100/ data.total)
var happy_percentage = Math.ceil(data.happy * 100/ data.total)
var neutral_percentage = 100 - happy_percentage - sad_percentage
Highcharts.chart('feedback-chart', {
chart: {
... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h(h.f, null, h("path", {
d: "M18 13h5v7h-5z",
opacity: ".3"
}), h("path", {
d: "M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM2 4h18v5h2V4c0-1.11-... |
import { fileURLToPath } from "url";
import enhanced from "enhanced-resolve";
import sass from "sass";
import { getWebpackResolver } from "../src/utils";
/**
* Because `getWebpackResolver` is a public function that can be imported by
* external packages, we want to test it separately to ensure its API does not
* ... |
/*
* Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com)
*
* sisane: The stunning micro-library that helps you to develop easily
* AJAX web applications by using Angular.js 1.x & sisane-server
* sisane is distributed under the MIT License (MIT)
* Sources at https://github.... |
import {module} from 'angular';
import {DevToolsServiceProvider} from './dev-tools-service-provider';
import {DevToolsActionCreatorsService} from './dev-tools-action-creators-service';
export default module('ngReduxDevToolsServices', ['ngRedux'])
.provider('devToolsService', DevToolsServiceProvider)
.service('de... |
angular.module('peid.controllers.confirmCtrl', [])
.controller('ConfirmCtrl', function ($scope, $rootScope, BillSplitterService, ParseFunctionService, $location) {
"use strict";
var confirmCtrl = this;
this.getFormattedBreakdown = function (breakdown) {
var formattedBreakdown =... |
var assert = require('assert'),
brain = require("../brain");
var net = new brain.NeuralNetwork();
net.train([{input: {a: Math.random(), b: Math.random()},
output: {c: Math.random(), d: Math.random()}},
{input: {a: Math.random(), b: Math.random()},
output: {c: Math.random(), d:... |
(function () {
'use strict';
var module = angular.module('fim.base');
module.config(function($routeProvider) {
$routeProvider
.when('/activity/:engine/:section/:period', {
templateUrl: 'partials/activity.html',
controller: 'ActivityController'
});
});
module.controller('ActivityController', fun... |
import Icon from '../components/Icon.vue'
Icon.register({"vcard":{"width":2048,"height":1792,"paths":[{"d":"M1024 1131q0-64-9-117.5t-29.5-103-60.5-78-97-28.5q-6 4-30 18t-37.5 21.5-35.5 17.5-43 14.5-42 4.5-42-4.5-43-14.5-35.5-17.5-37.5-21.5-30-18q-57 0-97 28.5t-60.5 78-29.5 103-9 117.5 37 106.5 91 42.5h512q54 0 91-42.5... |
(function () {
var parent = window.parent;
//dialog对象
dialog = parent.$EDITORUI[window.frameElement.id.replace(/_iframe$/, '')];
//当前打开dialog的编辑器实例
editor = dialog.editor;
UE = parent.UE;
domUtils = UE.dom.domUtils;
utils = UE.utils;
browser = UE.browser;
ajax = UE.ajax;
... |
define ([
'jquery',
'underscore',
'backbone',
'models/song'],function($, _, Backbone, Song){
var SongView = Backbone.View.extend({
render : function(){
this.$el.html(this.model.get("title"));
return this;
}
})
return SongView;
});
|
import Ember from "ember";
import ModalBaseView from "./modal-base";
import Form from "./mixins/form-modal-mixin";
import Full from "./mixins/full-modal-mixin";
import Save from "./mixins/object-action-mixin";
import Row from "mb-test-1/models/row";
import Rack from "mb-test-1/models/rack";
var RackAddModal = ModalBas... |
function validTime(time) {
var h = Number(time.substr(0, 2));
var m = Number(time.substr(3));
return (h >= 0 && h < 24) && (m >= 0 && m < 60);
} |
/*!
* js-file-browser
* Copyright(c) 2011 Biotechnology Computing Facility, University of Arizona. See included LICENSE.txt file.
*
* With components from: Ext JS Library 3.3.1
* Copyright(c) 2006-2010 Sencha Inc.
* licensing@sencha.com
* http://www.sencha.com/license
*/
/*!
* Ext JS Library 3.3.1
* Copyrigh... |
import NewClass from '../components/newClass';
import {useDeps, composeWithTracker, composeAll} from 'mantra-core';
export const composer = ({context, clearNewClassState}, onData) => {
const {LocalState} = context();
const showModal = LocalState.get('SHOW_MODAL');
const error = LocalState.get('CREATE_CLASS_ERROR... |
import {
defaultAction,
} from '../actions';
import {
DEFAULT_ACTION,
} from '../constants';
describe('SignUpPage actions', () => {
describe('Default Action', () => {
it('has a type of DEFAULT_ACTION', () => {
const expected = {
type: DEFAULT_ACTION,
};
expect(defaultAction()).toEq... |
var class_etat =
[
[ "~Etat", "class_etat.html#a00bde3e769da5523e194a780ca95f7f7", null ],
[ "afficherChoixEtat", "class_etat.html#ad76848f13da0e8e7f690a745e3075ab2", null ],
[ "finTour", "class_etat.html#a41a3505b7477318292582ae544e7e0dd", null ]
]; |
import uiRouter from '@uirouter/angularjs'
export default uiRouter
|
import td from 'testdouble'
import Repository from './repository.js'
import FireHose from './fireHose.js'
import AppLogic from './app.js'
test('adding a query turns on the firehose', () => {
let mockRepository = td.constructor(Repository);
let mockFireHose = td.constructor(FireHose);
let fireHose = new mo... |
angular.module('mainModule').run(['$templateCache', function($templateCache) {
$templateCache.put('modal/conceptsModal copy.html',
"<div class=\"modal-header\">\n <h3>Add new concept</h3>\n</div>\n<div class=\"modal-body\">\n <label for=\"term\">Term</label>\n <input type=\"text\" class=\"form-control\... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define("require exports ../../../core/Logger ../../../core/libs/gl-matrix-2/vec3 ../../../core/libs/gl-matrix-2/vec3f64 ./projection ../../../views/3d/support/proj... |
export default {
region: 'Região',
calling: 'Chamadas',
logout: 'Logout',
version: 'Versão',
settings: 'Configurações',
clickToDial: 'Clique para discar',
autoCreateLog: 'Criar log de chamadas automaticamente',
autoCreateSMSLog: 'Criar log de SMS automaticamente',
autoLogCalls: 'Registrar chamadas aut... |
app.factory('mapService', ['$rootScope', function($rootScope) {
var markers = [];
var map;
var newLat = 0;
var newLong = 0;
var canAddMarker = false;
var eventtemp;
var serverUrl = "http://api.the-mesta.com";
var firstTimeAddingMarker = true;
var image = 'https://nmc.ae/site-images/... |
import { @dataProvider } from '@jymfony/decorators';
import { expect } from 'chai';
const DateTime = Jymfony.Component.DateTime.DateTime;
const InvalidArgumentException = Jymfony.Contracts.Cache.Exception.InvalidArgumentException;
const NotUnserializable = Jymfony.Component.Cache.Fixtures.NotUnserializable;
const Prun... |
(function($, angular) {
"use strict";
ctrl.$inject = ["$scope", "widgets", "$stateParams", "$state"];
function ctrl($scope, widgets, $stateParams, $state) {
if ($stateParams.widgetId) {
widgets.get($stateParams.widgetId).then(function(results) {
$scope.widget = results.data;
});
} else {
$scope.... |
import React from 'react';
import { render } from 'react-testing-library';
import { MemoryRouter } from 'react-router-dom';
import ThemeProvider from '../theme/Provider';
import FriendDetail from './FriendDetail';
describe('./friend-detail/FriendDetail', () => {
it('renders loading if friend isn`t loaded yet', () =... |
// Inclusion de Mongoose
var mongoose = require('../libs/mongoose').mongoose;
var Schema = require('../libs/mongoose').Schema;
var crypto = require('crypto');
var log = require('../libs/log')(module);
var Metakeys = new Schema({
value: {
type: String,
required: true
},
... |
import React, { Component, PropTypes } from 'react';
import { observer } from 'mobx-react'
export const tabelHelper = Target =>
@observer class TabDecorator extends Component {
static propTypes = {
children: PropTypes.oneOfType(
[
PropTypes.element,
PropType... |
'use strict';
module.exports = Object.assign({
PORT: 3333,
MONGODB_URI: 'localhost/vihta',
REGION: 'ap-northeast-1',
BUCKET_NAME: 'vihta',
NODE_ENV: 'production'
}, process.env);
|
/*
* Copyright 2016 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
var emitter = require("emitter");
var buzz = require("buzz");
module.exports = function(){
console.log('init');
var mySound1 = new buzz.sound("lib/sounds/click.mp3"),
mySound2 = new buzz.sound("lib/sounds/pop.mp3"),
mySound3 = new buzz.sound("lib/sounds/wedge.mp3");
buzz.all().play();
} |
'use strict'
const modelHelper = require('./model-helper')
const authHelper = require('./auth-helper')
const fs = require('fs')
const path = require('path')
/**
* This module reads in all the model files and generates the corresponding mongoose models.
* @param mongoose
* @param logger
* @param config
* @returns... |
var expect = require('expect.js');
var experience = require('../');
describe('travis test', function () {
it('should work', function () {
expect(1).to.be.ok();
});
});
|
// background.js
// Does everything.
var populate_tabs = function (callback) {
// Loop through all the windows.
chrome.windows.getAll({ populate: true }, function (windows) {
var tabs = [];
console.log(windows);
for (var i = 0; i < windows.length; i++) {
if (windows[i].type == "normal") {
for (var j = ... |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function update () {
exports.foo += 10;
}
exports.foo = 10;
function update$1 () {
exports.bar++;
}
exports.bar = 10;
function update$2 () {
++exports.baz;
}
exports.baz = 10;
console.log(exports.foo);
update();
console.log(expor... |
angular.module('macysApp')
.service('storeService', function($http) {
//ADD/DELETE PRODUCTS
this.getAllProductData = function() {
return $http({
method: 'GET',
url: '/api/products'
});
};
this.getOneProduct = function() {
return $http({
method: 'GET',
... |
var fs = require("fs");
Scene = {
name : "Moving in circles",
plugins: [
require("../../plugins/simulation/plugin.js"),
require("../../plugins/controls/plugin.js"),
//require("../../plugins/log/plugin.js"),
require("../../plugins/chart/plugin.js"),
require("../../plugins/processing/plugin.js"... |
var fs=require('fs');
module.exports.get=function(req,res){
var event=fs.readFileSync('app/data/event/'+req.params.id+'.json','utf8');
res.setHeader("Content-Type","application/json");
res.send(event);
}
module.exports.save=function(req,res){
var event=req.body;
debugger;
fs.writeFileSync... |
const helpers = require('./helpers');
const SSReporter = require('protractor-jasmine2-screenshot-reporter');
const screenshotReporter = new SSReporter ({
dest: 'coverage/protractor',
cleanDestination: true,
pathBuilder: function(currentSpec, suites, browserCapabilities) {
return browserCapabilities... |
var gulp = require('gulp');
var plumber = require('gulp-plumber');
var notify = require('gulp-notify');
var gutil = require('gulp-util');
var gulpsass = require('gulp-sass');
var cssnano = require('gulp-cssnano');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var sourcemaps = require('gulp-s... |
import createTest from '@r/platform/createTest';
import { models } from '@r/api-client';
const { PostModel } = models; // adActions.RECEIVED calls model.toRecord
// so we need to test with a PostModel
import * as loginActions from 'app/actions/login';
import * as adActions from 'app/actions/ads';
import adRequests, {... |
import ToolTip from "ember-flex-modules/components/tool-tip";
export default ToolTip;
|
import { FETCHED_VIDEO_DETAILS } from '../actions'
const initialState = {
id:'',
title:'',
description:'',
rating:0,
views:0
}
const filmDetails = (state = initialState, action) => {
//console.log("reducer-filmdetails.js: default ", action, state);
switch (action.type) {
case FETCHED... |
'use strict'
var logger = require('../logger').child({component: 'mysql'})
var shimmer = require('../shimmer')
var parseSql = require('../db/parse-sql')
var MYSQL = require('../metrics/names').MYSQL
var dbutil = require('../db/util')
module.exports = function initialize(agent, mysql) {
var tracer = agent.tracer
... |
var test = require('tape');
var icon = require('../icon');
test('about icon', function (t) {
var proc = {};
t.equal(icon.dp(63, proc), 6);
t.deepEqual(icon.getMount(63,proc), [2, 1, 0, 3])
t.deepEqual(icon.greed(63), [2, 1, 0, 3])
t.end();
})
|
'use strict';
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _reactTestRenderer = require('react-test-renderer');
var _reactTestRenderer2 = _interopRequireDefault(_reactTestRenderer);
require('jest-styled-components');
var _BotText = require('./BotText');
var _BotText2 = _intero... |
var spawn = require('child_process').spawn;
var result = function(str, cb){
var obj = splitCommandParams(str);
var command = obj.command,
params = obj.params;
var child = obj.hasParams ? spawn(command, params) : spawn(command);
return cb(child);
}
function splitCommandParams(str){
var splits = str.split(' ')... |
const { basename } = require('path')
const dir = basename(__dirname)
module.exports = {
...require('../../.mdeprc.js'),
"nycCoverage": false,
"coverage": false,
"auto_compose": true,
"node": "16",
"tester_flavour": "rdkafka-tester",
http: false,
"test_framework": "jest --config ./jest.config.js --runTe... |
import React from 'react';
import { connect } from 'react-redux';
import { searchActions } from '../../../core/search';
import ContentHeader from '../../components/content-header';
import Tracklist from '../../components/tracklist';
import PropTypes from 'prop-types';
export class SearchPage extends React.Component ... |
/* global define */
define(function(require) {
var $ = window.$;
var debug = require('./debug');
var config = require('./config');
var dataStatus = 'data-network-status';
debug('log');
var failCode = {
'NETWORK_ERROR' : 500,
'REQUEST_ERROR' : 400
};
var body = $('body'... |
self.importScripts('sudokuc.js');
const resultGrid = [];
let gridPtr = null;
const workingSeeds = [];
let workingSeedsHash = {};
function makeGridFromResult() {
for(let i=0, y=1; y<=9; y++) {
for(let x=1; x<=9; x++) {
resultGrid[y][x] = Module.HEAPU32[(gridPtr / Uint32Array.BYTES_PER_ELEMENT) ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.