code stringlengths 2 1.05M |
|---|
var Twit = require('twit')
var fs = require('fs'),
path = require('path'),
Twit = require('twit'),
config = require(path.join(__dirname, 'config.js'));
var bot = new Twit(config);
/*
The tweet to be posted.
You can replace this with your own tweet.
*/
var tweet = ['12:22 AM'];
var pos... |
/**
* VexFlow - Auto-beaming Tests
* Copyright Mohit Muthanna 2010 <mohit@muthanna.com>
*/
var VF = Vex.Flow;
VF.Test.BachDemo = (function () {
function concat(a, b) {
return a.concat(b);
}
var BachDemo = {
Start: function () {
var runTests = VF.Test.runTests;
QUnit.module('Bach Demo');
... |
let PHSM = (function () {
// **************************************************************************
// PRIVATE VARIABLES
// **************************************************************************
const CHARGES = {
commission: 0.25, // % of gross amount
commissionMinimum: 20, // pesos minimum commission ... |
(function() {
'use strict';
var options = {
delay: 500,
background: 'rgba(0, 154, 227, 0.9)',
color: '#FFF'
};
var sheet;
var _win = window;
var _doc = document;
var _FPS = 16.6666666667;
var _RAF = _win.requestAnimationFrame ||
_win.webkitRequestAnimati... |
/*
* GET home page.
*/
exports.index = function(req, res){
var circular_obj = [1,2,3];
circular_obj.push(circular_obj);
var vars = {
title: 'Express',
a_bad_test_function: function() {return JSON.stringify(circular_obj);}
}
res.render('index.toffee', vars);
}; |
// 'use strict';
// const nodePowershell = require('..');
// describe('node-powershell', () => {
// it('needs tests');
// });
|
export const disallowDanglingUnderscores = (jscs) => {
let message, right, wrong,
std = ["_", "__proto__", "__filename", "__dirname", "super_"];
message = "Identifers may not begin or end with an _underscore_ character, except for the following:";
if (jscs.allExcept) {
// join with standard... |
var Bunny = {
cache: {},
/**
* Создать метку
* @param {string} label - название метки
*/
start: function (label) {
this.cache[label] = {
start: new Date().valueOf()
};
},
/**
* Удалить заданную метку
* (результат запишется в таблицу)
*
* @param {string} label - название метки
*/
end: func... |
const ometa = require('.')
const {existsSync, readFileSync, writeFileSync} = require('fs')
const files = [
'lib',
'ometa-base',
'bs-js-compiler',
'bs-ometa-compiler',
'bs-ometa-optimizer',
'bs-ometa-js-compiler',
'ometa-node',
]
function readFile(name) {
const filename = __dirname + '/' + name
if (existsSync... |
require("./117.js");
require("./235.js");
require("./471.js");
require("./941.js");
module.exports = 942; |
import Vue from 'vue'
/*
* Empty Vue instance used as event bus.
*/
export const EventBus = new Vue()
|
'use strict';
var ReactStylePlugin = require('react-style-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var webpack = require('webpack');
module.exports = {
devtool: 'sourcemap',
entry: './index.js',
output: {
filename: "bundle.js",
path: __dirname + "/build"
},
... |
var myApp = angular.module('myApp',['ngRoute', 'ngAria']);
myApp.config(['$routeProvider',
function($routeProvider, $route) {
$routeProvider.
when('/list', {
templateUrl: 'list.html',
controller: 'ListController'
}).
when('/editwithresolve/:id', {
templateUrl: 'edit.html... |
'use strict';
const rethinkDB = require('rethinkdb');
const program = require('commander');
const log = require('./../log');
export class CoralUserGenerator {
constructor (conn, number, prefix, startLocationId, postProcessor) {
this.conn = conn;
this.prefix = prefix;
this.number = number;
this.pos... |
import Vue from 'vue';
export default function (listId, addresses) {
return Promise.all(addresses.map(address => submitAddress(listId, address)));
}
function submitAddress(listId, address) {
return Vue.http.post(`/admin/newsletter-lists/${listId}/members`, {
email: address.address,
name: addre... |
'use-strict'
var requireNew = require('require-new'),
app = requireNew('../index'),
_ = require('lodash'),
should = require('should'),
helper = require('./helper')
var Car = app.model('Car')
describe('Query-And-Update', function () {
before(function (done) {
this.timeout(10000)
helper.connect(app)
... |
/**
* Module dependencies.
*/
var util = require('util')
, OAuthStrategy = require('passport-oauth').OAuthStrategy
, InternalOAuthError = require('passport-oauth').InternalOAuthError;
/**
* `Strategy` constructor.
*
* The Zimbra authentication strategy authenticates requests by delegating to
* Zimbra using ... |
angular.module("angular-odata-service", [])
.provider("odata", function () {
var provider = {
routePrefix: "",
namespace: "",
setRoutePrefix: function (value) {
if (!value)
value = "";
provider.routePrefix = value;
},
setNamespace: ... |
export default function(server) {
let askHnList = server.createList('ask_hn', 10);
let storyList = server.createList('story', 10);
askHnList.forEach(story => {
server.createList('comment', 5, {
story_id: story.objectID,
story_url: story.story_url
});
});
storyList.forEach(story => {
... |
var gulp = require('gulp');
var browserify = require('gulp-browserify');
var rename = require('gulp-rename');
gulp.task("default", ["build"]);
gulp.task('build', function(){
gulp.src("js/*.js")
.pipe(browserify({
transform: ["reactify"]
}))
.pipe(rename("bundle.js"))
.pipe(gulp.dest("./build"));... |
import Component from '@ember/component';
import { computed } from '@ember/object';
export default Component.extend({
tagName: "",
matches: null,
groups: null,
groupName: null,
matchedGroupId: computed('matches.[]', 'groupName', function () {
const matches = this.matches;
const groupName = this.grou... |
(function() {
'use strict';
angular.module('auth.controllers')
.controller('NavCtrl', ['$scope', 'Auth', function($scope, Auth) {
//var vm = this;
$scope.logout = Auth.logout;
$scope.isLoggedIn = Auth.isLoggedIn;
$scope.currentUser = Auth.currentUser;
}]);
})(); |
Template.draftadmin.events({
'click .undo-bid' : function(event) {
console.log("Removing last bid")
Meteor.call("removeLastBid", Meteor.user().username);
},
'click .pause-auction' : function(event) {
console.log("Pausing auction")
Meteor.call("pauseAuction", Meteor.user().username);
},
'click ... |
/*
* NACHA File Library
*
* The MIT License (MIT)
* Copyright (c) 2015
* Knox Payments, Inc. (https://knoxpayments.com)
* Peter Hanneman (peter.a.hanneman@gmail.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (th... |
/**
* Created by tanghui on 16/7/28.
*/
/**
* Created by tanghui on 16/7/28.
*/
/**
* Created by tanghui on 16/7/27.
*/
'use strict';
var router = require('express').Router();
var AV = require('leanengine');
var util = require('./util');
var https = require('https');
var IOSAppSql = AV.Object.extend('IOSAppInfo'... |
import srdMonsters from '../data/monsters';
import customMonsters from '../data/customMonsters';
monsters = srdMonsters.concat( customMonsters );
export function update_filters(filters, key, value) {
return {
type: 'UPDATE_FILTERS',
monsters,
filters,
key,
value
}
}
export function add_to_encounter(monst... |
CodeMirror.commands.autocomplete = function(cm) {
CodeMirror.simpleHint(cm, CodeMirror.prefixHint);
};
CodeMirror.commands.executeQuery = function(cm) {
executeQuery();
};
//Make sure deleteLine also -removes- the line
CodeMirror.commands.deleteLines = function(cm) {
var startLine = cm.getCursor(true).line;
var end... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import RacerDisplay from './RacerDisplay';
import MessagesContainer from '../crowd-messaging/messages-container';
import OnDeckContainer from '../on-deck/OnDeckContainer';
export default class RaceResults extends Component {
static propTyp... |
/**
* Created by Luigi Serra on 10/06/2015.
*/
var ComponentService =
{
deep_url:"",
getComponent: function(params){//params = {component, data, fields, placeHolder}
var request = this.getXMLHttpRequest();
var component = params.component;
request.onreadystatechange = function(){
... |
var Q = require('q')
, fs = require('fs')
, path = require('path')
, exports = module.exports = {}
;
exports.readJSONFile = function(filePath){
var deferred = Q.defer();
fs.readFile(filePath, function (error, text) {
if (error) {
deferred.reject(new Error(error));
} else {
t... |
'use strict'
var fs = require('fs')
var Handlebars = require('handlebars/runtime')
var path = require('path')
var views = require(path.join(__dirname, '/views.js'))
var cervixDiagramPath = (path.join(__dirname, '/images/cervix-diagram.jpg'))
module.exports.build = (data, callback) => {
fs.readFile(cervixDiagramPath... |
#!/usr/bin/env node
'use strict'
import { readFile, writeFile } from 'fs'
const inputFile = './api/internal.json'
const outputFile = './api/v5/sets.json'
const deprecated = true
export function generate() {
readFile(inputFile, (err, inputBody) => {
if (err)
throw err
const inputJSON = JSON.parse(inp... |
app.controller('addCtrl', ['$scope', '$rootScope', 'mapService', 'postService', function ($scope, $rootScope, mapService, postService) {
$scope.latitude = "";
$scope.longitude = "";
$scope.name = "";
$scope.description = "";
$scope.tags = "";
$scope.categories = "";
$scope.submitFiles = fun... |
/**
* Extend module's NODE_PATH
* HACK: temporary solution
*/
require('node-path')(module);
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
/**
* Step Schema
* @type {Schema}
*/
StepSchema = new Schema({
number : { type: Number, required: true, default: 0 }
, arriveAt : { type: Date, def... |
name: Dashboard - Enhanced project list
description: See https://github.com/quincunx/testrail-ui-scripts
author: Christian Schuerer-Waldheim <csw@gmx.at>
version: 1.0
includes: ^dashboard
excludes:
js:
var ProjectsList = [];
var TimestampNow = Date.now();
$(document).ready(
function() {
// Check if Compact Vi... |
'use strict'
/* global describe, it */
const assert = require('assert')
const supertest = require('supertest')
describe('PassportService', () => {
let request, token, user
before((done) => {
request = supertest('http://localhost:3000')
request
.post('/auth/local/register')
.set('Accept', 'appl... |
define(['app'], function (app) {
app.constant('MONGOLAB_CONFIG',{
API_KEY:'o5wMMdzdsFiwqsD6Pd-gh2-rCRmUnk4N',
DB_NAME:'pinbuydb'
})
.factory('services', function ($mongolabResourceHttp) {
return {
post : $mongolabResourceHttp('post'),
autor : $mongolabReso... |
(function () {
'use strict'
angular.module('app.utils').factory('UTILS', [utilService]);
function utilService() {
var utils = {
send: send
}
return utils;
// Added timeout msg for custom reporting
functi... |
$(document).on('click', '.panel-heading span.icon_minim', function (e) {
var $this = $(this);
if (!$this.hasClass('panel-collapsed')) {
$this.parents('.panel').find('.panel-body').slideUp();
$this.addClass('panel-collapsed');
$this.removeClass('glyphicon-minus').addClass('glyphicon-... |
import React from 'react'
import { connect } from 'react-redux'
import ProductPageContainer from './ProductsContainer'
import EtsyProduct from '../components/GKM/EtsyProduct'
import { getItems, getCategories } from '../reducers/item'
import { updateItem, addListingToProduct, resetDb, addCategory, addItemtoCategory } fr... |
/*
Hash Kit
Copyright (c) 2014 - 2020 Cédric Ronvel
The MIT License (MIT)
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 u... |
module.exports = {
load: ['grunt-contrib-htmlmin'],
config: {
dist: {
options: {
/*removeCommentsFromCDATA: true,
// https://github.com/yeoman/grunt-usemin/issues/44
//collapseWhitespace: true,
collapseBooleanAttributes: true,
removeAttributeQuotes: true,
re... |
var rmExt = require('./rmExt');
var fixPathSep = require('./fixPathSep');
var path = require('path');
var isAddon = require('./isAddon');
module.exports = function(pathName, options) {
pathName = /\.hbs$/i.test(pathName) ? fixPathSep(pathName) : rmExt(pathName);
if (isAddon(pathName)) {
pathName = pathName.rep... |
(function(){
'use strict';
angular.module('app.quiz')
.directive('sspSubQuestion', sspSubQuestion);
function sspSubQuestion () {
var directive = {
restrict: 'E',
controller: sspSubQuestionController,
controllerAs: 'vm',
bindToContr... |
Template.signUp.events({
"submit [data-action=sign-up]": function(e, t) {
var $form, username, email, password;
e.preventDefault();
$form = $(e.target);
if ($form[0].valid) {
email = $form.find("#email").val();
password = $form.find("#password").val();
username = $form.find("#usernam... |
version https://git-lfs.github.com/spec/v1
oid sha256:9fbdf67873dd9eca28e19a742b3c4e0c86ed2659853a2a3ad700d03931eea7f1
size 927
|
export function clone(properties) {
if (Object.prototype.toString.call(properties) === '[object Object]') {
let temp = {};
for (const key in properties) {
temp[key] = clone(properties[key]);
}
return temp;
} else if (Array.isArray(properties)) {
return properties.map(clone)... |
var department = function(){
var baseUrl = contextPath + '/organization/';
var dialog = null; //对话框
var departmentName = null; //部门名称
var departmentSN = null; //部门编号
var description = null;//部门描述
var org = null;
/*
*新增部门
*/
$.ajaxSetup({cache:false});
var addDepartment = function(id,... |
/*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function (window, undefined) {
// Can't do th... |
'use strict';
var request = require('supertest');
var AnyFetchProvider = require('anyfetch-provider');
var Anyfetch = require('anyfetch');
require('should');
var serverConfig = require('../lib/');
describe("Workflow", function() {
before(AnyFetchProvider.debug.cleanTokens);
// Create a fake HTTP server
Anyfet... |
const five = require('johnny-five');
const board = new five.Board();
const MAGNETIC_DECLINATION = 15; // Portland, Ore., approx. magnetic declination
const ALERT_THRESHOLD = 5; // How many degress from north should count as north?
function isNorth (heading) {
return (heading > 360 - ALERT_THRESHOLD ||
heading < ... |
define(function(require) {
'use strict';
var bdd = require('intern!bdd');
var expect = require('intern/chai!expect');
var customFixture = require('../helper/fixtures/custom.fixture');
var nodeArray = require('ally/util/node-array');
bdd.describe('util/node-array', function() {
var fixture;
bdd.be... |
/* eslint new-cap: ["error", { "capIsNew": false, "properties": true }],
no-use-before-define: "off" */
import * as types from '../constants/ActionTypes';
import * as values from '../constants/DefaultValues';
// import { push } from 'react-router-redux';
import axios from 'axios';
import Immutable from 'immutable';
... |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('blue-button-group', 'Integration | Component | blue button group', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
... |
const Wreck = require('wreck');
const btoa = require('btoa');
const config = require('../src/config');
const wreck = Wreck.defaults({
baseUrl: 'http://localhost:9001',
json: true,
});
const clientId = config.clientId;
const clientSecret = config.clientSecret;
module.exports = () => {
console.log('Getting Acces... |
/**
* Created by zhangwei on 14-5-2.
*/
var webshot = require('webshot');
var UPYun = require('upyun-official').UPYun;
var fs = require('fs');
var stream = require('stream');
var config = require('config');
var weibo = require('weibo');
var upyun = new UPYun('ys-rsbook','zhangwei','zhangwei13');
var weibo_user= {... |
var path = require('path');
var webpack = require('webpack');
var _ = require('lodash');
var baseConfig = require('./base');
var config = _.merge({
entry: path.join(__dirname, '../public/app/src/components/run'),
cache: false,
devtool: 'sourcemap',
plugins: [
new webpack.optimize.DedupePlugin(),
new w... |
/*
* moleculer-sc
* Copyright (c) 2018 tiaod (https://github.com/tiaod/moleculer-sc)
* MIT Licensed
*/
import Transporter from 'moleculer/src/transporters/base'
import socketCluster from 'socketcluster-client'
import Debug from 'debug'
const debug = Debug('moleculer-sc:transporter')
class SocketCluster... |
// - -------------------------------------------------------------------- - //
// - libs
var TodoFlux = require("../flux/TodoFlux.js");
// - -------------------------------------------------------------------- - //
// - module
var TodoAction = TodoFlux.createAction({
addTask: function(text) {
return {
... |
import {width, height} from 'hoardom';
// The threshold for when we consider an element to lack dimensions. This will
// ensure that we don't consider content that has been collapsed to a single
// pixel as having dimensions. This is typically the case with tracking pixels
// and content that is only supposed to be vi... |
var _ = require('src/util')
var def = require('src/directives/public/bind')
var xlinkNS = 'http://www.w3.org/1999/xlink'
describe('v-bind', function () {
var el, dir
beforeEach(function () {
el = document.createElement('div')
dir = {
el: el,
descriptor: {},
modifiers: {}
}
_.exten... |
define('router', [], function() {
'use strict';
var EsteamatorRouter = Backbone.Router.extend({
routes: {
'session/:sessionId': 'existingSession',
'session/:sessionId/report': 'report'
},
///////////////////
// route handlers
existingSession: function (sessionId) {
Session.... |
/*
* Copyright (C) 2014 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration. All Rights Reserved.
*/
/**
* @exports BoundingBox
* @version $Id: BoundingBox.js 3345 2015-07-28 20:28:35Z dcollins $
*/
define([
'../error/ArgumentError',... |
"use strict";
const gulp = require('gulp');
const sass = require('gulp-sass');
const cssMin = require('gulp-cssmin');
const del = require('del');
const sourcemaps = require('gulp-sourcemaps');
const sassPath = {
src: 'app/sass/*.scss',
dest: 'build/css'
};
function processSass() {
return... |
'use strict';
/**
* session_trigger enum
*
* ****WARNING**** This file is auto-generated! Do NOT edit this file.
*/
const BaseType = require('../type');
const FieldTypes = require('../fieldTypes');
const ValuesMap = {
0: 'activity_end',
1: 'manual', // User changed sport.
2: 'auto_multi_sport', //... |
/**
*
*/
'use strict'
const _ = require('underscore')
const fs = require('fs')
const tmp = require('tmp')
const path = require('path')
const caller = require('caller')
const mockFs = require('mock-fs')
const mockery = require('mockery')
const assert = require('chai').assert
module.exports = {
refresh: functi... |
'use strict';
/**
* Module dependencies.
*/
var StandardError = require('standard-error');
var db = require('../../config/sequelize');
/*
* List all causes
*/
exports.getWallet = function(req, res) {
db.bl_wallet.findAll({include: [db.bl_user]}).then(function(wallets){
return res.jsonp(wallets);
}).catch(fun... |
import React from 'react';
import SidebarUi from './SidebarUi';
import CustomerSheetPrinterUi from './CustomerSheetPrinterUi';
import PopoverTemplateUi from './PopoverTemplateUi';
// The main content presentational component which includes the sidebar and displays
// the children.
export default React.createClass({
... |
function Background () {
chrome.runtime.onInstalled.addListener(function (details) {
// only run the following section on install
if (details.reason !== "install") {
return;
}
chrome.tabs.create({
url: "https://www.qwant.com/extension/thanks"
});
... |
/**
* PearsonStrap: DatePicker.js
**/
!function ($) {
$('input.datepicker').each(function () {
$(this).datepicker();
var dp_id = $(this).attr("id");
if (dp_id) {
$('#' + dp_id + 'Btn').click(function () {
if ($('#' + dp_id).datepicker("widget").is(":visible")) {... |
import React from 'react';
import ReactDOM from 'react-dom';
import './css/base.css';
import App from './App';
ReactDOM.render(<App />, document.getElementById('root'));
|
'use strict';
exports.__esModule = true;
var _LocationUtils = require('history/LocationUtils');
Object.defineProperty(exports, 'createLocation', {
enumerable: true,
get: function get() {
return _LocationUtils.createLocation;
}
});
Object.defineProperty(exports, 'locationsAreEqual', {
enumerable: true,
... |
function get_project_by_client(client_id) {
$.ajax({
url: "tasks/get_projects_by_client/" + client_id.value,
success: function (data) {
data = JSON.parse(data);
project_select(data);
},
error: function (jqXHR, textStatus, errorThrown) {
alert('Err... |
'use strict';
var _ = require('lodash');
var Promise = require('bluebird');
var APIList = require('./APIList');
var APIError = require('../errors/APIError');
var Request = require('./Request');
var ParamsBuilder = require('./ParamsBuilder');
var HeadersBuilder = require('./HeadersBuilder');
var PathBuilder = require(... |
({
dir: "build",
appDir: "js/src",
baseUrl: ".",
mainConfigFile: "js/lib/require.config.js",
skipDirOptimize: true,
preserveLicenseComments: false,
removeCombined: true,
keepBuildDir: true,
optimize: 'none',
// , exclude... |
pen.define(["common-ui/vizapi/VizController", "geo/openlayers_wrapper"], function(){
analyzerPlugins = typeof analyzerPlugins == "undefined" ? [] : analyzerPlugins;
analyzerPlugins.push(
{
init:function () {
dojo.require("pentaho.common.Messages");
pentaho.common.Messages.addUrlB... |
var queue = require('queue-async');
var config = require('./config');
var codemotion = require('./../build/Release/codemotion');
var q = queue(config.NUM_TASKS * 2);
for (var i = 0; i < config.NUM_TASKS; i++) {
q.defer(function(done) {
codemotion.asyncTask(config.SECONDS, done);
});
}
q.awaitAll(functi... |
/*
* Author: Abdullah A Almsaeed
* Date: 4 Jan 2014
* Description:
* This is a demo file used only for the main dashboard (index.html)
**/
$(function() {
"use strict";
//Make the dashboard widgets sortable Using jquery UI
$(".connectedSortable").sortable({
placeholder: "sort-highlight",
... |
// This is main process of Electron, started as first thing when your
// app starts. This script is running through entire life of your application.
// It doesn't have any windows which you can see on screen, but we can open
// window from here.
import { app, Menu } from 'electron'
import log from 'loglevel'
import en... |
import io from "socket.io-client"
import { messageTypes } from "./messageTypes"
let socket
const init = (store, rootURL) => {
socket = io(rootURL, {
reconnection: true,
})
// add listeners to socket messages so we can re-dispatch them as actions
Object.keys(messageTypes).forEach(key =>
socket.on(key,... |
module.exports = {
dist: {
files: {
"dist/arraysweeper.min.css": [ "dist/arraysweeper.css" ]
}
}
};
|
/**
* Created by bhandr1 on 5/14/2016.
*/
(function () {
angular
.module('app.tapi')
.service('TestSuiteBasicModel', TestSuiteBasicModel);
function TestSuiteBasicModel(){
var model = this;
model.newTestSuiteModel = function () {
return {
"name": ""
... |
/* eslint-disable import/prefer-default-export */
export const switchTheme = () => ({ type: 'THEME/SWITCH' });
|
/**
* Created by benjamin on 22.03.2016.
*/
angular.module('imageShop.home', [])
.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('home', {
url: '/',
templateUrl: "views/public/home/home.html"... |
import React, { PropTypes } from 'react';
import BaseTemplate from '../base-study-template';
import AboutSection from '../../../content-modules/about.js';
import LoopingVideo from 'components/video/looping-video';
export class Girls extends BaseTemplate {
static propTypes = {
data: PropTypes.object.isRequired
... |
let iniciofecha = moment().subtract(10, 'year').startOf('year')
let finfecha = moment().subtract(0, 'year').endOf('year')
$(document).ready(function () {
$('#export').click(function () {
$('#tablaFacturasPendientes').tableExport({
type:'excel',
fileName: 'FacturasPendientesPago',
num... |
import Ember from 'ember';
export default Ember.Controller.extend({
databaseSchema: Ember.inject.service(),
notify: Ember.inject.service(),
databaseFields: [],
queryParams: ['showSpec', 'editSpec'],
showSpec: null,
editSpec: null,
actions: {
updateDatabaseFields(tableName) {
tableName = tableNam... |
import { useWith, identity } from 'ramda';
import { equals } from './internal/versionCompare';
import getOSVersion from './getOSVersion';
export default useWith(equals, [ identity, getOSVersion ]);
|
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var routes = require('./routes/index');
var users = require('./routes/users');
var app = express()... |
'use strict';
var MODULE_NAME = 'plugin-socketio';
var _ = require('underscore');
var socketio = require('socket.io');
var nodeplayerConfig = require('nodeplayer').config;
var coreConfig = nodeplayerConfig.getConfig();
var defaultConfig = require('./default-config.js');
var config = nodeplayerConfig.getConfig(MODULE... |
#!/usr/bin/env node
"use strict";
const argv = process.argv;
const options = {
"cwd": process.cwd(),
"pegjs-compatibility": true,
"optimize": "speed",
"format": "commonjs",
"trace": false,
"allow": {
"import": false,
"template": false,
"default": false,
"spread... |
elation.elements.define('janus.ui.buttons', class extends elation.elements.base {
init() {
super.init();
this.defineAttributes({
showedit: { type: 'boolean', default: true },
showshare: { type: 'boolean', default: false },
showfullscreen: { type: 'boolean', default: true },
showvr: { t... |
var fs = require('fs');
var url = require('url');
var path = require('path');
//queryString 使用
var root = path.resolve(process.argv[2] || '.');
console.log('root filePath is: ',root);
function index(req, res){
var query = url.parse(req.url,true).query;
var name = query.name;
var filePath = path.join(root,'/upl... |
System.register(["@angular/router", "./bar/components/bar.component", "./data/components/data.component"], function (exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var router_1, bar_component_1, data_component_1, appRoutes, appRoutingProviders, routing;
return {
... |
var Gates = require('../index.js');
var test = require('tape');
test('#or(true)', function (t) {
t.plan(1);
var res = Gates.or(true);
t.equal(res, true);
});
test('#or(false)', function (t) {
t.plan(1);
var res = Gates.or(false);
t.equal(res, false);
});
test('#or(true, true)', function (t) {
t.plan(1)... |
window.onload = function() {
var size,
maxDepth = 0;
init();
function init() {
chaos.init();
size = chaos.height * 0.5;
draw();
document.body.addEventListener("keyup", function(event) {
console.log(event.keyCode);
switch(event.keyCode) {
case 32://space
maxDept... |
define(function(require,exports, module) {
var $ = require('jquery');
var React = require('react');
var Backbone = require('backbone');
var HelloMessage = require('./components/HelloMessage');
var ReactApp={
getJsonData:function(data){
alert('收集数据!'+data);
},
getI... |
import React from 'react';
import renderer from 'react-test-renderer';
import { compose } from 'recompose';
import { View } from 'react-native';
import Providers from '@ui/TestProviders';
import styled from '../';
describe('the styled HOC', () => {
it('passes style literal to the base component', () => {
const S... |
import React, { Component, PropTypes } from 'react';
import styles from './Table.scss';
export default class Table extends Component {
static propTypes = {
children: PropTypes.any
};
render() {
return (<table className={styles.table} >{this.props.children}</table>);
}
}
|
'use strict';
var EventEmitter = require('events').EventEmitter;
var util = require('util');
var CBuffer = require('circular-buffer');
var os = require('os');
var kill = function(tail){
tail.emit('close');
tail.stdout.removeAllListeners();
tail.stderr.removeAllListeners();
tail.removeAllListeners();
if(tai... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.