code stringlengths 2 1.05M |
|---|
import Immutable from "immutable";
import {Apis} from "sbitjs-ws";
import ChainTypes from "./ChainTypes";
import ChainValidation from "./ChainValidation";
import BigInteger from "bigi";
import ee from "./EmitterInstance";
const {object_type,impl_object_type} = ChainTypes;
let emitter = ee();
let op_history = parseIn... |
'use strict';
var _ = require('underscore'),
colors = require('colors/safe');
var prefix = colors.cyan('<npack>');
var addPreffix = function(args) {
args = _(args).clone();
if (args.length && _.isString(args[0])) {
args[0] = prefix + ' ' + args[0];
} else {
args.unshift(prefix);
}
return args;
};
export... |
/* eslint-disable no-console */
const fsp = require('fs-promise');
const cp = require('child_process');
const webpack = require('webpack');
const webpackConfig = require('../webpack.config');
function buildClient() {
return new Promise((resolve, reject) => {
webpack(webpackConfig).run((err, stats) => {
if... |
/*
* Timeliner.js
* @version 1.5.1
* @copyright Tarek Anandan (http://www.technotarek.com)
*/
;
(function(e) {
var t;
e.timeliner = function(n) {
t = jQuery.extend({
timelineContainer: "#timelineContainer",
startState: "closed",
startOpen: [],
... |
initSidebarItems({"struct":[["Background","Handle to the reactor running on a background thread."],["Handle","A reference to a reactor."],["PollEvented2","Associates an I/O resource that implements the `std::io::Read` and/or `std::io::Write` traits with the reactor that drives it."],["Reactor","The core reactor, or eve... |
// pngy by Nathan Ford - pngy.artequalswork.com
pngy = function (ob) {
var defaults = {
loadspeed : false,
loadsize : false,
selector : '.pngy',
display_results : false,
apply_to_all_imgs: false,
limits : {
fast : 40,
normal : 10,
slow : 0
},
base: 'slow'
}, p = new Object(), inittime;
... |
/**
*
*/
angular.module( 'sp4k.parents.items', [
'resources.parents',
'ui.router'
])
.config(function config( $stateProvider ) {
})
/**
* And of course we define a controller for our route.
*/
.controller( 'ParentsItemsCtrl', function ParentsItemsController(
$scope, $mdSi... |
/* @flow */
import invariant from "invariant";
import type { MethodApi } from "../types";
export default ({ client }: MethodApi) => (fileid: number, tofolderid: number): Promise<boolean> => {
invariant(typeof fileid === "number", "`fileid` must be number.");
invariant(fileid !== 0, "`fileid` cannot be 0.");
inv... |
#!/usr/bin/env node-canvas
/*jslint indent: 2, node: true */
/*global Image: true */
"use strict";
var Canvas = require('../lib/canvas');
var Image = Canvas.Image;
var canvas = new Canvas(200, 200);
var ctx = canvas.getContext('2d');
var fs = require('fs');
var eu = require('./util');
var shapes = require('./shapes')... |
export function initialize(app) {
app.deferReadiness();
let container = app.__container__;
container.lookup('service:dofus-data').loadDofusData().then(function() {
app.advanceReadiness();
});
}
export default {
name: 'dofus-data',
initialize
};
|
/*!
* jQuery Show when empty
* http://jquery.com/
*
* Copyright 2015 Júlio César <talk@juliocesar.me>
* Released under the MIT license
* http://jquery.org/license
*
*
*/
(function ( $ ) {
// Init Plugin Statement
$.fn.swe = function() {
// Loop by each element
this.each(function () {
... |
import minimatch from 'minimatch';
import arrayUnion from 'array-union';
import arrayDiffer from 'array-differ';
export default function multimatch(list, patterns, options = {}) {
list = [list].flat();
patterns = [patterns].flat();
if (list.length === 0 || patterns.length === 0) {
return [];
}
let result = []... |
(function($) {
/**
* Base class for effects creating circles
*/
Coo.Effect._Circle = Coo.Effect._Base.extend({
_numCircles: 10, // {Number} The number of circles
_minDiameter: null,
_createCircles: function(element) {
this._slider.$viewPort.find('.' + this._... |
var rkeyEvent = /^key/,
rmouseEvent = /^(?:mouse|contextmenu)|click/,
rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
rtypenamespace = /^([^.]*)(?:\.(.+)|)$/;
function returnTrue() {
return true;
}
function returnFalse() {
return false;
}
/*
* Helper functions for managing events -- not part of the public int... |
module.exports = function (e) {
function tree (e, ordered, parent, path) {
let index = ordered.indexOf(e)
if (!~index) {
index = ordered.length
ordered.push(e)
}
const seen = path.indexOf(index)
if (~seen) {
return { type: 'cycle', index: i... |
import { warn } from '@ember/debug';
import renderChart from 'ember-google-charts/utils/render-chart';
export default function renderClassicChart(data, options) {
warn(`renderClassicChart() has been deprecated. Use renderChart() instead. See https://github.com/sir-dunxalot/ember-google-charts#custom-charts`, {
i... |
/*
* grunt-i18n
* https://github.com/falsanu/grunt-i18n
*
* Copyright (c) 2015 Jan Fanslau
* Licensed under the MIT license.
*/
'use strict';
var jsSourceFilter = function(filename) {
return (filename.indexOf('js/source') === -1);
};
var nopFilter = function(filename) {
return filename !== null;
};
module.e... |
'use strict';
var mongoose = require('mongoose'),
Event = mongoose.model('Event');
exports.index = function (req, res) {
Event.find(function (err, articles) {
if (err) {
throw new Error(err);
}
res.render('home/index', {
title: 'Generator-Express MVC',
articles: articles
});
});... |
'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; }
__.prototype = b.prototype;
d.prototype = new __();
};
var collection_1 = require('angular2/src/core/facade/collection');
var l... |
var options = { useTabToIndent: [true, 'partial', false] };
var optionsNode = document.getElementById('options');
var node, select, tmp;
for (var i in options) {
node = document.createElement('div');
select = document.createElement('select');
for (var j in options[i]) {
tmp = document.createElement('option');... |
Template._topic.helpers({
alreadyVoted: function() {
return Meteor.user() && _(Meteor.user().profile.votedTopicIds).contains(this._id)
},
hasComments: function() {
return this.numberOfComments > 0;
}
});
Template._topic.events({
'click [data-vote]': function(event, template) {
event.preventDefau... |
var authShit = require('./controllers/auth'),
dashShit = require('./controllers/dash')
user = require('./models/auth.schema.js');
module.exports = (app) => {
app.get('/', (req, res)=>{
res.sendFile('index.html', {root : './public/html'});
});
app.get('/dashboard', (req,res)=>{
res.sendFile('das... |
(function(sim, undefined) {
stc.Node = function(name, owner) {
var self = this;
this.name = name;
this.owner = owner;
this.color = this.owner.color;
this.type = 'node';
this.mouse = false;
};
})(stc)
|
// .mocharc.js
module.exports = {
diff: true,
extension: ['ts', 'tsx', 'js'], // include extensions
opts: './mocha.opts', // point to you mocha options file. the rest is whatever.
package: './package.json',
reporter: 'spec',
slow: 75,
timeout: 2000,
ui: 'bdd'
}; |
const job = require('./index');
job.refactorAllInDirectory(process.argv[2], [
require('./rewriters/labelRewriter')
]); |
/*globals define, _, WebGMEGlobal*/
/*jshint browser: true*/
/**
* Generated by VisualizerGenerator 1.7.0 from webgme on Tue Sep 27 2016 23:15:32 GMT-0500 (Central Daylight Time).
*/
define([
'js/PanelBase/PanelBaseWithHeader',
'js/PanelManager/IActivePanel',
'widgets/CommViz/CommVizWidget',
'./CommV... |
(function() {
'use strict';
})();
/*global angular, $snaphy, $*/
angular.module($snaphy.getModuleName())
/**
Defigning custom templates for angular-formly.
*/
.run(['formlyConfig', '$timeout', function(formlyConfig, $timeout) {
formlyConfig.setType({
name: 'belongsTo',
templateUrl: '/formly... |
export loadWishes from './loadWishes';
export createWish from './createWish';
export destroyWish from './destroyWish';
export loadAuth from './loadAuth';
export login from './login';
export logout from './logout';
|
$(document).ready(function() {
// manually reset the hash to force the browser to go to the selected menu item on page refresh
var hash = window.location.hash;
window.location.hash = "";
window.location.hash = hash;
$('.coveo-slider-input').slider();
$('.coveo-datepicker').DatePicker({
... |
'use strict';
var loopback = require('loopback');
var boot = require('loopback-boot');
var app = module.exports = loopback();
app.start = function() {
// start the web server
return app.listen(function() {
app.emit('started');
var baseUrl = app.get('url').replace(/\/$/, '');
console.log('Web server l... |
/**
* @license
* Copyright (C) 2006 Google Inc.
*
* 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... |
var fs = require('fs');
var path = require('path');
var flokme = require('./flok');
var flok = flokme('status-file');
var statusPath = path.join(__dirname, 'status-file', 'flokStatus', 'basic.json');
describe('status-file', function () {
describe('loadMigrationsStatus', function () {
var loadMigrationsStatus... |
var browserSync = require('browser-sync');
var gulp = require('gulp');
var config = require('../config').browserSync;
gulp.task('browserSync', function() {
browserSync(config, function(err, bs) {
// bs.options.url contains the original url, so
// replace the port with the correct one:
var ... |
export { default } from 'nypr-ui/components/nypr-card/button'; |
var camelize = require('camelize')
var fs = require('fs')
var path = require('path')
var jsFile = /^(.*)[.]js$/
var ignoreFiles = /^(index|chain)[.]js$/
module.exports = fs.readdirSync(path.resolve(__dirname, '../..'))
.filter(function (filename) {
return jsFile.test(filename) && !ignoreFiles.test(filename)
}... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from './webApp.scss';
import Board from '../../components/Board';
import Tips from '../../components/Tips';
import ControlPanel from '../ControlPanel';
import GameOverCard from '../GameOver';
import Scores from '../../components... |
const express = require('express');
//const infermedica = require('../request/infermedica');
//const mw = require('../request/merrian_webster');
const router = express.Router();
const fs = require('fs');
const db = require('../database/query');
//insert
router.post('/', function (req, res) {
if (!req.user.id || !... |
'use strict';
// Reports controller
angular.module('reports').controller('ReportsController', ['$scope', '$stateParams', '$location', 'Authentication', 'Reports', 'Articles', 'Requests', 'Discounts', 'Users', 'Questions',
function ($scope, $stateParams, $location, Authentication, Reports, Articles, Requests, Disco... |
'use strict';
// Workoutplans controller
angular.module('workoutplans').controller('WorkoutplansController', ['$scope', '$stateParams', '$location', 'Authentication', 'Workoutplans', 'Tasks',
function($scope, $stateParams, $location, Authentication, Workoutplans, Tasks) {
$scope.authentication = Authentication;
$... |
import angular from 'angular';
import DetailController from './detail.controller'
import detailConfig from './detail.config'
let detailModule = angular.module('detail.module', [])
.controller('DetailController', DetailController)
.config(detailConfig)
export default detailModule; |
/*!
Copyright (C) 2010-2013 Raymond Hill: https://github.com/gorhill/Javascript-Voronoi
MIT License: See https://github.com/gorhill/Javascript-Voronoi/LICENSE.md
*/
/*
Author: Raymond Hill (rhill@raymondhill.net)
Contributor: Jesse Morgan (morgajel@gmail.com)
File: rhill-voronoi-core.js
Version: 0.98
Date: January 21, ... |
// All symbols in the `Inherited` script as per Unicode v8.0.0:
[
'\u0300',
'\u0301',
'\u0302',
'\u0303',
'\u0304',
'\u0305',
'\u0306',
'\u0307',
'\u0308',
'\u0309',
'\u030A',
'\u030B',
'\u030C',
'\u030D',
'\u030E',
'\u030F',
'\u0310',
'\u0311',
'\u0312',
'\u0313',
'\u0314',
'\u0315',
'\u0316',
... |
require('ralph/core');
{
var $module = Object.create($moduleRoot);
{
($module)['%export'] = function B1930(name__1931, value__1932) {
var B1934 = (exports);
return(B1934[name__1931] = value__1932);
};
{
($module)['%eval'] = function B1933() {
... |
// Compiled by ClojureScript 1.7.228 {}
goog.provide('clojure.browser.repl');
goog.require('cljs.core');
goog.require('goog.dom');
goog.require('goog.userAgent.product');
goog.require('goog.array');
goog.require('goog.object');
goog.require('clojure.browser.net');
goog.require('clojure.browser.event');
goog.require('cl... |
// Polyfills
//
(function() {
// Array indexOf
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function (searchElement, fromIndex) {
if ( this === undefined || this === null ) {
throw new TypeError( '"this" is null or not defined' );
}
var length = this.length >>> 0; // Hac... |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// paths is just a variable for common storage during the build and templating process
paths: {
src: 'src', // source directory for content
dest: 'dest', // final document root, sym... |
/* !
This is the setup script to register all demo related AccDC Object declarations.
This file is only parsed when the Live Demo tab is opened from the left navigation links.
*/
// Configure the AccDC Objects for the demo on the Live Demo tab
// Keyboard Accessible Drag and Drop
// Bind a click handler to the Conver... |
/* */
"format cjs";
import runTransitionHook from './runTransitionHook'
function useBasename(createHistory) {
return function (options={}) {
let { basename, ...historyOptions } = options
let history = createHistory(historyOptions)
function addBasename(location) {
if (basename && location.basename... |
Function.prototype.bind = Function.prototype.bind || bind
require("./test")
require("./stream")
function bind(context) {
var f = this
return function () {
f.apply(context, arguments)
}
}
|
var expect = require('expect.js');
var queue = require('../queue');
describe('queue', function () {
it('queue.next queue.prev queue.start', function(){
queue({
step: 0
})
.next(function(next){
expect(this.step++).to.be(1);
next();
})
.prev... |
const rowAt = (text, charNo) => {
let sub = text.substr(0, charNo)
let rows = sub.split('\n')
return rows.length
}
export default rowAt
|
import { Party, Search, Summary } from '../src/data/models';
export default async function updateSearch() {
console.log('Summary syncing');
await Summary.sync();
console.log('Party updating aggregate data');
await Party.updateAggregateData();
console.log('Search syncing');
await Search.sync();
console.lo... |
import $ from 'jquery';
import { sprintf, __ } from '~/locale';
import flash from '~/flash';
import * as rootTypes from '../../mutation_types';
import { createCommitPayload, createNewMergeRequestUrl } from '../../utils';
import router from '../../../ide_router';
import service from '../../../services';
import * as type... |
describe('rs.popover.Registry', function () {
'use strict';
var registry;
beforeEach(module('rs.popover'));
beforeEach(inject(function (_registry_) {
registry = _registry_;
}));
describe('register', function () {
it('raises exception for empty ID', function () {
expect(function () {
... |
import Icon from '../components/Icon.vue'
Icon.register({"pencil-square-o":{"width":1792,"height":1792,"paths":[{"d":"M888 1184l116-116-152-152-116 116v56h96v96h56zM1328 464q-16-16-33 1l-350 350q-17 17-1 33t33-1l350-350q17-17 1-33zM1408 1058v190q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-11... |
const { send } = require('./utils/event-logger');
const { spawnStream, getPath } = require('./utils/helpers');
const events = {
lifeCycleBegin: 'format.lifeCycle.begin',
lifeCycleEnd: 'format.lifeCycle.end',
formatCommandFail: 'format.format.command.fail',
checkCommandFail: 'format.check.command.fail',
};
cons... |
import PostAbstractHelpers from './post-abstract';
import mobiledocRenderers from 'mobiledoc-kit/renderers/mobiledoc';
import MobiledocRenderer_0_2, { MOBILEDOC_VERSION as MOBILEDOC_VERSION_0_2 } from 'mobiledoc-kit/renderers/mobiledoc/0-2';
import MobiledocRenderer_0_3, { MOBILEDOC_VERSION as MOBILEDOC_VERSION_0_3 } f... |
search_result['272']=["topic_0000000000000082.html","ChatService.GenerateJwtToken Method",""]; |
//
// jquery.xmlns.js: xml-namespace selector support for jQuery
//
// This plugin modifies the jQuery tag and attribute selectors to
// support optional namespace specifiers as defined in CSS 3:
//
// $("elem") - matches 'elem' nodes in the default namespace
// $("|elem") - matches 'elem' nodes that... |
var encryption = require('../utilities/encryption');
var User = require('mongoose').model('User');
var Comment = require('mongoose').model('Comment');
module.exports = {
createUser: function(req, res, next) {
var newUserData = req.body;
newUserData.salt = encryption.generateSalt();
newUserData.hashPass =... |
/** @babel */
import season from 'season'
import dedent from 'dedent'
import electron from 'electron'
import fs from 'fs-plus'
import path from 'path'
import AtomApplication from '../../src/main-process/atom-application'
import parseCommandLine from '../../src/main-process/parse-command-line'
import {timeoutPromise, c... |
// import { fromJS } from 'immutable';
// import { makeSelectAuthContainerDomain } from '../selectors';
// const selector = makeSelectAuthContainerDomain();
describe('makeSelectAuthContainerDomain', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(false);
});
});
|
"use strict";
var shell = require('shelljs');
shell.cd('../moviespider');
shell.exec('/usr/local/bin/scrapy crawl cili006');
shell.exec('/usr/local/bin/scrapy crawl dytt8');
shell.exec('/usr/local/bin/scrapy crawl w6vhao');
shell.exec('/usr/local/bin/scrapy crawl dytt8proc');
shell.exec('/usr/local/bin/scrapy crawl w... |
module.exports={A:{A:{"2":"L H G E A B jB"},B:{"1":"8","2":"C D e K I N J"},C:{"1":"0 1 2 3 4 5 7 9 L H G E A B C D e K I N J P Q R S T U V W X Y Z a b c d f g h i j k l m n o M q r s t u v w x y z JB IB CB DB EB O GB HB","2":"gB BB aB ZB","33":"F"},D:{"1":"0 1 2 3 4 5 7 8 9 F L H G E A B C D e K I N J P Q R S T U V W ... |
exports.index = function (req, res) {
var data = {};
res.render('index', data);
};
exports.help = function (req, res) {
var data = {
title: ['Help'],
path: 'help'
};
res.render('help', data);
};
exports.code = function (req, res) {
var data = {
title: ['Code'],
pa... |
process.env.NODE_ENV = 'development';
const opn = require('opn');
const path = require('path');
const express = require('express');
const webpack = require('webpack');
const proxyMiddleware = require('http-proxy-middleware');
const webpackConfig = require('./conf/webpack.dev.conf');
const appConf = require('./conf/app... |
/*
* jQuery Mobile Framework : "mouse" plugin
* Copyright (c) jQuery Project
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*/
// This plugin is an experiment for abstracting away the touch and mouse
// events so that developers don't have to worry about which method of input... |
/**
* Copyright (c) Baidu Inc. All rights reserved.
*
* This source code is licensed under the MIT license.
* See LICENSE file in the project root for license information.
*
* @file 把 kebab case 字符串转换成 camel case
*/
/**
* 把 kebab case 字符串转换成 camel case
*
* @param {string} source 源字符串
* @return {string}
*/
... |
import React from 'react';
import { Router as ReactRouter, Route, IndexRoute, browserHistory } from 'react-router';
import { bindActionCreators } from 'redux';
import { connect } ... |
export const AppComponent = {
template: `
<div class="app-wrapper">
<navbar></navbar>
<ui-view class="app-content"></ui-view>
<app-footer></app-footer>
</div>
`
}
|
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProp... |
import Chart from './chart';
import { Decorators } from 'francy-core';
/* global d3 */
export default class BarChart extends Chart {
constructor({ appendTo, callbackHandler }, context) {
super({ appendTo: appendTo, callbackHandler: callbackHandler }, context);
}
@Decorators.Initializer.initialize()
asyn... |
Accounts.config({
"restrictCreationByEmailDomain": Meteor.settings.public.restrictedDomain
});
Accounts.onCreateUser(function(options, user) {
user.inGame = false;
if(options.profile) {
user.profile = options.profile;
}
return user;
});
Meteor.publish("adminInfo", function() {
if(!Roles.userIsInRole(this.us... |
var nodemailer = require('nodemailer');
var express = require('express');
var router = express.Router();
var helper = require('sendgrid').mail;
var publicationemail = require('../app/models/publicationemail');
var user = require('../app/models/user');
var coaching = require('../app/models/coaching');
var subscriber = r... |
/**
* @fileOverview run browserSync task
*/
import gulp from 'gulp';
import config from '../config';
import runSequence from 'run-sequence';
gulp.task('build', ['clean'], cb => {
let buildSequence = [
['styles', 'images', 'fonts', 'views', 'browserify']
];
if (config.gzip) {
buildSequence.push('gzip')... |
import { StyleSheet } from 'react-native';
import { Dimensions } from 'react-native';
const { height: windowHeight } = Dimensions.get('window');
const height = windowHeight - 66;
export default StyleSheet.create({
container: {
display: 'flex',
alignItems: 'center',
backgroundColor: '#fafbfa',
flex:... |
/*jslint node: true, browser: true */
"use strict";
/**
* Created by iain on 3/8/15.
*/
function Model(isCoop, isHost) {
var WIDTH = 20,
HEIGHT = 35,
portrait = true,
makeBrick = function (setx, sety, setw, seth, setc) { return {x: setx, y: sety, w: setw, h: seth, c: setc}; },
m... |
import { Template } from 'meteor/templating';
import Node from '/imports/api/nodes/nodes.js';
import '../../components/selectable/selectable.js';
import '../../components/editable-td/editable-td.js';
import '../../components/text-input/text-input.js';
import './nodes.html';
Template.Nodes.onCreated(function() {
Me... |
'use strict';
describe('nothing', function () {
it('should do nothing', function () {//
});
}); |
var test = require('tap').test;
var sentiment = require('../../lib/index');
var dataset = 'Hey you worthless scumbag';
sentiment(dataset, function (err, result) {
test('asynchronous negative', function (t) {
t.type(result, 'object');
t.equal(result.score, -6);
t.equal(result.comparative, -1... |
import process from 'node:process';
import fs, {promises as fsPromises} from 'node:fs';
import execa from 'execa';
function extractDarwin(line) {
const columns = line.split(':');
// Darwin passwd(5)
// 0 name User's login name.
// 1 password User's encrypted password.
// 2 uid User's id.
// 3 gid ... |
import {
GraphQLSchema as Schema,
GraphQLObjectType as ObjectType,
} from 'graphql';
import content from './queries/content';
import champion from './queries/champion';
import champions from './queries/champions';
import item from './queries/item';
import items from './queries/items';
import languages from './quer... |
"use strict";
angular.module('places')
.controller('MyPlaceCtrl', function($scope) {
var groups =[
{
name:'Quand partir?',
description:'Plusieurs variations de Lorem Ipsum peuvent être trouvées ici ou là, mais la majeure partie addition ne ressemblent pas une seconde à du texte standard.',
image:'htt... |
// Copyright IBM Corp. 2014,2016. All Rights Reserved.
// Node module: loopback
// This file is licensed under the MIT License.
// License text available at https://opensource.org/licenses/MIT
'use strict';
var g = require('../globalize');
/**
* Data model for key-value databases.
*
* @class KeyValueModel
* @inhe... |
/**
* Created by hejun on 15/4/15.
* 纯前端配置-微信分享
* 1.加载js后 请先执行init方法
* 2.当前只能在socialpark.com.cn 域名下使用 其他域名使用无效(受公众账号设置限制)
* 3.本组件依赖 http://res.wx.qq.com/open/js/jweixin-1.0.0.js 自动加载 自动依赖
* 4.支持 cmd amd 引用
* 5.全局对象 window.tp.wx
* 6.返回对象中wechat为微信jssdk方法
* 7.自动加上百度渠道统计,可统计 朋友圈 好友 qq
*/
!(function () {
... |
class cdo_ss_nntponpostfinalsink_1 {
constructor() {
}
// System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType)
CreateObjRef() {
}
// bool Equals(System.Object obj)
Equals() {
}
// int GetHashCode()
GetHashCode() {
}
// System.Object GetLifetimeService()
... |
//= require d3.v2
//= require rickshaw |
/**
* @license Highstock JS v8.0.0 (2019-12-10)
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Paweł Fus
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exports ... |
const hammerhead = window.getTestCafeModule('hammerhead');
const browserUtils = hammerhead.utils.browser;
asyncTest('isIFrameWindowInDOM', function () {
expect(browserUtils.isIE ? 2 : 1);
let messageCounter = 0;
function finishTest () {
window.removeEventListener('message', onMessage, false);... |
var app = require('express')(),
wizard = require('hmpo-form-wizard'),
steps = require('./steps'),
fields = require('./fields');
app.use(require('hmpo-template-mixins')(fields, { sharedTranslationKey: 'prototype' }));
app.use(wizard(steps, fields, {
controller: require('../../../controllers/form'),
tem... |
import ApplicationAdapter from 'ghost-admin/adapters/application';
export default class CustomThemeSettingListAdapter extends ApplicationAdapter {
// we use `custom-theme-setting-list` model as a workaround for saving all
// custom theme setting records in one request so it uses the base model url
pathForT... |
const five = require('johnny-five');
const board = new five.Board();
board.on('ready', () => {
const led1 = new five.Led(2);
const led2 = new five.Led(3);
board.repl.inject({
led1: led1,
led2: led2
});
});
|
'use strict';
var myApp = angular.module('myApp', []);
myApp.config(['$httpProvider', function($httpProvider) {
$httpProvider.defaults.useXDomain = true;
delete $httpProvider.defaults.headers.common['X-Requested-With'];
}
]);
/* Controllers */
function UserListCtrl($scope, $http, $templateCache)... |
define(function (require) {
'use strict';
function withDataAttributes() {
this.loadDataAttributes = function () {
$.each(this.$node.data(), function (key, value) {
if(!this.strictMode || this.attr[key] !== undefined) {
this.attr[key] = value;
}
}.bind(this));
};
... |
// options with associated default value defined in chartNew.js
// annotateDisplay: false,
// annotateRelocate: false,
// annotateFunction: "mousemove",
// annotateFontFamily: "'Arial'",
// annotateBorder: 'none',
// annotateBorderRadius: '2px',
// annotateBackgroundColor: 'rgba(0,0,0,0.8)',
// annotateFo... |
(function () {
'use strict';
angular.module('MISTTSolution', ['ui.bootstrap'])
.config(function ($interpolateProvider) {
$interpolateProvider.startSymbol('/$/');
$interpolateProvider.endSymbol('/$/');
})
.controller('IndexController',... |
'use strict';
angular.
module('peerUp').
component('careers', {
templateUrl: 'pages/careers/careers.html',
controllerAs: 'vm',
controller: function careersComponenet() {
var vm = this;
}
});
|
/**
* Created by yangyang on 2017/10/19.
*/
import React, {Component} from 'react'
import {connect} from 'react-redux'
import { Row, Col, Button, message } from 'antd'
import {profitAction, profitSelector} from './redux'
import {selector as authSelector} from '../../util/auth'
import {ROLE_CODE} from '../../util/role... |
import Intercom from 'intercom-client';
import { Connectors, getSetting /* addCallback, Utils */ } from 'meteor/vulcan:core';
import {
// addPageFunction,
addUserFunction,
// addInitFunction,
// addIdentifyFunction,
addTrackFunction,
} from 'meteor/vulcan:events';
import Users from 'meteor/vulcan:users';
con... |
/*
* grunt-gulp
* https://github.com/shama/grunt-gulp
*
* Copyright (c) 2016 Kyle Robinson Young
* Licensed under the MIT license.
*/
module.exports = function(grunt) {
var coffee = require('gulp-coffee');
var concat = require('gulp-concat');
var gulp = require('gulp');
grunt.initConfig({
gulp: {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.