code stringlengths 2 1.05M |
|---|
var LikeButton = React.createClass({
getInitialState: function() {
return {liked: true};
},
handleClick: function(event) {
this.setState({liked: !this.state.liked});
},
render: function() {
var text = this.state.liked ? 'like' : 'haven\'t liked';
return (
... |
/**
* # fieldValidation.js
*
* Define the validation rules for various fields such as email, username,
* and passwords. If the rules are not passed, the appropriate
* message is displayed to the user
*
*/
'use strict'
/**
* ## Imports
*
* validate and underscore
*
*/
import validate from 'validate.js'
imp... |
// Requires:
// model/zone
if (!this.Reading) {
module.exports.Zone = require('./zone.js').Zone;
}
(function (app) { 'use strict';
var Fixations = {
init: function (options) {
options = options || {};
_minDuration = options.minDuration || 80;
_threshold = op... |
import React from 'react';
import { Container } from 'semantic-ui-react';
import axios from 'axios';
import Auth from '../../auth/modules/Auth';
import User from '../../auth/modules/User';
import ProfileInfo from './ProfileInfo';
const getProfile = () => {
const userId = User.getId();
return axios.get('/api/user/p... |
#!/usr/bin/env node
'use strict'
let lines = require('fs')
.readFileSync('_chat.txt', 'utf8')
.split('\r')
.join('')
.split('\n')
let chats = {}
for(let line of lines){
if(line
&& line.indexOf('changed the subject to') === -1
&& line.indexOf('changed this group') === -1
&& line.indexOf('... |
let fetchIpAddress = function () {
// NOTE: window.RTCPeerConnection is "not a constructor" in FF22/23
var RTCPeerConnection = /*window.RTCPeerConnection ||*/ window.webkitRTCPeerConnection || window.mozRTCPeerConnection;
var rtc = new RTCPeerConnection({
iceServers: []
});
if (1 || window.... |
IntlMessageFormat.__addLocaleData({locale:"os",pluralRuleFunction:function(a,e){return e?"other":1==a?"one":"other"}}),IntlMessageFormat.__addLocaleData({locale:"os-RU",parentLocale:"os"}); |
import { connect } from 'react-redux'
import { getStore } from 'STORE/globalStore'
export default (key, component) =>
{
const mapStateToProps = (state) =>
{
return(
{
item: state[key].currentEditingItem
})
}
return connect(mapStateToProps, null)(component);
}
|
import Loki from 'lokijs'
import shortid from 'shortid'
import moment from 'moment'
import constants from '../constants.js'
import logger from '../util/logger.js'
export default class Page {
constructor () {
this.db = new Loki(constants.LOKI_DB_FILE)
if (!this.db.getCollection(constants.PAGES)) {
this.... |
var ko = require("knockout");
var objectAssign = require("object-assign");
var Promise = require("pinkie-promise");
var Spinner = require("spin.js");
ko.bindingHandlers.spinner = {
init: function (element, valueAccessor, allBindings) {
// initialize the object which will return the eventual spinner
element.spinne... |
var searchData=
[
['baseengmodifiers',['BaseEngModifiers',['../classtracery_1_1_base_eng_modifiers.html#af39dc541e094ff73e1491553efa48d73',1,'tracery::BaseEngModifiers::BaseEngModifiers(ModifierMap modifierMap)'],['../classtracery_1_1_base_eng_modifiers.html#ae07db45d5f56b2e9bf19ecfff2774968',1,'tracery::BaseEngModif... |
version https://git-lfs.github.com/spec/v1
oid sha256:8942dcf5ccb55e3ef924a2e9bd73afafe775eb0a3c8659445446f5e07ead4347
size 5481
|
'use strict';
/**
* @ngdoc function
* @name publicApp.controller:LoginCtrl
* @description
* # LoginCtrl
* Controller of the publicApp
*/
angular.module('publicApp')
.controller('LoginCtrl', function ($scope) {
$scope.enter = function(){
window.location.href = "http://qui.shpp.me:1213";
// if (u... |
export { default } from 'ember-ui-kit/components/ui-draggable/component';
|
var searchData=
[
['s',['s',['../d2/d7c/structINETDNS_1_1Probe.html#ac7306ea9e055dc1d5ee9fe5e890c9d4a',1,'INETDNS::Probe::s()'],['../d4/dd9/classINETDNS_1_1MDNSAnnouncer.html#ae9e1f49a5390aa04ca24180358cd9259',1,'INETDNS::MDNSAnnouncer::s()']]],
['scheduler',['scheduler',['../d8/deb/classINETDNS_1_1TimeEvent.html#a... |
/**
Utility functions for more consise filtering of tokens.
ex: sentence.tokens.filter(pos('AD'))
*/
// return a function which filters tokens with a matching pos
// posStr is treated as a regex
const pos = posStr => token => token.pos.match(new RegExp(`^${posStr}$`, 'iu'));
// return a function which filters tokens ... |
/*globals svgEditor:true, globalStorage, widget, svgedit, canvg, jQuery, $, DOMParser, FileReader */
/*jslint vars: true, eqeq: true, todo: true, forin: true, continue: true, regexp: true */
/*
* svg-editor.js
*
* Licensed under the MIT License
*
* Copyright(c) 2010 Alexis Deveria
* Copyright(c) 2010 Pavol Rusnak... |
/*!
* This file is part of Weaver.js 1.0.0.
*
* Weaver.js is free software: you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* Weaver.j... |
import { take, race, takeEvery, call, put } from 'redux-saga/effects';
import { Navigate } from '../ducks/router';
import { LOAD_TRACKS_LIST } from '../ducks/search';
import { getTracks } from '../services/kalama';
import {
setTracks,
ON_PLAYER_SHUTDOWN,
setCurrentTrackIndex,
ON_CACHE_READY
} from '../d... |
const sumRobot = {
threshold: 4, sum: function (numbers) {
var that = this;
var reduceFunc = function (reduced, current) {
return current > that.threshold ?
(reduced + current) :
reduced;
}
;
return numbers.reduc... |
'use strict';
angular
.module("angularStart", ['ui.router'])
.config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider, $locationProvider) {
// $locationProvider.hashPrefix('');
$urlRouterProvider.otherwise("/home");
$stateProvider
.state('home', {
url: '/home',
t... |
describe('ngNuxeoClient module', function () {
'use strict';
var httpBackend, nuxeo, nuxeoUser, dataDocuments, dataUser, dataWorkspace;
beforeEach(module('ngNuxeoClient', 'data/documents.json', 'data/user.json', 'data/workspace.json'));
beforeEach(inject(function ($httpBackend, _nuxeo_, _nuxeoUser_, _dataDoc... |
import axios from 'axios';
import MockAdapter from 'axios-mock-adapter';
import services from '~/ide/services';
import Api from '~/api';
import { query } from '~/ide/services/gql';
import { escapeFileUrl } from '~/lib/utils/url_utility';
import getUserPermissions from '~/ide/queries/getUserPermissions.query.graphql';
i... |
export const TOGGLE_ORDER = 'order/toggle'
export const SHOW_ADD_ORDER_PRODUCT_DIALOG = 'order/product/add-dialog/show'
export const HIDE_ADD_ORDER_PRODUCT_DIALOG = 'order/product/add-dialog/hide'
export const ADD_PRODUCT_TO_ORDER = 'order/product/add'
export const REMOVE_PRODUCT_FROM_ORDER = 'order/product/remove'
exp... |
export const disallowMultipleSpaces = () => {
var message, right, wrong;
message = "Only one space is allowed between identifiers, keywords, or any other tokens.";
right = "var x = 5;";
wrong = "var x = 5;\rvar x = 5;\rvar x = 5;";
return {
... |
/* eslint-disable no-unused-expressions */
/* global describe, it */
'use strict'
const expect = require('chai').expect
const PassThrough = require('stream').PassThrough
const MeasureStream = require('../index.js')
describe('MeasureStream', function () {
it('should pass through all chunks unmodified', ... |
var marked = require('marked');
var React = require('react');
var Markdown = React.createClass({
propTypes: {
text: React.PropTypes.string.isRequired,
},
render: function() {
return (
<div
{...this.props}
dangerouslySetInnerHTML={{__html: marked(this.props.text)}} />
);
},
})... |
var videoWorks = (function (app) {
'use strict';
app.registerModule ('videoWorks', ['ngMaterial', 'bw-interface', 'photoWorks', 'photoWorks.services']);
app.registerModule ('videoWorks.services');
}(ApplicationConfiguration));
|
import { expect } from 'chai';
import React from 'react';
import { mount } from 'enzyme';
import { default as Dashboard, DashboardWithoutDndContext as DashboardWithoutDndContext } from '../../lib/components/Dashboard';
import LayoutRenderer from '../../lib/components/LayoutRenderer';
describe('<Dashboard />', () => {
... |
/*!
* Lazy Load - jQuery plugin for lazy loading images
*
* Copyright (c) 2007-2015 Mika Tuupola
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/mit-license.php
*
* Project home:
* http://www.appelsiini.net/projects/lazyload
*
* Version: 1.9.7
*
*/
(function($, window, docume... |
define(function(){
/**
* @module textShadow
* @description 兼容性如图
- 
- 不需要写任何前缀
- IE9 可以用canvas中的shadow[offsetX,offsetY,blur不能为0]、filter:shadow滤镜 filter:dropshadow
- E{filter:shadow(Color=颜色值,Direction=数值,Strength=数值)}
- [canvas中的shadow](../html... |
define(["Klass","UI","FS","DeferredUtil","WebSite","R","jshint"],
function (Klass,UI,FS,DU,WebSite,R,jshint) {
var HNOP=jshint.scriptURL();
const S=Klass.define({
//----METHODS
$this:true,
$:function (t,projectDir,prjList) {
var f=projectDir;
var name=FS.PathUtil.truncSEP(f.name());
t.prjList=prjLis... |
var Model = require('./model');
var Stat = module.exports = function() {
}
Stat.prototype = Model;
Stat.total = function( application, name, next ) {
var query = "SELECT sum(counter) as total from app_" + application + " WHERE name = '" + name + "'";
Model.client.query(query, next);
};
Stat.today = functio... |
import { Camera } from 'three';
import VglObject3d from '../core/vgl-object3d';
import { inst } from '../constants';
/**
* An abstract camera component.
*/
export default {
extends: VglObject3d,
computed: {
/** The THREE.Camera instance. */
[inst]: () => new Camera(),
},
};
|
export { default } from 'flood-dropdown/services/dropdown'; |
import {describe, it} from 'mocha'
import {assert} from 'chai'
import Time from '../src/time.js'
describe('Time', () => {
describe('when now() is called', () => {
it('will return positive integer number', () => {
var now = Time.now()
assert.typeOf(now, 'number')
... |
// Generated by CoffeeScript 1.10.0
(function() {
var COL_JSON, COL_JSON_NESTED, COL_SHEET_1_JSON, COL_SHEET_2_JSON, COL_XLSX, ROW_JSON, ROW_SHEET_1_JSON, ROW_SHEET_2_JSON, ROW_XLSX, TEST_OPTIONS, chai, expect, fs, processFile;
processFile = require('../lib/excel-as-json').processFile;
fs = require('fs');
ch... |
'use strict';
import {$} from 'Vendor';
import {Backbone} from 'Vendor';
import {Radio} from 'Vendor';
import OrderItemsCollection from 'OrderItemsCollection';
export default Backbone.Model.extend({
url: 'http://localhost:8080/',
collection: OrderItemsCollection,
customerId: null,
initialize: function() {
thi... |
/*
* MIT License
*
* Copyright (c) 2017 Donato Rimenti
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy,... |
export fetchLicenses from "./fetchLicenses"
export fetchPeopleInPhoto from "./fetchPeopleInPhoto"
export fetchPhotoByID from "./fetchPhotoByID"
export fetchPhotoComments from "./fetchPhotoComments"
export fetchPhotoExif from "./fetchPhotoExif"
export fetchPhotoImages from "./fetchPhotoImages"
export fetchPhotoLocation ... |
// @flow
/* eslint no-underscore-dangle: 0 */
/* **********************************************************
* File: test/utils/mica/parseDataPacket.spec.js
*
* Brief: Test for data packet parsing function
*
* Authors: George Whitfield, Craig Cheney
*
* 2017.09.20 CC - Updated test suite
* 2017.07.31 GW - Document Creat... |
/*
* Copyright (c) 2014 Adobe Systems Incorporated. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the ri... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
import * as ENUMS from '../../enums/moonlight'
/**
* cast state data to moonlight CLI options
* @param {any} state
* @return {string[]}
*/
function getMoonlightOptionsFromState (state) {
let options = []
// screen resolution
if (!state.width || !state.height) {
options.push('-' + ENUMS.RESOLUTION.prope... |
import React from 'react';
import { Header, Segment } from 'semantic-ui-react';
import { Link } from 'redux-little-router';
import { BLOG_NAME, BLOG_SLOGAN } from '../constants/config';
export default ({ backToHome }) => (
<div>
<Header
as='h1'
attached='top'
style={{
cursor: 'point... |
/**
* ovh-api-archive: View or compare an API archive from OVH, SYS, KS, and RunAbove.
*
* @author Jean-Philippe Blary (@blary_jp)
* @url https://github.com/blaryjp/ovh-api-archive
* @license MIT
*/
'use strict';
angular.module('apidiffApp', [
'ngCookies',
'ngSanitize',
'ngRoute',
'ui.ace'
])
.config(f... |
'use strict';
/**
* Exposes the drivers
**/
var drivers = {};
module.exports = {
register: function(key, db) {
drivers[key] = db;
},
instance: function(key) {
var driver = drivers[key];
if(!driver) {
throw new Error('the specified driver is not supported');
}
return driver;
}
... |
/** This module defines the routes for videos using the store.js as db memory
*
* @author Johannes Konert
* @licence CC BY-SA 4.0
*
* @module routes/videos
* @type {Router}
*/
// remember: in modules you have 3 variables given by CommonJS
// 1.) require() function
// 2.) module.exports
// 3.) exports (which is ... |
var fs = require('fs')
var net = require('net')
var crypto = require('crypto') |
import 'echarts/lib/chart/heatmap'
import 'echarts/lib/component/visualMap'
import 'echarts/extension/bmap/bmap'
import 'echarts/lib/chart/map'
import { heatmap } from './main'
import Core from '../../core'
export default Object.assign({}, Core, {
name: 'VeHeatmap',
data () {
this.chartHandler = heatmap
ret... |
const mapService = {
MapSPResponseToSuppliers(SPsuppliersArray) {
var array = SPsuppliersArray.map(function (item) {
var newItem = {
Address: {
City: '',
Street: '',
ZipCode: ''
},
CompanyName: '',
TaxId: '',
Id: -1
};
newItem.CompanyName = item.Title ? item.Title : item.S... |
import {toolsPoint} from "./toolsPoint";
import {toolsVector} from "toolsVector";
export class vector {
constructor(vx, vy, vz) {
this.vx = vx ? vx : 0;
this.vy = vy ? vy : 0;
this.vz = vz ? vz : 0;
}
toString() {
return "[object vector]";
}
/**
* @synta... |
app.directive('growl', function () {
return {
restrict: 'C',
link: function (scope, element, attrs) {
scope.$on("UPDATE_ORDER_ITEM_COUNT", function (event, message) {
$.gritter.add({
title: message.title,
text: message.message,
... |
var UserVo = require(_path.src + "/vo/UserVo.js");
var SqlMapClient = require(_path.lib + "/Sqlmapclient.js");
var UserDao = function()
{
this.sqlMapClient = new SqlMapClient("user");
if(UserDao.caller != UserDao.getInstance)
throw new Error("This UserDao object cannot be instanciated");
};
UserDao.instance = n... |
(function() {
'use strict';
angular.module('Basket')
.factory('ContextMenu',ContextMenu);
ContextMenu.$inject = ['ContextMenuItem'];
function ContextMenu(ContextMenuItem) {
Service.prototype = {
get: get
};
function Service() {
this.menuItems = [];
angular.forEach(arguments, forEach... |
'use strict';
var _ = require('lodash');
var Scope = require('../src/scope');
describe('Scope', function () {
it("can be constructed and used as an object", function () {
var scope = new Scope();
scope.aProperty = 1;
expect(scope.aProperty).toBe(1);
});
describe('digest', function () {
var s... |
// Karma configuration
// Generated on Thu Aug 21 2014 10:24:39 GMT+0200 (CEST)
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/... |
'use strict';
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var _ = require('lodash'); /* jshint ignore:line */
var ServiceList = require('./authy/service').ServiceList;
var Version = require('../.... |
function Module(factory) {
this.waiting = true;
this.factory = factory;
}
function _define(path, factory) {
cache[path] = new Module(factory);
}
function require(path) {
var exports, factory, module, modpaths, modrequire;
module = cache[path];
if (module instanceof Module) {
if (!module.waiting) {
thro... |
angular.module('uiForDocker')
.controller('DockerCtrl', DockerCtrl);
DockerCtrl.$inject = ['$scope', '$http', 'dockerApi'];
function DockerCtrl($scope, $http, dockerApi) {
dockerApi.getInfo().then(function(res) {
console.log(res);
$scope.cpus = res.data.info.NCPU;//
$scope.architecture = res.data.info.Archite... |
"use-strict";
const greet = (name) => {
return "Welcome to our platform " + name;
};
module.exports = {
greet
}; |
function quoteMe(){
var quotes = new Array ();
quotes[0] = "That won't fit the grid.";
quotes[1] = "That's not in the wireframes.";
quotes[2] = "That's a developer thing.";
quotes[3] = "I didn't mock it up that way.";
quotes[4] = "The developer must have changed it.";
quotes[5] = "Did you ... |
angular.module('ngStepwise',[]).directive('ngStepwise', ['$sce', '$document','$timeout', function($sce, $document, $timeout) {
console.log("[module.directive.ngStepwise]");
return {
link: function(scope, element, attrs) {
/** Wire in methods to the host scope to make available to the directi... |
'use strict';
var wikiInfobox = require('../index');
var nock = require('nock');
var assert = require('assert');
var language = 'en';
var page = 'Bemowo';
var initMock = function(body) {
nock('http://'+ language + '.wikipedia.org')
.get(
'/w/api.php?' +
'format=json&' +
'action=query&' +
'prop=r... |
var me = {"name": "wang", "mobile": "ding"};
var names = ["name", "mobile"];
console.log(me["name"]);
|
/*!
* jQuery JavaScript Library v1.8.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
*/
(function(... |
export { default } from "./../../_gen/openfl/geom/ColorTransform"; |
/* Copyright (C) 2011-2014 Mattias Ekendahl. Used under MIT license, see full details at https://github.com/developedbyme/dbm/blob/master/LICENSE.txt */
dbm.registerClass("dbm.core.data.geometry.mesh.PointMesh", "dbm.utils.data.MultidimensionalArrayHolder", function(objectFunctions, staticFunctions, ClassReference) {
... |
/*!
* Chart.js
* http://chartjs.org/
* Version: {{ version }}
*
* Copyright 2015 Nick Downie
* Released under the MIT license
* https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
*/
(function(){
"use strict";
//Declare root variable - window in the browser, global on the server
var root = this,
... |
Array.prototype.push = function(elem) {
this[this.length] = elem;
return ++this.length;
}; |
'use strict';
const chai = require('chai'),
expect = chai.expect,
Support = require(__dirname + '/../support'),
current = Support.sequelize,
Op = current.Op,
sinon = require('sinon'),
DataTypes = require(__dirname + '/../../../lib/data-types'),
Promise = require('bluebird');
describe(Support.getTestDial... |
$(document).foundation();
function getTimeString(milli) {
var d, h, m, s;
s = Math.floor(milli / 1000);
m = Math.floor(s / 60);
s -= m * 60;
h = Math.floor(m / 60);
m -= h * 60;
d = Math.floor(h / 24);
h -= d * 24;
return d + ' days, ' + h + ' hours, ' + m + ' minutes, ' + s + ' seconds';
}
$(function()... |
/**
* Models shared globally
*/
/**
* Entity model
* @param name
* @constructor
*/
function Entity(name) {
this.name = name;
this.id = 'entity-' + this.name;
this.attributes = [];
this.dom = null;
this.connectors = [];
this.relationConnectors = [];
}
Entity.prototype.archive = function() {
var position =... |
var express = require('express');
var app = express();
var server = app.listen(7027);
var handlebars = require("express3-handlebars");
console.log('listening on port 7027');
if (app.get('env') === 'development') {
app.use(express.logger('dev'));
}
app.use(require('./middleware/error')(server));
app.use(express.compr... |
import moment from 'moment';
// filter reducer
const filtersReducerDefaultState = {
text: '',
sortBy: 'date',
startDate: moment().startOf('month'),
endDate: moment().endOf('month')
};
const filtersReducer = (state = filtersReducerDefaultState, action) => {
switch (action.type) {
case 'SET_TEXT_FILTER'... |
/**
* Created by xesamguo@gmail.com
* 416249980@qq.com
*/
if (TouchSlide) {
throw new Error('TouchSlide: Duplicate!');
}
var TouchSlide = function (container, options) {
if (!container) {
throw new Error('TouchSlide:No container');
}
this.orientation = TouchSlide.HORIZONTAL;
if (options... |
var files =
[
[ "liczba.cpp", "liczba_8cpp.html", "liczba_8cpp" ],
[ "liczba.hh", "liczba_8hh.html", "liczba_8hh" ],
[ "macierz.cpp", "macierz_8cpp.html", "macierz_8cpp" ],
[ "macierz.hh", "macierz_8hh.html", "macierz_8hh" ],
[ "main.cpp", "main_8cpp.html", "main_8cpp" ],
[ "symbole.cpp", "symbo... |
export function mapValues(o, valueMapper) {
if (!o) {
return {};
}
const result = {};
Object.keys(o).forEach((key) => {
result[key] = valueMapper(o[key]);
});
return result;
}
|
// Publish the current user
Meteor.publish('currentUser', function() {
var user = Meteor.users.find({_id: this.userId}, {fields: ownUserOptions});
return user;
});
// publish all users for admins to make autocomplete work
// TODO: find a better way
Meteor.publish('allUsersAdmin', function() {
var se... |
export default function errorMiddleware() {
return async (ctx, next) => {
try {
await next()
} catch (err) {
ctx.status = err.status || 500
ctx.body = { error: err.message }
ctx.app.emit('error', err, ctx)
}
}
}
|
$(document).ready(function() {
(function() {
window.onbeforeunload = function() {
return "Don't reload";
}
$(".submit-task").click(function() {
var result;
if (typeof Judicious.result === "function") {
result = Judicious.result();
} else {
result = Judicious.result... |
module('lively.DOMAbstraction').requires().toRun(function() {
// ===========================================================================
// DOM manipulation (Browser and graphics-independent)
// ===========================================================================
Global.Namespace = {
SVG: "http:\/\/www... |
var debug = require('debug')('ucwajs:auth');
var autoDiscover = require('./autoDiscover');
var Q = require('q');
var superagent = require('superagent');
module.exports = function authFactory(config, autoDiscoverResource) {
return auth.bind(this, autoDiscoverResource, config.username, config.password);
};
function au... |
var o3 = require("o3"),
Class = o3.Class,
e3 = require("ezone"),
UserError = e3.UserError,
EventEmitter = require("events");
var Flow = Class.extend({
prototype: {
blocked: false,
init: function (options) {
EventEmitter.call(this);
this.dataQueue = [];
... |
'use strict';
var UserList = require('../pages/UserList.js');
var UserDetails = require('../pages/UserDetails.js');
var ContactUser = require('../pages/ContactUser.js');
describe('my app', function() {
var users = new UserList();
var details = new UserDetails();
var contact = new ContactUser();
beforeE... |
const google_speech = require('google-speech')
const path = require('path')
const ffmpeg = require("fluent-ffmpeg")
const Stream = require("stream")
const fs = require('fs')
const keys = require('keys/api-keys.json')
const google_api_key = keys["google-speech"]
const logger = require('lib/logger')('SpeechStream')
fun... |
angular.module("ezstuff", [])
.controller("ezCtrl", ["$scope", function($scope) {
$scope.customer = {
name: "Naomi",
address: "1600 Amphitheatre"
};
}])
.directive("ezCustomer", function() {
return {
restrict: "E",
template: "Name: {{customer.name}} Address: {{customer.address}... |
"use strict";
define(['dou', 'collection'], function (dou, collection) {
describe('collection.withList', function () {
var target;
beforeEach(function() {
var Clazz = dou.define({
mixins: collection.withList
});
target = new Clazz();
});
describe('append', function () {... |
//使用echats 组件
//1.图例组件legend 2.标题组件titile 3.视觉映射组件 visualMap 4.数据区域缩放组件dataZoom 5.时间线组件timeline
// 在直角坐标系grid 和 极坐标系polar 中 使用
// 引入 ECharts 主模块
var echarts = require('echarts/lib/echarts');
//引入散点图
require('echarts/lib/chart/scatter');
require('echarts/lib/component/dataZoom');
var myecharts = echarts.init(doc... |
import AnimationFrame from 'slgfx/src/SpriteAnimationFrame';
/**
* PixSprite Implementation of AnimationFrame.
* @extends {AnimationFrame}
* @constructor
* @param {Object} props Object properties.
* @param {number} props.duration Object properties.
* @param {Array} props.pixArray The Array of Pix entries for this fram... |
"use strict";
var BlockPositioner = function(block, mediator) {
this.mediator = mediator;
this.block = block;
this._ensureElement();
this._bindFunctions();
this.initialize();
};
Object.assign(BlockPositioner.prototype, require('./function-bind'), require('./renderable'), {
bound: ['toggle', 'show', 'hi... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'link', 'gl', {
acccessKey: 'Chave de acceso',
advanced: 'Avanzado',
advisoryContentType: 'Tipo de contido informativo',... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var checkmark = exports.checkmark = { "viewBox": "0 0 16 16", "children": [{ "name": "path", "attribs": { "fill": "#000000", "d": "M13.5 2l-7.5 7.5-3.5-3.5-2.5 2.5 6 6 10-10z" } }] }; |
const gulp = require('gulp');
const plugins = require('gulp-load-plugins')();
module.exports = config => {
gulp.task('clean', () => {
return gulp
.src(config.buildDir, { read: false, allowEmpty: true })
.pipe(plugins.clean({ force: true }));
});
};
|
export { default } from './collapse-pull-request-description'
|
import React, {PropTypes, Component} from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import isOneOf from '../../utils/isOneOf';
import './Button.less';
const _type = {
type: ['primary', 'ghost', 'dashed'],
size: ['small', 'large'],
shape: ['circle']
};
const btnPrefix = 'zad... |
// All code points in the Combining Half Marks block as per Unicode v4.0.1:
[
0xFE20,
0xFE21,
0xFE22,
0xFE23,
0xFE24,
0xFE25,
0xFE26,
0xFE27,
0xFE28,
0xFE29,
0xFE2A,
0xFE2B,
0xFE2C,
0xFE2D,
0xFE2E,
0xFE2F
]; |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {Thenable, Wakeable} from 'shared/ReactTypes';
import type {Fiber, FiberRoot} from './ReactInternalTypes';... |
module.exports = async (Bot, guild) => {
// Get the default config settings
const defSet = Bot.config.defaultSettings;
// Make sure it's not a server outage that's causing it to show as leaving/ re-joining
if (!guild.available) return;
const exists = await Bot.hasGuildConf(guild.id);
if (!exi... |
'use strict';
define(function(require) {
var angular = require('angular');
var angularSlider = require('angularSlider');
var angularXEditable = require('angularXEditable');
var displayServices = require('common/services/displayServices');
var interfaceServices = require('robots/services/interfaceServices');
var ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.