code stringlengths 2 1.05M |
|---|
// karma for the moment doesn't support es6/babel,
// so this file should be used with the wrapper karma.conf.js.
import webpackConfig from './webpack.config.babel';
process.env.BABEL_ENV = 'test';
webpackConfig.externals = {
'react/addons': true,
'react/lib/ExecutionEnvironment': true,
'react/lib/ReactContext'... |
export const init = () => {
document.body.style.backgroundColor = '#fff';
let progressBar = document.getElementById('progress-bar-container');
progressBar.style.background = 'white';
progressBar = progressBar.children[0];
if (progressBar) {
window.addEventListener('scroll', () => {
const winScroll... |
import constants from '../constants';
const initialState = [];
/**
* List of platforms services
*
* **Actions listened**:
*
* * `FETCH_PLATFORMS_SERVICES`
* * `SUBSCRIBE_PLATFORMS_SERVICE`
* * `UNSUBSCRIBE_PLATFORMS_SERVICE`
*
* @alias module:Platforms.services
* @category reducers
*
* @example
* // g... |
define([ '../../commons/TemplateView', 'text!./LoginView.html' ],
function(TemplateView, template) {
var View = TemplateView.extend({
template : _.template(template),
renderNotLoggedBlock : function(elm) {
if (this.isLogged()) {
elm.hide();
} else {
... |
var through = require( 'through' );
var CleanCSS = require( 'clean-css' );
var path = require( 'path' );
module.exports = function( file, opts ) {
var data = '';
if( file !== undefined && path.extname( file ) !== '.css' )
return through();
else
return through( write, end );
function write( buf ) {
data += b... |
import { ApolloClient, createNetworkInterface } from 'react-apollo';
const networkInterface = createNetworkInterface({
uri: 'http://localhost:5000/graphql',
opts: { credentials: 'include' },
});
export default new ApolloClient({ networkInterface });
|
//モジュールの定義
var myApp = angular.module('mySimpleApp',[]);
//コントローラーの定義
myApp.controller('MySimpleController', function() {
this.message = 'initial message';
this.greet = function() {
this.message = 'hello!!';
};
});
|
action('Run a command for each package')
describe('Runs an npm script for each package')
cli(function (program, dispatch){
var action = this
program
.command('each <group>')
.description('run commands in each project')
.option('--group <group>', 'which type of folders do you want to loop over? projec... |
version https://git-lfs.github.com/spec/v1
oid sha256:79b7a66b7356042ff141c5794acbfb685d087edc73cbbe9e749afd3ca22b1f51
size 1001
|
/**
* @module loaders
* @license MIT
* @version 2018/03/30
*/
import { join } from 'path';
import * as utils from './utils';
import lifecycle from './lifecycle';
import * as gutil from '@nuintun/gulp-util';
import jsPackager from './builtins/packagers/js';
/**
* @function registerLoader
* @param {string} loader... |
export async function up(knex) {
await knex.schema.table('users', (table) => {
table.timestamp('notifications_read_at');
});
}
export async function down(knex) {
await knex.schema.table('users', (table) => {
table.dropColumn('notifications_read_at');
});
}
|
'use strict';
/**
* @ngdoc service
* @name learnAngularApp.Auth
* @description
* # Auth
* Factory in the learnAngularApp.
*/
angular.module('learnAngularApp')
.factory('Auth', function ($cookieStore, ACCESS_LEVELS) {
// Service logic
var _user = $cookieStore.get('user');
var setUser = function (us... |
var bodyParser = require('body-parser');
var express = require('express');
var app = express();
// Database reference is stored in global.db
// Static directories
app.use(express.static('public', { index: false }));
app.use(express.static('node_modules/angular'));
app.use(express.static('node_modules/angular-route'))... |
function SetLBD(lineId) {
this.lineId = parseInt(lineId);
}
/* 2094476, Receive SETLBD, line 1 */
SetLBD.REGEX = /Receive SETLBD, line (\d+)/
SetLBD.fromMessage = function(message) {
var matches;
if ( matches = message.match(SetLBD.REGEX) ) {
return new SetLBD(matches[1]);
}
throw new Error("Message no... |
import deepfreeze from 'deepfreeze';
import filterSectionExamples from '../filterSectionExamples';
const section = deepfreeze({
content: ['a', 'b', 'c', 'd'],
other: 'info',
});
describe('filterSectionExamples', () => {
it('should return a shallow copy of a section with example filtered by given index', () => {
... |
import React from 'react'
import NewBookmark from './NewBookmark'
import Bookmark from './Bookmark'
import ListGroup from './ListGroup'
import ListGroupItem from './ListGroupItem'
import BookmarkEditor from '../containers/BookmarkEditor'
export default function BookmarksList ({ bookmarks, handleCancelEditing, handleC... |
/**
* Created by leo on 3/24/15.
*/
angular
.module('portalApp', ['ngMaterial','Dashboard', 'coverages','Analysis','Download','highcharts-ng','ui.bootstrap','openlayers-directive'])
.constant("ApplicationTitle","HMIS - Web Portal")
.config(function($mdThemingProvider, $mdIconProvider){
$mdIconP... |
'use strict';
// Use applicaion configuration module to register a new module
ApplicationConfiguration.registerModule('storyparts'); |
// imports babel-core/register and logs to console
process.stdout.write('\nbabel-registering ... ');
require('babel-core/register')({
presets: ["es2015"],
ignore: false,
only: ["brush-javascript/*","brush-base/*","syntaxhighlighter-html-renderer"+
"/*","syntaxhighlighter-regex/*","syntaxhighlighter-match/*"],
com... |
module.exports = function(grunt) {
// Requires
require('jit-grunt')(grunt);
var fs=require('fs'),
child_process=require('child_process');
// Get library name
var excludes=['.','..','ender.js','footer.js'],
files=fs.readdirSync('src'),
name,i,j;
if(files.indexOf('header.js')!==-1){
name='header.js';
}
... |
const sinon = require('sinon')
const tap = require('tap')
const { ArgumentError } = require('@lib')
const { container } = require('@lib/build')
tap.beforeEach((done, setUp) => {
const internalContainer = {}
setUp.context.internalContainer = internalContainer
setUp.context.container = container(in... |
var connection = require('../connection');
// CRUD function
function Server() {
// Create
this.create = function(obj, res) {
connection.acquire(function(err, con) {
con.query('insert into users set ?', obj, function(err, result) {
con.release();
... |
'use strict';
module.exports = {
resize: require('./lib/resize')
};
|
// Adapted from the AngularJS Developer Guide (https://docs.angularjs.org/guide),
// which is licensed under the MIT license; see file LICENSE.
angular.module('app').directive('addMouseover', function($compile) {
return {
link: function(scope, element, attrs) {
var newEl = angular.element('<span ng-show="s... |
import Slick from './slick.core';
import $ from 'jquery';
const Aggregators = {
Avg: AvgAggregator,
Min: MinAggregator,
Max: MaxAggregator,
Sum: SumAggregator
};
const Data = {
DataView,
Aggregators
};
export default Data;
Slick.Data = Data;
/** *
* A sample Model implementation.
* Provides a filtered... |
jQuery(window).load(function(){
jQuery('.owl-carousel').owlCarousel({
items: 1,
loop:true,
autoplay: true,
dots:true
});
}); |
/**
* This file/module contains all configuration for the build process.
*/
module.exports = {
/**
* The `build_dir` folder is where our projects are compiled during
* development and the `compile_dir` folder is where our app resides once it's
* completely built.
*/
base_dir: 'dist/',
build_dir: 'di... |
import { combineReducers } from 'redux';
import SearchedBooks from './reducer_search'
import WishlistAction from './reducer_wishlist_actions'
import Wishlist from './reducer_wishlist.js'
import CurrentlyReadingAction from './reducer_currently_reading_actions'
import CurrentlyReading from './reducer_currently_reading.js... |
'use strict';
const chalk = require('chalk');
const yosay = require('yosay');
const underscoreString = require('underscore.string');
const Generator = require('yeoman-generator');
const setupPlaygorund = require('./playground');
module.exports = class extends Generator {
constructor(args, opts) {
super(args, op... |
module.exports = function(proxy) {
module.exports = proxy;
};
|
define([
"angular",
"resumeService",
"mountainsService",
"treeService",
"seasonService",
"resumeController",
'uiBootstrap'],
function(
angular,
resumeService,
mountainsService,
treeService,
seasonService,
resumeController) {
"use strict";
return angular.module("app", ... |
var express = require('express');
var router = express.Router();
var request = require('request');
var Q = require('q');
function scrape(options) {
'use strict';
var defer = Q.defer();
request(options, function (err, res, body) {
if (err) { return defer.reject(err); }
if (res.statusCode === 200) { ... |
import {
EDITING_NODE_STATES,
CANCEL_EDITING_NODE_STATES,
SAVE_EDITING_NODE_STATES,
} from 'constants/editing-node-states';
import { path, pick, pipe } from 'ramda';
const pickNodeProps = pick(['id', 'cpt', 'states', 'parents']);
const pathPayloadNode = path(['payload', 'node']);
const getNodeFromAction = pipe(p... |
const fs = require('fs');
const os = require('os');
//Append File
console.log('Starting app');
fs.appendFile('greetings.txt','Hello world!',function(err){
if(err) console.log('unable to write to file!');
});
//print user info using OS module
fs.appendFile('greetings.txt','Hello'+user.username + '!',function(err... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const semver_1 = require("semver");
const chalk_1 = require("chalk");
const common_tags_1 = require("common-tags");
const fs_1 = require("fs");
const path = require("path");
const config_1 = require("../models/config");
const find_up_1 = requi... |
'use strict';
var ns = require('../lib/index.js');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
test.notEqual(actual, expected, [me... |
// numeral.js language configuration
// language : Ukrainian for the Ukraine (uk-ua)
// author : Michael Piefel : https://github.com/piefel (with help from Tetyana Kuzmenko)
(function () {
var language = {
delimiters: {
thousands: ' ',
decimal: ','
},
abbreviations: {... |
Template.songArrangement.helpers({
getOrder: function () {
var out = [];
for (var i in this.order) {
out.push({
title: songsections.findOne(this.order[i]).title,
index: i
});
}
return out;
},
sections: function () ... |
import { c } from 'ttag';
import { makeStyles } from '@material-ui/core/styles';
const NEWS = {
en_US: [
[
'2018-11-22 Quartz',
'How Taiwan battled fake anti-LGBT news before its vote on same-sex marriage',
'https://qz.com/1471411/chat-apps-like-line-spread-anti-lgbt-fake-news-before-taiwan-sam... |
toastr.options = {
"closeButton": true,
"debug": false,
"progressBar": true,
"preventDuplicates": true,
"positionClass": "toast-top-right",
"onclick": null,
"showDuration": "400",
"hideDuration": "1000",
"timeOut": "5000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",... |
var fileName = process.argv[2];
var fs = require('fs');
var fileStream = fs.createReadStream(fileName);
fileStream.pipe(process.stdout);
|
(function() {
console.log("Experimenting with Web.");
}).call(this);
//# sourceMappingURL=interact.js.map
|
'use strict';
let appRoot = require('app-root-path');
let dir = {
appRoot : appRoot,
imageDir : '/images/',
imageFullPath : appRoot + '/public/images/'
};
module.exports = dir; |
// Dependencies
var
vows = require('vows')
, chai = require('chai')
, Mailjet = require('../index')
, fixtures = require('./fixtures')
, EventEmitter = require('events').EventEmitter
, suite = vows.describe('Help Methods')
, assert = chai.assert
, expect ... |
/* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
/* eslint-env jest */
import setMeta from '../setMeta';
const TestField = 'testField';
const TestValue = 'testValue';
const TestValueGetter = () => TestValue;
describe('`setMeta`', () => {
it('should return ActionEnhancer', () => ... |
import { CIRCLES_DATA_REQUEST } from './constants';
export const fetchPageData = () => ({
type: CIRCLES_DATA_REQUEST
});
|
/**
* jQuery UI PersonContacts Widget
*
* @copyright 2015 (c) Sahana Software Foundation
* @license MIT
*/
(function($, undefined) {
"use strict";
var personcontactsID = 0;
/**
* Person Contacts Widget
*/
$.widget('s3.personcontacts', {
/**
* Default options
*... |
'use strict';
angular
.module('<%= appName %>')
.controller('BodyCtrl', ['$scope',function ($scope) {
function render(){
$scope.start = true;
}
function defineFunctions(){
}
function init(){
render();
... |
"use strict";
var applyDefaults = require('ops').applyDefaults;
var Ctx = function (value, options) {
this.value = value;
this.options = applyDefaults(options, this.getDefaultOptions());
this.key = null;
this.keyAsValue = false; // allows to use key as value in validators
this.stack = [];
this.warnings = [];
... |
import * as ActionTypes from '../actions/actionTypes';
import initialState from './initialState';
export default function comments(state = initialState.comments, action){
console.log(state, action);
return state;
} |
{
function report(extra) {
console.log(
blue(path.relative(process.cwd(), dest)) +
" " +
getSize(code) +
(extra || "")
);
resolve();
}
fs.writeFile(dest, code, err => {
if (err) return reject(err);
if (zip) {
zlib.gzip(code, (err, zipped) => {
if (... |
export default function() {
return `
<md-button
class="md-sidemenu-button"
layout="column">
<div layout="row" layout-fill layout-align="start center" ng-transclude></div>
</md-button>
`;
}
|
'use strict';
const util = require('util');
/**
* The Greeter class is an example code fragment to demonstrate that
* this package is targetting ES6.
*/
class Greeter {
/**
* Initialize a new Greeter
* @param {string} name - Name of person to greet.
*/
constructor(name) {
this._name = nam... |
import {combineReducers} from 'redux';
import home from './home-reducer';
import portfolio from './portfolio-reducer';
import skills from './skills-reducer';
import posts from './posts-reducer';
export default combineReducers({
home,
portfolio,
skills,
posts
}); |
version https://git-lfs.github.com/spec/v1
oid sha256:180a010fa0e77ff836c2f61a5eabb5e471838b267a837ba7915c1a9a00627501
size 2463
|
$(function() {
$("#contactForm input,#contactForm textarea").jqBootstrapValidation({
preventSubmit: true,
submitError: function($form, event, errors) {
// additional error messages or events
},
submitSuccess: function($form, event) {
event.preventDefault(); // prevent default submit behav... |
'use strict';
var _ = require('lodash');
/**
* checks if `source` has conflicting (matching) properties on `target`
* @param {Object} target
* @param {Object} source
* @return {Boolean}
*/
function hasConflicts(target, source) {
var found = _.some(source, function(val, key) {
return target.hasOwn... |
angular.module('app').factory('ReportService', function ($browser, HttpHelper) {
var fac = {};
var baseHref = $browser.baseHref();
fac.getTesterCertReport = function (req) {
return HttpHelper.post([baseHref, 'api/Report/GetTesterCertReport'].join(''), req);
};
fac.getManagementReport = function ()... |
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
browserify: {
dist : {
files: {
"dist/main.min.js": [
"src/js/bootstrap.js",
],
}
}... |
var JSZip = require("jszip");
module.exports=router=(app)=>{
app.post('/api/export', function (req, res) {
const langs=JSON.parse(req.body.langs);
const keys=JSON.parse(req.body.keys);
const fileData={};
const zip = new JSZip();
langs.forEach((lang)=>{
... |
'use strict';
export default function routes($stateProvider) {
'ngInject';
$stateProvider.state('login', {
url: '/login',
template: require('./login/login.pug'),
controller: 'LoginController',
controllerAs: 'vm'
})
.state('logout', {
url: '/logout?referrer',
referrer: 'main',
... |
class CartCoinsController {
constructor(CoinsService, $log, CartService) {
this.$log = $log;
this.CartService = CartService;
this.totalCoins = 0;
this.totalDollars = 0;
}
ifEmpty(value) {
switch (value !== '' && value !== undefined) {
case true:
... |
var class_line_finder =
[
[ "LineFinder", "class_line_finder.html#ac9a83317df7ff3d74a9add150962e849", null ],
[ "drawDetectedLines", "class_line_finder.html#ad2d077e990853e75a4f6140ce21b95f0", null ],
[ "findLines", "class_line_finder.html#aac1d14a1cf1dfc4e9c241b6dcda6fe6b", null ],
[ "removeLinesOfInco... |
"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 index_1 = require("fcore/dist/index");
var E... |
var createNonceStr = function() {
return Math.random().toString(36).substr(2, 15);
};
var createTimestamp = function() {
return parseInt(new Date().getTime() / 1000) + '';
};
var raw = function(args) {
var keys = Object.keys(args);
keys = keys.sort()
var newArgs = {};
keys.forEach(function(key... |
var LoTP = LoTP || {};
LoTP.lSelect = function() {};
LoTP.lSelect.prototype = {
preload: function () {
mode = "lS";
this.back = this.add.sprite(this.world.centerX,this.world.centerY,"back");
this.back.anchor.setTo(0.5,0.5);
this.btn1 = this.add.sp... |
'use strict';
const Generate = require('../generators/generator.js')
/**
* @param {Object} args
* @param {Function} callback
*/
module.exports = function (args, callback) {
if (args.type === 'module') {
Generate.module(args.name);
} else if (args.type === 'component') {
if (args.options.st... |
/*
* Kendo UI v2014.2.1008 (http://www.telerik.com/kendo-ui)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial lice... |
angular.module('FreeKernelJsDemoApp')
.config(function($stateProvider, $urlRouterProvider){
// ~~~ Redirects and Otherwise
$urlRouterProvider
.otherwise( '/home' );
// ~~~ State Configurations
$stateProvider
.state('home', {
ur... |
'use strict';
const childProcess = require('child_process');
const path = require('path');
const CONFIG = require('../config');
module.exports = function(ci) {
verifyNode();
verifyNpm(ci);
verifyPython();
};
function verifyNode() {
const fullVersion = process.versions.node;
const majorVersion = fullVersio... |
import Polymer from '../polymer';
require('../components/state-info');
require('./state-card-display');
export default new Polymer({
is: 'state-card-configurator',
properties: {
stateObj: {
type: Object,
},
},
});
|
import pkg from '../../../package.json';
import titleCase from 'title-case';
export const name = (state = titleCase(pkg.name), action) => state; |
export class App extends Object {}
|
//Actions
import { checkHttpStatus, parseJSON } from '../../../utils'
import { push } from 'react-router-redux'
import jwtDecode from 'jwt-decode';
import fetch from 'isomorphic-fetch'
import _ from 'lodash'
const AUTH_URI = 'http://wallet.zlto.mobi'
export const LOGIN_USER_REQUEST = 'LOGIN_USER_REQUEST'
export const ... |
define(function (require) {
var Config = require('models/config');
var CloudSight = require('models/cloud-sight');
var Sabre = require('models/sabre');
var ImageModel = require('models/image');
var Images = require('collections/image');
var _ = require('underscore');
var Bootstrap = r... |
var OAuth2Strategy = require('passport-oauth2'),
InternalOAuthError = require('passport-oauth2').InternalOAuthError,
util = require('util');
/**
* `Strategy` constructor.
*
* @param {Object} options
* @param {Function} verify
* @api public
*/
function Strategy(options, verify) {
options = options || {}... |
'use strict';
let Document;
const get = require('lodash.get');
const utils = require('../../utils');
/*!
* exports
*/
exports.compile = compile;
exports.defineKey = defineKey;
/*!
* Compiles schemas.
*/
function compile(tree, proto, prefix, options) {
Document = Document || require('../../document');
var k... |
import * as React from 'react';
import {findDOMNode} from 'react-dom';
import invariant from 'invariant';
import Manager from '../Manager';
import {isSortableHandle} from '../SortableHandle';
import {
cloneNode,
closest,
events,
getScrollingParent,
getContainerGridGap,
getEdgeOffset,
getElementMargin,
... |
"use strict";
let datafire = require('datafire');
let openapi = require('./openapi.json');
module.exports = datafire.Integration.fromOpenAPI(openapi, "azure_sql_databasevulnerabilityassessmentscans"); |
(function(){var d,q=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,r=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,s=/[^-+\dA-Z]/g,e=function(a,b){a=String(a);for(b=b||2;a.length<b;)a="0"+a;return a};d=function(a,... |
import {
LOGIN_REQUEST_PENDING,
LOGIN_REQUEST_SUCCESS,
LOGIN_REQUEST_FAILURE,
} from "./ActionTypes";
import { GraphQLClient, authenticateGraphQLClient } from "../Core";
import { LOG_IN } from "Auth/graphql/queries";
import { fetchUser } from "../User/actions";
export const logIn = (email, password) => {
ret... |
function makeSandwich(magic){
// var magic = "peanut butter";
function make(filling){
return magic + " and " + filling;
}
return make;
}
var a = makeSandwich("one")
var b = makeSandwich("b");
console.log(
a("a1"),'\n',
b("b2")
);
// console.log(a("a2"));
// 通过对闭包的使用,在执行第一个函数makeSandwich(magic)时传入了第一个,并通... |
'use strict';
/**
* Module dependencies.
*/
var users = require('../../app/controllers/users.server.controller'),
events = require('../../app/controllers/events.server.controller');
module.exports = function(app) {
// Event Routes
app.route('/events')
.get(events.list)
// .post(users.requiresLogin, events.cr... |
var DFPPlugin = {
createBannerAd : function (options, successCallback, failureCallback) {
var defaults = {
'adUnitId': undefined,
'adSize': undefined,
'tags': undefined,
'networkId': undefined
};
var requiredOptions = ['adUnitId', 'adSize'];
... |
var s_slider = document.getElementById('s_slider'); //获取大盒子
var slider_block = s_slider.children[0].children[0]; //获取block盒子
var slider_ctrl = s_slider.children[1]; //获取控制盒子
var imgs = slider_block.children; //获取装img的盒子
var sliderWidth = s_slider.offsetWidth; //轮播图盒子宽度
var spans = slider_ctrl.children; //sp... |
'use strict'
const BLUE = 'rgba(45, 144, 232, 1)'
const BLUE_LIGHT = 'rgba(45, 144, 232, .15)'
const WHITE = '#ffffff'
const LIGHT = '#f5f5f5'
const MID = '#ececec'
const DARK = '#333333'
module.exports = {
BLUE,
BLUE_LIGHT,
WHITE,
LIGHT,
MID,
DARK
} |
const jwt = require('jsonwebtoken')
/**
* Creates a JWT Bearer token string based on passed in private key and information for how long it should be valid for.
*
* @param {Object} key see #fetchWithAuthentication for the value of this property
* @param {number} issuedAt Date in seconds when the token should be iss... |
import { combineReducers } from 'redux'
import { routeReducer } from 'redux-simple-router'
import {reducer as formReducer} from 'redux-form'
import counter from './counter'
import auth from './auth'
import getquotes from './getquotes'
import getquote from './quote'
import profile from './profile'
export default combin... |
/**
* Daozhishi entry point
*/
'use strict';
// HTTP Framework & Routers
const Koa = require('koa');
const KRouter = require('koa-router');
const kBodyParser = require('koa-bodyparser');
const kCompress = require('koa-compress');
const kError = require('koa-error');
const KIo = require('koa-socket');
const kCors = ... |
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
'use strict';
( function() {
CKEDITOR.dialog.add( 'codeSnippet', function( editor ) {
var snippetLangs = editor._.codesnippet.langs,
lang = e... |
const vscode = require('vscode');
const jscpd = require('jscpd');
const path = require('path');
const showLines = require('./showLines');
const reportProvider = require('./reportProvider');
function activate(context) {
const jscpd_inst = new jscpd();
const jscpdSchema = 'jscpd';
let provider = new reportProvid... |
'use strict';
/**
* @ngdoc function
* @name exiaSecuDemoWebApp.controller:SigninCtrl
* @description
* # SigninCtrl
* Controller of the exiaSecuDemoWebApp
*/
angular.module('exiaSecuDemoWebApp')
.controller('SigninCtrl', function ($scope, $location, AuthService, $window) {
$scope.email = $scope.password... |
var NNViz = (function(nnviz, _) {
nnviz.geometry = {
numColumns: function(numLayers) {
return ((numLayers * 2) - 1);
},
colWidth: function(numColumns, canvasWidth) {
return (canvasWidth / numColumns);
},
/** calculates the radius of the nodes with... |
import { PLATFORM } from "aurelia-pal"
export function configure(config) {
config
.globalResources(PLATFORM.moduleName("./value-converters/date-format"))
.globalResources(PLATFORM.moduleName("./value-converters/number-format"))
.globalResources(PLATFORM.moduleName("./value-converters/keys"))
.globalResourc... |
/*! jQuery.scrollpanel 0.1 - //larsjung.de/scrollpanel - MIT License */
(function ($) {
'use strict';
var $window = $(window),
name = 'scrollpanel',
defaults = {
prefix: 'sp-'
},
// Scrollpanel
// ===========
ScrollPanel = function (element, options) {
var self = this;
// Main reference.
... |
var sql = require('mssql');
import * as GRACTION from "../../../actions/production/gr/GRConst.js"
import * as GRSTATE from "../../../actions/production/gr/GRState.js"
import * as CONNECT from "../../../const/production/SQLConst.js"
import * as MISC from "../../../const/production/Misc.js"
var sql1Cnt=0;
const ATTEMPTS... |
version https://git-lfs.github.com/spec/v1
oid sha256:35a448ed0bc3c957371fd80eca373d601140c99bca65ec44fb8b60e91c2337b2
size 1083
|
/**
*
*
*
**/
Physijs.scripts.worker = 'libs/physijs_worker.js';
Physijs.scripts.ammo = 'ammo.js';
var Chemist = {
Version : 0.1,
type : {
vessel : "vessel",
container : "container",
platform : "platform",
virtual : "virtual",
i... |
import { OHIF } from 'meteor/ohif:core';
import { Viewerbase } from 'meteor/ohif:viewerbase';
(function($, cornerstone, cornerstoneMath, cornerstoneTools) {
'use strict';
var toolType = 'bidirectional';
const toolDefaultStates = Viewerbase.toolManager.getToolDefaultStates();
const shadowConfig = too... |
'use strict';
var es = require('event-stream');
var tinylr = require('tiny-lr');
var relative = require('path').relative;
var _pick = require('lodash.pick');
var _assign = require('lodash.assign');
var debug = require('debug')('gulp:livereload');
var options = {};
module.exports = exports = function(opts) {
options... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.