code stringlengths 2 1.05M |
|---|
'use strict';
const AWS = require('aws-sdk');
const dynamoDb = new AWS.DynamoDB.DocumentClient();
module.exports.create = (event, context, callback) => {
const timestamp = new Date().getTime();
const data = JSON.parse(event.body);
if (typeof data.name !== 'string' || typeof data.id !== 'number') {
console... |
import React from 'react';
class LandingPacts extends React.Component {
render() {
return (
<div className="landing-pacts">
<div className="container">
{this.renderPacts()}
</div>
</div>
);
}
renderPacts() {
... |
'use strict';
var Response = require('./Response'),
Strings = require('./Strings'),
logger = require('./logger'),
middleware = {
authorization: require('./middleware/authorization'),
apiKey: require('./middleware/apiKey'),
initialize: require('./middleware/initialize')
},
_ ... |
search_result['3483']=["topic_0000000000000853_props--.html","JobVacancyDetailVm Properties",""]; |
module.exports = (function () {
var Connection = function (leftObject, connector, rightObject) {
this.leftObject = leftObject;
this.connector = connector;
this.pNamespace = null;
this.rightObject = rightObject;
}
Connection.prototype.setNamespace = function (namespace) {
this.pNamespace = n... |
<script type="text/javascript">
//mostra e esconde os ícones de criar tarefa, editar e remover missao
$(document).ready(function(){
$("#nomeMissao").mouseout(function(){
$("divIconesMissao").hide();
});
$("#nomeMissao").mouseover(function(){
$("divIconesMissao").show();
});
});
</script>... |
'use strict';
// Avoid `console` errors in browsers that lack a console.
(function() {
var method;
var noop = function noop() {};
var methods = [
'assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error',
'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log',
'markTimeline', 'profile', 'profil... |
module.exports = {
entry: "./app.js",
output: {
path: __dirname + "/dist",
filename: "app.js"
},
module: {
loaders: [
{
test: /\.js.*$/,
exclude: /(node_modules)/,
loader: 'babel?presets[]=es2015'
}
]
},
resolve: {
alias: {
vex: 'vex-js'
}
}
};
|
/*!
* froala_editor v3.2.0 (https://www.froala.com/wysiwyg-editor)
* License https://froala.com/wysiwyg-editor/terms/
* Copyright 2014-2020 Froala Labs
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('froala-editor')) :
typeof define === 'function... |
(function () {
'use strict';
function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
return obj && typeof Symbol === "function" && obj.constructo... |
'use strict'
var la = require('lazy-ass')
var check = require('check-more-types')
var log = require('debug')('next-update')
require('console.json')
var print = require('./print-modules-table')
var stats = require('./stats')
var clc = require('cli-color')
var getSuccess = stats.getSuccessStats
var q = require('q')
fu... |
import * as types from '../constants/actionTypes';
import fetch from '../core/fetch';
function updateRankings(rankings) {
return {
type: types.UPDATE_FANTASY_FOOTBALL_RANKINGS,
rankingsList: rankings
}
}
export function getRankings() {
let url = '/api/fantasy-football-rankings'
return async (dispatch... |
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['../nodejs/jasmine-custom-message.spec.js']
}; |
/*!
* OOUI v0.40.4
* https://www.mediawiki.org/wiki/OOUI
*
* Copyright 2011–2020 OOUI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2020-10-07T21:25:50Z
*/
( function ( OO ) {
'use strict';
/**
* Toolbars are complex interface components that permit us... |
$("#zoom_01").elevateZoom();
$("#zoom_02").elevateZoom({ zoomType : "inner", cursor: "crosshair" });
$("#zoom_03").elevateZoom({
zoomType : "lens",
lensShape : "round",
lensSize : 200
});
|
import PropTypes from 'prop-types';
import React from 'react';
import ScheduleCard from './ScheduleCard';
import ScheduleContentHeading from './ScheduleContentHeading';
import { connect } from 'react-redux';
import { createUseStyles } from 'react-jss';
const useStyles = createUseStyles({
schedule: {
flex: '1 1 1... |
var should = require('should');
var io = require('socket.io-client');
var config = require('./config_mocha');
var mainConfig = require('../../config_' + (process.env.NODE_ENV || 'dev'));
var socketURL = config.socketURL;
var options ={
transports: ['websocket'],
'force new connection': true
};
describe("Code Fun... |
/* global moment:true */
/**
* @module ember-flexberry
*/
import Ember from 'ember';
import FlexberryBaseComponent from './flexberry-base-component';
import { translationMacro as t } from 'ember-i18n';
/**
* DateTime picker component for Semantic UI (Semantic UI hasn't its own DateTime picker component yet).
*
*... |
/**
* @license Highstock JS v9.3.1 (2021-11-05)
* @module highcharts/indicators/stochastic
* @requires highcharts
* @requires highcharts/modules/stock
*
* Indicator series type for Highcharts Stock
*
* (c) 2010-2021 Paweł Fus
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../Stock/Indica... |
/*! Monio: nothing.js
v0.8.0 (c) 2021 Kyle Simpson
MIT License: http://getify.mit-license.org
*/
!function UMD(n,o,e,t){"function"==typeof define&&define.amd?(e=Object.keys(e).map((n=>n.replace(/^\.\//,""))),define(n,e,t)):"undefined"!=typeof module&&module.exports?(e=Object.keys(e).map((n=>require(n))),module.... |
/**
* Tom Select v1.7.3
* Licensed under the Apache License, Version 2.0 (the "License");
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../../tom-select.js')) :
typeof define === 'function' && define.amd ? define(['../../tom-select'], factory) :
(gl... |
/**
* @license Highstock JS v8.1.2 (2020-06-16)
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Sebastian Bochan
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.e... |
MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["MathJax_SansSerif-bold"],{160:[0,0,250,0,0],305:[458,0,256,54,201],567:[458,205,286,-71,232],915:[691,0,581,92,534],916:[694,0,917,60,856],920:[716,22,856,62,793],923:[694,0,672,41,630],926:[688,0,733,46,686],928:[691,0,794,92,702],931:[694,0,794,61,732],... |
(function (root, factory) {
if (typeof define === "function" && define.amd) {
// AMD. Register as an anonymous module.
define([], factory);
} else if (typeof module === "object" && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support modu... |
import React from 'react';
import { shallow } from 'enzyme';
// app
import NavHeaderComponent from '../NavHeader.component';
const props = {
scene: {},
getScreenDetails: () => ({ options: {} }),
onToggleMenu: jest.fn()
};
test('NavHeader should render correctly', () => {
const wrapper = shallow(<NavHeaderCom... |
$(document).ready(function () {
$("#second").hide();
$("#third").hide();
$("#forth").hide();
//butttons at home
$("#firstb").click(function () {
$("#first").toggle();
});
$("#secondb").click(function () {
$("#second").toggle();
});
$("#thirdb").click(function () {
... |
/**
* Fx.Scroll.js
* @author : Agile Diagnosis
* @contributors : Boris Cherny <boris@agilediagnosis.com>
* @created : 2012-02-14
* @description : Scrolling functionality for Fx.js. Uses GPU-accelerated
* 3D transforms while properly updating scrollLeft and scrollTop.
* @requires : Fx.js
* @versio... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'toolbarswitch', 'eu', {
toolbarswitch: 'Switch toolbar'
});
|
describe('manualRowResize', function () {
var id = 'test';
var defaultRowHeight = 22;
beforeEach(function () {
this.$container = $('<div id="' + id + '"></div>').appendTo('body');
});
afterEach(function () {
if (this.$container) {
destroy();
this.$container.remove();
}
});
funct... |
var path = require('path');
module.exports = function (grunt) {
var helpers = require('./external/amber-dev/lib/helpers');
grunt.loadTasks('./internal/grunt-tasks');
grunt.loadTasks('./external/amber-dev/tasks');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-clean'... |
// app/models/user.js
// 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 : {
userId : String,
email : String,
userType : String,... |
var mocha = require('mocha');
var expect = require('chai').expect;
var Immutable = require('immutable');
var Measures = require('../../../server/client/reducers/Measures');
describe('Measures Reducer', function(){
it('should create an immutable map from an object', function () {
var action = {};
action.mea... |
var Slide = require('../../../src/remark/models/slide');
describe('Slide', function () {
describe('properties', function () {
it('should be extracted', function () {
var slide = new Slide(1, {
source: '',
properties: {a: 'b', c: 'd'}
});
slide.properties.should.have.... |
var mod = require('./module')
console.log(mod())
|
export { default } from 'ember-magma/components/magma-tabs-list-item';
|
/**
* Created by j.calabrese on 8/19/15.
*/
jest.dontMock('../js/utils/firebase-utils');
describe('firebase-utils', function () {
it('convert object with 4 objects to array with 4 items', function () {
var FirebaseUtils = require('../js/utils/firebase-utils');
//var jsonObject = "{'10923': {name: 'Domaine... |
const _ = {}
_.init = function(){
}
module.exports = {
init : () => _.init,
test : () => _
} |
import VideoCoverFallback from '../VideoCoverFallback';
import React from 'react';
import { shallow, mount } from 'enzyme';
describe('VideoCoverFallback', () => {
it('should update container ratio when mounted', () => {
const spy = jest.fn();
class WithSpy extends VideoCoverFallback {
constructor(prop... |
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descripto... |
version https://git-lfs.github.com/spec/v1
oid sha256:244dc32ed8898bce086968edc3d0d72d4d7e8be5bd8891f2f351a1518a116432
size 680
|
var ctracker;
function setup() {
// setup camera capture
var videoInput = createCapture(VIDEO);
videoInput.size(400, 300);
videoInput.position(0, 0);
// setup canvas
var cnv = createCanvas(400, 300);
cnv.position(0, 0);
// setup tracker
ctracker = new clm.tracker();
ctracker.init(pModel);
ct... |
import cookieProxy from 'appkit/utils/cookieProxy';
import auth from 'appkit/utils/auth';
import routeProxy from 'appkit/utils/routeProxy';
var ApplicationController = Ember.ObjectController.extend({
currentPathDidChange: function() {
Ember.currentPath = this.get('currentPath');
this.set('currentPath', thi... |
angular.module('roadmaps.factory', [])
.factory('RoadMapsFactory', function($http){
return {
};
}); |
import { EventEmitter } from 'events';
import qemuFactory from '../lib/qemu';
import rfbHandler from '../lib/rfb-handler';
import {
EV_STOP, EV_TIMER, RS_SESSION_EXPIRED,
EV_FRAME, EV_RESIZE, EV_KEYDOWN, EV_MOUSEMOVE,
} from '../constants/socket-events';
import {
x8664Executable, VM_MAX_SESSIONS, VM_MAX_TIME,
... |
var negators = require('./negators.json');
module.exports = {
apply: function(tokens, cursor, tokenScore) {
if (cursor > 0) {
var prevtoken = tokens[cursor - 1];
if (negators[prevtoken]) {
tokenScore = -tokenScore;
}
}
return tokenScore;
... |
import React from 'react'
import Icon from 'react-icon-base'
const IoAndroidMoreHorizontal = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m10.6 16.9c1.7 0 3.2 1.4 3.2 3.1s-1.5 3.1-3.2 3.1-3.1-1.4-3.1-3.1 1.4-3.1 3.1-3.1z m18.8 0c1.7 0 3.1 1.4 3.1 3.1s-1.4 3.1-3.1 3.1-3.1-1.4-3.1-3.1 1.4-3.... |
/*
filedrag.js - HTML5 File Drag & Drop demonstration
Featured on SitePoint.com
Developed by Craig Buckler (@craigbuckler) of OptimalWorks.net
*/
(function() {
// getElementById
function $id(id) {
return document.getElementById(id);
}
// output information
function Output(msg) {
var m = $id("messages");
/... |
import React from 'react'
import Icon from 'react-icon-base'
const FaBitbucket = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m22.7 19.2q0.2 1.4-1.1 2.2t-2.5 0.2q-0.9-0.4-1.2-1.3t0-1.9 1.1-1.3q0.8-0.4 1.6-0.2t1.5 0.8 0.6 1.5z m2.5-0.5q-0.3-2.4-2.6-3.7t-4.3-0.2q-1.5 0.6-2.3 1.9t-0.8 2.9q0.1... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import {invokeGuardedCallbackAndCatchFirstError} from 'shared/ReactErrorUtils';
import invariant from 'shared/invariant';
export ... |
/*
* Copyright (c) 2012 Adobe Systems Incorporated. All rights reserved.
*
* 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 ri... |
module('pc.audio');
test('pc.audio.isSupported MP3', function () {
var url = '/test/file.mp3';
var a = new Audio();
equal(pc.AudioManager.isSupported(url), true);
equal(pc.AudioManager.isSupported(url, a), true);
});
test('pc.audio.isSupported ogg', function () {
var url = '/test/file.ogg';
v... |
import Vue from 'vue';
import store from 'ee_else_ce/mr_notes/stores';
import initNotesApp from './init_notes';
import initDiffsApp from '../diffs';
import discussionCounter from '../notes/components/discussion_counter.vue';
import initDiscussionFilters from '../notes/discussion_filters';
import MergeRequest from '../m... |
var request = require('request-promise');
var Wsse = require('wsse');
var config = require('./config.json');
function checkInit(config) {
if (!config || !config.endpoint || !config.key || !config.secret) {
throw new Error('API not initialized. Make sure that the config file exists and has key, secret, ... |
"use strict";
/*
* Okta Events Endpoint
* http://developer.okta.com/docs/api/rest/events.html
*/
var NetworkAbstraction = require('./NetworkAbstraction.js');
module.exports = OktaAPIEvents;
/**
* Instantiate a new Okta API User helper with the given API token
* @param apiToken
* @param domain
* @param preview... |
var makeDeque =
(function() { //begin IIFE
function makeDeque(values) { //begin factory
// These vars are private, local to scope of makeDeque,
// only accessible to functions defined in makeDeque
var array = values.slice(); //copy values
var absent = []; //list of missing elements
// Each function bel... |
// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it.
import fn from '../../isThursday/index.js'
import convertToFP from '../_lib/convertToFP/index.js'
var isThursday = convertToFP(fn, 1)
export default isThursday
|
var carousel = function(i, t) {
'undefined' == typeof t && (t = 0),
this.obj = $(i),
this.autoscrolldelay = t,
$(this.obj).find('.carousel-button-left').on('click', this.left.bind(this)),
$(this.obj).find('.carousel-button-right').on('click', this.right.bind(this)),
$(this.obj).on('mouseenter', this.mousein... |
const sharp = require('sharp');
const http = require('http');
const IMAGE_URL = 'http://blobby.wsimg.com/go/0296993c-cade-4ae8-8a65-b3172f22a3a0/6e14af04-904c-4654-936e-2bd7e6e08dd8.jpg';
function getImage() {
return new Promise((resolve, reject) => {
http.get(IMAGE_URL, res => {
if (res.statusCode !== 20... |
jui.define("chart.brush.pie", [ "util.base", "util.math", "util.color" ], function(_, math, ColorUtil) {
/**
* @class chart.brush.pie
*
* implements pie brush
*
* @extends chart.brush.core
*/
var PieBrush = function() {
var self = this, textY = 3;
var g;
var cache_active = {};
... |
/**
* 读取所有md文件数据
*/
const fs = require('fs'); // 文件模块
const path = require('path'); // 路径模块
const chalk = require('chalk') // 命令行打印美化
const log = console.log
function readFileList (dir, filesList = []) {
const files = fs.readdirSync(dir);
files.forEach((item, index) => {
let filePath = path.join(dir, item);... |
define([
'bluebird',
'./adapters/objectWidget',
'./adapters/kbWidget',
'../merge'
], function (
Promise,
objectWidgetAdapter,
kbwidgetAdapter,
merge
) {
'use strict';
class WidgetManager {
constructor(config) {
// TODO: get rid of this?
// if (!co... |
import {
Form,
Select,
InputNumber,
DatePicker,
Switch,
Slider,
Button
} from 'antd'
const FormItem = Form.Item
const Option = Select.Option
export default () => (
<div style={{ marginTop: 100 }}>
<Form layout='horizontal'>
<FormItem
label='Input Number'
labelCol={{ span: 8 }... |
var ejs = require("ejs"),
extend = require("extend"),
forEach = require("for_each"),
path = require("file_path"),
fileUtils = require("file_utils");
function compile(template, out, config, options, callback) {
var opts;
options = options || {};
opts = {
locals: options.data || (o... |
var webpack = require('webpack')
var config = require('./webpack.base.conf')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var ExtractTextPlugin = require('extract-text-webpack-plugin')
var BrowserSyncPlugin = require('browser-sync-webpack-plugin')
config.output.filename = '[name].js'
config.output.chunkFilen... |
for (var i = 0; i < acentos.length; i++) {
if (acentos[i] && acentos[i + 1] && acentos[i + 2]) {
selSeat = i; //tenho medo desta variável solta
//Codigo..
if (confirm("Reserva da cadeira " + (i + 1) + " ~ " + (i + 3) + " está disponível, aceitar?.")) {
break;
} else {
... |
describe('view (option)', () => {
it('should be null be default', () => {
const image = window.createImage();
const viewer = new Viewer(image);
expect(viewer.options.view).to.be.null;
});
it('should execute the `view` hook function', (done) => {
const image = window.createImage();
const view... |
/***
MochiKit.Base 1.3.1
See <http://mochikit.com/> for documentation, downloads, license, etc.
(c) 2005 Bob Ippolito. All rights Reserved.
***/
if (typeof(dojo) != 'undefined') {
dojo.provide("MochiKit.Base");
}
if (typeof(MochiKit) == 'undefined') {
MochiKit = {};
}
if (typeof(MochiKit.Base) == 'undefi... |
(function() {
var rule = data.rules[parseInt(request.param.num, 10)] || null;
if (rule === null) return response.error(404);
switch (request.method) {
case 'GET':
response.head(200);
response.end(JSON.stringify(rule, null, ' '));
return;
case 'PUT':
if (request.headers['content-type'].match... |
import annotateAsPure from "@babel/helper-annotate-as-pure";
import { types as t } from "@babel/core";
export default function(api, options) {
const { loose } = options;
let helperName = "taggedTemplateLiteral";
if (loose) helperName += "Loose";
/**
* This function groups the objects into multiple calls t... |
import Lab from 'lab'
import Code from 'code'
import { server } from '../src/index.js'
var lab = exports.lab = Lab.script()
lab.experiment('Images Api Tests', () => {
lab.test('GET /images (invalid id)', (done) => {
var options = {
method: 'GET',
url: '/api/images/invalidId'
}
server.inject(... |
// document.write('Hello World!');
require('./style.css');
document.write(require("./content.js"));
var item = "<div>"+ name + "<div>";
var items = []
items.map(function(value){
return "<li>"+ name + "<li>";
})
|
/* */
'use strict';
var LIBRARY = require("./$.library"),
$def = require("./$.def"),
$redef = require("./$.redef"),
hide = require("./$.hide"),
has = require("./$.has"),
SYMBOL_ITERATOR = require("./$.wks")('iterator'),
Iterators = require("./$.iterators"),
$iterCreate = require("./$.iter-c... |
import { tokens } from '../tokenTypes'
const { SPACE, IDENT, STRING } = tokens
export default tokenStream => {
let fontFamily
if (tokenStream.matches(STRING)) {
fontFamily = tokenStream.lastValue
} else {
fontFamily = tokenStream.expect(IDENT)
while (tokenStream.hasTokens()) {
tokenStream.exp... |
//>>built
define(["dojo/_base/declare","dojox/data/CssRuleStore"],function(h,k){return h("dojox.data.CssClassStore",k,{_labelAttribute:"class",_idAttribute:"class",_cName:"dojox.data.CssClassStore",getFeatures:function(){return{"dojo.data.api.Read":!0,"dojo.data.api.Identity":!0}},getAttributes:function(a){this._assert... |
import expect, { spyOn } from 'expect'
import React, { Component } from 'react'
import { render, unmountComponentAtNode } from 'react-dom'
import createHistory from '../createMemoryHistory'
import { routerShape } from '../PropTypes'
import execSteps from './execSteps'
import Router from '../Router'
describe('When a ro... |
var _ = require("underscore");
exports.paragraph = paragraph;
exports.run = run;
exports._elements = elements;
exports.getDescendantsOfType = getDescendantsOfType;
exports.getDescendants = getDescendants;
function paragraph(transform) {
return elementsOfType("paragraph", transform);
}
function run(transform) {
... |
angular.module("lilypad.services")
.factory('SearchFactory', function($http, appConfig) {
var factory = {};
factory.searchLocations = function(phrase) {
var url = appConfig.baseUrl + '/search/locations';
var req = {
'method' :'GET',
'url' : url,
'headers': { 'phrase... |
module.exports.startApp = function(
console,
startServer,
startWorkers
) {
return function() {
console.log('starting app');
startWorkers();
startServer();
};
};
|
var SceneElementAdapter = require("./scene-element.js");
var CameraConfiguration = require("../scene/configuration.js");
var Resource = require("../../../resource");
var DEFAULT_CAMERA_MODEL = "urn:xml3d:view:perspective";
/**
* Adapter for <view>
* @param {RenderAdapterFactory} factory
* @param {Element} node
* ... |
// @flow
export default function( duration: number ): Promise<any> {
return new Promise( function( resolve ) {
setTimeout( function() {
resolve()
}, duration )
})
}
|
define([], function() {
/** Used to compose unicode character classes. */
var rsAstralRange = '\\ud800-\\udfff',
rsComboMarksRange = '\\u0300-\\u036f\\ufe20-\\ufe23',
rsComboSymbolsRange = '\\u20d0-\\u20f0',
rsDingbatRange = '\\u2700-\\u27bf',
rsLowerRange = 'a-z\\xdf-\\xf6\\xf8-\\xff',
... |
define({
//begin v1.x content
smiley: "Txertatu emotikonoa",
emoticonSmile: "irribarre handia",
emoticonLaughing: "barrea",
emoticonWink: "begi-keinua",
emoticonGrin: "irribarrea",
emoticonCool: "bikain",
emoticonAngry: "haserre",
emoticonHalf: "erdia",
emoticonEyebrow: "bekaina",
emoticonFrown: "bekozk... |
(function(window, angular, undefined) {'use strict';
angular.module('gs.flash-message', ['ngSanitize'])
.directive('gsFlashMessage', ['$sce', function ($sce) {
function _messageWrapper (messages) {
messages = messages || {};
_.forEach(Object.keys(messages), function (key) {
messages[key] = (_.isArray(... |
const HistoryData_Schema = {
name: "HistoryData",
fields: [
{ name: "dataValues", isArray: true, fieldType:"DataValue" }
]
};
exports.HistoryData_Schema = HistoryData_Schema; |
import "./office/styles.less";
import "../static/favicon.ico";
import App from "./office/app";
import hydrate from "./shared/utils/hydrate";
import configureStore from "./office/store";
process.env.MODULE = "office";
const store = configureStore(window.__INITIAL_STATE__);
hydrate(App, store);
if (module.hot) {
mo... |
(function (root, factory) {
// Node.
if(typeof module === 'object' && typeof module.exports === 'object') {
exports = module.exports = factory();
}
// AMD.
if(typeof define === 'function' && define.amd) {
define(["terraformer/terraformer"],factory);
}
// Browser Global.
if(typeof root.navigat... |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
import {expect} from 'chai';
import {
graphql,
GraphQLSchema,
GraphQLObjectType
} from 'graphql';
import GraphQLGeneric from './generic';
class Unknown {
constructor(field) {
this.field = field;
}
}
describe('GraphQL generic type', () => {
it('should coerse generic object to string', () => {
cons... |
if(module.exports){var optionsPage=module.exports;safari.extension.settings.addEventListener("change",function(a){"open-options"==a.key&&optionsPage.open()},!1)};
|
const path = require('path');
const settings = require('../manifest');
const printConfig = require('../../utils/printConfig');
const paths = settings.paths;
const webpack = require('webpack');
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpa... |
// -- SDK File : KonySyncLib.js
// --Generated On Fri Feb 19 18:08:53 IST 2016*******************
// **************** Start jsonWriter.js*******************
//#ifdef iphone
//#define KONYSYNC_IOS
//#endif
//#ifdef bb
//#define KONYSYNC_BB
//#endif
//#ifdef bb10
//#define KONYSYNC_BB10
//#endif
//#ifdef winmobile... |
var _arity = require('./internal/_arity');
var _pipe = require('./internal/_pipe');
var reduce = require('./reduce');
var tail = require('./tail');
/**
* Performs left-to-right function composition. The leftmost function may have
* any arity; the remaining functions must be unary.
*
* In some libraries this funct... |
var searchData=
[
['onebyfftlen',['onebyfftLen',['../structarm__cfft__radix2__instance__f32.html#a1d3d289d47443e597d88a40effd14b8f',1,'arm_cfft_radix2_instance_f32::onebyfftLen()'],['../structarm__cfft__radix4__instance__f32.html#ab9eed39e40b8d7c16381fbccf84467cd',1,'arm_cfft_radix4_instance_f32::onebyfftLen()']]],... |
'use strict';
var async = require('async');
var logger = require('../logger/logger').logger;
var NewsImporter = function NewsImporter(festivalsClient) {
var news = {};
var NewsResolver = {
addNews: function (name, news) {
news[name] = news;
},
getNews: function (name) {
if (news.hasOwnPro... |
/**
* This is the main method that converts the document to a collection of pages. Since this method can be slow (depending
* on the number of DOM elements in the document), it runs async and returns a promise.
* @param currentScroll
*/
function composePage(currentScroll) {
var deferred = new $.Deferred();
... |
BASE.require([
"jQuery",
"jQuery.fn.region",
"BASE.util.invokeMethodIfExistsAsync",
"BASE.util.invokeMethodIfExists"
], function () {
var invokeMethodIfExistsAsync = BASE.util.invokeMethodIfExistsAsync;
var invokeMethodIfExists = BASE.util.invokeMethodIfExists;
var Future = BASE.async.Futur... |
// Pseudo-random generator
'use strict';
// Generate a random function that is seeded with the given value.
function generator(seed) {
// Note: the generator didn't work with negative seed values, so here we
// transform our original seed into a new (positive) seed value with which we
// create a new gene... |
define({
titulo: 'SQUAREFramework Archetype Application',
menu: {
inicio: 'Home',
todo: 'Todo MVC'
},
defaults: {
salvar: 'Save',
cancelar: 'Cancel',
deletar: 'Delete',
avancar: 'Advance',
localizar: 'Searching',
alteracaoSucesso: 'Operation performed successfully.',
exclusaoSucesso: 'Exclus... |
/**************************************************************************
* AngularJS-nvD3, v1.0.0-beta; MIT License; 25/02/2015 22:27
* http://krispo.github.io/angular-nvd3
**************************************************************************/
(function(){
'use strict';
angular.module('nvd3', [])
... |
version https://git-lfs.github.com/spec/v1
oid sha256:db953ed2223a6f144e138118df03da2fd8c82aa401695064d532aec80f5a6741
size 2480
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.