code stringlengths 2 1.05M |
|---|
var fs = require('fs');
var path = require('path');
var http = require('http');
var yql = require('yql');
var express = require('express');
config = JSON.parse(fs.readFileSync('./config.json', 'utf-8'));
api = JSON.parse(fs.readFileSync('./api.json', 'utf-8'));
app = express();
app.configure(function() {
app.set('p... |
/**
* Created by Administrator on 2017/6/1.
*/
var hkbShowPop = function (details) {
this.details = details;
var thisEle = document.getElementById(this.details.ele);
thisEle.getElementsByClassName('pop_cancel')[0].addEventListener('click', clickEven.bind(this), false);
thisEle.getElementsByClassN... |
Given an unsorted array and a number n, find if there exists a pair of elements in the array whose difference is n. Source: find pairThe simplest method is to run two loops, the outer loop picks the first element (smaller element) and the inner loop looks for the element picked by outer loop plus n. Time complexity of... |
if ( typeof OptionsClasses !== 'function' )
{
var alloptions = {};
class OptionsClasses {
add(data, key, identifier)
{
var data = data
if( typeof alloptions[identifier] === 'undefined' ) {
alloptions[identifier] = [];
}
if( alloptions[identifier] == null ) {
... |
var mSectores = require('../models/mSectores');
var mAyuda = require('../models/mAyuda');
module.exports = {
getAll: getAll,
getAlta: getAlta,
postAlta: postAlta,
getModificar: getModificar,
postModificar: postModificar,
getDel: getDel
};
function getAll(req, res) {
req.session.nromenu = 5;
mAyuda.getAyudaTex... |
var client = require('braintree-web/client');
var validatedHostedFields = require('braintree-validation');
client.create({
authorization: 'sandbox_g42y39zw_348pk9cgf3bgyw2b'
}, function (err, clientInstance) {
if (err) {
console.error(err);
return;
}
validatedHostedFields.create({
client: clientInstance,
... |
import React from 'react';
import { createElement } from 'react-faux-dom';
import {
event as lastEvent,
select,
svg,
time
} from 'd3';
import {
createUniqueID,
reduce,
calculateMargin,
createValueGenerator,
createDomainRangeGenerator,
defaultColors,
defaultStyles,
getAxisStyles,
createCircular... |
!function(){
var Class = require('ee-class')
, log = require('ee-log');
module.exports = new Class({
init: function(options) {
}
});
}();
|
import Immutable from 'immutable';
import * as types from '../constants/ActionTypes';
const defaultState = new Immutable.List();
export function heroTeamItemReducer(state = defaultState, action) {
switch (action.type) {
case types.ADD_HERO_TO_TEAM:
return state.concat(action.hero);
case types.REMOVE_H... |
import CollapsibleDataTable from './CollapsibleDataTable';
export default CollapsibleDataTable;
|
#!/usr/bin/env node
var argv = require('yargs').argv;
var prompt = require('prompt');
/////import the help.js file here, in essence help becomes the function//
var help = require('./app/help');
var zipFile = require('./app/zipfile');
var csvToJson = require('/.app/csvToJson');
var fs = require('fs');
if (argv.help){... |
/* eslint-disable */
(function() {
'use strict';
window.simulate = {};
var simulate = window.simulate;
var noButton = 0;
var leftButton = 1;
var buttonsToWhichMap = { 0: 0, 1: 1, 4: 2, 8: 3 };
var buttonsToButtonMap = { 0: undefined, 1: 0, 2: 1, 4: 2 };
function mouseEvent(type, sx, s... |
#!/usr/bin/env node
'use strict';
const path = require('path');
const cp = require('child_process');
// set NODE_PATH
// let module under doctools can be required in baseDir
const NODE_PATH = path.join(__dirname, '../node_modules');
const cmd = path.join(__dirname, '_doctools.js');
const args = process.argv.slice(2)... |
/*
Author : Agaile
14/04/2016
Custom start journal validation script
*/
var startjinit = function () {
var runstartjinitValidator = function () {
var form = $('#startj_form');
var errorHandler = $('.errorHandler', form);
form.validate({
ignore: ':hidden',
rules: {
... |
/** @module substation */
/** @submodule/class :Context
@super submergence:Context
@member/String Standalone
The prebuilt and minified client library, compiled by [browserify](http://browserify.org/) in
standalone mode and wrapped in a script tag. If you include this in your page, any other script
... |
angular.module('app', [
'ngRoute', // angular-route.
'templates.app', // app templates bag.
'templates.common', // common templates bag.
'ui.bootstrap.tpls', // angular-bootstrap templates.
'dashboard' // dashboard module.
]);
angular.module('app')
.constant('MONGOLAB_CONFIG', {
BASE_URL: '/databases/',
... |
'use strict';
import React from 'react';
import { external_url_map } from '../../../globals';
export function setContextLinks(nc_hgvs, ref) {
// get Chromosome
var chr = nc_hgvs.substr(7, 2);
if (chr.indexOf('0') === 0) {
chr = chr.substr(1, 1);
} else if (chr === '23') {
chr = 'x';
... |
"use strict";function _interopRequireDefault(e){return e&&e.__esModule?e:{"default":e}}var _dashboard=require("./dashboard.js"),_dashboard2=_interopRequireDefault(_dashboard),theme=document.querySelector(".theme"),menu=document.querySelector(".theme-options__start");menu.addEventListener("click",function(){theme.style.... |
user = angular.module('user')
user.factory("User", ['$http', 'Alerts', function($http, Alerts) {
/*this.data = {
user: null,
authenticated: false,
};
*/
this.get = function(call) {
var promise = $http.get("/service/user/");
Alerts.handle(promise, undefine... |
Function.empty = function() { };
Function.prototype.extend = function(childClass) {
var self = this;
function extension() {
self.apply(this, arguments);
childClass.apply(this, arguments);
}
var intermediate = function() { };
intermediate.prototype = this.prototype;
extension.prototype = new int... |
var Console = console
Console.log('hello') |
var mongoose = require('mongoose')
module.exports = mongoose.model('Result', {
name: String,
contact: String,
repository: String,
algorithm: String,
timestamp: Number,
contents: [
{
dataset: String,
scores: [
{label: String, value: Number}
]
}
],
}) |
"use strict";global.Intl||require("intl");var IntlMessageFormat=require("../../"),msg="{gender_of_host, select, female {{num_guests, plural, offset:1 =0 {{host} does not give a party.}=1 {{host} invites {guest} to her party.}=2 {{host} invites {guest} and one other person to her party.}other {{host} invites {guest} and... |
import {inject, Lazy} from 'aurelia-framework';
import {Router} from 'aurelia-router';
import {Service} from './service';
@inject(Router, Service)
export class ListPending {
data = [];
constructor(router, service) {
this.router = router;
this.service = service;
}
activate() {
... |
import React from 'react';
import ReactDOM from 'react-dom';
import InfScroller from '../../src/ReduxInfiniteScroll';
class App extends React.Component {
state = {
numOfItems: 40,
loadingMore: false
};
_createData(numOfItems=this.state.numOfItems) {
const data = [];
for (var i=0; i < numOfItems... |
'use strict';
function cdApplyForEventCtrl($scope, $state, $stateParams, $translate, $location, alertService, cdEventsService, cdUsersService, cdDojoService, usSpinnerService) {
var dojoEvents = $scope.dojoRowIndexExpandedCurr;
var eventIndex = $scope.tableRowIndexExpandedCurr;
$scope.cancel = function () {
... |
"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... |
const _ = require('underscore');
const DrawCard = require('../../../drawcard.js');
class BloodOfMyBlood extends DrawCard {
canPlay(player, card) {
if(this !== card || player.phase !== 'challenge') {
return false;
}
return super.canPlay(player, card);
}
play(player) {
... |
function convertEdl() {
var join = document.getElementById("join").checked;
var stills = document.getElementById("stills").checked;
var crop = document.getElementById("crop").checked;
var input = document.getElementById("input").value;
var frames = [];
var pat = /C +(\d+)/g;
var match = pat... |
'use strict';
var convert = require('./convert'),
func = convert('xor', require('../xor'));
func.placeholder = require('./placeholder');
module.exports = func;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL2ZwL3hvci5qcyJdLCJuYW1lcyI6W10s... |
module.exports={A:{A:{"16":"WB","132":"G E","388":"K C B A"},B:{"1":"D u Y I M H"},C:{"1":"0 1 2 3 4 5 6 7 F J K C G E B A D u Y I M H N O P Q R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y v","2":"UB z SB RB"},D:{"1":"0 1 2 3 4 5 6 7 P Q R S T U V W X w Z a b c d e f L h i j k l m n o p q r s t y v GB g D... |
var chai = require('chai');
var expect = require('chai').expect;
var dream = require('../dream.js');
dream.customType('inputTest', function (helper) {
return helper.input.test;
});
dream.schema('SchemaUsingInput', {result: 'inputTest'});
dream.input({
test: 'ok'
});
describe('Dream', function () {
describe('i... |
export const SAVED_JSON_FETCH_IN_PROGRESS = 'SAVED_JSON_FETCH_IN_PROGRESS';
export const SAVED_JSON_FETCH_SUCCESS = 'SAVED_JSON_FETCH_SUCCESS';
export const SAVED_JSON_FETCH_ERROR = 'SAVED_JSON_FETCH_ERROR';
export const EDITED_JSON_LOAD = 'EDITED_JSON_LOAD';
export const EDITED_JSON_CHANGE = 'EDITED_JSON_CHANGE';
exp... |
module.exports = function(grunt) {
var karmaConfig = function(configFile, customOptions) {
var options = { configFile: configFile, keepalive: true };
var travisOptions = process.env.TRAVIS && { browsers: ['Firefox'], reporters: 'dots' };
return grunt.util._.extend(options, customOptions, tr... |
/*
* Copyright 2015. Author: Jeffrey Hing. All Rights Reserved.
*
* MIT License
*
* AngularTestContext class.
*/
'use strict';
//-------------------------------------
// Module exports
//-------------------------------------
module.exports = AngularTestContext;
//-------------------------------------
// Module... |
require('../../lib/setup.js').enable();
express = require('express');
var app = express();
var bodyParser = require('body-parser');
Error.stackTraceLimit = 0;
app.use(function(req, res, next) {
zone.create(function RequestZone() {
zone.data.url = req.url;
next();
}).catch (function(err) {
console.error... |
var path = require('path');
var config = require('../config');
var utils = require('./utils');
var autoprefixer = require('autoprefixer-core');
var projectRoot = path.resolve(__dirname, '../');
module.exports = {
entry: {
app: './src/main',
vendor: [
'react',
'react-dom',
'react-router',
... |
// 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/maybe ../../../../../core/libs/gl-matrix-2/mat4 ../../../../../core/libs/gl-matrix-2/mat4f64 ../../lib/ComponentUtils .... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Tag Schema
*/
var TagSchema = new Schema({
created: {
type: Date,
default: Date.now
},
label: {
type: String,
default: '',
trim: true,
required: 'Label cannot be blank'
... |
var movies={"movies":[
{"title": "Blue Streak", "year": 1999, "starring": "Martin Lawrence, Luke Wilson", "HD":true, "description":"Blue Streak is a 1999 American buddy cop comedy film directed by Les Mayfield and starring Martin Lawrence, Luke Wilson, Dave Chappelle, Peter Greene, Nicole Ari Park... |
// Use the web-push library to hide the implementation details of the communication
// between the application server and the push service.
// For details, see https://tools.ietf.org/html/draft-ietf-webpush-protocol-01 and
// https://tools.ietf.org/html/draft-thomson-webpush-encryption-01.
var webPush = require('web-pu... |
'use strict';
var path = require('path'),
fs = require('fs'),
q = require('q'),
_ = require('lodash');
var readFile = q.denodeify(fs.readFile);
var writeFile = q.denodeify(fs.writeFile);
var dataPath = path.normalize(__dirname + '/../data');
//read all files extract precinct name and year end totals.
var... |
//remote web server request object
var xmlHttpRequest;
function getHttpRequest(){
var http_request;
if (window.XMLHttpRequest) { // Mozilla, Safari, ...
http_request = new XMLHttpRequest();
}else if (window.ActiveXObject) { // IE
http_request = new ActiveXObject("Microsoft.XMLHTTP");
}else{
ale... |
/* Controllers */
app.controller('Apartamentos',['$scope','$routeParams',
function($scope, $routeParams){
}]);
app.controller('HomeCtrl', ['$scope', '$routeParams', '$localStorage',
function($scope, $routeParams, $localStorage) {
$scope.user = $localStorage.user;
$scope.popular_a... |
module.exports = {
db: {
client: 'mysql',
connection: {
host: 'localhost',
user: 'root',
password: '',
database: 'harbortest',
socketPath: '/Applications/XAMPP/xamppfiles/var/mysql/mysql.sock'
},
pool: {
min: 0... |
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... |
define(function(require, exports, module) {
exports.indexToLine = function(text, index) {
var s = text.substring(0, index);
return s.split("\n").length;
};
}); |
'use strict';
const circular = '<<circular reference>>',
maxDepthMsg = '<<max depth reached>>',
_ = require('lodash'),
fixCircular = function (obj, maxDepth) {
let references = new Set();
const visitor = (x, depth) => {
if (depth >= maxDepth) {
return maxDepthMsg... |
var fs= require('fs'),
append=fs.appendFileSync,
path=require('path'),
util = require('util');
var base = "";
function fname(){
return (new Date(Date.now())).getTime()+".log";
}
var filename = fname();
function toArray(obj){
return Array.prototype.slice.call(obj);
}
function log(){
var localpath = path.j... |
/**
* Exports the MemoryStorage constructor, instances of which can be passed
* to the various models for storage.
*/
var Promise = require('bluebird');
module.exports = MemoryStorage;
/**
* The constructor for a MemoryStorage.
*
* @constructor
*/
function MemoryStorage() {
this._store = {};
}
/**
* Inc... |
const electron = require("electron");
const http = require("http");
const npm = require("npm");
const path = require("path");
const url = require("url");
let baseUrl = null;
exports.loadURL = (win, relativeUrl) => {
if (baseUrl === null) {
if (process.argv.indexOf("--dev") >= 0) {
process.env.... |
var text = require("../bl/text");
/*
Feed item format:
{
title: string,
body: string,
guid: string,
data: object,
link: url,
links: [{
title: string,
link: url
}],
pubDate: string,
thumbUrl: url,
imageData: stream (not stored),
imageUrl: url (not stored)
}
*/
function template_expresso(id, name, url) {... |
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost:27017/cleancity');
var Complaint = require('./app/models/complaint');
app.use(bodyParser.urlencoded({ ext... |
require.config({
paths:{
Squire:'bower_components/squire/src/Squire',
Async_Queue :'src/Async_Queue'
}
});
|
var o = { z: { x: 0 } };
o.z = { x: 1, y: 2 };
o.z.x
|
jQuery(function($){
var end = $("#endDateIn").html();
var endDate = new Date(end);
var endDateUTC = new Date(endDate.getTime() + endDate.getTimezoneOffset() * 60000);
var tomorrow = new Date(new Date().getTime() + 24 * 60 * 60 * 1000);
var today = new Date();
if (endDateUTC > tomorrow) {
$("#endTime").c... |
var mongoose = require('mongoose');
mongoose.Promise = global.Promise;
mongoose.connect(process.env.MONGODB_URI || 'mongodb://localhost:27017/tracker');
module.exports = {mongoose};
|
/*!
* vue-i18n v8.24.0
* (c) 2021 kazuya kawaguchi
* Released under the MIT License.
*/
'use strict';
/* */
/**
* constants
*/
var numberFormatKeys = [
'compactDisplay',
'currency',
'currencyDisplay',
'currencySign',
'localeMatcher',
'notation',
'numberingSystem',
'signDisplay',
'style',
... |
var data = require('../../../data/data.json');
function log(s) {
console.log(JSON.stringify(s, null, 4));
}
log(data);
var master = $('.article-graphic.graphic');
$('.icerinks', master).html(_.templates.icerinks({
icerinks: _.chain(data)
.map(function(v, i) {
var hoursParts = v.Hours.split(':'... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _api = require('../api');
var _api2 = _interopRequireDefault(_api);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function profilerApp() {
var state = arguments.length > 0 && argum... |
//A build file that builds require in different configurations via pragmas.
{
baseUrl: "./dojorequire",
//optimize: "none",
locale: "en-us",
dir: "dojo-build",
pragmas: {
dojoConvert: true
},
modules: [
{
name: "dojo",
include: ["require/text", "requi... |
this["app"] = this["app"] || {};
this["app"]["templates"] = this["app"]["templates"] || {};
this["app"]["templates"]["BoatPreview"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Handlebars.helpers); data = data || {};
va... |
import React from 'react'
import { StyleSheet, Text, View } from 'react-native'
import PropTypes from 'prop-types'
import Slider from './Slider'
import { TextDescriptionCard } from '@components'
const styles = StyleSheet.create( {
container: {
backgroundColor: '#fff',
flexDirection: 'column',
paddingTop... |
import React from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
const style = {
overflow: 'hidden',
whiteSpace: 'nowrap',
};
export default class SelectFieldExampleMultiple extends React.Component {
constructor(props) {
super(props);
this.state... |
var fs = require('fs');
var cons = {};
cons.dashboard = require('./class/ConDashboard');
cons.seeker = require('./class/ConSeeker');
var syro = {};
syro.startDashboard = function() {
return syro.__start__('dashboard');
};
syro.startSeeker = function() {
return syro.__start__('seeker');
};
syro.__start__ = ... |
var mongoose = require('mongoose');
var bcrypt = require('bcrypt');
var validator = require('validator');
var SALT_WORK_FACTOR = 10;
var MAX_LOGIN_ATTEMPTS = 5;
var LOCK_TIME = 2 * 60 * 60 * 1000;
var UserSchema = mongoose.Schema({
email: { type: String, required: true, index: { unique: true } },
password: { type... |
MeetApiService.$inject = ['$q','$http'];
function MeetApiService($q, $http) {
var AppSettings = {};
AppSettings.defaultApiVersion = 'v1';
AppSettings.apiUrl = '/_ah/api';
AppSettings.projectName = 'movieranking';
var service = {};
var createEndpointUrl = function(endpoint, version) {
v... |
module.exports = function (grunt) {
grunt.registerTask('test', [
'clean:tests',
'lintspaces',
'jshint',
'nodeunit',
'stage',
'connect:staging',
'ghost'
]);
};
|
import { normalize } from 'normalizr';
import { takeEvery, apply, put } from 'redux-saga/effects';
import {
fetchNovelCommentRepliesSuccess,
fetchNovelCommentRepliesFailure,
} from '../actions/novelCommentReplies';
import { addError } from '../actions/error';
import pixiv from '../helpers/apiClient';
import { NOVEL... |
'use strict';
angular.module('core').controller('HomeController', ['$scope', 'Authentication',
function($scope, Authentication) {
// This provides Authentication context.
$scope.authentication = Authentication;
$scope.alerts = [
{
icon: 'glyphicon-user',
color: 'btn-success',
total: '20,408',
... |
// @flow weak
import React, { PropTypes } from 'react';
import Paper from 'material-ui/Paper';
import { createStyleSheet } from 'jss-theme-reactor';
import Layout from 'material-ui/Layout';
const styleSheet = createStyleSheet('CenteredLayout', (theme) => ({
root: {
flexGrow: 1,
},
paper: {
padding: 16,
... |
var test = require("tape"),
View = require("../src/View"),
createComponent = require("./utils/createComponent"),
createRoot = require("./utils/createRoot");
test("transaction triggers insert patch", function(assert) {
var hits = 0;
var root = createRoot(function beforeCleanUp(transaction) {
... |
import Vue from 'vue'
import Router from 'vue-router'
import New from '@/components/New'
import Edit from '@/components/Edit'
import Entities from '@/components/settings/Entities'
import TransactionTemplates from '@/components/settings/TransactionTemplates'
import TransactionTemplatesDetail from '@/components/settings/... |
import { createLogger } from '../src';
describe('serialisation', () => {
const sandbox = sinon.sandbox.create();
const logFunction = sinon.stub();
const jsonString = 'JSON!';
let logger;
beforeEach(() => {
logFunction.reset();
sandbox.stub(JSON, 'stringify').returns(jsonString);
logger = createL... |
import { DataTypes, Op } from 'sequelize';
import sequelize from '../config/sequelize';
import paginate from '../helpers/paginate';
import Specialty from './specialty';
import sorting from '../helpers/sorting';
export default sequelize.define('mentors', {
startDate: {
type: DataTypes.DATE,
defaultValue: fals... |
/* eslint-disable */
'use strict';
const assert = require('assert'),
sqb = require('../'),
Op = sqb.Op;
describe('Hooking serialization', function() {
let options = {
dialect: 'test',
prettyPrint: false
};
it('should hook serialization', function() {
let query = sqb.select()
.from(... |
var total = 0;
function sum(array) {
for (var count = 0; count < array.length; count++) {
total += array[count];
}
return total
}
function mean(array) {
total = sum(array);
var mean = (total/array.length);
return mean;
}
function median(array) {
var sorter = array.sort();
var middleValue = sorter[Math... |
var group__dma__driver =
[
[ "dma_channel_t", "group__dma__driver.html#structdma__channel__t", [
[ "channel", "group__dma__driver.html#a6a005e16f4b15924d13b5ab8b0226500", null ],
[ "dmamuxModule", "group__dma__driver.html#a61750d9570188ce3dc49eb7823e1832e", null ],
[ "dmamuxChannel", "group__dma__... |
import {Button} from 'widget/button'
import {ButtonGroup} from 'widget/buttonGroup'
import {Content, SectionLayout, TopBar} from 'widget/sectionLayout'
import {HoverDetector, HoverOverlay} from 'widget/hover'
import {Progress} from 'widget/progress'
import {Scrollable, ScrollableContainer} from 'widget/scrollable'
impo... |
/*!
* express-session
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* Copyright(c) 2014 Douglas Christopher Wilson
* MIT Licensed
*/
/**
* Module dependencies.
* @private
*/
var cookie = require('cookie');
var crc = require('crc').crc32;
var debug = require('debug')('express-session');
v... |
import React,{Component} from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import { fetchWheater } from '../actions/index';
class SearchBar extends Component {
constructor(props) {
super(props);
this.state = {term:''};
this.onInputChange = this.onInpu... |
'use strict';
describe('Controller: BooksCtrl', function () {
// load the controller's module
beforeEach(module('bookshelfApp'));
beforeEach(module('socketMock'));
var BooksCtrl, scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $root... |
version https://git-lfs.github.com/spec/v1
oid sha256:b66dfe1b70b8923fcba98d4295966955c8d6b99f1401a9dfc100691118f74ae2
size 571912
|
'use strict';
// gulp and general utils
var gulp = require('gulp');
var gif = require('gulp-if');
var concat = require('gulp-concat');
var templateCache = require('gulp-angular-templatecache');
var header = require('gulp-header');
// templates
var ngHtml2js = require('gulp-ng-html2js')... |
//Services
var mods, programs;
mods = ["net", "http", "fs", "url", "querystring", "fs", "crypto"];
programs = ["telnet", "httpd", /*"database", "smtp"*/
"eventsource", "rest", "cookies", "fileserver",
"feed", "website", "pages", "apps", "live"];
mods.forEach(function(value) {
global[value] = ... |
import { B as Behavior, J as isTouch, f as fixPosition } from './index-c8e86d4d.js';
class TooltipBehavior extends Behavior {
connected() {
const { host } = this;
const parent = this.parent = this.host.parentNode;
if (parent && parent.nuElement && !parent.hasAttribute('describedby')) {
parent.setA... |
export default {
size: function() {
var cs = getComputedStyle(this.domNode),
bb = cs.getPropertyValue('box-sizing') === 'border-box',
height = cs.getPropertyValue('height'),
width = cs.getPropertyValue('width');
if (height === 'auto') {
height = this.... |
'use strict';
/**************************************************************************
***************************************************************************
***************************************************************************
***************************************************************************
*... |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////Antud osa tegeleb WebGL konteksti loomisega ja meile vajaliku WebGLProgram objekti loomisega ///////////////////////
//////////////////////////////////////////////////////////////////////////////... |
'use strict';
var ApatiteConnection = require('../apatite-connection.js');
var ApatiteError = require('../../error/apatite-error');
var ApatiteUtil = require('../../util.js');
var pgModuleName = 'pg';
var pg;
if (ApatiteUtil.existsModule(pgModuleName)) // must be checked otherwise would get test discovery error for... |
/**
* Created by Phil on 1/27/2016.
*/
var gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
main = require('../gulpfile.js')
;
require('run-sequence').use(gulp);
// SASS Build task
gulp.task('sass:build', function() {
var isCompile = main.isCompile();
... |
// const fse = require('fs-extra');
// const path = require('path');
// const assert = require('yeoman-assert');
// const helpers = require('yeoman-test');
describe('yo demoiselle:add', () => {
// let addGenerator;
// beforeEach(() => {
// addGenerator = helpers
// .run(require.resolve('../generators/ad... |
search_result['4004']=["topic_0000000000000998.html","StageQuestionVideoIndexModel.StageQuestions Property",""]; |
function* algorithm() {
setHighlightColor = new algo.Color({ red: 0x55/255.0, green: 0xAA/255.0, blue: 0x55/255.0, alpha: 0.2})
getHighlightColor = new algo.Color({ red: 0x44/255.0, green: 0x92/255.0, blue: 0xCC/255.0, alpha: 0.2})
answerHighlightColor = new algo.Color({ red: 0x66/255.0, green: 0xAA/255.0, ... |
var
/**
* The CLI utility
* @private
* @type {object}
*/
cli = require('../utils/cli'),
/**
* The inquirer library
* @private
* @type {object}
*/
inquirer = require('inquirer'),
/**
* The storage interface
* @private
* @type {object}
*/
... |
/* LIB */
var authorize = require('./authorize');
/* MODULES */
var request = require('request');
var queryString = require('query-string');
/* CONSTRUCTOR */
(function () {
var SendRequest = {};
/* PRIVATE VARIABLES */
var params;
/* PUBLIC FUNCTIONS */
SendRequest.setup = function (setupParams) {
... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* Lazy Line Painter - Path Object
* Generated using 'SVG to Lazy Line Converter'
*
* http://lazylinepainter.info
* Copyrig... |
var express = require('express');
var router = express.Router();
var db = require('./../db');
console.log(db);
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index');
});
router.get('/getstats', function(req, res, next) {
db.getStats(function(err, rows, table) {
res.send(rows);... |
/**
* Framework7 2.1.3
* Full featured mobile HTML framework for building iOS & Android apps
* http://framework7.io/
*
* Copyright 2014-2018 Vladimir Kharlampidi
*
* Released under the MIT License
*
* Released on: March 19, 2018
*/
import { window, document } from 'ssr-window';
import $ from 'dom7';
export {... |
angular.module('ionic-datepicker.service', [])
.service('IonicDatepickerService', function () {
this.getYearsList = function (from, to) {
var yearsList = [];
var minYear = 1900;
var maxYear = 2100;
minYear = from ? new Date(from).getFullYear() : minYear;
maxYear = to ? new Date(to... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.