code stringlengths 2 1.05M |
|---|
/*
* grunt-sass-compile-imports
* https://github.com/bmds/grunt-sass-compile-imports
*
* Copyright (c) 2014 Barney Scott
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
... |
/*! @license Firebase v4.5.0
Build: rev-f49c8b5
Terms: https://firebase.google.com/terms/ */
/**
* Copyright 2017 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
*
* htt... |
import { module, test } from 'qunit';
import { setupTest } from 'ember-qunit';
module('Unit | Controller | weeklyevents', function (hooks) {
setupTest(hooks);
// Replace this with your real tests.
test('it exists', function (assert) {
const controller = this.owner.lookup('controller:weeklyevents');
asse... |
var oexi18n = {
"Click, then press Ctrl+S to save.":"Cliquez, puis appuyez sur Ctrl+S pour enregistrer.",
"Download Video":"Télécharger la vidéo"
}
|
'use strict';
var isA = require("Espresso/oop").isA;
var oop = require("Espresso/oop").oop;
var init = require("Espresso/oop").init;
var trim = require("Espresso/trim").trim;
var isA = require("Espresso/oop").isA;
var oop = require("Espresso/oop").oop;
var AsyncEvent = require("Espresso/Event/AsyncEvent");
var Kerne... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.6.1-master-d192083
*/
!function(){"use strict";function i(){}function e(e){return{restrict:"E",link:e,controller:[i]}}angular.module("material.components.divider",["material.core"]).directive("mdDivider",e),e.$inject=["$mdThemi... |
var contwidgetorUi = require('contwidgetor-ui');
var ReactDOM = require('react-dom');
var React = require('react');
var ContributionsGrid = contwidgetorUi.ContributionsGrid;
var NoContributionsGrid = contwidgetorUi.NoContributionsGrid;
$(document).ready(function() {
var _contributions = {"2011-10-06":3,"2011-10-23":... |
'use strict'
const KadDht = require('libp2p-kad-dht')
const Crypto = require('../../../src/insecure/plaintext')
const Muxer = require('libp2p-mplex')
const Transport = require('libp2p-tcp')
const mergeOptions = require('merge-options')
const baseOptions = {
modules: {
transport: [Transport],
streamMuxer: [... |
(function() {
'use strict';
angular
.module('app.promise')
.factory('DeleteDataParams', DeleteDataParams);
DeleteDataParams.$inject = ['$q', '$timeout', 'withParams'];
/*@ngInject*/
function DeleteDataParams($q, $timeout, withParams) {
return function(api, restApi, params, queryParams) {... |
'use strict';
app.controller('registerCtrl', function ($scope) {
var REs = {
username: /^\w+$/,
email: /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/
};
$.each(REs, function (key) {
... |
const turf = {
along: require('@turf/along').default,
length: require('@turf/length').default,
pointOnFeature: require('@turf/point-on-feature').default
}
module.exports = function pointOnFeature (ob, leafletFeatureOptions) {
const geojson = ob.GeoJSON()
let poi
if (geojson.geometry.type === 'LineString')... |
var base = require('./karma.base.config.js')
module.exports = function (config) {
var cfg = {
browsers: ['Chrome'/*, 'Firefox', 'Safari'*/],
reporters: ['progress'],
singleRun: true
}
console.log(process.env.NODE_ENV)
if (process.env.NODE_ENV === 'travis') {
cfg.browsers = ['PhantomJS']
}
c... |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... |
jQuery(document).ready(function($) {
/*======= Skillset *=======*/
$('.level-bar-inner').css('width', '0');
$(window).on('load', function() {
$('.level-bar-inner').each(function() {
var itemWidth = $(this).data('level');
$(this).animate({
... |
'use strict';
var app= angular.module('core').controller('HomeController', ['$scope', 'Authentication', 'ProductosPaginate','Categorias',
function($scope, Authentication, ProductosPaginate, Categorias) {
//Hacemos una query para listar Productos
ProductosPaginate.query({'page':1,'total':4},function(p) {
$sco... |
var gulp = require('gulp');
// wee server for dev work, live reloads on changes
var connect = require('gulp-connect');
var connectReload = require('connect-livereload');
// helper library for copying bower dependencies
var mainBowerFiles = require('main-bower-files');
// copy bower dependencies to lib folder
gulp.ta... |
/*! DataTables Bootstrap 3 integration
* ©2011-2015 SpryMedia Ltd - datatables.net/license
*/
/**
* DataTables integration for Bootstrap 3. This requires Bootstrap 3 and
* DataTables 1.10 or newer.
*
* This file sets the defaults and adds options to DataTables to style its
* controls using Bootstrap. See http:/... |
var foo = (function (a) {
'use strict';
/* this is an intro */
// intro 1
// intro 2
// intro 3
// intro 4
var a__default = 'default' in a ? a['default'] : a;
console.log( a__default );
console.log( a.b );
var main = 42;
return main;
/* this is an outro */
// outro 1
// outro 2
// outro 3
... |
var timers = require('timers');
var spawn = require('cross-spawn');
var utils = require('../utils');
var childProcess = require('child_process');
var origFs = require('fs');
var base = __dirname + "/../..";
/**
* Restart server
*/
var restart = function () {
timers.setTimeout(function () {
try {
origFs.c... |
/* eslint-disable */
// Auto-generated by generate-enums script on Thu Feb 24 2022 03:38:38 GMT-0500 (Eastern Standard Time)
/**
* @enum
* @readonly
*/
const ELicenseType = {
"NoLicense": 0,
"SinglePurchase": 1,
"SinglePurchaseLimitedUse": 2,
"RecurringCharge": 3,
"RecurringChargeLimitedUse": 4,
"RecurringCha... |
import expect from 'expect';
import React from 'react';
import { mount } from 'enzyme';
import { Provider } from 'react-redux';
import configureStore from '../../../src/app/stores/windowStore';
import App from '../../../src/app/containers/App.js';
const store = configureStore(store);
const component = mount(<Provider ... |
var AuthHttpResponseInterceptor = function($q, $location) {
return {
response: function (response) {
if (response.status === 401) {
console.log("Response 401");
}
return response || $q.when(response);
},
responseError: function (rejection)... |
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homep... |
module.exports = function(grunt)
{
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
scsslint: {
lint: {
options: {
config: '.scss-lint.yml',
reporterOutput: 'scss-lint-reporter.xml'
}
}
},
libsass: {
test: {
options: {
outputStyle: 'expanded',
sourceMap:... |
/*
* pub-preview.js
*
* browserify entry point for preview helper script
* auto-injected into preview html by pub-editor
* binds preview doc to generator via jqueryview
*
* NOTE: uses history push/pop-state, which doesn't work in older browers
* Copyright (c) 2015-2022 Jürgen Leschner - github.com/jldec - MIT l... |
(function () {
'use strict';
angular
.module('app')
.directive('locationString', locationString);
locationString.$inject = [];
/* @ngInject */
function locationString() {
var directive = {
replace: true,
bindToController: true,
controller... |
import React from 'react'
import AddReview from '../Forms/AddReview'
export default class ItemContainer extends React.Component {
constructor(props) {
super(props)
this.state = {
showComponent: false
}
this.onButtonClick = this.onButtonClick.bind(this)
}
onButtonClick() {
this.setStat... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
var _c... |
function Soundcloud($scope, $http, SoundCloudService, SpeechService, Focus) {
//Initialize SoundCloud
SoundCloudService.init();
//SoundCloud search and play
SpeechService.addCommand('sc_play', function (query) {
SoundCloudService.searchSoundCloud(query).then(function (response) {
if (response[0].ar... |
var fs = require( 'fs.extra' );
var util = require( 'util' );
var path = require( 'path' );
var PaginationGenerator = require( './PaginationGenerator' ).PaginationGenerator;
Array.prototype.contains = function( val ) {
return this.indexOf( val ) != -1;
};
Array.prototype.difference = function( arr ) {
var d... |
'use strict';
var chai = require('chai');
var expect = chai.expect;
describe('file-icon', function () {
var fileIcon = require('../lib');
describe('exports', function () {
it('should expose a function', function () {
expect(fileIcon).to.be.a('function');
});
});
}); |
const _ = require('lodash');
function checkCount(value, {count, minCount, maxCount} = {}) {
const size = _.size(value);
return (!count || size === count) &&
(!minCount || size >= minCount) &&
(!maxCount || size <= maxCount);
}
module.exports = {
checkCount
};
|
"use babel";
import { defaultConfig } from "../lib/config";
import Path from "path";
import NotesFileFilter from "../lib/notes-file-filter";
describe("notes-file-filter", () => {
let notesFileFilter;
beforeEach(function() {
atom.config.set(
"textual-velocity.ignoredNames",
defaultConfig.ignoredNa... |
//This is the 2D Frame script extended out to 3D Frame calculations
//Gradient generator credit: https://www.strangeplanet.fr/work/gradient-generator/index.php
var undeformed = [{state: true}];
var deformed = [{state: true}];
var scene = document.querySelector('a-scene');
var DefNode = [];
var NodeList = [];
var mat... |
/*globals define, debug*/
/*eslint-env node*/
/*eslint no-console: 0*/
/**
* @author pmeijer / https://github.com/pmeijer
*/
define(['debug'], function (_debug) {
'use strict';
// Separate namespaces using ',' a leading '-' will disable the namespace.
// Each part takes a regex.
// ex: localSto... |
describe('GridRow factory', function () {
var $q, $scope, grid, Grid, GridRow, gridUtil, gridClassFactory, $timeout;
beforeEach(module('ui.grid.ie'));
beforeEach(inject(function (_$q_, _$rootScope_, _Grid_, _GridRow_, _gridUtil_, _gridClassFactory_, _$timeout_) {
$q = _$q_;
$scope = _$rootScope_;
Gr... |
"use strict";
var DEFAULT_ENV = 'development';
var env = module.exports = {};
env.Envs = {
PROD: 'prod',
DEV: 'dev',
TEST: 'test'
};
env.map = {
production: env.Envs.PROD,
development: env.Envs.DEV,
test: env.Envs.TEST
};
env.env = function () {
return this.map[process.env.NODE_ENV || DEFAULT_ENV];
}... |
var bb = require('backbone');
bb.sync = require('./src/idb-sync.js');
require('./src/idb-collection'); |
/* Copyright (c) 2010-2016 Richard Rodger and other contributors, MIT License */
'use strict'
// Node API modules
var Assert = require('assert')
var Events = require('events')
var Util = require('util')
// External modules.
var _ = require('lodash')
var Eraro = require('eraro')
var Executor = require('gate-executor')... |
var ScreenShotReporter = require('protractor-jasmine2-screenshot-reporter');
var path = require('path');
exports.config = {
specs: [
'./bs3-320x480.spec.js'
],
capabilities: {
browserName: 'firefox'
},
directConnect: true,
baseUrl: 'http://0.0.0.0:9000',
framework: 'jasmine2',
onPrepare: funct... |
scriptr.Tabs = function(jq2) {
var visibleDiv = "hierarchyEditor"
var $
var selector = function(n) {return "#"+n}
var onclick = function(event) {
var divName = 'tab-content-'+event.target.replace(".", "\\.")
if (visibleDiv!=event.target) {
$("#"+visibleDiv).hide()
if (event.target=='hi... |
const path = require('path');
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin;
const bundleOutputDir = './wwwroot/dist';
module.exports = (env) => {
const isDevBuild = !(env && env.prod);
... |
module.exports = (commandKeys, execCommand) => {
return {
label: 'View',
submenu: [
{
label: 'Reload',
accelerator: commandKeys['window:reload'],
click(item, focusedWindow) {
execCommand('window:reload', focusedWindow);
}
},
{
label: 'Full Re... |
'use strict';
import styles from './styles/main.scss';
import React from 'react';
import ReactDOM from 'react-dom';
import { HashRouter, Switch, Route, Link } from 'react-router-dom';
import Home from './components/home/Home';
const App = () => (
<HashRouter hashType="noslash">
<div>
<Switch>
<Route exact ... |
/*
* assemble-bootstrap
* http://github.com/assemble/assemble-bootstrap
*
* Copyright (c) 2013 Jon Schlinkert
* MIT License
*/
"use strict";
module.exports = function(grunt) {
var pretty = require('pretty');
var vendor = grunt.file.readJSON('.bowerrc').directory;
if(!grunt.file.exists(vendor + '/bootstrap... |
/**
* Hilo 1.1.10 for amd
* Copyright 2016 alibaba.com
* Licensed under the MIT License
*/
define("hilo/view/Drawable",["hilo/core/Class","hilo/util/util"],function(i,t){var r=i.create({constructor:function(i){this.init(i)},image:null,rect:null,init:function(i){var e=this,n=e.image;r.isDrawable(i)?e.image=i:t.copy(... |
import React, { Component } from 'react';
import OrganismPlaySurface from '../organisms/Organism.playSurface';
import OrganismPlayerHand from '../organisms/Organism.playerHand';
import cardJSON from '../../cardData';
export default class BoardTable extends Component {
constructor(props) {
super();
console.log(pr... |
const fs = require('fs-extra');
const path = require('path')
function prepareOutputFolder() {
if (fs.existsSync('test/output'))
fs.removeSync('test/output')
fs.mkdirsSync('test/output')
}
function getFile(name) {
return path.join(path.join(__dirname, 'fixture', name))
}
module.exports = {
pr... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('options-panel', 'Integration | Component | options panel', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle... |
import React, { Component } from 'react';
import { BrowserRouter as Router, Route } from 'react-router-dom';
import Home from './components/Home';
import Restaurantes from './components/Restaurantes';
import Sobre from './components/Sobre';
import Login from './components/Login';
import NovoRestaurante from './compone... |
import _ from 'underscore';
import s from 'underscore.string';
const accountsConfig = {
forbidClientAccountCreation: true,
loginExpirationInDays: RocketChat.settings.get('Accounts_LoginExpiration'),
};
Accounts.config(accountsConfig);
Accounts.emailTemplates.siteName = RocketChat.settings.get('Site_Name');
Accoun... |
'use strict';
const VueSSRDynamicChunkPlugin = require('./plugin/vue-ssr-dynamic-chunk-webpack-plugin');
exports.vuessrchunk = {
type: ['server'],
name: new VueSSRDynamicChunkPlugin(),
args: {
}
};
exports.extract = {
env: ['dev', 'test', 'prod'],
};
|
const express = require('express');
const router = express.Router();
/* GET home page. */
router.get('/', (req, res) => {
res.render('pdf2svg');
});
module.exports = router;
|
'use strict';
const findMedian = require('../script/8-13-findMedian');
describe('根据给定的数组找到其中的中位数:', () => {
it('[1,2,3,4,5,6]', () => {
const result = 3.5;
const origin = [1,2,3,4,5,6];
console.log(`[1,2,3,4,5,6]的中位数为3.5`);
expect(findMedian(origin)).toEqual(result);
});
... |
import * as Action from './formActions';
import * as CONST from './formConstants';
describe('Form Actions', () => {
describe('setInitialData', () => {
describe('Tell the reducer to seed the form with initial values AND/OR errors', () => {
it('SHOULD return with the correct action type', () => {
con... |
// Tally Votes in JavaScript Pairing Challenge.
// I worked on this challenge with: Max
// This challenge took 7 hours.
// These are the votes cast by each student. Do not alter these objects here.
var votes = {
"Alex": { president: "Bob", vicePresident: "Devin", secretary: "Gail", treasurer: "Kerry" },
"Bob": { ... |
/**
* @source https://github.com/yoniholmes/grunt-text-replace/blob/master/lib/grunt-text-replace.js
*/
var grunt = require('grunt');
var path = require('path');
var gruntTextReplace = {};
exports.replace = function (settings) {
gruntTextReplace.replace(settings);
}
exports.replaceText = function (settings) {
... |
var logout = angular.module('Logout', []);
logout.controller('LogoutController', ['$location', '$scope', '$rootScope', 'ParseSvc', function ($location, $scope, $rootScope, ParseSvc) {
var logoutCallback = function () {
$rootScope.$broadcast('new username', "");
$location.path('/login');
}
$... |
/* jshint node: true */
'use strict';
var through = require('through2'),
cheerio = require("cheerio");
module.exports = function(baseUri, options) {
baseUri = baseUri || '//mc.yourdomainname.net/combo/?f=';
options = options || {};
return through.obj(function(file, enc, cb) {
var chunk = Stri... |
"use strict";
module.exports = function(grunt) {
grunt.initConfig({
pkg: '<json:package.json>',
nodeunit: {
files: [
'test/**/*.js'
]
},
jshint: {
files: [
'Gruntfile.js',
'config.sample.js',
'index.js',
'lib/*.js',
'lib/server/public... |
const { Command } = require('discord.js-commando')
const logger = new (require('../util/logger'))()
module.exports = class BaseCmd extends Command {
log (info) {
return logger.log(info)
}
warn (warning) {
return logger.warn(warning)
}
error (err) {
return logger.error(err)
}
getUsernames (... |
Thermostat.prototype.updateUp = function() {
this.up()
document.getElementById('temp').innerHTML = thermostat.temp;
};
Thermostat.prototype.updateDown = function() {
this.down()
document.getElementById('temp').innerHTML = thermostat.temp;
};
Thermostat.prototype.updateReset = function() {
this.reset()
doc... |
"use strict";
var _interopRequireDefault = function (obj) { return obj && obj.__esModule ? obj : { "default": obj }; };
var _Stream = require("../stream");
var _Stream2 = _interopRequireDefault(_Stream);
window.Stream = _Stream2["default"]; |
YUI.add('template-loader', function (Y, NAME) {
Y.TemplateLoader = function(uri) {
var cfg,
request;
cfg = {
sync: true
};
request = Y.io(uri, cfg);
return request.responseText;
};
}, '@VERSION@', {"requires": ["io"]});
|
var calendarModule = angular.module('inkwell-calendar');
calendarModule.directive('selectColorInput', function() {
return {
scope: {
modal: '=',
onSelect: '&'
},
restrict: 'E',
replace: true,
templateUrl: 'components/calendar/select-color.html',
controller: function($scope, activi... |
import React from 'react'
import Helmet from 'react-helmet'
import {Link} from 'gatsby'
import styles from './../css/meetup.module.css'
import {defaultHelmetMeta, Layout} from './layout'
const PostLink = ({title, to}) => (
<div className={styles.post}>
<header className={styles.header}>
<h3 className={sty... |
(function () {
"use strict";
var mongoose = require('mongoose');
var crypto = require('crypto');
var jwt = require('jsonwebtoken');
var UserSchema = new mongoose.Schema({
username : {type: String, lowercase: true, unique: true},
hash: String,
salt: String
});
UserSchema.methods.setPassword = ... |
version https://git-lfs.github.com/spec/v1
oid sha256:b34848b132ef0750dc0c0ccbac3f390b8372e7c339a86689d1d4e8eb3be16dab
size 9660
|
/**
* Stripe Token Model
*
* <%= whatIsThis %>.
*
* Refer to Stripe Documentation https://stripe.com/docs/api#token_object
*/
module.exports = {
autoPK: false,
attributes: {
id: {
type: 'string', //"tok_16GhzzBw8aZ7QiYmauEtvWUU"
primaryKey: true,
unique: true
},
livemode: {
type: 'boo... |
var _ = require("underscore");
var files = require('./files.js');
var utils = require('./utils.js');
var httpHelpers = require('./http-helpers.js');
var archinfo = require('./archinfo.js');
var catalog = require('./catalog.js');
var Isopack = require('./isopack.js').Isopack;
var config = require('./config.js');
var bui... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const json_ref_ready_to_node_1 = require("../src/json-ref-ready-to-node");
const casual_util_1 = require("./util/casual-util");
const node_1 = require("../src/models/node");
const casual = require("casual");
describe('JsonRefReadyToNode', () =... |
ph.module(
'playhouse.voice-over'
)
.defines(function()
{
ph.VoiceOver = ph.Class.extend(
{
isPlaying : false,
index : 0,
sequence : [],
completeCallback : null,
completeScope : null,
completeParams : null,
soundObj : null,
staticInit : function()
{
return ph.vo || null;
},
init : funct... |
var classJson_1_1ValueIteratorBase =
[
[ "difference_type", "classJson_1_1ValueIteratorBase.html#a4e44bf8cbd17ec8d6e2c185904a15ebd", null ],
[ "iterator_category", "classJson_1_1ValueIteratorBase.html#a02fd11a4fbdc0007da1e8bcf5e6b83c3", null ],
[ "SelfType", "classJson_1_1ValueIteratorBase.html#a9d2a940d03e... |
define([
'backbone',
'hbs!tmpl/item/jui-select-picker-view'
],
// @todo select picker needs to close when you click outside of it
function (Backbone, tmpl) {
'use strict';
/* Return a ItemView class definition */
return Backbone.Marionette.ItemView.extend({
ui: {
example1: ... |
/*
* Kendo UI v2015.1.408 (http://www.telerik.com/kendo-ui)
* Copyright 2015 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial licen... |
var fs = require('fs'),
path = require('path');
describe('saveScreenshot', function() {
before(h.setup());
var imageSize = {};
it('should take a screenshot and output it on a desired location', function(done) {
var screenshotPath = path.join(__dirname, '..', '..', '..', 'test.png');
... |
module.exports = function (grunt) {
grunt.initConfig({
browserify: {
build: {
src: 'test/test.js',
dest: 'test/test.bundle.js'
}
}
})
grunt.loadNpmTasks('grunt-browserify')
grunt.registerTask('default', ['browserify'])
} |
/**
* @author Stéphane ADAM-GARNIER
*/
var currentWin = Titanium.UI.currentWindow;
var homeLabel = Titanium.UI.createLabel({
color:'#999',
height: 30,
top: 20,
text:'Welcome to myGallery App !',
font:{fontSize:20,fontFamily:'Helvetica Neue'},
textAlign:'center',
width:'auto'
});
currentWin.add(homeLabel);
... |
define({
"selectLayer": "Vali kokkuvõttekiht",
"filterField": "Kokkuvõttekihi filtri väli",
"count": "KOGUARV",
"sum": "SUM",
"min": "MIN",
"max": "MAX",
"avg": "AVG",
"addField": "Lisa kokkuvõtteväli",
"label": "Silt",
"type": "Tüüp",
"field": "Väljak",
"actions": "Tegevused",
"displayCluster... |
var _ = require('lodash');
var uncapitalize = function(str) {
if (!str) {
return str;
}
return str[0].toLowerCase() + str.substring(1);
};
var DEFAULT_CATEGORY = 'query';
module.exports = function(field) {
var as = field.as;
if (as) {
return as;
}
as = uncapitalize(f... |
/*jshint strict: true, esnext: true, node: true*/
"use strict";
class Game {
constructor() {
//
}
init() {
}
act() {
}
}
module.exports = {
Game : Game
};
|
module.exports = {
"ecmaFeatures": {
"arrowFunctions": true,
"binaryLiterals": false,
"blockBindings": true,
"classes": true,
"defaultParams": true,
"destructuring": true,
"forOf": false,
"generators": true,
"modules": true,
"objectLiteralComputedProperties": true,
"objectL... |
if (typeof exports === 'object') {
var assert = require('assert');
var alasql = require('..');
}
describe('Test 81 - Hierarchies', function () {
// it.skip('localStorage', function(done){
// done();
// });
});
|
const simple = require('./simple')
test('adds 1 and 2 and returns 3', () => {
expect(simple(1, 2)).toBe(3)
})
|
Package.describe({
summary: "Almost i18n, with standard translations for basic meteor packages.",
version: "1.1.0",
name: "softwarerero:accounts-t9n",
git: "https://github.com/softwarerero/meteor-accounts-t9n.git",
});
DEFAULT_LANGUAGES = ['ar', 'zh_cn', 'ca', 'cs', 'da', 'de', 'el', 'en', 'es',
'es_ES', 'f... |
module.exports = {"Andada":{"bold":"Andada-Bold.ttf","bolditalics":"Andada-BoldItalic.ttf","italics":"Andada-Italic.ttf","normal":"Andada-Regular.ttf"}}; |
var app = angular.module('app', [
'ngCookies',
'ngResource',
'ngSanitize',
// 'btford.socket-io',
'ui.router',
'ui.bootstrap',
'ngAnimate',
'ui.materialize'
]);
(function () {
'use strict';
app.config(function ($stateProvider, $urlRouterProvider, $locationProvider, $httpProvider, $sceDelegateProv... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var ic_sort = exports.ic_sort = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z" } }] }; |
var condition={on:function(e,c,a,b){b=b||10;a=a||false;var d=function(){var f=e();if(f){c()}if(!f||!a){setTimeout(d,b)}};d()},pick:function(f,a,d,c){c=c||10;var b="x";var e=function(){var g=f();if(b!=g){b=g;if(g){a()}else{d()}}setTimeout(e,c)};e()},until:function(b,a){a=a||10;var c=function(){if(!b()){setTimeout(c,a)}}... |
nav.factory("Database", [ "$http", "$q", "$log", "Popup", "global", function($http, $q, $log, Popup, global) {
var headers = {
headers : {
'Content-Type' : 'application/json; charset=UTF-8'
}
};
return {
query : function(query) {
var deferred = $q.defer();
$http.get(global.url + "/rest" + query, hea... |
/*
* Copyright (c) 2014 Carl Burch
*
* 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, modify, merge, publish,... |
import React, { Component } from 'react';
import {
View,
Text,
} from 'react-native';
import IconBadge from 'react-native-icon-badge';
import TabBarIcon from './TabBarIcon';
class BilheteTabBarIcon extends Component {
render() {
let { qtdPalpites } = this.props;
if(qtdPalpites === 0 )
return (
... |
(function(){var ImagePicker,ImagePickerOption,both_array_are_equal,sanitized_options,__bind=function(fn,me){return function(){return fn.apply(me,arguments)}},__indexOf=[].indexOf||function(item){for(var i=0,l=this.length;i<l;i++)if(i in this&&this[i]===item)return i;return-1};jQuery.fn.extend({imagepicker:function(opts... |
/* Esperanto initialisation for the jQuery UI date picker plugin. */
/* Written by Olivier M. (olivierweb@ifrance.com). */
jQuery(function($){
$.datepicker.regional['eo'] = {
closeText: 'Fermi',
prevText: '<Anta',
nextText: 'Sekv>',
currentText: 'Nuna',
monthNames: ['Januaro','Februaro','Marto','Ap... |
module.exports = function(config) {
var appBase = 'app/'; // transpiled app JS and map files
var appSrcBase = 'app/'; // app source TS files
var appAssets = '/base/app/'; // component assets fetched by Angular's compiler
var appBase = 'src/'; // transpiled app JS and map files
var ... |
goog.provide('crow.Algorithm');
goog.require('crow.structs.BucketPriorityQueue');
/**
* Base class for all algorithms.
* @constructor
* @private
*/
crow.Algorithm = function(){};
crow.Algorithm.wrapperNodeGetterTemplate = function(klass){
return function(node){
if(node instanceof klass) return node;
var w = ... |
(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports... |
import React, { PropTypes, Component } from 'react'; // eslint-disable-line no-unused-vars
import emptyFunction from 'fbjs/lib/emptyFunction';
function withContext(ComposedComponent) {
return class WithContext extends Component {
static propTypes = {
context: PropTypes.shape({
onInsertCss: PropTyp... |
/**
* This is the Javascript file that drives the SolarYpsi administration portal.
* @author Nik Estep
* @date March 2, 2013
*/
// Declare global variables
var g_newSiteIDValidationIndex = 0;
var g_newSiteIDIsValid = false;
var g_newSiteIDValidationComplete = false;
var g_test = undefined;
var g_cron = undefined... |
var a00140 =
[
[ "atcacert_date_dec", "a00840.html#ga368d038c02673b1e6ddacfd175786e6a", null ],
[ "atcacert_date_dec_compcert", "a00840.html#gaba31331bcfab203c786004b027512fab", null ],
[ "atcacert_date_dec_iso8601_sep", "a00840.html#ga3ff21be0f011ce56dfde5e2ac99e17ce", null ],
[ "atcacert_date_dec_posi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.