code stringlengths 2 1.05M |
|---|
// Get main modules
var telegram = require('../lib/telegram-bot.js');
var should = require('should');
var path = require('path');
/**
* NOTE1: Create test bot by yourself throught BotFather
* NOTE2: Your test bot can have any username (of course), but first_name should be equal to "Test Bot"
* NOTE3: Crea... |
var express = require('express');
var app = express();
app.get('/', function(req, res){
res.send('Docker container says hello!');
});
app.listen(8080);
|
/*
* Arctic-snowstorm
* (c) 2014-2015, Teempla Inc.
*
* MIT License
*/
"use strict";
define([
'abstractWorker',
'log',
'config',
'q',
'lodash'
], function(AbstractWorker, log, config, Q, _) {
/**
* This worker demonstrating to you the message processing workflow
*
* @cla... |
'use strict'
var webpack = require('webpack')
var plugins = [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
__DEV__: process.env.NODE_ENV === 'development',
__TEST__: process.env.NODE_ENV === 'test'
})
]
if (process.env.NODE_ENV === 'production') {
plugins... |
import React from 'react';
import { NavLink } from 'react-router-dom';
import PropTypes from 'prop-types';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import IconButton from 'material-ui/IconButton';
import ContentClear from 'material-ui/svg-icons/content/clear';
export defa... |
var ClassAttr = ClassAttr || require('../src/helpers/classattr.js')
/**
* cat constructor
*/
var Cat = function(name, weight){
this._name = name
this.weight = weight || 0
}
Cat.prototype.getName = function(){
return this._name
}
Cat = ClassAttr(cat)
///////////////////////////////////////////////////////////... |
import React, { Component } from 'react'
import classnames from 'classnames'
import PropTypes from './utils/proptypes'
import { objectAssign } from './utils/objects'
import Enhance from './higherOrders/FormItem'
import _forms from './styles/_form.scss'
class FormBlock extends Component {
constructor (props) {
s... |
import ParseAuthenticator from '../authenticators/parse';
import LocalStorageWithIdStore from '../stores/local-storage-with-id';
export default {
name: 'authentication',
before: 'simple-auth',
after: 'store',
initialize: function(container, application) {
container.register('authenticator:parse', ... |
import { defineMessages } from 'react-intl';
const i18nUserCard = defineMessages({
language: {
id: 'userCard.language',
defaultMessage: 'Language'
},
korean: {
id: 'userCard.korean',
defaultMessage: 'Korean'
},
cancel: {
id: 'userCard.cancel',
defaultMessage: 'Cancel'
},
save: {
... |
try {
var GPIO = require('onoff').Gpio;
var buttonYes = new GPIO(17, 'in', 'both'),
buttonNo = new GPIO(18, 'in', 'both');
// pass the callback function to the
// as the first argument to watch()
buttonYes.watch(sendYes);
buttonNo.watch(sendNo);
} catch (error) {
console.log("CLIENT: librairie GPIO int... |
var su = require('stylus/lib/utils.js'),
n = require('stylus/lib/nodes'),
u = require('../common/utils.js');
module.exports = {};
var type;
(type = module.exports.vartype = function type(expr) {
expr = su.unwrap(expr);
if(expr.nodes.length > 1) return 'list';
if(typeof expr.first.vals == 'object') return... |
var postcss = require('postcss');
var expect = require('chai').expect;
var size = require('../');
var test = function (input, output) {
expect(postcss(size).process(input).css).to.eql(output);
};
describe('postcss-size', function () {
it('sets width and height', function () {
test('a{ size: 1px 2px... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, or any plugin's
// vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisa... |
/*global module*/
var events = require('events')
, util = require('util')
, format = util.format
, dateUtil = require('./date-util');
const BARS = "▇▅▃▁".split('')
, SYMBOLS = "☀☁☂⚡".split('')
, VALID_MOODS = "sunny|cloudy|rainy|stormy".split('|');
function MoodEngine(client, options) {
e... |
version https://git-lfs.github.com/spec/v1
oid sha256:adcca6734a7ffabd7a41a3eea8f26a9ab11c63423d49c0f67e33ec7d36ca00bc
size 2464
|
version https://git-lfs.github.com/spec/v1
oid sha256:7dc76ca751fb4ecb8f823027323279acf5354496b11c972f5d437fa5a3b3668d
size 31205
|
/*
* grunt-sc-mustache-html
*
* Copyright (c) 2015 Optimal Software s.r.o.
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Requires
var fs = require('fs');
var hogan = require('hogan.js');
var _ = require('underscore');
// Private module
var privateModule = {
// ... |
import Request from 'utils/request';
import React from 'react';
export default class WetlandsLegend extends React.Component {
constructor(props) {
super(props);
//- Set legend Info to an empty array until data is returned
this.state = {
legendInfos: []
};
}
componentDidMount() {
Reque... |
var expect = require('chai').expect;
var Mocksy = require('mocksy');
var ask = require('../../index.js');
var server = new Mocksy({port: 9876});
var ORIGIN = 'http://localhost:9876';
describe('request instance', function () {
var request;
beforeEach(function (done) {
request = ask();
server.start(done... |
angular.
module('core.dashboardPage').
factory('DashBoardFactory', ['$resource',
function ($resource) {
return $resource('http://api.localhost/reports/:methodType', {}, {
get: {
method: 'GET'
}
});
}
]); |
import React from 'react'
import { observer } from 'mobx-react'
import { Button, Glyphicon, FormGroup, FormControl } from 'react-bootstrap'
@observer
export class GlyphButton extends React.Component {
render() {
const { glyph, title, tooltip } = this.props
const attributes = Object.assign({}, this.props)
... |
var CandidateAffix = React.createClass({
render: function() {
return (
<div className='col-md-offset-4 col-md-4 affix' data-spy="affix">
<JobDetail current_job={this.props.current_job}/>
<CandidateForm current_job={this.props.current_job} />
</div>
);
}
});
var JobDetail = React... |
/**
* @module base/ko-plugins/ko-content
* @description
* Knockout bindings which insert the html for an object.
* It is expected that the view text is located at the view property on the object.
*/
define(["ko"], function(ko){
"use strict";
/**
* @class ko.bindingHandlers.content
* @... |
'use strict';
module.exports = {
window:
{
title: 'Squid'
, toolbar: false
, width: 380
, height: 465
, resizable: false
, frame: false
, transparent: true
, show: false
}
, storage: { engine: 'localStorage' }
, logg... |
import { PwaUpdateAvailable } from './pwa-update-available/PwaUpdateAvailable.js';
customElements.define('pwa-update-available', PwaUpdateAvailable);
|
'use strict';
angular.module('myApp')
.directive('myModalentidad', function() {
return {
restrict : 'AE',
controller: [ "$scope","$window",'$http', function($scope,$window,$http) {
$scope.afirmaEliminar = function() {
var Codigo = $('#myModal').data('id').to... |
'use strict';
/**
* @ngdoc service
* @name jodomaxApp.SalesDetailModel
* @description
* # SalesDetailModel
* Factory in the jodomaxApp.
*/
angular.module('jodomaxApp')
.factory('SalesDetailModel', [
'dbService',
'$mdToast',
'AppUtils',
'BaseModel',
'AttributeGroup',
function (
dbS... |
/**
* Created by piyushthapa on 11/5/14.
*/
Template.signup.events({
'submit #signupForm':function(e,t){
e.preventDefault();
var user={
username:t.find('#userName').value,
email:t.find('#userEmail').value,
password: t.find('#userPassword').value,
profile:{name:t.... |
export { default } from 'ui-list/components/ui-selection-aspect'; |
import { h } from 'preact'
const IconImport = ({ ...props }) => (
<div class='icon icon-import' title='Import' onClick={props.onClick}>
<svg viewBox='0 0 50 50' width='30' height='30'>
<path d='M24.9 2.97L24.8 3c-.46.1-.8.52-.78 1v28.56l-6.28-6.28c-.15-.14-.33-.24-.53-.28-.15-.03-.3-.03-.42 0-.... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
/**
* @fileoverview Rule to flag unsafe statements in finally block
* @author Onur Temizkan
*/
"use strict";
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
let SENTINEL_NODE_TYPE_RETURN_TH... |
var NeatoDemoApp = {
clientId: null,
scopes: null,
redirectUrl: null,
user: null,
initialize: function (options) {
this.clientId = options.clientId;
this.scopes = options.scopes;
this.redirectUrl = options.redirectUrl;
this.guiShowLoginPage();
this.guiHideDashboardPage();
this.guiIni... |
const assert = require('assert');
const extract = require('extract-zip');
const fs = require('fs');
const tmp = require('tmp');
describe('extract-zip', function() {
var dir = null;
beforeEach(function() { dir = tmp.dirSync({unsafeCleanup: true}); });
afterEach(function() {
dir.removeCallback();
dir = n... |
import React from 'react';
import _ from 'lodash';
import SectionHeader from '../components/section-header';
import token from 'otkit-borders/token.common';
const Borders = () => {
var tokens = _.toPairsIn(token);
tokens = tokens.map((token, index) => {
return (
<div key={index}>
{_.kebabCase(t... |
// Generated by CoffeeScript 1.9.1
var canvas, context, draw, findClosest, generate, image, imageData, img, points;
canvas = document.getElementsByTagName('canvas')[0];
context = canvas.getContext('2d');
points = [];
image = context.createImageData(canvas.width, canvas.height);
img = new Image;
imageData = null;
... |
version https://git-lfs.github.com/spec/v1
oid sha256:af2327264ba777d44458efe551bf8a733b135ea5842e3614f06bb0a4e013e8f4
size 7240
|
var connect = require('connect')
var open = require("open")
var gulp = require('gulp')
var stylus = require('gulp-stylus')
var prefix = require('gulp-autoprefixer')
var plumber = require('gulp-plumber')
var rename = require("gulp-rename");
var minify = require('gulp-minify-css');
gulp.task('stylus', functio... |
var background = (function(){
var background = {};
background.color = {
name: 'Background color',
id: 'background-color',
color: null,
data: null,
};
background.image = {
name: 'Background image',
id: 'background-image',
src: null,
data: null,
};
}()); |
'use strict';
var object = require('./object');
var style = require('./style');
var template = require('./template');
module.exports = {
applyAnsiStyles: style.applyAnsiStyles,
concatFirstStringElements: template.concatFirstStringElements,
customFormatterFactory: customFormatterFactory,
maxDepthFactory: objec... |
define(['altair/facades/declare',
'altair/plugins/node!path',
'altair/mixins/_DeferredMixin',
'lodash'
], function (declare,
pathUtil,
_DeferredMixin,
_) {
"use strict";
return declare([_DeferredMixin], {
_controllers: null, //cache of co... |
import styled from 'styled-components';
import { grayText } from 'global/styles';
export const ProConColumn = styled.div`
display: inline-block;
vertical-align: top;
width: 50%;
`;
export const ProConContainer = styled.div`
background-color: #f6f5f5;
padding: 1rem;
`;
export const ProConSubtitle = styled.d... |
// var app = angular.module ('restApiTester');
window.app.controller ('EnvironmentsController', ['$scope', '$rootScope', '$state', '$interval', '$translate', 'notificationsService', 'testsResultsService', 'environmentsService', 'testsService', '$stateParams',
function ($scope, $rootScope, $state, $interval, $translate... |
/**
* @file gasp 表
* 对于需要hinting的字号需要这个表,否则会导致错误
* @author mengke01(kekee000@gmail.com)
* reference: https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6gasp.html
*/
var table = require('./table');
var gasp = table.create(
'gasp',
[],
{
... |
// All symbols in the `Cherokee` script as per Unicode v5.2.0:
[
'\u13A0',
'\u13A1',
'\u13A2',
'\u13A3',
'\u13A4',
'\u13A5',
'\u13A6',
'\u13A7',
'\u13A8',
'\u13A9',
'\u13AA',
'\u13AB',
'\u13AC',
'\u13AD',
'\u13AE',
'\u13AF',
'\u13B0',
'\u13B1',
'\u13B2',
'\u13B3',
'\u13B4',
'\u13B5',
'\u13B6',
'... |
'use strict';
describe('myApp.version module', function() {
beforeEach(module('cafe'));
describe('app-version directive', function() {
it('should print current version', function() {
module(function($provide) {
$provide.value('version', 'TEST_VER');
});
inject(function($compile, $roo... |
const debug = require('../debug').server
const fs = require('fs')
const util = require('../utils')
const Auth = require('../api/authn')
/**
* Serves as a last-stop error handler for all other middleware.
*
* @param err {Error}
* @param req {IncomingRequest}
* @param res {ServerResponse}
* @param next {Function}
... |
/*global require module */
(function () {
"use strict";
var express = require('express');
var router = express.Router();
var clienteHandler = require('./clientesHandler.js');
router.get('/clientes', clienteHandler.getClientes);
router.post('/clientes', clienteHandler.createCliente);
router.put('/clie... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.DOK = global.DOK || {})));
}(this, (function (core) { 'use strict';
var spot = {x:0,y:0}, callbacks... |
//= link_directory ../javascripts/twitter/bootstrap/components/rails .js
//= link_directory ../stylesheets/twitter/bootstrap/components/rails .css
|
import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import Button from 'app/components/shared/Button';
import FormRadioGroup from 'app/components/shared/FormRadioGroup';
import Panel from 'app/components/shared/Panel';
import FlashesStore from 'app/stores/FlashesSto... |
'use strict';
function getValue(src, def) {
return typeof src === 'undefined' ? def : src;
}
exports.getValue = getValue;
function getKey(key, src, def) {
return getValue(src[key], def[key]);
}
exports.getKey = getKey;
function setKey(key, target, src, def) {
var val = target[key] = getValue(src[key], def[key]... |
var events = require('events');
var eventEmitter = new events.EventEmitter();
var request = require('request');
var _ = require('underscore');
var baseURL = 'https://api.vineapp.com';
var version = '1.3.2';
var userAgent = 'iphone/' + version + ' (iPhone; iOS 7.0; Scale/2.00)';
var vineClient = 'ios/' + version;
var... |
/**
* User.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models
*/
module.exports = {
autoPK: true,
autoCreatedAt: true,
autoUpdatedAt: true,
attributes: {
n... |
function OnMessage(messageEvent)
{
if (messageEvent.data.action == "buy"){
console.log(messageEvent.data.action);
SendMessage("Canvas", "FillText");
window.removeEventListener("message", OnMessage, false);
}
}
function OpenRechargePopup()
{
window.parent.postMessage({'action':'chips'}... |
import React from 'react';
import { luiClassName } from '../util';
const PopoverFooter = ({
className,
children,
nopad,
...extraProps
}) => {
const finalClassName = luiClassName('popover__footer', {
className,
states: { nopad },
});
return (
<div className={finalClassName} {...extraProps}>
... |
require([
'ijit/widgets/authentication/_LoginRegisterRequestPane',
'dojo/dom-construct',
'dojo/_base/window',
'dojo/dom-style'
],
function(
LoginRegisterRequestPane,
domConstruct,
win,
domStyle
) {
describe('ijit/widgets/authenticatio... |
/* Game namespace */
var game = {
// an object where to store game information
data: {
// score
score: 0,
option1: "",
option2: "",
enemyBaseHealth: 1,
playerBasehealth: 1,
enemyCreepHealth: 6,
playerHealth: 10,
enemyCreepAttack: 1,
... |
// JS Goes here - ES6 supported
import Velocity from 'velocity-animate';
var george = document.getElementById('george');
var lighthouse = document.getElementsByClassName('lighthouse-draw');
/* First animation */
Velocity(lighthouse, { strokeDashoffset: 0 }, {duration: 3000});
Velocity(lighthouse, { fill: "#145693" }... |
import {Meteor} from 'meteor/meteor';
import {Template} from 'meteor/templating';
import {Session} from 'meteor/session';
import {Random} from 'meteor/random';
import {FlowRouter} from 'meteor/kadira:flow-router';
import {moment} from 'meteor/momentjs:moment';
import {numeral} from 'meteor/numeral:numeral';
// Utils
i... |
/**
* test.js
*
* @author <a href="https://github.com/pahund">Patrick Hund</a>
* @since 14 Jul 2016
*/
import { TEST } from "../actions";
export default (state = {}, action) => {
switch (action.type) {
case TEST:
console.log("test reducer:", action.message); // eslint-disable-line no-conso... |
const nodes = new Map
const add = (ref, source, inputs, outputs) =>
nodes.set(ref, {source, inputs, outputs})
add(1, 'a = Math.random()', ['Math'], ['a'])
add(2, 'b = a * 2', ['a'], ['b'])
add(3, 'c = 42', [], ['c'])
add(4, 'd = c * 2', ['c'], ['d'])
// add(5, 'e = a * b * c * d', ['a','b','c','d'], ['e'])
conso... |
/**
* Shopware 4.0
* Copyright © 2012 shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
... |
'use strict';
var CC = {};
// interpret url param as shared code.
CC.sharedCode = false;
if(document.location.search.length > 1){
CC.sharedCode = document.location.search.substring(1);
}
CC.canvas = document.getElementById('cas');
CC.context = CC.canvas.getContext('2d');
(function(){
var $canvas = $('#cas');
fu... |
import styled from 'styled-components';
const Container = styled.containter`
display: flex;
font-size: 12px;
padding: 10px 10px 0 0;
`
|
'use strict';
angular.module('eventmanagerApp')
.provider('AlertService', function () {
this.toast = false;
this.$get = ['$timeout', '$sce', '$translate', function($timeout, $sce,$translate) {
var exports = {
factory: factory,
isToast: isToast,
... |
var map;
var request;
var hasInit = false;
var markersArray = [];
google.maps.event.addDomListener(window, 'load', initialize);
//Generate map during initial map load
function initialize() {
if (!hasInit) {
var mapOptions = {
center: new google.maps.LatLng(40.714623,-74.006605 ),
zoom: 12,
map... |
module.exports = function(config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'vendor/js/angular.js',
'vendor/js/angular-route.js',
'vendor/js/angular-animate.js',
'vendor/js/angular-mocks.js',
'app/app.module.js',
'app/*.js',
'app/**/*.html',... |
require.config({
paths: {
"Namespace" : "external_libs/Namespace",
"jquery" : "external_libs/jquery-1.8.1.min",
"underscore": "external_libs/underscore-min",
"backbone" : "external_libs/backbone-min"
},
shim: {
'YourFramework': {
deps: ['backbone', 'jq... |
$(document).ready(function () {
$('a.blog-button').click(function (e) {
if ($('.panel-cover').hasClass('panel-cover--collapsed')) return
currentWidth = $('.panel-cover').width()
if (currentWidth < 960) {
$('.panel-cover').addClass('panel-cover--collapsed')
$('.content-wrapper').addClass('anima... |
// Ball Variables
var ballXmin = 150, // Ball Min X Position
ballXmax = 650, // Ball Max X Position
ballX = Math.floor(Math.random() * (ballXmax - ballXmin + 1)) + ballXmin; // Ball X Position
ballY = 150, // Ball Y Position
ballDXmin = -3; // Ball Min X Direction
ballDXmax = 3, // Ball Max X Direct... |
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
const getTitle = function(self) {
if (self.meta == null) {
return;
}
return self.meta.ogTitle || self.meta.twitterTitle || self.meta.title || self.meta.pageTitle;
};
Template.oembedVideoWidget.helpers({
url() {
if (this.meta... |
/**
* @module 布局容器[Container]
* @description 布局容器
*
* @date: 2013-11-07 下午1:36
*/
define(["core/js/CommonConstant",
"core/js/view/Layout",
"text!core/resources/tmpl/layout.html",
"core/js/base/AbstractView",
"core/js/utils/Utils",
"core/js/utils/ApplicationUtils"
], function ( CommonConstant,
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const baseResource_1 = require("./baseResource");
/**
* Role
*
* @constructor Role
* @property {IConnector} connector the jira connector instance
*/
class Role extends baseResource_1.baseResource {
constructor(connector, Model, settin... |
(function() {
'use strict';
var module = angular.module('core');
module.controller('wdTagChipsCtrl', function($scope,$q, Restangular,$log, $filter, wdCollections, wdTags) {
$log.debug("Init wdTagChipsCtrl")
$log.info("See whats in 'this'");
$log.info(this)
$log.info("See wha... |
'use strict';
import React from 'react';
import PlayerInfo from './PlayerInfo';
class Player extends React.Component {
constructor ( props ) {
super(props);
this.state = {};
}
render () {
return (
<div>
<h1>Player Name</h1>
<PlayerInfo/>... |
let law
module.exports = law = {
// Convenience method: wrap services in complete middleware stack
// accepts {serviceName: serviceDef}
// returns {serviceName: serviceDef} (wrapped)
create({services, jargon, policy, resolvers}) {
services = law.applyMiddleware(services, jargon)
services = law.applyPoli... |
/* eslint-env meteor, browser */
/* global Fetcher:true, Foursquare, Venues, Queries */
function getRadiusFromZoom(zoom) {
return Math.pow(2, 14 - zoom) * 1609.34 * 2; // the last "* 2" is a magic number for more results
}
Fetcher = {};
Fetcher.search = function(lat, lng, zoom, query) {
var radius = getRadiusFr... |
import {ActionTypes} from '@constants/';
export function showNotification(dispatch, message) {
dispatch({ type: ActionTypes.SHOW_NOTIFICATION , message });
}
|
/**
* @author Alex Acevedo
*/
//A Test Torrent
//magnet:?xt=urn:btih:d266b48a9e61435bd6f044f0a11bc12b6fc56f1d&dn=Nerf+Gun&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.istole.it%3A6969&tr=udp%3A%2F%2Ftracker.ccc.de%3A80&tr=udp%3A%2F%2Fopen.demonii.com... |
angular.module('mySite', ['ui.bootstrap', 'ui.utils', 'ui.router', 'ngAnimate', 'youtube-embed', 'home', 'about', 'contact', 'projects']);
angular.module('mySite').config(function($stateProvider, $urlRouterProvider) {
/* Add New States Above */
$urlRouterProvider.otherwise('/home');
});
angular.module('mySi... |
version https://git-lfs.github.com/spec/v1
oid sha256:2e39f067c84ed9830e617b93ad24043ace31dc1bdcc8ff18413fa8d9771c6207
size 2904
|
version https://git-lfs.github.com/spec/v1
oid sha256:b953defcf9a84460e5beeb4ce8cdbe97d9c68f0356d7fb81b0aceb52f811d1ea
size 1135
|
import fetchMock from 'fetch-mock';
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import {
authenticate,
logout,
setAuthenticating,
setPassword,
} from './session';
const mockStore = configureMockStore([thunk]);
const password = 'password';
test('setAuthenticating dispat... |
'use strict';
const Config = require('./config');
const Shouts = require('./shouts');
const NodeBB = require('./nodebb');
const Sockets = module.exports;
Sockets.events = {
get: getShouts,
send: sendShout,
edit: editShout,
getPlain: getPlainShout,
remove: removeShout,
removeAll: removeAllShouts,
startTyping:... |
var API_SERVER = "/api/franz/";
var API_LIST = {
residence: "bank:model:residence",
credit_card_count: "bank:model:credit_card_count",
age_hist: "bank:model:age_hist",
avg_saving_all_time: "bank:model:avg_saving_all_time",
year_savings: "bank:model:year_savings",
years_registered: "bank:model:ye... |
import React from 'react';
import PropTypes from 'prop-types';
const Bookmark = (props) => {
const color = props.color == 'inherit' ? undefined : props.color;
const aria = props.title ? 'svg-bookmark-title' : '' +
props.title && props.description ? ' ' : '' +
props.description ? 'svg-bookmark-desc' : '';
... |
var vows = require('vows'),
assert = require('assert');
/*
* Don't require d3 in a var declaration so the name is available to
* d3-transform. This makes it global, which should probably be avoided but
* ???
*/
d3 = require('d3');
var transform = require("../src/d3-transform.js");
vows.describe('d3-transform'... |
Ext.define('Ueaac.view.Navigation', {
extend: 'Ext.Container',
alias: 'widget.navigation',
initComponent: function () {
this.layout = {
type: 'vbox',
align: 'stretch',
pack: 'start'
};
this.items = [{
xtype: 'button',
f... |
/** @jsx React.DOM */
var apiKey = 'AIzaSyB0ydxHAKRpkuaKbIMRtt12XvuYjtMd2sA';
var TravellogMap = React.createClass({
render: function(){
var places = this.props.places;
if (!places || places.length < 2){
return <div></div>;
}
var origin = places.shift(),
destination = places.pop(),
waypoints = ... |
//---------------------------------------------------------------------------
// Agent-Admin protocol
// Attempt at event-based distributed processes
//---------------------------------------------------------------------------
"use strict";
(function() {
//-------------
// Dependencies
//-------------
var restify... |
ml.module('three.core.Vector3')
.requires('three.Three')
.defines(function(){
/**
* @author mrdoob / http://mrdoob.com/
* @author kile / http://kile.stravaganza.org/
* @author philogb / http://blog.thejit.org/
* @author mikael emtinger / http://gomo.se/
* @author egraether / http://egraether.com/
* @author WestL... |
import Vue from 'vue';
import DiffFileComponent from '~/diffs/components/diff_file.vue';
import { diffViewerModes, diffViewerErrors } from '~/ide/constants';
import store from 'ee_else_ce/mr_notes/stores';
import { createComponentWithStore } from 'spec/helpers/vue_mount_component_helper';
import diffFileMockData from '... |
export { default } from 'ember-fhir/serializers/consent-actor-1'; |
'use strict';
var path = require('path');
var helpers = require('yeoman-test');
var assert = require('yeoman-assert');
describe('general', function () {
before(function(done) {
helpers.run(path.join(__dirname, '../app'))
.on('error', function(err) {
console.log('Hm, something went wrong.', err);
... |
/**
* captcah util
* @type {exports|*}
*/
var tek = require('tek'),
copy = tek.meta.copy,
random = Math.random,
color = require('./u.color'),
rainbow = color.rainbow;
exports.defaultStyle = {
width: 250,
height: 120,
baseColor: '#DD3030',
backgroundColor: '#FFF',
lineWidth: 8,
... |
const logger = require('winston');
const electron = require('electron')
const app = electron.app
const jsonfile = require('jsonfile');
const path = require('path')
const fs = require('fs')
const _ = require('lodash');
const Migration = require('../migration')
class v071 extends Migration {
run() {
// T... |
import React from 'react';
import Exception from '../Exception/index';
import CheckPermissions from './CheckPermissions';
/**
* 默认不能访问任何页面
* default is "NULL"
*/
const Exception403 = () => (
<Exception type="403" style={{ minHeight: 500, height: '80%' }} />
);
/**
* 用于判断是否拥有权限访问此view权限
* authority 支持传入 string ... |
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import { expect } from 'chai';
import {
init,
eventInstance,
getInnerHTML,
expectInputAttribute,
expectInputValue,
getSuggestionsContainer,
getSuggestion,
expectSuggestions,
expectFocusedSuggestion,
mouseEnterSuggestion,
m... |
import process from 'node:process';
export const spinnerFrames = process.platform === 'win32'
? ['-', '\\', '|', '/']
: ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'];
export default function elegantSpinner() {
let index = 0;
return () => {
index = ++index % spinnerFrames.length;
return spinnerFrames[ind... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.