code stringlengths 2 1.05M |
|---|
"use strict";
var Lab = require("lab");
var plugin = require("..");
var describe = Lab.describe;
var expect = Lab.expect;
var it = Lab.it;
describe("The plugin", function () {
it("has a name", function (done) {
expect(plugin.register.attributes, "no name")
.to.have.property("name", "badge");
done(... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["react-syntax-highlighter_languages_highlight_dos"],{
/***/ "./node_modules/highlight.js/lib/languages/dos.js":
/*!********************************************************!*\
!*** ./node_modules/highlight.js/lib/languages/dos.js ***!
\*****************... |
class Class1 {
constructor(x) { this.x = x; }
}
new Class1(42, 23); // NOT OK: `23` is ignored
class Sup {
constructor(x) { this.x = x; }
}
class Sub extends Sup {
}
new Sub(42); // OK: synthetic constructor delegates to super constructor
class Other {}
new Other(42); // NOT OK: `42` is ignored
var args = [];... |
'use strict';
module.exports = function (t, a) {
a(t({}), 0, "NaN");
a(t(20), 20, "Positive integer");
a(t('-20'), -20, "String negative integer");
a(t(Infinity), Infinity, "Infinity");
a(t(15.343), 15, "Float");
a(t(-15.343), -15, "Negative float");
};
//# sourceMappingURL=to-integer-compiled.js.map |
"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... |
var highscoreList = new Array();
var highscoreNameList = new Array();
var highscoreLadderList = new Array();
/**
* @Class
* @name highscoreState
* @desc state that shows the highscores you have obtained.
* @property {fontStyle} style - style of the font in the score.
* @property {text} titleStyle ... |
/*!
** Unobtrusive validation support library for jQuery and jQuery Validate
** Copyright (C) Microsoft Corporation. All rights reserved.
*/
/*jslint white: true, browser: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: false ... |
// @AngularClass
/*
* Helper: root(), and rootDir() are defined at the bottom
*/
var path = require('path');
// Webpack Plugins
var ProvidePlugin = require('webpack/lib/ProvidePlugin');
var DefinePlugin = require('webpack/lib/DefinePlugin');
var CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin'... |
// All code points in the `No` category as per Unicode v5.1.0:
[
0xB2,
0xB3,
0xB9,
0xBC,
0xBD,
0xBE,
0x9F4,
0x9F5,
0x9F6,
0x9F7,
0x9F8,
0x9F9,
0xBF0,
0xBF1,
0xBF2,
0xC78,
0xC79,
0xC7A,
0xC7B,
0xC7C,
0xC7D,
0xC7E,
0xD70,
0xD71,
0xD72,
0xD73,
0xD74,
0xD75,
0xF2A,
0xF2B,
0xF2C,
0xF2D,
0xF2... |
import { EventEmitter } from 'events'
import dispatcher from '../dispatcher'
import CarData from '../data/CarData'
import carActions from '../actions/CarActions'
class CarStore extends EventEmitter {
create (car) {
CarData.create(car)
.then(data => this.emit(this.eventTypes.CAR_CREATED, data))
}
delet... |
'use strict';
const NUM_BACKGROUND_PROCS = 4;
const electron = require('electron');
const app = electron.app;
const path = require('path');
const appPath = app.getAppPath();
const appNodeModules = path.join(appPath, 'node_modules');
require('app-module-path').addPath(appNodeModules);
// adds debug features like hotke... |
Meteor.subscribe("sound");
|
describe('use-fullscreen API', () => {
describe('Props', () => {
describe('Category: behavior', () => {
describe('(prop): fullscreen', () => {
it.skip(' ', () => {
//
})
})
describe('(prop): no-route-fullscreen-exit', () => {
it.skip(' ', () => {
//
... |
/*
* Copyright (c) 2015-2016 Markus Moenig <markusm@visualgraphics.tv>
*
* 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 t... |
module.exports = {
entry: ['./src/index.js'],
output: {
path: __dirname,
publicPath: '/',
filename: 'bundle.js'
},
module: {
rules: [
{
test: /\.jsx?$/,
exclude: /node_modules/,
loader: 'babel-loader'
}
]
},
resolve: {
extensions: ['.js', '.jsx']
... |
const path = require('path');
const logger = require('./logger');
const addMetadata = (res, filepath) => {
if (res.constructor === Array) {
return res.map(item => {
item.file = filepath;
return item;
});
} else {
res.file = filepath;
return res;
}
};
module.exports = {
import: (filePath, { strict =... |
import React from 'react';
import PropTypes from 'prop-types';
import GlobalContextProvider from './src/utils/GlobalContextProvider';
export const wrapRootElement = ({ element }) => (
<GlobalContextProvider>{element}</GlobalContextProvider>
);
wrapRootElement.propTypes = {
element: PropTypes.node,
};
|
const JwtStrategy = require('passport-jwt').Strategy;
const ExtractJwt = require('passport-jwt').ExtractJwt;
const passport = require('passport');
const config = require('../config');
const jwt = require('jsonwebtoken');
const User = require('../models/User');
const jwtOptions = {
jwtFromRequest: ExtractJwt.fromAu... |
/**
* @fileOverview Mosaiqy for jQuery
* @version 1.0.1
* @author Fabrizio Calderan, http://www.fabriziocalderan.it/mosaiqy
*
* Released under license Creative Commons, Attribution-NoDerivs 3.0
* (CC BY-ND 3.0) available at http://creativecommons.org/licenses/by-nd/3.0/
* Read the license carefully before using ... |
(function(){
var field = document.getElementById('email'),
submit = document.getElementById('subscribe'),
defaultValue = field.title;
field.onfocus = function(){
if (field.value === defaultValue) {
field.value = '';
}
};
field.onblur = function(){
if (!field.value) {
field.value = de... |
describe('Controller: Locations', function () {
'use strict';
var scope;
var controller;
var dataFactory, stateFactory, apiFactory;
beforeEach(module('AQ'));
beforeEach(inject(function ($rootScope, $controller, data, state, api) {
scope = $rootScope.$new();
dataFactory = data;
stateFactory = ... |
const puppeteer = require('puppeteer')
;(async() => {
const browser = await puppeteer.launch()
const page = await browser.newPage()
await page.goto('https://www.niaoyun.com/', { waitUntil: 'networkidle'})
await page.pdf({
path: './download/niaoyun.pdf',
format: 'letter'
})
awa... |
var input = document.querySelector('#input')
var output = document.querySelector('#output')
var form = document.querySelector('#form')
var defaultInput = '((3 * 4) / (2 + 5)) * (3 + 4)'
input.value = localStorage.getItem('itp_input') || defaultInput
form.addEventListener('submit', function(event) {
event.preventDe... |
/*
* Copyright (c) 2016, Globo.com (https://github.com/globocom)
*
* License: MIT
*/
import React, { Component } from 'react';
import { Icon } from '../../../../../../components/BasicComponents';
// import insertDataBlock from '../insertDataBlock';
export default class MapButton extends Component {
// constru... |
// Mon Sep 9 11:17:26 2019
// M. Oettinger, Marcus -at- oettinger-physics.de
//
// v 0.5 - removed jquery and jcanvas dependency
//
/**
* @file CNum.js: sketch the complex plane in a html5 canvas
* @author Marcus Oettinger
* @version 0.3.1
* @license MIT (see {@link http://opensource.org/licenses... |
const rightMargin = $(".tab-pane.active").css('marginRight')
$(".nav-item").click(e => {
var elementToDisplay = $("#" + e.target.getAttribute("show"))
if (elementToDisplay.length === 0)
return
//NAVBAR
$(".nav-item.active").removeClass("active")
$(e.target).parent().addClass("active")
//DIV
var elementTo... |
/**
* @fileoverview ARC4 streamcipher implementation. A description of the
* algorithm can be found at:
* http://www.mozilla.org/projects/security/pki/nss/draft-kaukonen-cipher-arcfour-03.txt.
*
* Original implemention found at: http://docs.closure-library.googlecode.com/git/closure_goog_crypt_arc4.js.source.html... |
var path = require('path');
var express = require('express');
var bodyParser = require('body-parser');
var logger = require('morgan');
var crypto = require('crypto');
var bcrypt = require('bcryptjs');
var mongoose = require('mongoose');
var jwt = require('jwt-simple');
var moment = require('moment');
var async = requ... |
module.exports = trimSlashes => [
(req, res, next) => {
if (req.query.file) {
req.getFile = () => trimSlashes(req.query.file);
next();
} else {
res.status(400).json({
error: '?file query path is empty'
});
}
},
(req, res, next) => {
if (req.body.newname) {
req... |
$(document).ready(function(){
// Step 1: Listen for a click event on our checkboxes
// Step 2: Use the toggleClass method to add or remove the "chcked" class to the checkbox that was clicked
$(".checkbox").click(function(){
$(this).toggleClass("checked");
});
});
|
// Here's a multiline comment.
// * This one has stars in the middle parts.
// * yup, stars.
//
var someFunction = function () { // this function is awesome
return 42;
};
|
'use strict';
var algoliasearchHelper = require('../../../../index.js');
test('[derived helper] detach a derived helper', function(done) {
var client = {
search: searchTest
};
var helper = algoliasearchHelper(client, '');
var derivedHelper = helper.derive(function(s) { return s; });
derivedHelper.on('re... |
var telegram = require('telegram-bot-api');
var api = new telegram({
token: '<YOUR TOKEN>',
updates: {
enabled: true,
get_interval: 1000
}
});
api.on('message', function(message)
{
var chat_id = message.chat.id;
// It'd be good to check received message type here
// And react accordingly
// We consider tha... |
module.exports = function(app){
app.get('/', function(req, res){
res.render('index', {
title: 'Express Login'
});
});
//other routes..
}; |
module.exports = function(config){
config.set({
basePath : '../',
files : [
'bower_components/angular/angular.js',
'bower_components/angular/angular-*.js',
'bower_components/angular-mocks/angular-mocks.js',
'app/js/**/*.js',
'test/unit/**/*.js',
'bower_components/moment/... |
// Requiring and exporting JSUS
var JSUS = require('JSUS').JSUS;
module.exports.JSUS = JSUS;
var util = require('util'),
fs = require('fs'),
path = require('path'),
should = require('should'),
NDDB = require('./../index').NDDB;
var db = new NDDB();
var db2 = new NDDB();
// TODO: make a test were a file containing we... |
"use strict";
var helpers = require("../../helpers/helpers");
exports["Asia/Vladivostok"] = {
"1922" : helpers.makeTestYear("Asia/Vladivostok", [
["1922-11-14T15:12:15+00:00", "23:59:59", "LMT", -31664 / 60],
["1922-11-14T15:12:16+00:00", "00:12:16", "VLAT", -540]
]),
"1930" : helpers.makeTestYear("Asia/Vladi... |
define('mp-01-web/tests/helpers/replace-app-ref', ['exports'], function (exports) {
exports['default'] = replaceAppRef;
/**
* Updates the supplied app adapter's Firebase reference.
*
* @param {!Ember.Application} app
* @param {!firebase.database.Reference} ref
* @param {string} [model] The model,... |
'use strict';
// Use Applicaion configuration module to register a new module
ApplicationConfiguration.registerModule('core');
ApplicationConfiguration.registerModule('core.admin', ['core']);
ApplicationConfiguration.registerModule('core.admin.routes', ['ui.router']);
ApplicationConfiguration.registerModule('core');
... |
var _clamp_8h =
[
[ "Clamp", "class_clamp.html", "class_clamp" ],
[ "_CLAMP_BRINGUP_", "_clamp_8h.html#ae642671ca8e1edb6d156e52a87e74b72", null ],
[ "_CLAMP_CATCH_", "_clamp_8h.html#aa9e63fe6512686d9104e7827aba7e306", null ],
[ "_CLAMP_INITIALISATION_", "_clamp_8h.html#a13c3227529e189a616e46167c98cb5c4"... |
function undef(x) {
return typeof x === 'undefined';
}
|
'use babel';
import ProjectRunner from '../lib/project-runner';
describe('ProjectRunner', () => {
let workspaceElement, activationPromise;
beforeEach(() => {
workspaceElement = atom.views.getView(atom.workspace);
activationPromise = atom.packages.activatePackage('project-runner');
});
describe('when... |
CLASS.Stage = function () {
// Position
this.x = 0;
this.y = 0;
};
CLASS.Stage.append = {
/*
Clear everything that has been rendered.
*/
clear: function (context) {
context.clearRect(this.x, this.y, CONST.STAGE_WIDTH, CONST.STAGE_HEIGHT);
}
};
|
/* eslint-disable */
var path = require('path');
module.exports = {
devtool: 'eval',
entry: './app/index',
output: {
path: path.join(__dirname, 'app', 'static'),
filename: 'bundle.js',
publicPath: 'static/',
},
module: {
loaders: [{
test: /\.js$/,
loaders: ['babel'],
exclu... |
var gulp = require('gulp');
var gutil = require('gulp-util');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var jshint = require('gulp-jshint');
var minifyCSS = require('gulp-minify-css');
var browserify = require('browserify');
var transform = require('vinyl-transform');
var path = require... |
import Ember from 'ember';
/* globals FB */
var facebookScriptPromise;
export default Ember.Service.extend({
/*
* A tracking object implementing `shared(serviceName, payload)` and/or
* `clicked(serviceName, payload)` can be set on this object, and will
* be delegated to if present. Not all Facebook
* c... |
function pageLoad() {
resize();
var hash = window.location.hash.substring(1);
if(hash != "") {
var iframe = document.getElementById("iframe").src = hash + ".html";
changeExample(hash);
} else {
var selected = document.getElementsByClassName("selected");
var iframe = document.getElementById("iframe").src = s... |
define(['utils', 'consts'], function(utils, consts) {
'use strict';
describe('Test Utils', function() {
beforeEach(function() {
this.body = consts.DOC.body;
this.utils = Object.create({
container: consts.DOC.createElement('div'),
gameContainer: co... |
/* global describe, beforeEach, module, inject, it, expect */
describe("JsonPrint", function() {
"use strict";
var $rootScope, $compile, JsonParser, json;
beforeEach(module('json-print'));
beforeEach(inject(function(_$rootScope_, _$compile_, _JsonParser_) {
$rootScope = _$rootScope_;
... |
import React from 'react';
import ReactDOM from 'react-dom';
import Router from 'react-router';
import routes from './routes';
import createBrowserHistory from 'history/lib/createBrowserHistory';
let history = createBrowserHistory();
/**客户端渲染react**/
ReactDOM.render(<Router history={history}>{routes}</Router>,docume... |
/* global QUnit */
import { runStdGeometryTests } from '../../utils/qunit-utils';
import { BoxGeometry, BoxBufferGeometry } from '../../../../src/geometries/BoxGeometry';
export default QUnit.module( 'Geometries', () => {
QUnit.module( 'BoxGeometry', ( hooks ) => {
var geometries = undefined;
hooks.beforeEach(... |
/**
* This module bundles all routing related code.
*
* - Set the document title by the current route.
* - Provide router guards for some components.
*
* @module @bldr/lamp/routing
*/
/**
* The route object of the Vue Router package.
*
* @see {@link https://router.vuejs.org/api/#the-route-object Vue Router A... |
/*!
* EJS - Filters
* Copyright(c) 2010 TJ Holowaychuk <tj@vision-media.ca>
* MIT Licensed
*/
/**
* First element of the target `obj`.
*/
exports.first = function(obj) {
return obj[0];
};
/**
* Last element of the target `obj`.
*/
exports.last = function(obj) {
return obj[obj.length... |
'use strict';
angular.module('calendarApp', ['ngMaterial', 'ui.router'])
.config(function($urlRouterProvider, $mdThemingProvider){
$urlRouterProvider
.otherwise('/');
$mdThemingProvider.theme('default')
.primaryPalette('indigo')
.accentPalette('lime');
}); |
(function ($) {
$.fn.ThemeColorPicker = function() {
var target = $(this);
/*
target.colorpicker().on('changeColor', function (event){
target.find('input').val(event.color.toHex());
});
*/
target.colorpicker().on('show', function (event){
//alert('... |
var flyd = require('../../../lib');
var stream = flyd.stream;
var dropRepeats = require('../').dropRepeats;
var dropRepeatsWith = require('../').dropRepeatsWith;
var R = require('ramda');
var assert = require('assert');
var collect = flyd.scan(R.flip(R.append), []);
describe('dropRepeats', function() {
it('drops co... |
import React from 'react';
import { connect } from 'react-redux';
import config from '../config';
import actions from '../actions';
import { classNames } from '../utillities';
import BlockUser from '../components/components.block-user';
class ChatSettings extends React.Component {
constructor(props) {
super(pr... |
import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {StyleSheet, TouchableOpacity, Image, Text, View} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
class CounterView extends Component {
static displayName = 'CounterView';
static navigationOptions ... |
import React from 'react';
import PureRenderMixin from 'react-addons-pure-render-mixin';
import {store} from '../store';
import {HoverButton} from './HoverButton';
import Radium from 'radium';
const divStyle = {
fontSize: '25px',
marginLeft: '20px',
marginRight: '20px',
marginBottom: '20px',
};
const imageSty... |
var test = require('tape');
var mobx = require('..');
test('spy output', t => {
var events = [];
var stop = mobx.spy(c => events.push(c));
doStuff();
stop();
doStuff();
events.forEach(ev => { delete ev.object; delete ev.fn; delete ev.time; });
t.equal(events.length, doStuffEvents.length, "amount of ... |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { render } from '@ember/test-helpers';
import { hbs } from 'ember-cli-htmlbars';
module('Integration | Component | animated if', function (hooks) {
setupRenderingTest(hooks);
test('it renders when true', async function ... |
var Vue = require('src')
var _ = Vue.util
describe('v-for + ref', function () {
var el
beforeEach(function () {
el = document.createElement('div')
})
it('normal', function (done) {
var vm = new Vue({
el: el,
data: { items: [1, 2, 3, 4, 5] },
template: '<test v-for="item in items" :i... |
var _ = require('underscore');
var FormView = require('./__FormView'),
$ = require('jquery'),
Backbone = require('backbone'),
goodsTpl = require('../templates/_entityGoods.tpl');
var config = require('../conf');
Backbone.$ = $;
//** 模型
var Goods = Backbone.Model.extend({
idAttribute: '_id',
urlRoot: config.ap... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h(h.f, null, h("circle", {
cx: "9",
cy: "12",
r: "8"
}), h("path", {
d: "M17 4.26v2.09c2.33.82 4 3.04 4 5.65s-1.67 4.83-4 5.65v2.09c3.45-.89 6-4.01 6-7.74s-2.55-6.85-6-7.74z"
})), 'FiberSmartRecord'); |
var searchData=
[
['alreadyauthenticated',['AlreadyAuthenticated',['../../../../daonet/documentation/html/class_dao_net_1_1_error.html#a56778e707b6eaaf6b7691d2f0caece44af8cd39c387f4df976dd6b000dfa5bbab',1,'DaoNet::Error']]],
['authenticating',['Authenticating',['../../../../daonet/documentation/html/class_dao_net_1... |
var count = 0;
function cc(card) {
// Only change code below this line
switch(card) {
case 2:
case 3:
case 4:
case 5:
case 6:
count++;
break;
case 10:
case "J":
case "Q":
case "K":
case "A":
count--;
break;
}
if(count > 0)
return count + ... |
'use strict';
/* eslint-disable no-script-url */
describe('$compile', function() {
var document = window.document;
function isUnknownElement(el) {
return !!el.toString().match(/Unknown/);
}
function isSVGElement(el) {
return !!el.toString().match(/SVG/);
}
function isHTMLElement(el) {
retur... |
/*
* Copyright (c) 2016-present, Parse, LLC
* All rights reserved.
*
* This source code is licensed under the license found in the LICENSE file in
* the root directory of this source tree.
*/
import React from 'react';
import Button from 'components/Button/Button.react';
export const component = Button;
export... |
/*!
* d3pie
* @author Ben Keen
* @version 0.1.9
* @date June 17th, 2015
* @repo http://github.com/benkeen/d3pie
*/
// UMD pattern from https://github.com/umdjs/umd/blob/master/returnExports.js
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous modu... |
var saludo = function (nombre){
console.log('Hola ' + nombre);
}
//exportar modulo
module.exports = {
saludo: saludo
} |
module.exports = {
api: {
query: {
lean: true
},
token: {
secret: 'bx9cazd3uetbimX29umieDF1vwuCANwJ',
expires: 60
},
admin: {
user: {
name: 'Super Admin',
email: 'super@admin.com',
... |
'use strict';
app.directive("mainColors", ['$http', '$q', '$timeout', function ($http, $q, $timeout) {
return {
restrict: 'E',
templateUrl: "modules/phoneColors/mainColors/colors.html",
link: function (scope, element, attrs) {
//模块标题
scope.mainColorTitle = attrs.tit... |
require("./108.js");
require("./217.js");
require("./435.js");
require("./869.js");
module.exports = 870; |
console.log(5 + 7 / 3 - 4 * 3 % 5);
console.log(2 * (6 + 7) / 3);
console.log(3 / (2 - 1));
console.log((5 * 3 + 1) * 2);
console.log(8 % (5 + 2) * 1 * (1 + 2));
console.log(2 * Math.pow(3, 2 + 4 / 2)); |
"use strict";
exports["default"] = function serviceHandler (sid) {
/*
* Below are the supported options for the serviceHandler:
*
* - data (object): request data payload
* - params (object): use to replace the tokens in the url
* - query (object): use to build the query string appended to the url
* ... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.9.0-rc1-master-aff50d5
*/
goog.provide('ng.material.components.chips');
goog.require('ng.material.components.autocomplete');
goog.require('ng.material.core');
(function () {
'use strict';
/**
* @ngdoc module
* @name m... |
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by CodeZu.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//-----------------------------------... |
'use strict';
/**
* This will be transferred over to gd and overridden by
* config args to Plotly.newPlot.
*
* The defaults are the appropriate settings for plotly.js,
* so we get the right experience without any config argument.
*
* N.B. the config options are not coerced using Lib.coerce so keys
* like `valT... |
'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
module.exports = function (timePeriodObj) {
if (!timePeriodOb... |
/**
* This source code is quoted from rc-tabs.
* homepage: https://github.com/react-component/tabs
*/
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import debounce from 'lodash/debounce';
import ResizeObserver from 'resize-observer-polyfill';
import { setTransform, ... |
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Alert from '@material-ui/lab/Alert';
import AlertTitle from '@material-ui/lab/AlertTitle';
//
import * as Utils from '../../../utils';
import AbstractComponent from '../AbstractComponent/AbstractComponent';
import... |
var abbreviationBody = {
"SP": "Servicios Parlamentarios",
"SA": "Servicios Administrativos",
"SME": "Servicios Medicos y Esteticos",
"UT": "Unidad de Transferencia",
"CS": "Communicación Social",
"CI": "Controloría Interna",
"AS": "Auditoría Superior",
... |
var ColorSet = require('./colorset');
var Color = require('./_color');
var Lut = function(colors, delegates) {
ColorSet.call(this, delegates);
Object.defineProperties(this, {
'_values' : { value: {} } });
for (var name in colors) {
if (colors.hasOwnProperty(name)) {
this._... |
import { createGlobalStyle } from 'styled-components';
export const GlobalStyle = createGlobalStyle`
@import url("https://use.typekit.net/sjl7giv.css");
* {
box-sizing: border-box;
}
html, body {
margin: 0;
padding: 0;
color: #1c1c1c;
background-color: #ffffff;
font-size: 16px;
fo... |
var mongoose = require('mongoose');
module.exports = {
connect: function(){
mongoose.connect('mongodb://localhost/socialwave');
}
}; |
Nehan.TextEmpha = (function(){
/**
@memberof Nehan
@class TextEmpha
@classdesc abstraction of text emphasis.
@constructor
@param opt {Object}
@param opt.style {Nehan.TextEmphaStyle}
@param opt.pos {Nehan.TextEmphaPos}
@param opt.color {Nehan.Color}
*/
function TextEmpha(opt... |
var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
gulp.task('default', ['scripts'], function () {
});
var paths = {
scripts: ['src/js/*.js']
};
gulp.task('scripts',function(){
return gulp.src(paths.scripts)
.pipe(uglify())
.pipe(concat('r... |
/*
* Globalize Culture iu-Latn
*
* http://github.com/jquery/globalize
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* This file was generated by the Globalize Culture Generator
* Translation: bugs found in this... |
(function () {
'use strict';
var playerSetup = function (stateContext) {
var self = this;
//Criando balas
this.bullets = this.game.add.group();
this.bullets.enableBody = true;
this.isWolf = false;
this.bullets.physicsBodyType = Phaser.Physics.ARCADE;
... |
import Icon from '../../index';
import React, {Component} from 'react';
import {render} from 'react-dom';
import './index.less';
class BaseDemo extends Component {
render() {
return (
<Icon type="xiaoxi" />
)
}
}
let root = document.getElementById('app');
render(<BaseDemo />, roo... |
export const cog = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M9.387 17.548l.371 1.482c.133.533.692.97 1.242.97h1c.55 0 1.109-.437 1.242-.97l.371-1.482c.133-.533.675-.846 1.203-.694l1.467.42c.529.151 1.188-.114 1.462-.591l.5-.867c.274-.477.177-1.179-.219-1.562l-1.098-1.061c-.396-.383-.396-1.008.0... |
// Generated by CoffeeScript 1.7.1
$(function() {
var SqlController, SqlLogic, async, db;
db = null;
async = h5.async;
SqlLogic = {
__name: 'SqlLogic',
init: function() {
var dfd, table_query;
dfd = async.deferred();
if (!h5.api.sqldb.isSupported) {
alert('お使いのブラウザはWEB SQL Data... |
'use strict';
angular.module('spedycjacentralaApp')
.config(function ($stateProvider) {
$stateProvider
.state('account', {
abstract: true,
parent: 'site'
});
});
|
namespace('Sy.Storage');
/**
* Entry point to the storage mechanism
*
* @package Sy
* @subpackage Storage
* @class
*/
Sy.Storage.Core = function () {
this.managers = null;
this.defaultName = 'default';
this.factory = null;
};
Sy.Storage.Core.prototype = Object.create(Object.prototype, {
/**
... |
/**
* InitBase class
*
*
* @author <%= answers.username %>
* @date <%= answers.date %>
*
*/
(function(define) {
'use strict';
define(['extend'], function() {
var InitBase = Class.extend(function() {
this.constructor = function(features, app) {
this.features =... |
// access plugin
var net_utils = require('./net_utils');
var utils = require('./utils');
exports.register = function() {
var plugin = this;
plugin.init_config();
plugin.init_lists();
var phase;
for (phase in plugin.cfg.white) plugin.load_file('white', phase);
for (phase in plugin.cfg.b... |
var express = require('express');
var bodyParser = require('body-parser');
var ctrls = require('./controllers');
/**
* Creates a Router using an injectable `routerFactory` (express or any
* connect-style router).
*
* If the entity requested has defined middleware functions, those will be
* run after getting the r... |
'use strict';
module.exports = function ( grunt ) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
files: ['app/**/*.js', 'public/scripts/**/*.js']
},
concurrent: {
start: {
tasks: ['nodemon', 'watch', 'sass'],
options:... |
import angular from 'angular';
import uiRouter from 'angular-ui-router';
import ngResource from 'angular-resource';
import ngSanitize from 'angular-sanitize';
import ngAnimate from 'angular-animate';
import Questions from './questionsService';
import QuestionsController, { AnswersController, QuickViewController } from... |
describe('Visit all pages, check for no console errors', function() {
function testPagesForConsoleOutput(urls, done) {
if (urls.length === 0) {
browser.call(done);
return;
}
var url = urls.pop();
browser.url(url)
.then(function(x, res) {
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.