code stringlengths 2 1.05M |
|---|
//doc icons
const doc = {
'px-doc-chart': '<g id="px-doc-chart"><g><path stroke-linejoin="round" d="M1.5 5.5h3v7h-3zm5 2h3v5h-3zm5-6h3v11h-3zM0 14.5h16"/></g></g>',
'px-doc-document': '<g id="px-doc-document"><g><path stroke-linejoin="round" d="M2.5.5v15h11v-12l-3-3h-8z"/><path stroke-linejoin="rou... |
import React, { Component } from 'react';
import Hawk from '../src/';
// For your app, import Hawk like so
// import Hawk from 'hawk-graph';
export default class App extends Component {
state = {
nodes: [
{
nid: 1,
type: 'Users',
x: 200,
y: 100,
fields: {
i... |
import React from 'react';
import PropTypes from 'prop-types';
import { View, TouchableOpacity } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import { TextAmount, TextInfo } from '../../Atoms/Text';
import theme from '../../../theme';
import styles from './styles';
const ... |
!function(){"use strict"}();
//# sourceMappingURL=app.js.map |
/*!
* CanJS - 2.2.5
* http://canjs.com/
* Copyright (c) 2015 Bitovi
* Wed, 22 Apr 2015 15:03:29 GMT
* Licensed MIT
*/
/*can@2.2.5#util/fixture/fixture*/
define([
'can/util/library',
'can/util/string',
'can/util/object'
], function (can) {
if (!can.Object) {
throw new Error('can.fixture de... |
(function (global) {
var babelHelpers = global.babelHelpers = {};
babelHelpers.typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeo... |
import PageObject from '../../tests/page-object';
const {
value,
//customHelper,
collection,
clickable
} = PageObject;
export default function aupacTypeahead(selector/*, options*/) {
return {
search(search) {
$(selector).val(search).trigger('input');
},
suggestions : collection({
s... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
exports.push = push;
exports.unshift = unshift;
exports.pop = pop;
exports.shift = shift;
exports.sort = sort;
exports.reverse = reverse;
exports.removeAt = removeAt;
exports.setKey = setKey;
exports.setAt = setAt;
exports.assign = assign;
... |
define(["Tone/core/Tone", "Tone/effect/StereoXFeedbackEffect", "Tone/signal/Signal", "Tone/core/Delay"],
function(Tone){
"use strict";
/**
* @class Tone.PingPongDelay is a feedback delay effect where the echo is heard
* first in one channel and next in the opposite channel. In a stereo
* s... |
/* */
module.exports = function(hljs) {
return {
contains: [
{
begin: /[^\u2401\u0001]+/,
end: /[\u2401\u0001]/,
excludeEnd: true,
returnBegin: true,
returnEnd: false,
contains: [
{
begin: /([^\u2401\u0001=]+)/,
end: /=([^\u2401\u0001=]+)/,
re... |
class A extends B {
X() {
return super[1];
}
}
|
/**
* Rooms
* Pokemon Showdown - http://pokemonshowdown.com/
*
* Every chat room and battle is a room, and what they do is done in
* rooms.js. There's also a global room which every user is in, and
* handles miscellaneous things like welcoming the user.
*
* @license MIT license
*/
const TIMEOUT_EMPTY_DEALLOCA... |
(function ($, window, document, undefined)
{
var defaults = {
};
//var fr = new FileReader();
//var img = new Image();
var canvas;
var URL = window.webkitURL || window.URL;
function Plugin(element, options)
{
this.w = $(document);
this.el = $(element);
... |
/**
* @author mrdoob / http://mrdoob.com/
*/
export var Config = function ( name ) {
var storage = {
'autosave': true,
'theme': 'css/light.css',
'project/renderer': 'WebGLRenderer',
'project/renderer/antialias': true,
'project/renderer/gammaInput': false,
'project/renderer/gammaOutput': false,
'proj... |
let countdown;
const timerDisplay = document.querySelector('.display__time-left');
const endTime = document.querySelector('.display__end-time');
const buttons = document.querySelectorAll('[data-time]');
function timer(seconds) {
// clean any existing timers
clearInterval(countdown);
const now = Date.no... |
var path = require('path')
var configVars = require('./configVars.js')
var karmaConfig = {
basePath: './',
frameworks: ['jasmine-jquery', 'jasmine'],
port: 9876,
colors: true,
autoWatch: false,
browsers: ['PhantomJS'],
singleRun: true,
concurrency: 1,
files: [
'./' + configVars['unitTests']['entry... |
'use strict';
var should = require('should')
, request = require('supertest')
, helper = require('./helper');
describe('Routing > ', function() {
var url = 'http://localhost:3000';
before(function(done) {
helper.init(function(err) {
done();
});
});
describe('POST /users > ', function() {
... |
DateInput = (function($) {
function DateInput(el, opts) {
if (typeof(opts) != "object") opts = {};
$.extend(this, DateInput.DEFAULT_OPTS, opts);
this.input = $(el);
this.bindMethodsToObj("show", "hide", "hideIfClickOutside", "keydownHandler", "selectDate");
this.build();
this.selectDate();
this.hide()
}... |
var credentialUtil = require('../../lib/creds');
var fs = require('fs');
var path = require('path');
var test = require('tape');
var SSH_CONFIG_FILE = path.join(__dirname, '..', 'ssh_config.txt');
var GAURAV_SSH_CONFIG_FILE = path.join(__dirname, '..', 'gaurav_ssh_config.txt');
var REMTAIL_JSON_FILE = path.join(__dirn... |
var _ember = require('ember');
_ember['default'].debug('this will NOT be removed');
warn('this will NOT be removed');
info('this will NOT be removed');
console.log(message);
|
var test = require('tape')
var Rectangle = require('../src/Rectangle.js')
var Square = require('../src/Square.js')
test('Square constructor', function (t) {
t.plan(3)
t.equal(typeof Square, 'function', 'should be a function')
var squ = new Square(7)
t.equal(squ.width, 7, 'should set square width')
t.equal(... |
import { moduleFor, test } from 'ember-qunit';
moduleFor('service:alert-box', 'Unit | Service | alert box', {
// Specify the other units that are required for this test.
// needs: ['service:foo']
});
// Replace this with your real tests.
test('it exists', function(assert) {
let service = this.subject();
asser... |
import hoistNonReactStatics from 'hoist-non-react-statics';
import React, { Component } from 'react';
export default function fetchData(callback) {
return (WrappedComponent) => {
class FetchData extends Component {
render() {
return <WrappedComponent {...this.props} />;
}
}
FetchData.... |
'use strict';
/* jshint ignore:start */
/**
* This code was generated by
* \ / _ _ _| _ _
* | (_)\/(_)(_|\/| |(/_ v1.0.0
* / /
*/
/* jshint ignore:end */
var _ = require('lodash'); /* jshint ignore:line */
var Holodeck = require('../../../../../holodeck'); /* jshint ignore:line */
var Requ... |
/**
* Copyright 2014 Facebook, Inc.
*
* 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 required by applicable law or agreed to ... |
/*! @license Firebase v4.5.0
Build: rev-f49c8b5
Terms: https://firebase.google.com/terms/ */
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.OperationSource = exports.OperationType = undefined;
var _assert = require("../../../utils/assert");
/**
*
* @enum
*/
var OperationTy... |
(function(){dust.register("data-tpl.tl",body_0);function body_0(chk,ctx){return chk.write("<div class=\"col-md-24\" style=\"font-size:10pt;\">").section(ctx._get(false, ["data"]),ctx,{"block":body_1},null).write("</div>");}function body_1(chk,ctx){return chk.write("<div class=\"col-md-8\">").reference(ctx._get(false, [... |
/*
* This file is part of the Spludo Framework.
* Copyright (c) 2009-2010 DracoBlue, http://dracoblue.net/
*
* Licensed under the terms of MIT License. For the full copyright and license
* information, please see the LICENSE file in the root folder.
*/
/**
* @class The manager for all registered data_mappers.
... |
var gulp = require('gulp'),
mocha = require('gulp-spawn-mocha');
gulp.task('test', function(){
return gulp.src('test/*.js').pipe(mocha());
});
gulp.task('default', ['test']); |
exports.list = require('./list')
exports.game = require('./game')
|
/**
*
*
* @author fuyg
* @date 2014-12-16
*/
define(function (require) {
var TRIM = require('../core/str/trim'),
STARTS_WITH = require('../core/str/startsWith'),
_ = require('../core/underscore'),
/**
* @param {String} line
* @return {Integer} level >= 1
*
... |
'use strict';
const { thinscriptWasm } = require('/usr/lib/wasm');
module.exports = (args, env, cb) => {
try {
env.stdio.write(thinscriptWasm.helloWorld());
cb(0);
} catch(e) {
env.stdio.writeError(e);
cb(1);
}
}
|
/* eslint-disable */
/** !
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.14.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of chargrequestAnimationFramee, to any person obtaining a copy
* of this ... |
import pidcrypt from 'pidcrypt'
import {
path,
pipe,
type,
equals
} from 'rambda'
import {
toByteArray,
decodeBase64,
encodeBase64,
convertFromHex
} from 'pidcrypt/pidcrypt_util'
import 'pidcrypt/asn1'
import 'pidcrypt/rsa'
import createError from './error'
const { RSA, ASN1 } = pidcrypt
const CHARS =... |
import * as React from "react";
import PropTypes from "prop-types";
import { withWrapper } from "../Icon";
const Vector = React.forwardRef(({ size, color, ...props }, ref) => (
<svg
width={size}
height={size}
viewBox="2 2 20 20"
xmlns="http://www.w3.org/2000/svg"
ref={ref}
aria-hidden={!props... |
import factory from '../octicon.js';
// This is an auto-generated ES2015 icon from the modularize script. Please do not modify this file.
var ruby = factory('ruby', 16, 16, {"fill-rule":"evenodd","d":"M13 6l-5 5V4h3l2 2zm3 0l-8 8-8-8 4-4h8l4 4zm-8 6.5L14.5 6l-3-3h-7l-3 3L8 12.5z"}, ["code","language"]);
export defaul... |
import angular from 'angular';
import {loginComponent} from './login.component';
const loginConfig = ($stateProvider) => {
'use strict';
$stateProvider
.state('app.login', {
url: '/login',
layout: 'mainMenu',
component: 'login'
});
};
loginConfig.$inject = [... |
var log4js = require("log4js"),
log = log4js.getLogger("megapis-worker"),
request = require("request"),
cheerio = require("cheerio"),
_ = require("lodash"),
async = require("async"),
util = require("util");
var MegapisWorker = require("megapis-worker").MegapisWorker;
function PrimeBooksWorke... |
exports.ADD_ITEM_TO_IMPORT_LIST = function(state, contentNode) {
state.itemsToImport.push(contentNode);
};
exports.REMOVE_ITEM_FROM_IMPORT_LIST = function(state, contentNodeId) {
state.itemsToImport = state.itemsToImport.filter(function(node) {
return node.id !== contentNodeId;
});
};
exports.UPDATE_IMPORT_... |
var TutorialStudyLayer = cc.Layer.extend({
label : null,
array : [
//"์๋
ํ์ธ์!\n๋ด๋ก์คํฐ๋๋ฅผ ์ด์ฉํด์ฃผ์
์ ๊ฐ์ฌํฉ๋๋ค!\n\n๋ด๋ก์คํฐ๋๋ ๋ํ๋ฅผ ์ด์ฉํ ์์ด ํ์ต ๋๊ตฌ์
๋๋ค.\n\n๋ํ ํค๋์
์ ํตํ์ฌ ์ง์ค๋ ฅ์ ์ธก์ ํ๊ณ ์ด์ ๋ํ ํผ๋๋ฐฑ์ ์ ๋ฌํ์ฌ ์ฌ์ฉ์๊ฐ ์์ฐ์ค๋ฝ๊ฒ ์ง์ค ์ํ๋ฅผ ์ ์งํ๋๋ก ๋์์ค๋๋ค.\n\n์ด๋ฅผ ํตํ์ฌ ํ๋ฃจ 30๋ถ ์ ๋์ ์๊ฐ ํฌ์๋ง์ผ๋ก๋ ๋๋ผ์ธ ์ ๋์ ํ์ต ํจ๊ณผ๋ฅผ ๋ณด์ฅํฉ๋๋ค.",
"๋ณธ๊ฒฉ์ ์ธ ํ์ต์ ์์ ๋ด๋ก์คํฐ๋์ ๋ํ ์คํฐ๋ ์์คํ
์ ๋ํด ์๊ฐํด๋... |
const React = require('react')
const {Cursor} = require('./prop_types')
class Chat extends React.Component {
onSubmit = (e) => {
e.preventDefault()
const input = this.refs.input.getDOMNode()
const message = input.value
input.value = ''
// push the new message onto the array in ultrawave
if... |
import Enum from '../../lib/Enum';
export default new Enum([
'init',
'initSuccess',
'fetch',
'fetchSuccess',
'fetchError',
'fSync',
'fSyncSuccess',
'fSyncError',
'iSync',
'iSyncSuccess',
'iSyncError',
'reset',
'resetSuccess',
'clearToken',
], 'callLogActionTypes');
|
//For submit articles
tinymce.init({
selector: '#content',
directionality:'ltr',
language:'zh_CN',
height:400,
plugins: [
'advlist autolink link image lists charmap print preview hr anchor pagebreak spellchecker',
'searchreplace wordcount visualblocks visualchars code fullscr... |
import componentsModule from '../index';
describe('tl-people-you-may-know component', () => {
'use strict';
var $rootScope, $compile, elm, scope, $httpBackend, $timeout;
beforeEach(window.module(componentsModule.name));
beforeEach(inject(($injector) => {
$rootScope = $injector.get('$rootScope');
$co... |
import Loader from '../../src/loader';
describe('loader', function () {
let loader, configRan;
beforeAll(() => {
window.pmAnimatedBannersConfig = () => {
configRan = true;
};
loader = new Loader();
});
it('should call pmAnimatedBannersConfig', () => {
expect(configRan).toEqual(true)... |
(function() {
'use strict';
angular
.module('app')
.filter('sample', sample);
function sample() {
return sampleFilter;
////////////////
function sampleFilter(params) {
return params;
}
}
})(); |
Ext.define('Signout.controller.Home', {
extend: 'Ext.app.Controller',
refs:[{
ref: 'infoform',
selector: 'homecard > * > form'
}],
models:['SliInfo'],
stores:['SliInfos'],
init: function(){
var id = tokobj.ssid;
var me = this;
this.control({
... |
var levState={
////////////Game made by Huanmeng Zhai/////////////////////////
//start state called 'start'
create: function(){
var platforms;
var player;
var cursors;
var monsterGroup;
var monster;
var stars;
var diamonds;
var score = 0;
var scoreText;
var button;
var mytime=0;
var total=0;
//add backgro... |
'use strict';
module.exports = {
db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://localhost/pw',
facebook: {
clientID: 'APP_ID',
clientSecret: 'APP_SECRET',
callbackURL: 'http://localhost:3000/auth/facebook/callback'
},
twitter: {
clientID: 'CONSUMER_KEY',
clientSecret: 'CONSUMER_SEC... |
/**
* @ngdoc module
* @name material.components.progressLinear
* @description Linear Progress module!
*/
angular.module('material.components.progressLinear', [
'material.core'
])
.directive('mdProgressLinear', MdProgressLinearDirective);
/**
* @ngdoc directive
* @name mdProgressLinear
* @module material.com... |
// ==UserScript==
// @include http://reference.bahai.org/en/t/*
// ==/UserScript==
/*globals WritingsMap, SpecialWritingsMap, MissingWritingsMap*/
var WritingsMap = {
// 'b/ESW': "Epistle to the Son of the Wolf",
'b/GDM': "Gems of Divine Mysteries", // "Gems of Divine Mysteries (Javรกhiruโl-Asrรกr)"
'b/GWB':... |
describe('ModeloConsultaDeTs', function() {
var ModeloConsultaDeTs;
beforeEach(module('ApiConsumator'))
beforeEach(inject(function($injector) {
ModeloConsultaDeTs = $injector.get('ModeloConsultaDeTs')
}))
describe('criaรงรฃo', function() {
it('deve ter as propriedades default preenc... |
๏ปฟvar express = require('express');
var router = express.Router();
// use session auth to secure the angular app files
router.use('/', function (req, res, next) { // request will be intercepted
console.log("token is " + req.session.token)
if (req.path !== '/login' && !req.session.token) {
return res.... |
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
coffee: {
compile:{
files: {
'app/js/quote.js' : 'app/coffee/quote.coffee',
'app/js/util.js' : 'app/coffee/util.coffee',
}
}
},
<<<<<<< HEAD
=======
copy: {
main: {
expand... |
/**
* @external {Project} https://doc.esdoc.org/github.com/schema-mapper/spec/typedef/index.html#static-typedef-Project
*/
/**
* @external {Schema} https://doc.esdoc.org/github.com/schema-mapper/spec/typedef/index.html#static-typedef-Schema
*/
/**
* @external {Column} https://doc.esdoc.org/github.com/schema-mapp... |
jQuery.sap.registerModulePath("oui5lib", "webapp");
var oui5lib = {};
oui5lib.namespace = function(string) {
var object = this;
var levels = string.split(".");
for (var i = 0, l = levels.length; i < l; i++) {
if (typeof object[levels[i]] === "undefined") {
object[levels[i]] = {};
... |
'use strict';
moduloPrioridad.controller('PrioridadPListController', ['$scope', '$routeParams', '$location', 'serverService', 'prioridadService', '$uibModal',
function ($scope, $routeParams, $location, serverService, prioridadService, $uibModal) {
$scope.fields = prioridadService.getFields();
$sco... |
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _assert = _interopRequireDefault(require("assert"));
var t = _interopRequireWildcard(require("@babel/types"));
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var... |
'use strict'
const server = require('./lib/server')
const base = require('../webpack.config')
module.exports = function(env) {
let config = base(env)
// Setup the webpack dev server to include our API endpoints
config.devServer.before = server
return config
}
|
app.controller('GroupListCtlr', [
'$scope',
'$http',
'ToastFactory',
function($scope, $http, toast) {
$scope.pageSize = 20;
$scope.currentPage = 0;
$scope.getGroups = function() {
$http.get('/api/management/groups')
.success(function(data, status, ... |
export default {
cancel: 'Cancelar',
reply: 'Responder',
onMyWay: 'Estou a caminho',
customMessage: 'Mensagem personalizada',
callMeBackIn: 'Ligue de novo em',
willCallYouBackIn: 'Vocรช pode ligar de novo em',
min: 'min.',
hours: 'horas',
days: 'dias',
};
// @key: @#@"cancel"@#@ @source: @#@"Cancel"@#... |
'use strict';
var cocktail = require('cocktail');
var senchaCmd = require('./cmd/sencha');
var listCmd = require('./cmd/list');
var useCmd = require('./cmd/use');
var versionCmd = require('./cmd/version');
var noOpCmd = require('./cmd/noop.js');
//TODO: Review this, maybe using nopts
var CMD_OPTIONS = {... |
import { block, insertAfter, clearSelection, prepend, detach, freeSelect } from "../../domUtils";
import { updateGrid } from "../index";
import { addChange } from "../changes";
import { Toast } from "../../toast";
import { getKeywordView } from "./keyword";
import MANIFEST from "./MANIFEST";
import { MEMBER_SECTIONS, g... |
import React from 'react';
import Link from 'gatsby-link';
import '../css/tags.css';
export default function Tags({ list = [] }) {
return (
<div className="tag-list">
{list.map(tag =>
<Link className="tag" to={`/tags/${tag}`}>
{tag}
</Link>
)}
</div>
);
}
|
var webpack = require('webpack'),
webpackConfig = require('./webpack.config.base'),
DefinePlugin = require('webpack/lib/DefinePlugin'),
SourceMapDevToolPlugin = require('webpack/lib/SourceMapDevToolPlugin'),
env = require('../environment/dev.env');
webpackConfig.module.rules = [{
test: /\.ts$/,
exclude... |
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
frappe.provide("frappe.ui.form");
frappe.ui.form.Toolbar = Class.extend({
init: function(opts) {
$.extend(this, opts);
this.make();
this.add_update_button_on_dirty();
this.appframe.add_module_icon(this.frm... |
'use strict';
import React from 'react';
const Page = ({children}) => (
<div className="page-component container">
<div className="page-box">
{children}
</div>
</div>
);
export default Page; |
//select all
$(".input-select-all").change(function () {
var target = $(this).attr("data-target");
// alert(target)
var checked = $(this).is(":checked");
$(target + " input[type=checkbox]").attr("checked", checked);
});
$(function () {
//////////////check group checkboxes/////////
$("body ... |
/*
*
* @author Benoit Vinay
*
* ben@benoitvinay.com
* http://www.benoitvinay.com
*
*/
//////////////////////////////////////////////////////////////////////////////////////////
// Sound Object
//
// use in loader.sound.js
////////////////////////////////////////////////////////////////////////////////////////... |
// app/models/tools.js
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ToolsSchema = new Schema({
name: String,
tooltype: String,
weight: Number,
damagedflag: Boolean,
serialnumber: String
});
module.exports = mongoose.model('Tools', ToolsSchema); |
module.exports = parse
/**
* expected argument lengths
* @type {Object}
*/
var length = {a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0}
/**
* segment pattern
* @type {RegExp}
*/
var segment = /([astvzqmhlc])([^astvzqmhlc]*)/ig
/**
* parse an svg path data string. Generates an Array
* of comma... |
Array.prototype.removePlayer = function (player) {
var index = this.findIndex(function (e) {
return e.client.steamId === player.client.steamId;
});
if (index >= 0) this.splice(index, 1);
return this;
}
'use strict';
const fs = require('fs');
const path = require('path');
module.exports = class Utility ... |
/* global module, require */
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: '/*!\n * <%= pkg.name %> - <%= pkg.description %>\n' +
' * Copyright (c) 2010 <%= pkg.author.name %> <<%= pkg.author.email %>>\n' +
... |
jui.define("chart.brush.map.selector", [ "util.base" ], function(_) {
/**
* @class chart.brush.over
* @extends chart.brush.core
*/
var MapSelectorBrush = function(chart, axis, brush) {
var g = null,
activePath = null;
this.drawBefore = function() {
g = chart.svg.group();
}
this.dra... |
import React, {Component} from 'react';
// require('./style.scss');
export default class WorkDetails extends Component {
constructor(props) {
super(props);
}
componentDidMount() {
document.title = "Profile | Work Details";
}
render() {
return (
<div>WorkDetailsWorkDetailsWorkDetailsWorkDetailsWork... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _Chart = require('../../../models/Chart');
var _Chart2 = _interopRequireDefault(_Chart);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = async function (ctx) {
awai... |
'use strict';
/**
* Import plugins
*/
var gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
runSequence = require('run-sequence'),
argv = require('yargs').argv,
del = require('del');
/**
* Build vendors dependencies
*/
gulp.task('vendors', function() {
/**
* CSS VENDORS
*/
... |
export { default } from 'ember-fhir/serializers/appointment-response'; |
import random from '../../randomGenerator'
import sendCommand from './commandHelper'
const getTextDocumentData = (textDocumentData) => {
if ('k' in textDocumentData) {
return textDocumentData.k
} else {
return [
{
s: textDocumentData
}
]
}
}
const processText = (textData, layerId) => {
const textD... |
// Place all the behaviors and hooks related to the matching controller here.
// All this logic will automatically be available in application.js.
var onReady = function() {
$('table.table a#ping').on('click', function(event) {
var recruiterId = $(this).closest('tr.recruiter-id').attr('id').split('-')[1];
c... |
var searchData=
[
['bool1',['bool1',['../a00743.html#gaddcd7aa2e30e61af5b38660613d3979e',1,'glm']]],
['bool1x1',['bool1x1',['../a00743.html#ga7f895c936f0c29c8729afbbf22806090',1,'glm']]],
['bool2',['bool2',['../a00743.html#gaa09ab65ec9c3c54305ff502e2b1fe6d9',1,'glm']]],
['bool2x2',['bool2x2',['../a00743.html#ga... |
/**
* Created by body7 on 10/21/15.
*/
(function () {
'use strict';
angular.module('myApp')
.controller('modifiedController', ['$rootScope','$timeout','Upload','$scope','$state', '$stateParams','DataService', '$modal', '$window',
function($rootScope, $timeout, Upload, $scope, $state, $st... |
/**
* res : successCallback
* rej : failCallback
*/
const promise = new Promise((res, rej) => {
setTimeout(() => {
const name = "alice";
res(name);
}, 1000);
});
promise.then((name) => {
console.log('์๋
ํ์ธ์, ' + name + '๋');
});
|
/*! NProgress (c) 2013, Rico Sta. Cruz
* http://ricostacruz.com/nprogress */
;(function(factory) {
if (typeof module === 'function') {
module.exports = factory();
} else if (typeof define === 'function' && define.amd) {
define(factory);
} else {
this.NProgress = factory();
}
})(function() {
v... |
!function(e,t,n){"use strict";var r=n.map("map",{center:[33.7527,-84.4095],zoom:12});new n.tileLayer("http://{s}.sm.mapstack.stamen.com/($ff5f00[@p],(parks,$126600[source-in]),(mapbox-water,$00b688[source-in]),(terrain-lines,$99000f[source-in]),(terrain-labels,$662600[source-in])[soft-light])/{z}/{x}/{y}.png",{minZoom:... |
const readline = require('readline');
const constants = require('./constants.js');
const authenticate = require('./functions/authenticate.js');
const getMetadata = require('./functions/getMetadata.js');
const downloadRemote = require('./functions/downloadRemote.js');
const error = require('./functions/error.js');
const... |
import { RECORD_DATA_TABLE_STATE_UPDATE, RESET_RECORD_DATA_TABLE_STATE } from './actions'
import { recordDataTableDefaultState, updateRecordDataTableState, updateRecordLockState } from './state'
import { ACTIVE_SURVEY_FETCHED } from 'actions/activeSurvey'
import { RECORD_LOCKED, RECORD_UNLOCKED } from '../actions'
exp... |
/*globals Foo:true $foo:true */
var obj, moduleOpts = {
setup: function() {
obj = {
foo: {
bar: {
baz: { biff: 'BIFF' }
}
}
};
Foo = {
bar: {
baz: { biff: 'FooBiff' }
}
};
$foo = {
bar: {
baz: { biff: '$FOOBIFF' }
}
... |
exports.register = (server, options, next) => {
let routes = [
{
method: 'GET',
path: '/{param*}',
handler: { directory: {
path: './web', listing: false, index: true
} }
}, {
method: 'GET',
path: '/client.bundle.js',
handler: (request, reply) => {
repl... |
///**
//* Forgot Component Spec Test
//*/
//
//
//'use strict';
//
//var React = require('react');
//var ForgotComponent = React.createFactory(require('../../../../client/scripts/components/account/forgot.jsx'));
//
//describe('Forgot Component', function() {
//
// var ReactTestUtils;
// var reactRender;
//
// bef... |
version https://git-lfs.github.com/spec/v1
oid sha256:3174031dbf1b5143f26c5323bd5b2f0e6845efabf494ae2ed9641bbb2c186e85
size 1053
|
//
// XYO Build
//
// Copyright (c) 2014 Grigore Stefan, <g_stefan@yahoo.com>
// Created by Grigore Stefan <g_stefan@yahoo.com>
//
// The MIT License (MIT) <http://opensource.org/licenses/MIT>
//
function Solution() {
.name_="";
.project_= {};
.option_= {};
.dependencyOption_= {};
.projectBasePath_=null;
.projec... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Row } from 'react-bootstrap';
import KeyBinding from 'react-keybinding-component';
import Header from './Header/Header.react';
import Footer from './Footer/Footer.react';
import Toasts from './Toasts/Toasts.react';
import lib fr... |
/**
* System configuration for Angular 2 samples
* Adjust as necessary for your application needs.
*/
(function(global) {
// map tells the System loader where to look for things
var map = {
'app': 'app', // 'dist',
'@angular': 'node_modules/@angular',
'angul... |
import varianceOf from "./variance-of";
export default function standardDeviationOf(array, callback) {
let variance = varianceOf(array, callback);
return variance ? Math.sqrt(variance) : false;
} |
function animate() {
tail = tabCube.pop();
tail.position.x = tabCube[0].position.x;
tail.position.y = tabCube[0].position.y;
tail.position.z = tabCube[0].position.z;
if(direction[0] == 1) {
if(tabCube[0].position.x == (largeur*9)) {
tail.position.x = -(largeur*10);
} else {
tail.position.x += lar... |
// --------------------
// toposort extended
// Tests
// --------------------
// modules
var chai = require('chai'),
expect = chai.expect,
toposort = require('../lib/');
// init
chai.config.includeStack = true;
// tests
/* jshint expr: true */
/* global describe, it */
describe('toposort', function() {
it('sort... |
import 'bootstrap';
import '../../src/scss/index.scss';
import profile from '../../src/img/portrait-medium.jpg';
const img = document.getElementById('profile');
if (img) {
img.src = profile;
}
|
import React, {
Component,
View,
StyleSheet,
Text,
TouchableHighlight,
PropTypes,
NativeModules,
DeviceEventEmitter
} from 'react-native';
import { login, logout, getCredentials, liEvents} from './util';
import styles from './theme/style';
const Icon = require('react-native-vector-icons/FontAwesome');
... |
(function(){
'use strict';
angular
.module('chat', [])
.controller('ChatCtrl', ['$rootScope', '$scope', 'restFulService', 'restFulSocketService', '$sailsSocket', function($rootScope, $scope, restFulService, restFulSocketService, $sailsSocket){
$scope.chats = [];
$scope.contacts = [];
$scope.chat ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.