code stringlengths 2 1.05M |
|---|
const PrinterType = require("./printer-type");
class Epson extends PrinterType {
constructor() {
super();
this.config = require('./epson-config');
}
// ------------------------------ Append ------------------------------
append(appendBuffer) {
if (this.buffer) {
this.buffer = Buffer.concat([... |
/**
* Module dependencies.
*/
var db = require('../../config/sequelize');
var _ = require('lodash');
var allowedFields = ["title", "forcastDate", "actualDate", "status", "percentComplete", "packageConfidence", "ProjectId"];
/**
* Find milestone by id
* Note: This is called every time that the parameter :... |
angular.module( 'mmUploader' ).directive( 'mmUploadGroup', [
'mmUploader',
'$mmUploaderTemplates',
'$timeout',
'$q',
'$rootScope',
function(mmUploader, $mmUploaderTemplates, $timeout, $q, $rootScope) {
return {
restrict: 'E',
scope : {},
template: $mmUploaderTemplates.mmUploadGroup,
link : func... |
/* @ngInject */
function abuttonController ($scope) {
this.click = function click () {
$scope.text = 'clicked';
};
}
module.exports = abuttonController;
|
import * as actionTypes from './action_types'
export const set = (style, message) => ({
type: actionTypes.SET,
style,
message
})
export const clear = () => ({
type: actionTypes.CLEAR
})
|
/**
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
module.exports = require('../src/core');
|
import {Dialog, log} from 'deepdialog';
import {MainNLP,imageHandler} from './maindialog';
export const YesNoDialog = new Dialog({
name: 'YesNoDialog',
description: 'Ask yes or no question, use NLP to handle message - return Yes or No'
});
YesNoDialog.nlpModelName = 'MainNLP';
YesNoDialog.onIntent('yesno_affirma... |
const startApp = require('./src/app')
// Measurement keys from http://developer.bodylabs.com/red_api_measurements.html
const pattern = {
id: 'long-sleeve shirt',
metadata: {
system: 'us',
},
measurements: {
base: [
{key: 'neck_base', value: 28},
{key: 'across_back_shoulder_neck_base_should... |
/*********************************************
* skel/workbench/www/js/ysandboxifc.js
* YeAPF 0.8.63-106 built on 2019-07-11 09:42 (-3 DST)
* Copyright (C) 2004-2019 Esteban Daniel Dortta - dortta@yahoo.com - MIT License
* 2019-06-03 17:33:26 (-3 DST)
* First Version (C) 2014 - esteban daniel dortta - dortta@yahoo... |
module.exports = {
tags: ['google'],
'Demo test Google' : function (client) {
client
.url('http://www.google.com')
.windowMaximize()
.waitForElementVisible('body', 1000)
.assert.title('Google')
.assert.visible('input[type=text]')
.setValue('input[type=text]', 'Google 信件')
... |
export default {
namespaced: true,
state: {
url: function () {
return document.head.querySelector('meta[name="base-url"]').content;
}(),
},
getters: {
url: state => state.url,
},
};
|
/* global angular, module, environment */
module.component('consoleAccordion', {
templateUrl: 'accordion',
transclude: true,
bindings: {
accordionBody: '@?',
// isOpen: "=?",
opened: '=?',
onReady: '&?',
onOpen: '&?',
onClose: '&?'
},
controllerAs: 'ac... |
import $ from 'jquery';
import { ipcRenderer } from 'electron';
import { Router } from 'backbone';
import app from './app';
import { getGuid, isMultihash } from './utils';
import { getPageContainer } from './utils/selectors';
import { isPromise } from './utils/object';
import { startAjaxEvent, endAjaxEvent, recordEvent... |
import React from 'react';
import ProgressBar from 'react-package-dev/ProgressBar';
/** 10% progress */
export default function Example10Percent() {
return <ProgressBar percent={10} width={150} />
}
|
// 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/declareExtendsHelper ../../core/tsSupport/decorateHelper ../../core/JSONSupport ../../core/Logger ../../core/accessorS... |
import React, { Component } from 'react';
import Button from './Button';
import TouchIcon from './TouchIcon';
import styles from './css/TagForm.module.css';
class TagForm extends Component {
constructor (props) {
super(props);
this.handleChange = this.handleChange.bind(this);
this.continu... |
// This file is part of Indico.
// Copyright (C) 2002 - 2021 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
(function(global) {
let totalDurationDisplay;
function formatState(visible, total) {
return... |
var expect = require('chai').expect;
var isPrime = require('./index.js');
describe('Test for checking prime number', function () {
it('the number should be prime', function () {
expect(isPrime(7)).to.be.equal(true);
expect(isPrime(97)).to.be.equal(true);
expect(isPrime(2)).to.be.equal(true);
});
it(... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = rc;
var _ini = require('ini');
var _ini2 = _interopRequireDefault(_ini);
var _coFs = require('co-fs');
var _coFs2 = _interopRequireDefault(_coFs);
var _defs = require('./defs');
var _defs2 = _interopRequireDefault(... |
import React from 'react';
import Place from './Place';
const PlaceList = ({...props, places=[],onChangePlaceStatus=f=>f })=> {
const pathArray = props.location.pathname.split('/');
const zoneId = pathArray[pathArray.length - 1];
console.log(zoneId);
return (
<div>
{(places.length === 0)... |
/*
---
name: Element
description: One of the most important items in MooTools. Contains the dollar function, the dollars function, and an handful of cross-browser, time-saver methods to let you easily work with HTML Elements.
license: MIT-style license.
requires: [Window, Document, Array, String, Function, Object, ... |
import c3 from 'c3';
import cs from 'color-scheme';
import _ from 'lodash';
import moment from 'moment';
window._ = _;
var ngrams = [];
var regex = /^([A-Z0-9]+\s*)+$/;
var chartDataTitles = {};
var clean = function(ngram){
return ngram.trim().toUpperCase()
}
var fixUpData = function(data){
var a = _.group... |
angular.module('ngTouch', [])
.factory('$swipe', [function () {
function getCoordinates(event) {
var e = event.changedPointers[0];
return {
x: e.clientX,
y: e.clientY
};
}
return {
bind: function (element, eventHandlers, pointerTypes) {
var hammertime = new Hammer(element[0]);
hammertime.on('pan... |
Ember.NVD3.ChartComponent = Ember.Component.extend({
tagName: 'svg',
classNames: ['ember-nvd3'],
data: null,
_chart: null,
marginTop: null,
marginRight: null,
marginBottom: null,
marginLeft: null,
showControl: true,
showLegend: true,
showXAxis: true,
showYAxis: true,
xTickFormat: null,
... |
function upperCase(string) {
return string.toUpperCase();
}
export default upperCase;
|
/**
* Created by nuintun on 2015/11/24.
*/
'use strict';
module.exports = function (Terminal){
// Default colors
Terminal.defaultColors = {
// Colors 0-15
colors: [
// dark:
'#000000', // black
'#cd0000', // red3
'#00cd00', // green3
'#cdcd00', // yellow3
'#0000ee', /... |
(function() {
'use strict';
angular
.module('localbiz.services', [
'ionic'
])
.config(function($stateProvider) {
$stateProvider
.state('app.services', {
url: '/services',
views: {
'menuContent': {
templateUrl: 'scripts/services/services.html',
controller: 'ServicesContro... |
/*
data is a string with the following format:
finishedPushed_startPushed_laserState_pr01_pr02_pr03...pr_10
finished, start, and laserState are 0/1 booleans,
pr01~pr10 are 10 bit integers, [0,1023]
values are separated by an underscore.
this results in 55 characters per message, at 8 bits per character this
allows u... |
Space.ui.BlazeComponent.extend('Donations.OrgRegistrationForm', {
ENTER: 13,
_session: 'Donations.OrgRegistrationForm',
// Initialize the materialize select dropdown
onRendered() {
this.$('.org-country').material_select();
},
sessionVars() {
return [{
// The form values we want to survive h... |
pc.extend(pc, function () {
var tmpVecA = new pc.Vec3();
var tmpVecB = new pc.Vec3();
var tmpVecC = new pc.Vec3();
var tmpVecD = new pc.Vec3();
var diffBetweenPoints = new pc.Vec3();
/**
* @name pc.BoundingSphere
* @class A bounding sphere is a volume for facilitating fast intersectio... |
export default DS.Model.extend({
name: DS.attr('string'),
messages: DS.hasMany('message')
});
|
import axios from 'axios';
import _ from 'lodash';
export default class blockr {
static getMaximumAddressesPerRequest() {
return 15; // lower for tests
}
static getBaseUri(code) {
return 'https://'+code.toLowerCase()+'.blockr.io/api/v1/'
}
static getTransactionsMultiAddress(code, ... |
/*
* Copyright (c) 2012-2014 André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
const {
assertThrows
} = Assert;
// 9.5.6: No TypeError thrown in step 21b if [[Configurable]] field not present
// https://bugs.ecmascript.org... |
import getUser from '../api';
import { SubmissionError } from 'redux-form';
import { put, takeLatest, call } from 'redux-saga/effects';
import { routine } from '../redux/userDuck';
export default function* () {
yield takeLatest(routine.TRIGGER, callGetUser);
}
function* callGetUser({ payload: { username }}) {
tr... |
/**
* Plural rules for the sdh (Sindhi, सिन्धी, سنڌي، سندھی) language
*
* This plural file is generated from CLDR-DATA
* (http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html)
* using js-simple-plurals and universal-i18n
*
* @param {number} p
* @return {number} 0 - one, 1 - other
... |
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['cta-btn']
});
|
define(function(require, exports, module) {
var async = require("../lib/async");
return {
binaryStringAsUint8Array: function(str) {
var buf = new Uint8Array(str.length);
for (var i = 0; i < str.length; i++) {
buf[i] = str.charCodeAt(i);
}
r... |
'use strict';
angular.module('repicbro.services')
.factory('Helpers', function (constants) {
var rewritePictureUrl = function (post) {
if (post.url.match('^http://imgur')) {
post.url = 'http://i.' + post.url.substring(7) + '.jpg';
} else if (post.url.match('^http://www.quickmeme.com/meme')) {... |
var c = console,
cac;
document.addEventListener('DOMContentLoaded', init);
function init() {
cac = new CAC(localStorage["cacLogin"], localStorage["apiKey"]);
cac.servers();
c.log("cac", cac);
}
function CAC(login, key) {
c.group("CAC()");
this.version = 'v1';
this.url = 'https://panel.cl... |
'use strict';
requirejs.config({
baseUrl: './scripts',
paths: {
almond: 'bower_components/almond/almond',
Phaser: 'bower_components/phaser/dist/phaser-dist',
SineWaves: 'game/SineWaves',
main: 'main',
MyGame: 'game/MyGame',
init: 'game/states/init',
lo... |
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
// Configure Require.js
var require = {
// Default load path for js files
baseUrl: 'js/app',
shim: {
// --- Use shim to mix together all THREE.js subcomponents
'TrackballControls': { deps: ['threeCore'], exports: 'THREE' },
'gentilis': { deps: ['threeCore'] },
'gentilisBold': { deps: ['threeCore']... |
(function () {
QUnit.module('QUnit.equal');
QUnit.test('QUnit.equal expressions', function () {
QUnit.equal(2 + 3 + 4, 10 - 1);
QUnit.equal('foo', 'fo' + 'o', 'comparing foo strings');
});
}());
|
(function () {
/* global equal */
QUnit.module('equal');
QUnit.test('equal expressions', function () {
equal(100 + 1, '10' + '1');
equal('foo', 'fo' + 'o', 'comparing foo strings');
});
QUnit.test('multiline condition', function () {
equal(2 + 2,
4 - 0);
});
}());
|
module.exports = function(grunt) {
grunt.initConfig({
watch: {
js: {
files: ['src/**/*.js'],
tasks: ['uglify']
},
less: {
files: ['src/**/*.less'],
tasks: ['less']
}
},
uglify: {... |
import testWorkerTemplate from './test_runner_worker.template';
import Bowser from 'bowser';
export default class TestRun {
constructor(files) {
const fileArray = Object.getOwnPropertyNames(files)
.filter(o => o.endsWith('.js') && !o.endsWith('test.js'))
.map(o => files[o])
.map((o) => {
... |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
import setupMirage from 'ember-cli-mirage/test-support/setup-mirage';
import { component } from 'ilios/tests/pages/components/school-curricu... |
import axios from 'axios'
import path from 'path'
// import { Post } from './types'
// Typescript support in static.config.js is not yet supported, but is coming in a future update!
export default {
entry: path.join(__dirname, 'src', 'index.tsx'),
getRoutes: async () => {
const {
data: posts
... |
#!/usr/bin/env node
// use: node test.js
const {
start,
startMethod,
Awaiter,
Checkpoint,
Cancellation,
CheckpointResult,
NowThen
} = require("./index.js");
var testCases = {
// mark a test ID with '*' to ignore it
"*CRTK-IGNORE":
function *(log, assert) {
// an example of disabled test
},
//
// start... |
describe('Widget', function(){
describe('Destroy', function() {
it('should off data event listeners on destroy', function() {
});
});
});
|
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
plugins: [
require('karma-jasmine'),
require('karma-chrome-launcher')
],
files: [
{pattern: 'node_modules/angular2/bundles/angular2-polyfills.js', included: true, watched: true},
{patter... |
require('babel-polyfill');
require('babel-register');
require('../src/index.js');
|
/* global xblocks */
/* jshint strict: false */
/**
* @param {*} obj
* @returns {boolean}
*/
xblocks.utils.isWindow = function(obj) {
return (obj !== null && obj === obj.window);
};
|
var client = require('../helpers/mpd.js')
var cmd = require('mpd').cmd
module.exports = function(path, cb) {
client.sendCommand(cmd("update", [path]), function(err, msg) {
cb(err, msg)
})
}
|
var should = require('should');
var assert = require('assert');
var muk = require('muk');
var path = require('path');
var fs = require('fs');
global.APP_PATH = path.normalize(__dirname + '/../App');
global.RESOURCE_PATH = path.normalize(__dirname + '/../www')
process.execArgv.push('--no-app');
require(path.normalize(_... |
class LoseState {
create() {
this.menuStart = Date.now();
this.timers = [];
this.fontCFG = {
font: sprintf('%spx %s', 12, DEFAULT_FONT),
fill: 'green'
};
var titleLabel = game.add.text(80, 80, '', this.fontCFG)
var startLabel = game.add.text(80, 160, '', this.fontCFG)
... |
import { connect } from 'react-redux'
import { increment, doubleAsync } from '../modules/<%= pascalEntityName %>'
/* This is a container component. Notice it does not contain any JSX,
nor does it import React. This component is **only** responsible for
wiring in the actions and state necessary to render a pre... |
var searchData=
[
['texpdf_5fcolor_5fblack',['texpdf_color_black',['../pdfcolor_8h.html#a217824a718b4c50e875403d0738b087a',1,'pdfcolor.h']]],
['texpdf_5fcolor_5fwhite',['texpdf_color_white',['../pdfcolor_8h.html#af0a50dde7698e4a0fed95cf3a35f9fc4',1,'pdfcolor.h']]]
];
|
export const info = {"viewBox":"0 0 16 16","children":[{"name":"path","attribs":{"fill":"#000000","d":"M7 4.75c0-0.412 0.338-0.75 0.75-0.75h0.5c0.412 0 0.75 0.338 0.75 0.75v0.5c0 0.412-0.338 0.75-0.75 0.75h-0.5c-0.412 0-0.75-0.338-0.75-0.75v-0.5z"}},{"name":"path","attribs":{"fill":"#000000","d":"M10 12h-4v-1h1v-3h-1v-... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function() {
var mode = CodeMirror.getMode({tabSize: 4}, "gfm");
function MT(name) { test.mode(name, mode, Array.prototype.slice.call(arguments, 1)); }
var modeHighlightFormatting... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
'use strict';
import { getDataSet } from '../config';
import { pick } from '../utilities/random';
import { NO_TEXT_FOUND } from '../utilities/errors';
export function words(count) {
count = count || 10;
let dataSet = getDataSet();
if(!dataSet.text) throw NO_TEXT_FOUND();
let w = pick(dataSet.text, c... |
'use strict';
angular.module('jexpensesApp')
.factory('Password', function ($resource) {
return $resource('api/account/change_password', {}, {
});
});
angular.module('jexpensesApp')
.factory('PasswordResetInit', function ($resource) {
return $resource('api/account/reset_password/in... |
/// <reference path="Xrm.js" />
var EntityLogicalName = "productsubstitute";
var Form_256a9921_9916_48e5_b3c1_7874512f8aed_Properties = {
direction: "direction",
productid: "productid",
salesrelationshiptype: "salesrelationshiptype",
substitutedproductid: "substitutedproductid"
};
var Form_256a9921_99... |
import { Meteor } from 'meteor/meteor';
export default {
core: {
qiniu: {
ACCESS_KEY: Meteor.settings.core.qiniu.ACCESS_KEY,
SECRET_KEY: Meteor.settings.core.qiniu.SECRET_KEY,
BUCKET_NAME: "maodou-base",
DOMAIN_NAME: "http://og0f8itra.bkt.clouddn.com/"
}
}
};
|
/**
* Created by pingfengafei on 17/1/10.
*/
/**
* 学习ant design的Rate组件,俗称,打星星
*/
import Rate from './Rate';
export default Rate; |
// 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/awaiterHelper ../../../core/tsSupport/generatorHelper ../../../symbols ../../../core/promiseUtils ../../../renderer... |
var attempt = 3; // Variable to count number of attempts
// Below function Executes on click of login button
function validate(){
var username = document.getElementById("username").value;
var password = document.getElementById("password").value;
if (username == "hidropoino" && password == "admin"){
alert... |
// Generated on 2015-05-11 using generator-chrome-extension 0.3.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Load grunt... |
"use strict";
module.exports = function(sequelize, DataTypes) {
var channelStream = sequelize.define('channel_stream', {
id: {
type: DataTypes.INTEGER(11),
allowNull: false,
primaryKey: true,
autoIncrement: true,
unique: true
},
co... |
module.exports = {
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"rules": {
"indent": [
"error",
4
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
... |
export default datastore => {
datastore.watch(state => state.currentGroup.id, currentGroupId => {
if (!currentGroupId) return
datastore.dispatch('pickups/fetchListByGroupId', currentGroupId, { root: true })
datastore.dispatch('pickups/fetchFeedbackPossible', currentGroupId, { root: true })
}, { immediat... |
const SpecChecker = require('./spec-checker');
class EndOfTestSpecChecker extends SpecChecker {
constructor() {
super('eot', true, ['eot']);
}
}
const checker = new EndOfTestSpecChecker();
module.exports = checker;
|
/*
# Profile
# Builds a GitHub profile from repo, contributors, stargazers, watchers, and tags payloads
#
# Copyright © SoftLayer, an IBM Company
# Code and documentation licensed under MIT
*/
// Contributors
// ------------------------------
$.getJSON("https://api.github.com/repos/softlayer/softlayer-python/cont... |
var app = angular.module('app', [
'ngRoute',
'appControllers'
]);
app.config([
'$routeProvider',
function($routeProvider) {
$routeProvider
.when('/users', {
templateUrl: 'partials/user-list.html',
controller: 'UserListController'
})
... |
'use strict';
var _ = require('lodash');
var expect = require('chai').expect;
var filter = require('../..');
describe('Knex schema filter', function () {
var schemas, tableNames;
describe('given nothing', function () {
it('should return empty array', function (done) {
filter.filter(schemas, tableNames,... |
'use strict'
module.exports = (function() {
var fs = require('fs')
var PEG = require('pegjs')
// TODO: if webpack build, drop the filename concat used by browserify
return PEG.buildParser(fs.readFileSync(__dirname + '/issuemd-parser.pegjs', 'utf8')) // eslint-disable-line no-path-concat
})()
|
'use strict';
(function() {
// Measurements Controller Spec
describe('Measurements Controller Tests', function() {
// Initialize global variables
var MeasurementsController,
scope,
$httpBackend,
$stateParams,
$location;
// The $resource service augments the response object with methods for updating an... |
require("./sider.html");
module.exports = function($scope) {
"ngInject";
$scope.links = [
{ link: "#/home", text:"Home"},
{ link: "#/service", text:"Service"}
];
return $scope;
} |
"use strict";
const cliRunner = require("@lerna-test/cli-runner");
const commitChangeToPackage = require("@lerna-test/commit-change-to-package");
const gitTag = require("@lerna-test/git-tag");
const initFixture = require("@lerna-test/init-fixture")(__dirname);
test("includes dependents", async () => {
const cwd = a... |
let fs = require('fs');
let url = require('url');
let http = require('http');
class SignalProcessor {
constructor(configFilename, winston) {
this.messagesConfig = {};
this.configFilename = configFilename;
this.winston = winston;
}
init() {
this.messagesConfig = JSON.parse(... |
scheem = (function(){
/*
* Generated by PEG.js 0.7.0.
*
* http://pegjs.majda.cz/
*/
function quote(s) {
/*
* ECMA-262, 5th ed., 7.8.4: All characters may appear literally in a
* string literal except for the closing quote character, backslash,
* carriage return, line separator, par... |
'use strict';
module.exports = {
app: {
title: 'Sean Emmer',
description: 'Sean Emmer portfolio page',
keywords: 'Sean, Emmer',
googleAnalyticsTrackingID: process.env.GOOGLE_ANALYTICS_TRACKING_ID || 'GOOGLE_ANALYTICS_TRACKING_ID'
},
port: process.env.PORT || 3000,
templateEngine: 'swig',
logo... |
version https://git-lfs.github.com/spec/v1
oid sha256:59a4c3d88e32a617d79cc364f25bfd85b0148e372f33699676a026a1cc312ccb
size 1415
|
version https://git-lfs.github.com/spec/v1
oid sha256:3a4d667f02cbde4473cffd43529830b2278e6c3afea4654100a685c5ec9778d9
size 4487
|
"use strict"
$(function() {
var player, opponent;
var connection;
var model = [
['', '', ''],
['', '', ''],
['', '', '']
];
var init = function() {
var peer = new Peer({key: "9e8yliywalymbo6r", config: {'iceServers': [{ url: 'stun:stun.ekiga.net' }]}});
peer.on("open", function() {
$("#my-id").text... |
'use strict';
var async = require('async');
var googleapis = require('googleapis');
var rarity = require('rarity');
var config = require('../config/configuration.js');
var retrieve = require('../lib/helpers/retrieve.js');
describe("Retrieve code", function () {
it("should list files", function (done) {
async.wa... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'colorbutton', 'zh', {
auto: '自動',
bgColorTitle: '背景顏色',
colors: {
'000': '黑色',
'800000': '栗色',
'8B4513': '鞍褐色',
'2F4F4F': '暗瓦灰色... |
import styled from 'styled-components';
const FirstButton = styled.div`
display: flex;
flex-direction: rows;
justify-content: flex-end;
margin-top: 30px;
`;
export default FirstButton;
|
import Profession from '../../definitions/profession';
import * as Foods from '../items/foods';
import * as Heads from '../items/heads';
import * as Necks from '../items/necks';
import * as Potions from '../items/potions';
import * as Weapons from '../items/_weapons';
import * as Projectiles from '../items/projectile... |
define(['marionette',
'vent',
'backbone',
'views/dashboard.layout',
'views/tracklist.view',
'views/video.view',
'views/playercontrols.view',
'models/search.model',
'models/track.model',
'collections/queue.collection'
],
function(
Ma... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tokens_1 = require("../../../../tokens");
const functions = require("../stateFunctions");
const nodes_1 = require("../../../../nodes");
const bracketMain = require("../brackets/bracketMain");
function createNode(current, nodeType) ... |
require('babel-core/register');
require('babel-polyfill');
module.exports = {
default: [
require('./articles').default,
require('./operations').default,
],
};
|
var cooking = require('cooking');
var config = require('./config');
var md = require('markdown-it')();
var CopyWebpackPlugin = require('copy-webpack-plugin');
var striptags = require('./strip-tags');
var slugify = require('transliteration').slugify;
var isProd = process.env.NODE_ENV === 'production';
var isPlay = !!pro... |
(function() {
'use strict';
angular.module('civic.events.genes')
.config(geneTalkConfig)
.factory('GenesTalkViewOptions', GenesTalkViewOptions)
.controller('GeneTalkController', GeneTalkController);
// @ngInject
function geneTalkConfig($stateProvider) {
$stateProvider
.state('events.genes... |
var officegen = require('../')
var fs = require('fs')
var path = require('path')
var outDir = path.join(__dirname, '../tmp/')
var docx = officegen('docx')
docx.on('finalize', function (written) {
console.log(
'Finish to create Word file.\nTotal bytes created: ' + written + '\n'
)
})
docx.on('error', functi... |
module.exports = function(grunt) {
'use strict';
// load all grunt tasks
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
jshintrc: '.jshintrc',
ign... |
/*
* jQuery ForgetMeNot
* - Remember form input plugin for jQuery
*
* Copyright (c) 2011 Arthur Dick
* Licensed under the MIT license (MIT-LICENSE.txt)
*/
(function( $ ){
$.fn.forgetMeNot = function() {
if(localStorage.getItem(this.attr("name"))) {
this.val(localStorage.getItem(this.attr(... |
'use strict';
let errors = require('../../app/support').errors,
pagination = require('../../app/middlewares').pagination;
const DEFAULT_LIMIT = 25,
DEFAULT_OFFSET = 0
describe('Pagination Middleware', () => {
it('parses the pagination parameters from the query string', done => {
let req = { query: { l... |
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homep... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.