code stringlengths 2 1.05M |
|---|
"use strict";
import superagent from "superagent";
import FeedParser from "feedparser";
export default class FeedService {
constructor() {
}
parse(url) {
return new Promise((resolve, reject) => {
let items = [];
superagent
.get(url)
.pipe(new FeedParser([]))
.on(... |
for (var i = 0; i < 16; i++) {
var wool = "minecraft:wool:" + i;
var carpet = "chisel:carpet_block:" + i;
// removeRecipes(carpet);
addShapedRecipe(carpet + "@8", [
[wool, wool, wool],
[wool, "itemString", wool],
[wool, wool, wool]
]);
}
|
bg.ecard.DomTargets = function( params ) {
if (params) {
this.params = params;
if (params.parent) this.parent = params.parent;
} else {
this.params = {};
}
this.params.type = 'bg.ecard.DomTargets';
/*
if ( typeof(selector) === 'string' ) {
this.params.id = selector;
th... |
const path = require('path');
const merge = require('webpack-merge');
const autoprefixer = require('autoprefixer');
const postcssFixes = require('postcss-fixes');
const cssnano = require('cssnano');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin')... |
var R = require('../source/index.js');
var eq = require('./shared/eq.js');
var testObj = {
a: [{
b: 1
}, {
b: 2
}],
d: 3
};
describe('lensPath', function() {
describe('view', function() {
it('focuses the specified object property', function() {
eq(R.view(R.lensPath(['d']), testObj), 3);
... |
import axios from 'axios';
import { selected } from './selectedHackathon';
import { reducer as notifReducer, actions as notifActions, Notifs } from 're-notif';
const { notifSend } = notifActions;
import notification from './notification';
export const HACKATHONS = 'HACKATHONS';
export const SELECT = 'SELECT';
// ---... |
PhotoAlbums.LoginRoute = PhotoAlbums.Route.extend({
title: "Login",
setupController: function(controller, model) {
this._super(controller, model);
this.setApplicationContext(controller);
},
setApplicationContext: function(controller) {
var applicationController = this.controllerFor('application');... |
// https://leetcode-cn.com/problems/generate-parentheses/
/**
* @param {number} n
* @return {string[]}
*/
var generateParenthesis = function(n) {
let len = n * 2;
let arr = [[]];
for (let i = 0; i < len; i++) {
arr = generateBracket(arr);
}
const result = {};
for (let i = 0; i < arr.length; i+... |
var Service = function(){
this.data = {};
};
Service.prototype.getService = function(url,data){
var promise = $.ajax({
url: url,
async: false,
crossDomain: true,
method:'POST',
data:data
});
return promise;
};
|
/***********************************************************************
* app-src/js/yopcontext.js
* YeAPF 0.8.52-107 built on 2016-12-01 07:30 (-2 DST)
* Copyright (C) 2004-2016 Esteban Daniel Dortta - dortta@yahoo.com
* 2016-06-23 12:11:10 (-2 DST)
* First Version (C) 2014 - esteban daniel dortta - dortta@... |
const assert = require('assert');
const uint32 = 0xffffffff;
const fourbytes = 0xffffffff + 1;
const Poly1305 = require('seccamp2016-tls-poly1305');
function LeftRotate(x, n) {
assert(n > 0);
assert(32 > n);
var lowmask = uint32 >>> n;
var himask = (~lowmask & uint32) >>> 0;
var xhi = (x & himask) >>> 32 - n... |
this.workbox=this.workbox||{},this.workbox.navigationPreload=function(t){"use strict";try{self.workbox.v["workbox:navigation-preload:3.4.1"]=1}catch(t){}function e(){return Boolean(self.registration&&self.registration.navigationPreload)}return t.enable=function(t){e()&&self.addEventListener("activate",e=>{e.waitUntil(s... |
// ****************************************
// Execute model changes
// ****************************************
function modelChanges(changes) {
//console.log("changes = "+JSON.stringify(changes, null, 2));
var tasklist = _.pluck(changes, 'name');
//console.log("tasklist = "+tasklist);
// Just got ... |
/**
* Pure JavaScript implementation of zoom.js.
*
* Original preamble:
* zoom.js - It's the best way to zoom an image
* @version v0.0.2
* @link https://github.com/fat/zoom.js
* @license MIT
*
*/
class ZoomJS extends HTMLElement {
constructor() {
super();
this.zoom = this.firstElementChil... |
$Behavior.datePicker = function()
{
$('.js_date_picker').datepicker({
onSelect: function(dateText, inst)
{
var aParts = explode('/', dateText);
var sMonth = ltrim(aParts[0], '0');
var sDay = ltrim(aParts[1], '0');
$(this).parents('.js_datepicker_holder:first').find('.js_datepicker_m... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
/**
* @license Angular v4.1.0
* (c) 2010-2017 Google, Inc. h... |
import devip from 'dev-ip';
import { getSettings, initLog } from 'roc';
import config from '../config/roc.config.js';
let onceDevPort = true;
const devIp = devip();
const log = initLog();
/**
* Returns the current dev host.
*
* @returns {string} The host that should be used.
*/
export function getDevHost() {
... |
/**
* Created by liuff on 2016/12/13 21:27
*/
var querystring = require('querystring');
var http = require('http');
var process = require('process');
var URL = process.argv[2];
var PATTERN = process.argv[3];
// console.log("Elasticsearch url = " + URL);
console.log("Index pattern = " + PATTERN);
if (URL == null ||... |
// TEST DATA
// Keyed by mocha test ID
// Python code for generating test data can be found in the matching jupyter notebook in folder `notebooks/`.
;(function() {
var DATA = {
'convolutional.Conv2D.0': {
input: {
shape: [5, 5, 2],
data: [
-0.990562,
-0.756862,
... |
/*
* Binary Ajax 0.1.5
* Copyright (c) 2008 Jacob Seidelin, cupboy@gmail.com, http://blog.nihilogic.dk/
* MIT License [http://www.opensource.org/licenses/mit-license.php]
*
* Extended by António Afonso <antonio.afonso gmail.com>
*/
var BinaryFile = function(strData, iDataOffset, iDataLength) {
var data = strData... |
context('Runtime state saving', function () {
let materialUrl
beforeEach(() => {
cy.login()
cy.importMaterial("sequences/simple-sequence.json").then(url =>
materialUrl = url
)
})
afterEach(() => {
cy.deleteMaterial(materialUrl)
})
it('marks activity as completed once user responds to... |
'use strict';
var Printer = require('../');
console.log(String.fromCharCode('0x2a')); |
var path = require("path");
var fs = require("fs");
var _ = require("lodash");
var mkdirp = require("mkdirp");
var config = require("node-prefix");
var nodePrefix = config.prefix();
var globalModulePath = config.global("genesis");
module.exports = function (html, options) {
var size = options.size;
var height... |
function ITER$0(v,f){if(v){if(Array.isArray(v))return f?v.slice():v;if(typeof v==='object'&&typeof v['iterator']==='function')return Array['from'](v);}throw new Error(v+' is not iterable')};function GET_ITER$0(v){if(v){if(Array.isArray(v))return 0;if(typeof v==='object'&&typeof v['iterator']==='function')return v['iter... |
'use strict';
const path = require('path');
const fastText = require('fasttext');
module.exports = fastText.Classifier; |
// Preferences, stored in chrome.storage
var M = module.exports = {};
var keyboard = require('./keyboard'),
number = require('./number'),
util = require('./util');
var firstMod = keyboard.modifiers.ALT,
secondMod = keyboard.mac ? keyboard.modifiers.META : keyboard.modifiers.CTRL;
var defaults = {
'm... |
var webpack = require('webpack');
var banner = require('./banner');
module.exports = {
output: {
library: 'ReactVimeo',
libraryTarget: 'umd'
},
externals: [
{
'react': {
root: 'React',
commonjs2: 'react',
commonjs: 'react',
amd: 'react'
}
}
],
m... |
import TestStats from '../src/stats/test'
describe('TestStats', () => {
let stat
beforeAll(() => {
stat = new TestStats({ type: 'test:start',
title: 'should can do something',
parent: 'My awesome feature',
fullTitle: 'My awesome feature should can do something',
... |
/**
* @fileoverview Used for creating a suggested configuration based on project code.
* @author Ian VanSchooten
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const ... |
//~ name c102
alert(c102);
//~ component c103.js
|
/**
* HTTP Server Settings
* (sails.config.http)
*
* Configuration for the underlying HTTP server in Sails.
* Only applies to HTTP requests (not WebSockets)
*
* For more information on configuration, check out:
* http://sailsjs.org/#/documentation/reference/sails.config/sails.config.http.html
*/
module.export... |
/**
* THIS FILE IS AUTO-GENERATED
* DON'T MAKE CHANGES HERE
*/
import { createFalse } from '../../factoriesNumber.js';
export var falseDependencies = {
createFalse: createFalse
}; |
const STATES = {
SUCCESS: 1,
WARNING: 0,
FAIL: 2,
UNAUTHENTICATED: 4001,
INTERNAL_ERR: 500,
}
module.exports = {
SUCCESS: (_data) => { return { type: STATES.SUCCESS, data: _data } },
FAIL: (_data) => { return { type: STATES.FAIL, data: _data } },
WARNING: (_data) => { return { type: STATES.WARNING, dat... |
#!/usr/bin/env node
var simpleget = require('simple-get')
var map = require('tar-map-stream')
var tar = require('tar-fs')
var zlib = require('zlib')
var fs = require('fs')
var path = require('path')
var pump = require('pump')
var after = require('after-all')
var multi = require('multi-write-stream')
var semver = requi... |
'use strict'
var points = [ [1, 0, 0], [0, 1, 0] ]
var copoints = require('../acomp')(3, points)
console.log(copoints)
|
// helpers
var _ = require('lodash');
var log = require('../../core/log.js');
// let's create our own method
var method = {};
method.init = function() {
this.age = 0;
this.currentTrend;
this.requiredHistory = 16;
this.persistence=0;
//ADD_INDICATORS;
this.addindicator('inda', '..INDA..', thi... |
'use strict';
app.controller('DashboardCtrl', function($scope , $route, $mdDialog, $pageVisibility, dataService, timerService, addressService, minerService) {
$scope.minerStats = {};
$scope.updateCharts = function (){
minerService.updateStats($scope.addrStats, function(minerStats){
$scope.minerStats = minerSt... |
'use strict';
/**
* Encode the given string through `encodeURIComponent`
* and encode parenthesis as well.
* This is needed to avoid an nginx error (method not allowed)
*/
module.exports = function encodeURIComponentAndParentheses(string) {
string = encodeURIComponent(string);
string = string.replace(/\(/g, "%... |
// Generic Super Objects
function BCAsyncObject() {
this.addDeferred = function (def) {
this.deferreds.push(def);
};
this.executeDeferreds = function (callback) {
allDeferred = [];
var context = this;
$.each(this.deferreds, function (i, def) {
allDefer... |
//curl -X POST "https://api.groupme.com/v3/bots/post?bot_id=a50adb57a9892969de430abaee&text=Hello+an+faggots,+this+is+Johnny"
//"https://api.groupme.com/v3/bots/post?bot_id=a50adb57a9892969de430abaee&text=Hello+an+faggots,+this+is+Johnny"
var https = require('https');
var makeURI = function (message,botId) {
//tester ... |
/* ************************************************************************ */
/*
*/
var React = require('react');
var Recipes = require('./panels/Recipes.js');
var helper = require('../utils/helpers');
const title = (<span><h2>Recipes</h2> <i>Click one to edit</i></span>);
var RecipeList = React.cre... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.0.0-rc4-master-7cb035d
*/
goog.provide('ng.material.components.autocomplete');
goog.require('ng.material.components.icon');
goog.require('ng.material.components.virtualRepeat');
goog.require('ng.material.core');
/**
* @ngdoc m... |
var engine = require("../engine");
var manager = require("../manager");
// TODO: This should be part of 'set', see nextstatus.js
module.exports = engine.promiseCommand(function(doc,cb) {
return manager.requireRelativeDoc(doc).then(function(doc) {
if (typeof doc === "undefined") {
throw new eng... |
var settings = require('../settings');
var Db = require('mongodb').Db;
var Connection = require('mongodb').Connection;
var Server = require('mongodb').Server;
module.exports = new Db(settings.db, new Server(settings.host, Connection.DEFAULT_PORT),{});
|
process.env.NODE_ENV = 'test'
const chai = require('chai')
const chaiHttp = require('chai-http')
const server = require('../server')
chai.use(chaiHttp)
describe('Next-Metro API', () => {
describe('/GET trains', (done) => {
it('should return a list of all the train preditions', (done) => {
chai.request(s... |
import CImage from './c-image'
export default CImage |
const move = require("move");
const utilitiy = require("utility");
module.exports = {
attack: function (creep) {
if (!utilitiy.bodyContains(creep, ATTACK)) {
return false
}
if (creep.room.memory.targetHostile === void 0) {
return false;
}
... |
'use strict';
const path = require('path');
const simpleGit = require('simple-git');
const git = simpleGit(path.join(__dirname, '..'));
const format = require('stringformat');
const fs = require('fs');
const utils = {
formatPrs: commits => {
const result = [];
commits.forEach(commit => {
const commit... |
const gulp = require('gulp');
const path = require('path');
const paths = require('../paths');
module.exports = {
images() {
return gulp.src(paths.content.assets.images)
.pipe(gulp.dest(paths.compiled.assets.images));
},
fonts() {
return gulp.src(paths.content.assets.fonts)
.pipe(gulp.dest(pa... |
import IGVGraphics from "../igv-canvas.js";
function paintAxis(ctx, pixelWidth, pixelHeight) {
var x1,
x2,
y1,
y2,
a,
b,
reference,
shim,
font = {
'font': 'normal 10px Arial',
'textAlign': 'right',
'strokeStyle': "... |
const path = require("path");
const co = require("co");
const { cacheDir } = require("./config");
const { exists, mkdir, exec } = require("./helpers");
module.exports = co.wrap(function*(hash) {
const cachePath = path.join(cacheDir, hash);
const cachePathExists = yield exists(cachePath);
if (!cachePathExists... |
import React from 'react';
import { shallow } from 'enzyme';
import Book from '../../../components/Books/Book';
const props = {
book: {
title: 'Magnolia Table: A Collection of Recipes for Gathering',
author: 'Joanna Gaines',
description: 'Book for test',
subject: 'Recipe',
imageURL: 'https://imag... |
/**
* Module dependencies
*/
var _ = require('lodash')
, path = require('path')
, util = require('util')
, consolidate = require('./consolidate');
/**
* Marshal relevant parts of sails global configuration,
* issue deprecation notices, etc.
*
* @param {Sails} sails
*/
module.exports = function configu... |
export { default } from './PostgresqlPlainWordmark'
|
import React, {PropTypes} from 'react'
class LoadingDots extends React.Component {
constructor (props, context) {
super(props, context)
this.state = {
frame: 1
}
}
componentDidMount () {
this.interval = setInterval(() => {
this.setState({
frame: this.state.frame + 1
})
}, this.props.int... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M13 9V4H6v16h12V9h-5zm3 8.06L14 16v1c0 .55-.45 1-1 1H9c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1h4c.55 0 1 .45 1 1v1l2-1.06v4.12z",
opacity: ".3"
}, "0"), /*#__P... |
'use strict';
/* Filters */
angular.module('odyssey.filters', []).
filter('interpolate', ['version', function(version) {
return function(text) {
return String(text).replace(/\%VERSION\%/mg, version);
}
}]);
|
/* Simplifr, v0.2.1 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.simplifr = global.simplifr || {})));
}(this, function (exports) { 'use strict';
fun... |
// The contents of this file will be executed before any of
// your view controllers are ever executed, including the index.
// You have access to all functionality on the `Alloy` namespace.
//
// This is a great place to do any initialization for your app
// or create any global variables/functions that you'd like to
... |
var EventProxy = require('eventproxy'),
models = require('../models'),
Note = models.Note,
Notebook = models.Notebook;
/**
* @desc: 新建一个笔记本
* @param {String} title: 笔记标题
* @param {String} author: 笔记作者
* @param {Boolean} private: 是否
* @param {Function} callback: 查询回调函数
*/
exports.newAndSave = f... |
'use strict';
var utils = require('../lib/utils');
var should = require('should');
describe('Tests merge helper', function () {
it('object should have all properties', function () {
var objA = {'a': 'A', 'b': 'B'},
objB = {'c': 'C', 'd': 'D'},
objC = utils.merge(objA, objB);
... |
'use strict';
const countryInfo = require('../metadata/countryInfo');
const logger = require( 'pelias-logger' ).get( 'geonames' );
function error( message ){
logger.error( '\n ' + message + '\n' );
process.exit( 1 );
}
function validateISOCode( input ){
var isocode = ( 'string' === typeof input ) ? input.toUp... |
var Grid, assert, indices1, indices2, vows;
var __indexOf = Array.prototype.indexOf || function(item) {
for (var i = 0, l = this.length; i < l; i++) {
if (this[i] === item) return i;
}
return -1;
};
vows = require('vows');
Grid = require('../grid-lookup.js');
assert = require('assert');
indices1 = [0, 19, 19 ... |
/**
* Created by Alex on 8/17/2014.
*/
module.exports = function () {
return {
};
}(); |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TableContext from './TableContext';
export default class TableCell extends Component {
static propTypes = {
children: PropTypes.node,
renderCell: PropTypes.func,
store: PropTypes.object,
};
_handleClick = () => {
const { s... |
/* @flow */
import { warn } from '../util'
export default {
name: 'i18n',
functional: true,
props: {
tag: {
type: String
},
path: {
type: String,
required: true
},
locale: {
type: String
},
places: {
type: [Array, Object]
}
},
render (h: Function... |
var View = require('view');
var template = require('./template');
var dom = require('dom');
var BillTransformer = require('./BillSection');
var TextSection = require('text-section');
var move = require('move');
function DiffView() {
if (!this instanceof DiffView) {
return new DiffView();
}
View.call(this, t... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.transposeDocs = void 0;
var transposeDocs = {
name: 'transpose',
category: 'Matrix',
syntax: ['x\'', 'transpose(x)'],
description: 'Transpose a matrix',
examples: ['a = [1, 2, 3; 4, 5, 6]', 'a\'', 'transpose(a)'],
seeals... |
export { default } from './Resultstest'; |
import { ADD_PRODUCT, DELETE_PRODUCT } from './actions'
const initialState = []
export default (state = initialState, action) => {
const inList = product => state.filter(i => i.id === product.id).length > 0
const getPosition = id => state.findIndex(i => i.id === id)
switch (action.type) {
case ADD_... |
// XML namespaces:
const http = "http://www.w3.org/";
/** @type {Object} */
const ns = {
svg: http + "2000/svg",
xlink: http + "1999/xlink"
};
export default ns;
|
var version = "TEST";
|
/**
* Production environment settings
*
* This file can include shared settings for a production environment,
* such as API keys or remote database passwords. If you're using
* a version control solution for your Sails app, this file will
* be committed to your repository unless you add it to your .gitignore
* ... |
/*
Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dijit.PopupMenuItem"]){ //_hasResource checks added by build. Do not use _hasResource directly in yo... |
/* Sudo Slider v. 3.1.1 ( http://webbies.dk/SudoSlider/ ), licenced under GPL and MIT license */
(function(h,ja){function Y(a,b,d,q,f){if(h.isFunction(b))q?Y(a,["","Up","Right","Down","Left",b],d,0,f):a[d]=function(a){var d=[a].concat(f),n=d.length-1;if(0===q&&0==d[n]){var g=a.diff;d[n]=a.options.vertical?0>g?1:3:0>g?2... |
module.exports = {
"env": {
"es6" : true,
"browser" : true
},
"parserOptions": {
"sourceType": "module"
},
"extends": "eslint:recommended",
"plugins": [
"import"
]
};
|
// Underscore.js 1.8.2
// http://underscorejs.org
// (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Underscore may be freely distributed under the MIT license.
(function() {
// Baseline setup
// --------------
// Establish the root object, `window` in the ... |
'use strict';
var assert = require('../../helpers/assert');
var commandOptions = require('../../factories/command-options');
var AddonCommand = require('../../../lib/commands/addon');
describe('addon command', function() {
var command, options;
beforeEach(function() {
options = commandOptions({
... |
var api = require('./api')
, frontend = require('./frontend')
, stats = require('./stats')
, user = require('./user');
module.exports = {
api: api,
frontend: frontend,
stats: stats,
user: user
};
|
import React from 'react';
import moment from 'moment';
import { storiesOf } from '@kadira/storybook';
import SingleDatePickerWrapper from '../examples/SingleDatePickerWrapper';
import { VERTICAL_ORIENTATION } from '../constants';
storiesOf('SingleDatePicker', module)
.add('default', () => (
<SingleDatePickerW... |
/* eslint-env browser, mocha, jasmine */
import {log} from './DebugUtils';
describe('(utils) DebugUtils', () => {
it('should attach a log instance to window as logger', () => {
expect(window.logger).to.be.a('function');
})
});
|
import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import { compose } from 'redux';
import { asyncConnect } from 'redux-connect';
import Helmet from 'react-helmet';
import { load as loadSuppliers, create } from 'redux/modules/suppliers/suppliers';
import { load as loadProducers... |
'use strict';
/**
* @ngdoc function
* @name zcGdzcHelperApp.controller:ListCtrl
* @description
* # ListCtrl
* Controller of the zcGdzcHelperApp
*/
angular.module('zcGdzcHelperApp')
.controller('ListCtrl', function ($scope, gdzc) {
$scope.Predicates = Nagu.Gdzc.Predicates;
gdzc.listByLyr('fb1d7ab9-3a13-... |
'use strict';
var distance = require('google-distance');
var xmlify = require('xmlify');
var config = require('../config');
var startEmbedUrl= 'https://www.google.com/maps/embed/v1/directions?key='+config.API_KEY+'&mode=walking&origin=';
function getDistance(request, reply) {
var origin = request.params.origin;
... |
/*!
* gumshoejs v5.1.2
* A simple, framework-agnostic scrollspy script.
* (c) 2019 Chris Ferdinandi
* MIT License
* http://github.com/cferdinandi/gumshoe
*/
/**
* Element.closest() polyfill
* https://developer.mozilla.org/en-US/docs/Web/API/Element/closest#Polyfill
*/
if (!Element.prototype.closest) {
if (!E... |
/**
* Enter your Coinbase Sandbox API credentials below
*/
var Client = require('coinbase').Client;
var client = new Client({
'apiKey': 'your-coinbase-sandbox-api-key',
'apiSecret': 'your-coinbase-sandbox-api-secret',
'baseApiUri': 'https://api.sandbox.coinbase.com/v2/',
});
module.exports = client; |
"use strict";
const fs = require('fs-extra');
const path = require('path');
const XmlWriter_1 = require('./XmlWriter');
function copyAndReplace(from, to, names, values) {
let data = fs.readFileSync(from, { encoding: 'utf8' });
for (let i = 0; i < names.length; ++i) {
data = data.replace(new RegEx... |
EventEmitter = Npm.require('events').EventEmitter; |
import sms from 'sails-service-sms';
export default sms.create("<%= answers['services:sms:provider'] %>", sails.config.services.sms);
|
// This is a karma config file. For more details see
// http://karma-runner.github.io/0.13/config/configuration-file.html
// we are also using it with karma-webpack
// https://github.com/webpack/karma-webpack
var path = require('path')
var merge = require('webpack-merge')
var baseConfig = require('../webpack.confi... |
import { get } from '../get';
import { post } from '../post';
export function postLoginData(name,password){
const result = post('/api/login',{
name,
password
});
return result;
}
export function addUser(name,password){
const result = post('/api/sign',{
name: name,
password: password
});
... |
$(document).ready(function() {
var editor = CodeMirror.fromTextArea('query', {
height: "250px",
parserfile: "parsesparql.js",
stylesheet: "css/sparqlcolors.css",
path: "/js/"
});
});
//$(document).ready(function() {
// $('#queryform').submit(function(e){
// // Fallback for browser that don't support the his... |
'use strict';
(function () {
// Companys Controller Spec
describe('Companys Controller Tests', function () {
// Initialize global variables
var CompanysController,
scope,
$httpBackend,
$stateParams,
$location,
Authentication,
Companys,
mockCompany;
// The $res... |
export default {
name: 'ReferenceLine',
props: [
{
name: 'xAxisId',
type: 'String | Number',
defaultVal: '0',
isOptional: false,
desc: {
'en-US': 'The id of x-axis which is corresponding to the data.',
'zh-CN': '参考线对应的 x 轴的 id。',
},
},
{
name: 'y... |
var Class = require('uberclass')
, Q = require('q');
module.exports = Class.extend({
instance: null,
Model: null
}, {
db: null,
setup: function(dbAdapter) {
this.db = dbAdapter;
},
startTransaction: function() {
return this.db.startTransaction();
},
query: function(... |
"use strict";
jest.dontMock('../../../src/index.js');
let ReactDOM = require('react-dom');
let React = require('react');
let TestUtils = require('react-addons-test-utils');
let Ad = require('../../../src/index.js').Ad;
describe('Ad', function () {
it('should have .ui.ad class by default', function () {... |
// Custom scripts
$(document).ready(function () {
// MetsiMenu
$('#side-menu').metisMenu();
// Collapse ibox function
$('.collapse-link').click( function() {
var ibox = $(this).closest('div.ibox');
var button = $(this).find('i');
var content = ibox.find('div.ibox-content');
... |
ScalaJS.is.scala_scalajs_js_Function15 = (function(obj) {
return (!(!((obj && obj.$classData) && obj.$classData.ancestors.scala_scalajs_js_Function15)))
});
ScalaJS.as.scala_scalajs_js_Function15 = (function(obj) {
if ((ScalaJS.is.scala_scalajs_js_Function15(obj) || (obj === null))) {
return obj
} else {
... |
var Pipeline = require('./pipeline');
var Task = require('./task');
var EventList = require('./eventList');
var actions = require('./actions');
describe('Pipeline', function () {
describe('Series Pipeline', function () {
// We already test that tasks know how to determine their own next actions,
// so it's o... |
"use strict";
var app = angular.module("MFCCountdown",['ui.bootstrap', 'ui.keypress']);
app.run(function($rootScope){
function uniqueid(){
// always start with a letter (for DOM friendlyness)
var idstr=String.fromCharCode(Math.floor((Math.random()*25)+65));
do {
// between num... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.