code stringlengths 2 1.05M |
|---|
// Copyright 2006 The Closure Library Authors. 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.apache.org/licenses/LICENSE-2.0
//
// Unless requ... |
import {fireEvent as dtlFireEvent} from '@testing-library/dom'
// react-testing-library's version of fireEvent will call
// dom-testing-library's version of fireEvent. The reason
// we make this distinction however is because we have
// a few extra events that work a bit differently
const fireEvent = (...args) => dtlF... |
'use strict'
/**
* PEM
* @ignore
*/
const privatePKCS1 = `-----BEGIN EC PRIVATE KEY-----
MIHcAgEBBEIBp7eAMe6QHQ4Av4tEfeVYFQUn3nWHFFEAfyqOcjSUHzPFmNQpH2kM
wFpZu6XPxauBTVTnFW8QAtD1ov1L6V7aHpagBwYFK4EEACOhgYkDgYYABAFHzefo
k5MWo1mRqDXvo8zQqUsnb6JeTKyn/kD0tJP92cYFutmHTq3rKQF2Kyvvhv339iKB
q11jsNpLjNCVooqDpwEHOpuFthlQH1is... |
require('./datetime-picker.directive.css');
directive.$inject = ['$datetimeModalService'];
function directive($datetimeModalService){
return {
retrict: 'AE',
require: 'ngModel',
scope: {
mode: '@'
},
template: require('./datetime-range.directive.html'),
link: function($scope, $ele, $attr, ngMo... |
version https://git-lfs.github.com/spec/v1
oid sha256:eb1e55fdc42184952815f51599037c9970f16f890e51417ad254fc172c080172
size 404409
|
module.exports = {
normalizeEntityName: function() {},
afterInstall: function() {
return this.addBowerPackageToProject('jquery.inputmask');
},
};
|
(function(ns){
var Shade = require("../../../interfaces.js");
var Syntax = require('estraverse').Syntax;
var Tools = require("../../tools.js");
var ANNO = require("../../../type-system/annotation.js").ANNO;
var TYPES = Shade.TYPES,
KINDS = Shade.OBJECT_KINDS;
var Mat4Instance = {
... |
var robbery_2005_07 = [{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "Unnamed: 0": 0, "Incident Number": 51820136, "Date": "07\/01\/2005", "Time": "02:22 PM", "Police District": 7, "Offense 1": "ROBBERY", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Lo... |
'use strict';
describe('prismo.users.resources module', function() {
var usersResource;
var httpBackend;
beforeEach(module('prismo.users'));
beforeEach(inject(function(_usersResource_, _$httpBackend_) {
usersResource = _usersResource_;
httpBackend = _$httpBackend_;
}));
describe('usersResource'... |
module.exports = function(path, keys, sensitive, strict) {
if (toString.call(path) == '[object RegExp]') return path;
if (Array.isArray(path)) path = '(' + path.join('|') + ')';
path = path
.concat(strict ? '' : '/?')
.replace(/\/\(/g, '(?:/')
.replace(/(\/)?(\.)?:(\w+)(?:(\(.*?\)))?(\?)?(\*)?/g, func... |
/*!
* jQuery JavaScript Library v1.7.1
* http://jquery.com/
*
* Copyright 2011, John Resig
* Released under the the MIT License.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT and BSD Licenses.
*
* Date: ... |
"use strict";
/**
* XML attribute names.
*/
var XmlAttributeNames;
(function (XmlAttributeNames) {
XmlAttributeNames.XmlNs = "xmlns";
XmlAttributeNames.Id = "Id";
XmlAttributeNames.ChangeKey = "ChangeKey";
XmlAttributeNames.RecurringMasterId = "RecurringMasterId";
XmlAttributeNames.InstanceIndex =... |
Template.card.onRendered(function() {
var el = this.find('textarea');
var $textarea = $(el);
if($textarea) {
// call autogrow only when text area is visible
var interval = setInterval(function() {
if(!$textarea.is(':visible')) return;
$textarea.autogrow();
if (Session.get('ha... |
import React from 'react';
import store from 'app/store';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
import Divider from 'material-ui/Divider';
import CluckList from 'app/components/cluck-list';
export default class CluckApp extends React.Component {
construct... |
/**
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var scatterHover = require('../scatter/hover');
var fillText = require('../../lib').fillText;
module.exports = ... |
/**
* Partition
*
* Write code to partition a linked list around a value x,
* such that all nodes less than x come before all nodes greater than or equal to x
* If x is contained within the list, the values of x only need to be after the elements less than x.
* The partition element x can appear anywhere in the "... |
const friendlyName = (str) => {
// capitalize first letter
str = str.charAt(0).toUpperCase() + str.slice(1);
// split capitals
str = str.replace(/([a-z])([A-Z])/g, '$1 $2');
// CCW
str = str.replace('CCW', '(Counter Clockwise)');
// CW
str = str.replace('CW', '(Clockwise)');
return str;
};
export { f... |
'use strict';
var yeoman = require('yeoman-generator');
var fs = require('fs');
var path = require('path');
module.exports = yeoman.generators.Base.extend({
initializing: function () {
var base_path = this.config.get('path');
var fileList = {
foundation: getScssFileList(path.join(base_path, 'foundati... |
function doContact(){var e={name:document.getElementById("contact-name").value,email:document.getElementById("contact-email").value,subject:document.getElementById("contact-subject").value,message:document.getElementById("contact-message").value};if(e.name.length<=1||e.name.length>64)return alert("The name must be betw... |
'use strict';
// eslint 2.9.0
function e(opts) {
return v('error', opts);
}
function w(opts) {
return v('warn', opts);
}
function off() {
return v('off');
}
function v(level, opts) {
if (!opts) {
opts = [];
}
return [level].concat(opts);
}
module.exports = {
root: true,
pa... |
'use strict';
const utils = require('../utils/utils');
const emberUtils = require('../utils/ember');
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
const ERROR_MESSAGE = "Don't specif... |
import {
Color,
ShaderChunk,
ShaderLib,
UniformsUtils
} from "../../../build/three.module.js";
/**
* ------------------------------------------------------------------------------------------
* Subsurface Scattering shader
* Based on GDC 2011 – Approximating Translucency for a Fast, Cheap and Convincing Subsurfa... |
export const ic_calendar_today_outline = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V10h16v11zm0-13H4V5h16v3z"},"child... |
var mongoose = require('mongoose');
var uriUtil = require('mongodb-uri');
/*
* // Pulled from https://gist.github.com/mongolab-org/9959376#file-mongoose-connection-options-js
* Mongoose by default sets the auto_reconnect option to true.
* We recommend setting socket options at both the server and replica set level.... |
"use strict";
class TsReader {
constructor(buffer, position) {
this.buffer = buffer;
this.position = position || 0;
}
readBitsRaw(length) {
if (this.position + length > this.buffer.length << 3) {
this.position += length;
return 0;
}
let valu... |
import React, { Component } from 'react';
import classnames from 'classnames';
import api from '../../utils/api-interface';
import StripeCheckout from 'react-stripe-checkout';
class UserPaymentBlock extends Component {
constructor(props) {
super(props);
this.state = {
errorMessage: '',
paymentInProgress: f... |
var BVH = { REVISION:'0.1a'};
BVH.TO_RAD = Math.PI / 180;
window.URL = window.URL || window.webkitURL;
BVH.Reader = function(){
this.debug = true;
this.type = "";
this.data = null;
this.root = null;
this.numFrames = 0;
this.secsPerFrame = 0;
this.play = false;
this.channels = null;
this.lines = "";
this.s... |
'use strict';
/**
* Grunt setup
*/
module.exports = function(grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
project: {
src: 'src',
filename: 'flare',
dist: 'dist',
test: 'test',
... |
import { props, childTypes } from './util';
import validChildren from './executable';
export default function foreach(node, check) {
props(node, check, {
'array': true,
'item': true,
'index': false
});
childTypes(node, check, validChildren);
};
|
import mixin from '../../../mixin/field/mixin/value-behaviour';
export default mixin; |
#!/usr/bin/env node
'use strict';
if (process.version < 'v4.2.1') {
console.log('请将Node更新至4.2.1及以上版本,可以使用nvm在本地安装并管理多个Node版本。');
process.exit(1);
}
var main = require('../main');
var Args = require('../lib/util/args');
var splitChars = /[,;,;]/;
// run command for single id
var run = function (name, event) {
... |
module.exports = function() {
let heroes = ["leto", "duncan", "goku", "batman", "asterix", "naruto", "totoro"];
for(let index = Math.min(heroes.length - 1, 5), __ks_0 = 2, hero; index >= __ks_0; index -= 2) {
hero = heroes[index];
console.log("The hero at index %d is %s", index, hero);
}
}; |
/*global define*/
define(
['marionette','vent','tpl!templates/nav/navbar.tmpl'],
function (Marionette, vent, tmpl) {
'use strict';
return Marionette.ItemView.extend({
template: tmpl
});
}
); |
import { extend } from '../core/core.js';
import { now } from '../core/time.js';
import { path } from '../core/path.js';
import { URI } from '../core/uri.js';
import { math } from '../math/math.js';
/**
* Callback used by {@link Http#get}, {@link Http#post}, {@link Http#put}, {@link Http#del}, and
* {@link Http#req... |
function solve(args) {
let min,
l,
i,
j,
temp,
index;
args.splice(0, 1);
l = args.length;
for (i = 0; i < l; i += 1) {
min = Number.MAX_VALUE;
for (j = 0 + i; j < l; j += 1) {
if (min > +args[j]) {
min = +args[j];
... |
// ==UserScript==
// @name test-utils
// @name:de test-utils
// @namespace dannysaurus.camamba
// @version 0.1
// @license MIT License
// @description primitive assert-methods for unit-testing
// @description:de primitive assert-methods for unit-testing
// ==/UserScript==
v... |
var starwarsNames = require('./starwars-names');
var uniqueRandomArray = require('unique-random-array');
module.exports = {
all:starwarsNames,
random:uniqueRandomArray(starwarsNames)
} |
// Generated by CoffeeScript 1.8.0
(function() {
'use strict';
/*
Channel Example -- worker01
This app waits for URLs to become available in the 'demo:urlq' queue, as provided
by worker01. Then, for each one it receives, the app gets the page for the URL,
computes an SHA1 value, and outputs it to the co... |
/*global module: true */
var WebpayJsError = function WebpayJsError(message) {
Error.apply(this, arguments);
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = message;
};
WebpayJsError.prototype = new Error();
WebpayJsError.prototype.constructor = WebpayJsError;
m... |
/* ----------------------------------------------------------------------------------
* Author: Grant Storey & Dillon Reisman
* Written: 8/15/16
* Last Updated: 8/15/16
* Description: Contains a map between locale codes and the corresponding
* "Sponsored" text, as well as a default list if the locale cannot be
* ... |
const { Observable } = require('rxjs/Observable');
const { isFSA } = require('flux-standard-action');
const fetch = require('node-fetch');
function toObservable(anything) {
if (
typeof anything === 'object' &&
typeof anything.then === 'function'
) {
return Observable.fromPromise(anything);
} else if ... |
module.exports = {
entry: './build/src//prettyPrint.js',
output: {
path: __dirname + '/dist',
filename: 'bundle.js',
libraryTarget: 'umd',
library: 'prettyPrint',
globalObject: 'typeof self !== \'undefined\' ? self : this',
},
module: {
rules: [
{
test: /\.tsx?$/,
l... |
import store from '../store';
import PokerAPI from '../utils/poker-api';
import {
SET_PICKED_CARD, USER_LOGGED_OUT, USER_NAME_CHANGED, USER_SAVED,
} from './types';
const s4 = () => Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
export const generateGUID = () => `${s4() + s4()}-${s4()}-... |
'use strict';
describe('Service: graph', function () {
// load the service's module
beforeEach(module('ngfbApp'));
// instantiate service
var graph;
beforeEach(inject(function (_graph_) {
graph = _graph_;
}));
it('should do something', function () {
expect(!!graph).toBe(true);
});
});
|
//
// Copyright (c) 2016 by Koen van Gilst (@vnglst) | MIT license
//
import 'babel/polyfill'
import React from 'react'
import ReactDOM from 'react-dom'
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'
import Location from './core/Location'
import Layout from './components/Layout'
const routes = {} // Auto-g... |
/*
* Copyright (c) 2016 airbug Inc. http://airbug.com
*
* bugcore may be freely distributed under the MIT license.
*/
//-------------------------------------------------------------------------------
// Annotations
//-------------------------------------------------------------------------------
//@TestFile
//@... |
//@ A status is an exclusive, set-like container whose doubly-linked members form a ring.
'Object'.subclass(I => {
"use strict";
I.have({
//@{string} descriptive status name
statusName: null,
//@{Std.Status.$._.Link?} first member link of this status
firstLink: null,
//@{integer} number of membe... |
var fs = require('fs');
var util = require('util');
var mixin = require('./util').mixin;
var EventEmitter = require('events').EventEmitter;
/**
* Hash containing regular expressions (or strings convertible to RegExps)
* to use for scanning log lines. All properties are optional, and will
* default to regular expre... |
"use strict";
// Import
// =========
var _ = require('underscore');
var Chronicle = require('../index');
var Calculator = require('./example');
var Test = require("substance-test");
// Test
// =========
var __ID__ = 0;
var __OP__ = 1;
var __VAL__ = 2;
var __RESULT__ = 3;
var ROOT = Chronicle.ROOT;
// Index struc... |
'use strict';
var path = require('path');
var config = {
entry: {
pillow: path.resolve('src')
},
output: {
path: path.join(__dirname, 'build'),
filename: '[name].js',
library: '[name]'
},
externals: {
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'jsx-loader?... |
const LIST_DRAG_DROP_ITEM_CSS_CLASSES = [
{
cssClass : 'col-md-12',
numberItemPerRow: 0
},
{
cssClass : 'col-md-12',
numberItemPerRow: 1
},
{
cssClass : 'col-md-6',
numberItemPerRow: 2
},
{
cssClass : 'col-md-4',
numberItemPerRow:... |
Support.Me.CustomizeController = Ember.ObjectController.extend({
language:null,
config:{
headerBackground:'#000000',
headerForeground:'#ffffff',
textColor:'#bdc3c7',
agentColor:'#16a085',
guestColor:'#e67e22',
chatBackgroundColor:'#e5e5e5',
languageHeaderText:'Chúng tôi đang Online. Hỏi ngay',
langu... |
describe("cache", function () {
'use strict';
var cache = require('js/cache');
var serial = (new Date()).valueOf();
var serial2 = serial + Math.floor(Math.random() * 10000);
beforeEach(function () {
cache.set(serial, 'foo', 'bar');
cache.set(serial, 'bar', 'baz');
cache.set(serial2, 'baz', 'qux'... |
import express from 'express';
import path from 'path';
import open from 'open';
import webpack from 'webpack';
import config from '../webpack.config.dev';
/* eslint-disable no-console */
const port = 3000;
const app = express();
const compiler = webpack(config);
app.use(require('webpack-dev-middleware')(c... |
"use strict";
/**
*
* ----------------------------------------------------------------------------
* stat.js
* ----------------------------------------------------------------------------
*
* This file is part of browser Project.
*
* For the full copyright and license information, please view the LICENSE
* fi... |
// Generated by CoffeeScript 1.4.0
(function() {
module.exports = require('./lib/soda-sync');
}).call(this);
|
(function () {
'use strict';
angular
.module('blocks.logger')
.factory('logger', logger);
logger.$inject = ['$log', 'toastr'];
/* @ngInject */
function logger($log, toastr) {
var service = {
showToasts: true,
error: error,
info: info,
... |
angular.module('d83.core')
.directive('d83Annotation', function (projectDataSrvc) {
"use strict"
return{
restrict: 'E',
templateUrl: '../d83/annotation/d83.annotation.tpl.html',
require:'^d83-Navigator',
controller: function ($scope, projectDataSrvc) ... |
'use strict'
// This is a custom Jest transformer turning style imports into empty objects.
// http://facebook.github.io/jest/docs/tutorial-webpack.html
module.exports = {
process () {
return 'module.exports = {};'
},
getCacheKey () {
// The output is always the same.
return 'cssTransform'
},
}
|
angular.module('sample', [
'auth0',
'ngRoute',
'auth0UserExport.main',
'auth0UserExport.home',
'auth0UserExport.login',
'auth0UserExport.users',
'auth0UserExport.users.table',
'auth0UserExport.users.configure',
'angular-storage',
'angular-j... |
import * as React from 'react';
import Link from 'next/link'
import Head from '../component/Head';
import css from 'next/css'
import Menu2 from '../component/Menu2';
const styles = {
header: css({
display: 'flex',
marginBottom: 20,
marginTop: 150
})
}
export default class App extends React.Component ... |
/*
@license Angular Treeview version 0.1.6
? 2013 AHN JAE-HA http://github.com/eu81273/angular.treeview
License: MIT
[TREE attribute]
angular-treeview: the treeview directive
tree-id : each tree's unique id.
tree-model : the tree model on $scope.
node-id : each node's id
node-label : each node's label
node-... |
import { expect } from 'chai'
import { filterTodos, actions } from './filterTodos'
describe('Validate FilterTodos', () => {
it('should filter the list of toods', () => {
const todos = [
{id: 0, text: "This is an item", done: false},
{id: 1, text: "Another item", done: true}
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isTuesday;
var _index = require('../toDate/index.js');
var _index2 = _interopRequireDefault(_index);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* @name isTuesda... |
import firebase from 'firebase';
var config = {
apiKey: "AIzaSyA_9VpHPRHh_PEEIYfeRyhYZ4v0PY8iP-A",
authDomain: "react-todo-app-8e60f.firebaseapp.com",
databaseURL: "https://react-todo-app-8e60f.firebaseio.com",
projectId: "react-todo-app-8e60f",
storageBucket: "react-todo-app-8e60f.appspot.com",
... |
'use strict';
var express = require('express');
var controller = require('./instance.controller');
var router = express.Router();
router.get('/', controller.index);
module.exports = router; |
/*
===============================================================================================
Unify Project
Homepage: unify-project.org
License: MIT + Apache (V2)
Copyright: 2010, Sebastian Fastner, Mainz, Germany, http://unify-training.com
===============================================================... |
if (process.env.NODE_ENV === 'production') {
const child_process = require('child_process');
const path = require('path');
const webpackExec = `${path.resolve(process.cwd(), 'node_modules/.bin/webpack')}`;
const file = `${path.resolve(__dirname, 'webpack/webpack.production.config.js')}`;
const command = `${w... |
var getChildren = exports.getChildren = function(elem){
return elem.children;
};
var getParent = exports.getParent = function(elem){
return elem.parent;
};
exports.getSiblings = function(elem){
var parent = getParent(elem);
return parent ? getChildren(parent) : [elem];
};
exports.getAttributeValue = function... |
var path = require("path");
var ugli = require("uglify-js");
var chalk = require('chalk');
var suber = require('./super');
var sixto5 = require('6to5');
var syntax = require('./syntax');
/**
* Here it comes.
* @param {Grunt} grunt
*/
module.exports = function(grunt) {
"use strict";
var SPACER = "\n\n\n";
var H... |
var React = require('react');
var AlbumViewer = require('../../components/album-viewer/album-viewer');
var Header = require('../../components/header/header');
var Footer = require('../../components/footer/footer');
var albums = require('../../config/albums');
var RightSidebar = require('../../components/right-sidebar')... |
/// <reference path='../typescript-definitions/mocha.d.ts' />
/// <reference path='../typescript-definitions/node.d.ts' />
/* jshint mocha:true */
'use strict';
var rdr = require('../index');
var assert = require('assert');
var _a = [rdr.deepReaddir, rdr.deepReaddirSync], deepReaddir = _a[0], deepReaddirSync = _a[1];
d... |
export const name = 'Provider';
/**
* Generate provider uid name from provider name and user ID
* @param {String} providerName Provider name
* @param {String} uid User ID
* @return {String} Provider UID
*/
export function genNameUID(providerName, uid) {
return providerName + '_' + uid;
}... |
'use strict';
//csbindはclientとserverで
//[{},{}...]
//の形式の抽象テーブル型を共有するためのライブラリ
//underscore.jsとunderscore-contrib.jsに依存する。
//
var _ = require('underscore-contrib');
var def = require('deferred');
var csbs = {};
//deepClone
//Date型のみ対応
(function() {
function _deepClone(obj) {
var _dc;
if (!_.isArray(obj)) {
... |
// load the things we need
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
// define the schema for our user model
var userSchema = mongoose.Schema({
local : {
email : String,
pass : String,
country : String,
date ... |
var ModAPI = require('modapi')
var _ = require('lodash')
var fs = require('fs')
var path = require('path')
var readLocalFile = function(name) {
return fs.readFileSync(path.join(__dirname, name))
}
var qml = ModAPI.QMLFileV2("Controls/SelfSwitchBox.qml")
var node = qml.root
node.type = "LabeledEditableComboBox"
nod... |
/**
* Events from selenium control flow
*/
const Channel = require('chnl');
//const promise = require('selenium-webdriver/lib/promise');
// const {IDLE, UNCAUGHT_EXCEPTION} = promise.ControlFlow.EventType;
exports.onError = new Channel();
exports.onIdle = new Channel();
exports.onErrorOrIdle = new Channel();
/*
... |
'use strict';
var fs = require('fs'),
os = require('os'),
path = require('path'),
chalk = require('chalk');
module.exports = function (grunt) {
var coverage = process.env.GRUNT_MOVE_COVERAGE,
tmp = os.tmpdir(),
succeedingTasks = [
'move:empty', 'move:missing', 'move:rename',
... |
Package.describe({
name: 'telescope:users',
summary: 'Telescope permissions.',
version: '0.1.0'
});
Package.onUse(function (api) {
api.versionsFrom(['METEOR@1.0']);
api.use([
'telescope:lib@0.3.1',
'telescope:settings@0.1.0',
'telescope:i18n@0.1.0'
]);
api.addFiles([
'package-tap.i18n'... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = history;
var _routing = require('../actions/routing');
var initialState = {}; /**
* Created by sidchik on 28.03.17.
*/
function history() {
var state = arguments.leng... |
$(document).ready(function() {
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* BEGIN DECLARATIONS OF VARS *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
// utility functions
var dskOpenArticle = function(e,u) {
$(document).off('click', '.fron... |
"use strict";
var fx = require("framework");
var Class = fx.import("framework.Class");
var Controller = fx.import("framework.controller.Controller");
var View = fx.import("framework.ui.view.View");
Class.define("MyApp.Other2Controller", Controller, {
initialize: function() {
Controller.prototype.initialize... |
var assert = require('assert')
var crypto = require('crypto')
var fs = require('fs')
var _ = require('lodash')
var mockery = require('mockery')
var sinon = require('sinon')
var tmp = require('tmp')
var _o = require('@carbon-io/carbon-core').bond._o(module)
var o = require('@carbon-io/carbon-core').atom.o(module).mai... |
/**
*
* Container
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Wrapper } from './style';
function Container(props) {
return (
<Wrapper>
{props.children}
</Wrapper>
);
}
Container.propTypes = {
children: PropTypes.node,
};
export default Container;
|
var patient={}
var patientid=getCookie('patientId');
$(function(){
var username = getCookie('username');
var header = $('#header');
header.append('Patient - '+username);
var pid=getCookie('patientId');
var km=getCookie('Kilometers');
if(pid=='' || pid=='null' || pid==null)
{... |
import run from 'ember-metal/run_loop';
import EmberObject from 'ember-runtime/system/object';
import jQuery from 'ember-views/system/jquery';
import Test from 'ember-testing/test';
import EmberRoute from 'ember-routing/system/route';
import EmberApplication from 'ember-application/system/application';
import { compile... |
'use strict';
const exec = require('cp-sugar').exec;
const reporter = require('../reporters/current');
module.exports = function printReleaseInfo(pkgVersion, publishTag) {
let commitInfo = null;
return exec('git log -1 --oneline')
.then((info) => {
commitInfo = info;
return ex... |
'use strict';
jest.dontMock('../lib/terminator');
jest.setMock('../lib/pipeline-steps/format-extractor', {
extract: () => {
return { responseFormat: 'json' };
}
});
jest.setMock('../lib/parsers', {
search: () => ({
mime: 'application/json',
serialize: jest.genMockFunction()
})
}... |
/* jshint node: true */
'use strict';
module.exports = {
name: 'ember-maps',
contentFor: function(type, config) {
if (type === 'head-footer') {
// config aus eviroment holen
let mapsConfig = config.mapsConfig || {};
let apiKey = mapsConfig.googleMap.apiKey;
let gmapsURL = 'https://map... |
import PortMixin from 'ember-debug/mixins/port-mixin';
const Ember = window.Ember;
const { String: { classify, dasherize }, computed, observer, run: { later }, Object: EmberObject } = Ember;
const { oneWay, readOnly } = computed;
const { hasOwnProperty } = Object.prototype;
export default EmberObject.extend(PortMixi... |
throw new Error("Something bad happened.");
|
'use strict';
/**
* simplecached: simplified memcached server and client.
* (C) 2013 Alex Fernández.
*/
var server = require('./lib/server.js');
var client = require('./lib/client.js');
exports.Server = server.Server;
exports.Client = client.Client;
|
/**
* @name watch-once
* @version 2.0.0
* @fileOverview The watchOnce module adds $watchOnce functionality to your $rootScope
*
* http://www.github.com/kentcdodds/watchOnce
*
* @license Scope.$watchOnce may be freely distributed under the MIT license.
* @copyright (c) 2015 Kent C. Dodds
* @author Kent C. Dodds... |
/*
* Copyright 2017 Palantir Technologies, Inc. All rights reserved.
*
* Licensed under the terms of the LICENSE file distributed with this project.
*/
import * as tslib_1 from "tslib";
import * as classNames from "classnames";
import * as React from "react";
import * as Classes from "../../common/classes";
import ... |
import pg from 'pg'
import debug from 'debug'
const log = debug('livro_nodejs:config:pg')
const pool = new pg.Pool({
user: 'wbruno',
password: '',
host: 'localhost',
port: 5432,
database: 'livro_nodejs',
max: 5
})
pool.on('error', (err) => log('postgres err', err))
pool.check = async () => {
let result = ... |
Meteor.autorun(function () {
Meteor.subscribe("itemsLocal", Session.get("bounds"));
});
// http://stackoverflow.com/questions/20751523/removing-leaflet-layers-and-l-marker-method
getRandomLocation = function (map) {
var bounds = map.getBounds();
var southWest = bounds.getSouthWest();
var northEast = bounds.get... |
module.exports.rewrite = function (context, data, next, done) {
console.error('DEPRECATED. Use .find(selector).get(callback) instead.');
next(context, data);
done();
};
|
org_hudsonci.UiUtil = name_edwards_dean_Base.extend({
getStatusSkinType: function(type) {
var statusSkinType;
if (type == org_hudsonci_buildMonitorConst.TYPE_EXECUTOR()) {
statusSkinType = 'executor';
} else {
statusSkinType = 'build';
}
return statusSkinType;
},
getVisualStatus: function(status, suc... |
'use strict'
/**
* @ImmutableCoreModel deviceSession
*
* columns: createTime, sessionId, deviceId
*
* link device to session
*/
module.exports = {
// disable default columns
columns: {
n: false,
c: false,
d: false,
accountId: false,
data: false,
deviceId: {... |
module.exports = {
env: process.env.NODE_ENV || 'development',
port: process.env.PORT || 3000,
key: {
riot: process.env.KEY_RIOT
},
redis: {
host: process.env.REDIS_HOST,
port: process.env.REDIS_PORT,
prefix: process.env.REDIS_PREFIX
}
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.