code stringlengths 2 1.05M |
|---|
'use strict'
const TodosController = require('../controllers/todos');
const router = require('express').Router();
// Todo Routes
router.get('/todos/:id', TodosController.show);
router.get('/todos', TodosController.index);
router.post('/todos', TodosController.create);
router.put('/todos/:id',... |
"use strict";
import angular from "angular/angular";
import "angular-ui/ui-router";
import "angular/bower-angular-animate";
import "angular/bower-angular-resource";
import "angular-cookies";
import "angular-translate";
import "angular-translate/bower-angular-translate-loader-static-files";
import "angular-translate/bo... |
// TryMongo
//
// Copyright (c) 2009 Kyle Banker
// Licensed under the MIT Licence.
// http://www.opensource.org/licenses/mit-license.php
// Readline class to handle line input.
var ReadLine = function(options) {
this.options = options || {};
this.htmlForInput = this.options.htmlForInput;
this.inputHandler ... |
gfw.ui.view.CountriesIndex = cdb.core.View.extend({
el: document.body,
events : {
'keyup #searchCountry' : '_searchCountries'
},
initialize: function() {
this._getCountries();
this._drawCountries();
this._searchCountries();
},
_getCountries : function(){
this.$searchBox = $('#searchCo... |
'use strict';
var Generator = require('yeoman-generator');
var chalk = require('chalk');
var yosay = require('yosay');
module.exports = Generator.extend({
prompting: function () {
// Have Yeoman greet the user.
this.log(yosay(
'Welcome to the majestic ' + chalk.red('quick-server') + ' generator!'
)... |
'use strict';
var $ = require('jquery'),
StickyScrollBarComponent = require('./StickyScrollBarComponent');
const { initComplete } = require('./DataTables/dataTablesInitComplete');
const { drawCallback } = require('./DataTables/dataTablesDrawCallback');
require('datatables.net')(window, $);
require('datatables.ne... |
(function ($, undefined) {
/*
* Unobtrusive scripting adapter for jQuery, largely taken from
* the wonderful https://github.com/rails/jquery-ujs
*
*
* Released under the MIT license
*
*/
'use strict';
if ($.web2py !== undefined) {
$.error('web2py.js has already bee... |
'use strict';
module.exports = function (node, scope, environment, utils) {
function assignResult(value) {
if (node.left.type === 'Identifier') {
scope.assign(node.left.name, value);
} else if (node.left.type = 'MemberExpression') {
if (node.left.computed) {
return utils.when(utils.evalua... |
var _ = require( 'lodash' );
var machina = require( 'machina' );
var when = require( 'when' );
var Monologue = require( 'monologue.js' )( _ );
var drudgeon = require( 'drudgeon' );
var debug = require( 'debug' )( 'nonstop:project' );
var packager = require( 'nonstop-pack' );
var path = require( 'path' );
var platform =... |
/*global module,require,__dirname*/
(function routesIndex(module, require, __dirname) {
"use strict";
var express = require('express');
var router = express.Router();
var _ = require('lodash');
var middleware = {
'': ['license'],
'/': ['about']
};
var dir = function(absPa... |
var setDifference = require('./set-difference');
var setIntersection = require('./set-intersection');
var set1 = ['dogs', 'cats', 'red', 'bananas', 'code', 'movies'];
var set2 = ['blue', 'horses', 'dogs', 'code', 'rain'];
// var difference = setDifference(set1, set2);
// var intersection = setIntersection(set1, set2)... |
/**
* Tool to update pre-V3 screenshots to V3 format.
* Converts images to webp and updates database.
*/
// requires
const config = require('./config')
const mongoose = require('mongoose')
const async = require('async')
const fs = require('fs')
const _ = require('lodash')
const sharp = require('sharp')
const webpc... |
var express = require('express');
var app = express();
app.use(express.logger())
.use(express.static('bin'));
var port = process.env.PORT || 5000;
app.listen(port, function() {
console.log("Listening on " + port);
}); |
var model = {}
require('../../lib/models/').auth.attributes(model);
describe('model', function(){
it('should be an object', function(done){
model.should.be.Object;
done();
});
it('should have a vkontakteId', function(done){
model.should.have.property('vkontakteId');
done();
});
it('should ha... |
/**
* Created by Aitem on 04.11.2015.
*/
var gulp = require('gulp'),
jade = require('gulp-jade'),
assetRev = require('gulp-asset-rev-jade'),
rev = require('gulp-rev'),
clean = require('gulp-rimraf'),
less = require('gulp-less'),
coffee = require('gulp-coffee'),
webserver = require('gulp-webserver'),
g... |
/**
* @author Lianna Eeftinck / https://github.com/Leeft
*/
import settings from '../../settings';
import config from '../../config';
import StarSystem from '../../star-system';
import THREE from 'three';
const startColour = new THREE.Color( 0xEEEE66 );
const endColour = new THREE.Color( 0xFF3322 );
class JumpRou... |
var QuantumCircuit = require("../../lib/quantum-circuit.js");
var circuit = new QuantumCircuit();
// circuit.addGate("id", -1, 0);
circuit.addGate("x", -1, 2);
circuit.addGate("x", -1, 1);
circuit.addGate("x", -1, 0);
// circuit.addGate("y", -1, 0);
// circuit.addGate("z", -1, 0);
// circuit.addGate("h", -1, 0);
// c... |
var currentXCoord=0;
var currentYCoord=0;
var containerDiv = "#inputSkateTrick";
var container = $(containerDiv);
var $status = $('#status');
container.bind("contextmenu",function(e){ return false; });
var xMax=parseInt(container.css('width'));
var yMax=parseInt(container.css('height'));
var yPositionChange = Math.... |
/**
* OfferController
*
* @description :: Server-side logic for managing offers
* @help :: See http://sailsjs.org/#!/documentation/concepts/Controllers
*/
module.exports = {
load: function (req, res) {
var load_cb = function (loaded, err, threads) {
if (loaded) {
Offer.create(threads... |
'use strict';
var formsApp = angular.module('myApp.forms', ['OfflinkJs']);
formsApp.controller('PizzaCtrl', ['$scope', '$http', 'ConnectionDetectorService', function ($scope, $http, ConnectionDetectorService) {
$scope.order = {};
//$scope.order.delivery = {
// value: new Date(1970, 0, 1, 14, 57, 0)
... |
const electron = require('electron');
const{app, BrowserWindow} = electron;
app.on('ready', () => {
let win = new BrowserWindow({
width: 1000,
height: 600
});
win.loadURL(`file://${__dirname}/index.html`);
}); |
"use strict";
//
// Copyright (c) 2017 Ricoh Company, Ltd. All Rights Reserved.
// See LICENSE for more information.
//
//console.log(exports, require, module, __filename, __dirname, process, global);
const MTPDevice = function(deviceId) {
this.deviceId = deviceId;
}
const MTPHelper = {
version: "1.0.0",
help... |
var ngval = angular.module('ngval', []);
ngval.directive('ngval', ['$parse', function ($parse) {
return {
restrict: 'A',
require: 'ngModel',
link: function (scope, iElm, iAttrs, ngModel) {
var messages = angular.fromJson(iAttrs.ngval);
var getErrors = functi... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* Generated with the UI Kitten template
* https://github.com/akveo/react-native-ui-kitten
*
* Documentation: https://akveo.github.io/react-native-ui-kitten/docs
*
* @format
*/
import React from 'react';
import { StyleSheet } from 'rea... |
function(keys, values) {
}
|
'use strict';
function TrackCLient(){
var self=this;
var wsUri = 'ws://127.0.0.1:9001/ws';
self.websocket = new WebSocket(wsUri);
self.websocket.onopen = function(evt) {
self.websocket.send('subscribe');
};
self.websocket.onmessage = function (evt) {
console.log(evt.data);
};
} |
/*
* responsive-carousel dynamic containers extension
* https://github.com/filamentgroup/responsive-carousel
*
* Copyright (c) 2012 Filament Group, Inc.
* Licensed under the MIT, GPL licenses.
*/
(function($) {
var pluginName = "carousel",
initSelector = "." + pluginName,
itemClass = pluginName + "-item",... |
describe('window.angulartics', function(){
beforeEach(function(){
jasmine.Clock.useMock();
});
afterEach(function(){
delete window.angularticsTestVendor;
});
it('should manage vendor wait count', function(){
spy = jasmine.createSpy('vendorCallback');
spyWhenLoaded = jasmine.createSpy('vendorC... |
"use strict";
const AsciiTable = require('ascii-table')
const Mark = require('./models/mark')
const HELP_TEXT = `\
\`/mark\` (short for "mark my words") is a slash command to help you tell your friends - "I told you so!"
Here are the available commands:
\`/mark my [statement]\`
Make a statement. Mark My will repeat... |
'use strict';
const path = require('path');
class FakeCorsServer {
static create (port) {
const root = path.join(__dirname, '.', 'root');
const server = require('http-server').createServer({
root: root,
cors: true,
corsHeaders: 'X-Foo'
});
server.listen(port);
return server;
... |
Ext.provide('Phlexible.elements.tab.Routing');
Phlexible.elements.tab.Routing = Ext.extend(Ext.form.FormPanel, {
title: Phlexible.elements.Strings.routing.routing,
iconCls: 'p-element-routing-icon',
strings: Phlexible.elements.Strings.routing,
bodyStyle: 'margin: 5px',
initComponent: function () {... |
// 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... |
/* global angular:true */
'use strict';
angular.module('directives', ['directives.ports', 'directives.logbuffer']);
|
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M3 21h2v-2H3v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zm4 4h2v-2H7v2zM5 3H3v2h2V3zm4 0H7v2h2V3zm8 0h-2v2h2V3zm-4 4h-2v2h2V7zm0-4h-2v2h2V3zm6 14h2v-2h-2v2zm-8 4h2v-2h-2v2zm-8-8h18v-2H3v2zM19 3v2h2V3h-2zm0 6h2V7... |
'use strict';
const constants = require('./constants.js');
const deviceList = {};
function deviceHandlers(type, data) {
switch (type) {
case constants.DEVICE_ADDED:
deviceList[data.id] = data;
break;
case constants.DEVICE_UPDATED:
if (deviceList[data.id]) {
... |
// 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/Accessor ../../../core/Logger ../../../co... |
// Regular expression that matches all symbols in the Musical Symbols block as per Unicode v6.1.0:
/\uD834[\uDD00-\uDDFF]/; |
{
String.prototype.endsWith.apply(null, ["b"]);
}
|
var TodoAction = require("./TodoAction.js");
var DataStationBase = require("../../../src/DataStation/DataStationBase");
var TodoStore = new DataStationBase();
TodoStore.addSource(TodoAction, "Todo.list");
TodoStore.addSource(TodoAction, "Todo.create");
TodoStore.addSource(TodoAction, "Todo.destroy");
TodoStore.addSo... |
version https://git-lfs.github.com/spec/v1
oid sha256:5210b2de84236be99458ec208bde7bc2ee2c87f78b726600112eb442e5a65694
size 71531
|
var mongoose =require("mongoose");
var SehirSchema=new mongoose.Schema({
city:String,
towns:[{townName : String}]
});
module.exports = mongoose.model("sehirler",SehirSchema);
|
/**
* marked - a markdown parser
* Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
* https://github.com/chjj/marked
*/
;(function() {
/**
* Block-Level Grammar
*/
var block = {
newline: /^\n+/,
code: /^( {4}[^\n]+\n*)+/,
fences: noop,
hr: /^( *[-*_]){3,} *(?:\n+|$)/,
heading: /^ *(#{1,6}... |
/**
* Created by Daniel on 9/12/2016.
*/
//Template events
Template.payslipActionCell.events({
"click .send-email-button": function (event, temp) {
Meteor.call("sendPayslip",$(event.currentTarget).attr("data-payslip-id"), function(err,res){
if(!err){
// Payslips.update({_id:res... |
'use strict'
const db = require('APP/db')
const Week = db.model('weeks')
const Message = db.model('messages')
const capitalize = word => word[0].toUpperCase() + word.slice(1)
module.exports = require('express').Router()
.get('/', (req, res, next) =>
Week.findAll({
order: [
['id', 'ASC']
... |
var express = require( 'express' );
var app = express();
var mongoose = require( 'mongoose' );
var bodyParser = require( 'body-parser' );
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
var port = process.env.PORT || 3000;
// ROUTES FOR OUR API
var router = express.Rou... |
/**
*
* @author : Mei XinLin
* @version : 1.0
*/
import actionTypes from '../action-types';
import reducer from './index';
describe('User reducer', ()=>{
describe('init', ()=>{
const state = reducer(undefined,{});
const trueState = {
userName: '',
email: '',
emailErrorInfo: '',
... |
import { applyMiddleware, createStore } from 'redux';
import thunk from 'redux-thunk';
import toast from '../middlewares/toast';
import rootReducer from './rootReducer';
export default function configureStore(initialState = {}) {
// Compose final middleware and use devtools in debug environment
const middleware = ... |
define(["Game/Block"], function (Block) {
var Layer = function(main) {
this.main = main;
this.game = main.game;
this.robot = main.robot;
this.API = main.api;
this.library = main.library;
}
Layer.prototype.create = function() {
var tile = 32;
var heigh... |
cordova.define("cordova-plugin-media-capture.MediaFile2", function(require, exports, module) { /*
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. T... |
import {Map, View} from 'ol';
import TileLayer from 'ol/layer/Tile';
import {TileJSON as TileJSONSource, OSM as OSMSource, TileArcGISRest as TileArcGISRestSource} from 'ol/source.js';
import {ComparisonTools as ComparisonToolsControl} from '../../src/control.js';
import {HistogramMatching as HistogramMatchingControl} ... |
import React from 'react';
const inputField = ({
input,
label,
type,
meta: { touched, error, warning,asyncValidating }
}) => (
<div className={touched && error ? 'has-error form-group':'form-group'}>
<div className="input-group">
<span className="input-group-addon">{label}</span>
<input {..... |
var contentNames = ['upload', 'chat', 'about'];
function init() {
for (var i = 0; i < contentNames.length; i++) {
var elem = document.getElementById(contentNames[i] + 'Link');
elem.href = '#' + contentNames[i];
}
var chatForm = document.getElementById('chatForm');
chatForm.onsubmit = s... |
import React, { Component } from 'react';
import PlaylistContainer from './playlist/PlaylistContainer';
import SettingsContainer from './settings/SettingsContainer';
export default class Content extends Component {
getCurrentModuleView() {
switch (this.props.currentView) {
case 'Playlist':
return (<PlaylistC... |
const assert = require('assert');
describe('samepleSingleTest', function() {
before(function(client, callback) {
let testName = client.currentTest.name;
assert.strictEqual(testName, '');
client.globals.calls++;
client.globals.singleTestCalled = true;
callback();
});
beforeEach(function(clien... |
const { collectResource } = require('utils'),
role = {
/** @param {Creep} creep **/
run: function(creep) {
// If the sign is unclaimed or not claimed by me
if(!creep.room.controller.sign || creep.room.controller.sign.username != creep.owner.username) {
if(creep.sig... |
import React, { PropTypes } from 'react'
import { getUnhandledProps, META } from '../../lib'
import { Dropdown } from '../../modules'
/**
* A Select is sugar for <Dropdown selection />.
* @see Dropdown
* @see Form
*/
function Select(props) {
const { selection } = props
const rest = getUnhandledProps(Select, p... |
var app = require('express')(),
server = require('http').createServer(app),
io = require('socket.io').listen(server),
ent = require('ent'), // Permet de bloquer les caractères HTML (sécurité équivalente à htmlentities en PHP)
fs = require('fs');
// Chargement de la page index.html
app.get('/', function... |
import jwt from 'jsonwebtoken'
import config from '../../config'
const TOKEN_STRING = 'id_token'
export const getToken = () => window.localStorage.getItem(TOKEN_STRING)
export const removeToken = () => window.localStorage.removeItem(TOKEN_STRING)
export const getTokenContent = (token) => {
try {
const decoded ... |
/* recebe o objeto grunt como parâmetro*/
module.exports = function(grunt) {
grunt.initConfig({
clean: {
dist: {
src: 'dist'
}
},
copy: {
public: {
cwd: 'public',
src: '**',
dest: 'dist',
expand: true
}
},
useminPrepare: {
html: 'dist/**/*.html'
},
usemin: {
h... |
/// <reference path="require.js" />
/// <reference path="jquery-2.0.3.js" />
/// <reference path="rsvp.min.js" />
var betMania = betMania || {};
betMania.requester = (function ($) {
function getJSON(serviceUrl, headers) {
var promise = new RSVP.Promise(function (resolve, reject) {
jQuery.ajax({
url: servic... |
// LOG LEVELS
let VERB=1;
let DBUG=2;
let INFO=3;
let NOTE=4;
let WARN=5;
// PREFERENCE BRANCHES
let PREFBRANCH_ROOT=0;
let PREFBRANCH_RULE_TOGGLE=1;
let PREFBRANCH_NONE=2;
// maps domain patterns (with at most one wildcard) to RuleSets
let https_domains = {};
// URLs we've given up on rewriting because of redirecti... |
'use babel';
import utils from './utils.js';
// children
import PanelView from './panel-view.js';
export default class BoardView {
constructor(sourceObj, parentView) {
const bView = this;
sourceObj.view = bView;
bView.parent = parentView;
bView.source = sourceObj;
bView.isVisible = true;
... |
/*
* Copyright (c) 2013 - present 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
* ... |
export { default } from "@getflights/ember-mist-components/validators/valid-phone";
|
define('views/user-form', [
'views/modal-form',
'views/autocompleter',
'view',
'jquery'
], function (
ModalForm,
Autocompleter,
View,
$
) {
function UserForm(options) {
var form = this;
this.teamsAutocompleter = new Autocompleter({
node: $(options.node).find('[data-team_name_autocompleter]').detach(),... |
/* Prevel Library v1.2.16
* http://github.com/chernikovalexey/Prevel
*
* Copyright 2011-2012, Alexey Chernikov
* Dual licensed under the:
* - GNU LGPL (http://opensource.org/licenses/lgpl-license.php)
* - MIT License (http://opensource.org/licenses/mit-license.php)
*
* =====
*
* Contains YASS ... |
'use strict';
function fixDateFormat(date) {
var newDate = date.split('-');
newDate.reverse();
return newDate.join('.');
}
module.exports = fixDateFormat; |
/**
* Social Likes
* http://sapegin.github.com/social-likes
*
* Sharing buttons for Russian and worldwide social networks.
*
* @requires jQuery
* @author Artem Sapegin
* @copyright 2014 Artem Sapegin (sapegin.me)
* @license MIT
*/
/* global define:false, socialLikesButtons:false */
(function(factory) { // ... |
/**
* @license Angular Auth module for AngularJS
* (c) 2014 Marnus Weststrate (https://github.com/marnusw)
* License: MIT
*/
'use strict';
angular.module('mw.resourceGuard', [])
// Push the HTTP interceptor for cathcing 401 and 403 errors.
.config(['$httpProvider', function($httpProvider) {
$httpProvider.inte... |
module.exports = function filterCheck(func, title, from, to) {
it(title, function(done) {
func(from, function (err, result) {
(!err).should.ok;
if (isNaN(result)) {
isNaN(to).should.ok;
isNaN(result).should.ok;
} else {
(r... |
/* **********************************************
Begin prism-core.js
********************************************** */
var _self = (typeof window !== 'undefined')
? window // if in browser
: (
(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)
? self // if in worker
: {} ... |
version https://git-lfs.github.com/spec/v1
oid sha256:4ea848adf0a6b1e286607e38ce18d6a4d9f905878d2c8e8b93afb11f8adf85a2
size 2626
|
version https://git-lfs.github.com/spec/v1
oid sha256:a0127de5e1f2a24841cd716fcd5635644a2fc3342b9b3d6e9026f653d87e490d
size 2249
|
var colors = require('colors');
var OS = require("os");
var path = require('path');
var environments = require('./environments');
var configLoader = require("mcms-node-config-loader").setEnv(environments);
var Config = configLoader.loadConfig(path.join(__dirname,'./App/Config'));
Config.baseDir = path.join(__dirname,'.... |
export default class PathWarp {
/**
* Register paper scope for PathWarp instance.
* @param {paper.PaperScope} paper - Paper paper.
* To run without canvas element (such as for SVG rendering), just
* call `paper.setup()` before calling this.
*/
register(paper) {
if (!paper) {
throw new Error... |
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import cn from 'classnames';
/**
* This component renders a selectable date in the `CalendarMonth` component.
*/
export default class CalendarDate extends PureComponent {
static propTypes = {
className: PropTypes.string,
date... |
// toggle visibility for css3 animations
$(document).ready(function() {
$('header').addClass('visibility');
$('.carousel-iphone').addClass('visibility');
$('.payoff h1').addClass('visibility');
$('.features .col-md-4').addClass('visibility');
$('.social .col-md-12').addClass('visibility');
});
//iphone carousel... |
import React from 'react';
import TableRow from './ItemsTableRow';
import DrapDrop from './ItemsTableDragDrop';
const TABLE_CONTROL_COLUMN_WIDTH = 26; // icon + padding
const ItemsTable = React.createClass({
propTypes: {
columns: React.PropTypes.array,
items: React.PropTypes.object,
list: React.PropTypes.obj... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.cotDocs = void 0;
var cotDocs = {
name: 'cot',
category: 'Trigonometry',
syntax: ['cot(x)'],
description: 'Compute the cotangent of x in radians. Defined as 1/tan(x)',
examples: ['cot(2)', '1 / tan(2)'],
seealso: ['sec',... |
var theft_2013_07 = [{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "Unnamed: 0": 0, "Incident Number": 132110035, "Date": "07\/30\/2013", "Time": "06:38 AM", "Police District": 5.0, "Offense 1": "THEFT OF MOTOR VEHICLE PARTS\/ACCESSORIES", "Offense 2": null, "Offense 3": null, "Offen... |
const shelljs = require('shelljs');
function clean () {
shelljs.rm('-rf', 'node_modules/csjs*', 'node_modules/@scott113341*', 'node_modules/scott113341*', 'node_modules/push-dir*');
}
module.exports = {
clean
};
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Sql server driver requires parameter types to be specified fo input parameters used in the query.
*
* @see https://github.com/patriksimek/node-mssql#data-types
*/
var MssqlParameter = /** @class */ (function () {
function MssqlPa... |
import chai from 'chai';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
chai.use( sinonChai );
// Mock fetchDistanceBetween to always return 200
import * as helpers from '../app/helpers';
let fetchPromise = new Promise( ( resolve ) => resolve( 200 ) );
import { getDistanceBetween, getDistanceForUser,... |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
less: {
development: {
options: {
paths: ["web/assets/less"]
},
files: {
"web/assets/css/main.css": "web/assets/less/main.less",
... |
// DEPRECATION NOTICE.
// THE FOLLOWING PROPERTIES ARE DEPRECATED.
// .lineageArray
// .lineageExists
// .lineageIndex
// .lineageRArray
// .lineageRExists
// .lineageRIndex
'use strict';
let t;
module.exports = class {
constructor(patternlab) {
this.config = patternlab.config;
this.getPattern = patternlab... |
//~ name a838
alert(a838);
//~ component a839.js
|
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. All Rights Reserved.
//
// Licensed under the Apache License Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.ap... |
(function() {
'use strict';
//--------------------------------------
//MAIN CALLBACK FUNCTIONS
//--------------------------------------
function postService($http, authService, userService) {
var postService = {
posts: []
};
//get all posts
postService.getAll = function() {
retur... |
/*
### Node Server
*/
var app = require('http').createServer(handler)
, io = require('socket.io').listen(app)
, fs = require('fs')
, path = require('path')
app.listen(8080);
function handler (req, res) {
var contentTypesByExtention = {
'.html': 'text/html',
'.js': 'text/javascript',
'.css': 'text/... |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","ca",{title:"Instruccions d'Accessibilitat",contents:"Continguts de l'Ajuda. Per tancar aquest quadre de diàleg premi ESC.",legend:[{name:"... |
$r.Class("HorizontalLayout").extends("LayoutBase")(function () {
var paddingLeft = 10;
var paddingRight = 10;
var paddingTop = 10;
var paddingBottom = 10;
var verticalAlign = $r.VerticalAlign.TOP;
var horizontalAlign = $r.HorizontalAlign.LEFT;
this.updateLayout = function () {
if... |
var files =
[
[ "source", "dir_0336ce38ab64e2a7ed4a9562c4d5571e.html", "dir_0336ce38ab64e2a7ed4a9562c4d5571e" ]
]; |
$(function() {
$('.js-sticky').Stickyfill();
// State for responsive navigation
$('.js-navicon').click(function(event){
$('.page').toggleClass("has-mobile-menu");
event.preventDefault();
});
// Hightlight initialization
$('pre code').each(function(i, block) {
hljs.high... |
const serializeHook = require('../lib/serializeHook');
var shops = ['bob', 'carol', 'ted', 'alice'];
var results = {};
shops.forEach(s=>{
results[s] = [];
});
var maxTime = 10000;
function addJob(idx){
var shop = shops[idx % 4];
return serializeHook(null, shop, {token:'t'+ idx}, ()=>{
var interval = Math.floo... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { authActions } from 'src/auth';
import { notificationActions } from 'src/notification';
import { I18n } from 'react-i18next';
import { NavLink } fro... |
var Promise = require("bluebird");
var yargs = require('yargs');
var _ = require('lodash');
var Table = require('cli-table2');
var colors = require('colors');
var bittrexPromise = require('../bittrex-promise');
module.exports = balanceCommand;
function balanceCommand(argv){
Promise.all([bittrexPromise.getBalanc... |
'use strict';
require('mocha');
var assert = require('assert');
var cliSchema = require('..');
var App = require('./support');
var app;
describe('.pkg', function() {
beforeEach(function() {
app = new App();
});
describe('argv', function() {
it('should convert a boolean to an object with a `show` proper... |
/*
* These service routines are provided by Brian J. Hartman
* under the following license:
*
* This software is provided "AS IS". No warranty is expressed or implied.
* Permission to copy without fee all or part of this material is granted
* provided that the copies are not made or distributed for direct commer... |
define(["core/DashboardWidget"], function(DashboardWidget) {
var skeleton = new DashboardWidget();
skeleton.postLoad = function() {
//$("#stepsTaken-widget .flx-body").empty();
//if (typeof(this.digest.cachedData["fitbit-activity_summary"])!="undefined" &&
//typeof(this.digest.cach... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.