code stringlengths 2 1.05M |
|---|
/*!
Copyright (c) 2011, Yahoo! Inc. All rights reserved.
Code licensed under the BSD License:
http://developer.yahoo.com/yui/license.html
version: 2.9.0
*/
if (YAHOO === undefined) {var YAHOO = {};}
YAHOO.lang = {
/**
* Utility to set up the prototype, constructor and superclass properties to
* support an... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v8.1.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
var componentUtil_1 = require("./componentUtil");
var grid_1 = require("../grid");
var registered = false;
function initialise... |
/**
* Requires proper alignment in object literals.
*
* Type: `String`
*
* Values:
* - `"all"` for strict mode,
* - `"ignoreFunction"` ignores objects if one of the property values is a function expression,
* - `"ignoreLineBreak"` ignores objects if there are line breaks between properties
*
* #### Example... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
/**
* matter-js 0.9.0 by @liabru 2016-01-16
* http://brm.io/matter-js/
* License MIT
*/
/**
* The MIT License (MIT)
*
* Copyright (c) 2014 Liam Brummitt
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to de... |
//! moment.js locale configuration
//! locale : Central Atlas Tamazight [tzm]
//! author : Abdel Said : https://github.com/abdelsaid
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define ... |
/*! Formstone v0.4.2 [cookie.js] 2015-03-31 | MIT License | formstone.it */
!function(a,b){"use strict";function c(b,c,h){if("object"===a.type(b))g=a.extend(g,b);else if(h=a.extend({},g,h||{}),"undefined"!==a.type(b)){if("undefined"===a.type(c))return e(b);null===c?f(b):d(b,c,h)}return null}function d(b,c,d){var e=!1,... |
/*
* bootstrap-table - v1.11.1 - 2017-02-22
* https://github.com/wenzhixin/bootstrap-table
* Copyright (c) 2017 zhixin wen
* Licensed MIT License
*/
!function(a){"use strict";a.fn.bootstrapTable.locales["af-ZA"]={formatLoadingMessage:function(){return"Besig om te laai, wag asseblief ..."},formatRecordsPerPage:function(... |
/*
* /MathJax/jax/output/HTML-CSS/fonts/TeX/Main/Italic/GeneralPunctuation.js
*
* Copyright (c) 2009-2014 The MathJax Consortium
*
* 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
*... |
YUI.add("lang/datatype-date-format_en-PH",function(A){A.Intl.add("datatype-date-format","en-PH",{"a":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"A":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"b":["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],"B":["January","Febr... |
var path = require('path');
var app_test = require('./nw_test_app');
var fs = require('fs-extra');
describe('data-path', function() {
before(function(done){
this.timeout(0);
fs.mkdirsSync('./data-cash');
fs.mkdirsSync('./dataPath');
fs.mkdirsSync('./dataPath/data-cash');
fs.mkdirsSync('./data-cas... |
// moment.js language configuration
// language : traditional chinese (zh-tw)
// author : Ben : https://github.com/ben-lin
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
module.exports = facto... |
CKEDITOR.plugins.setLang("showblocks","sv",{toolbar:"Visa block"}); |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'toolbar', 'vi', {
toolbarCollapse: 'Thu gọn thanh công cụ',
toolbarExpand: 'Mở rộng thnah công cụ',
toolbarGroups: {
document: 'Tài liệu',
cli... |
/*
* common.js: Tests for common utility function in nconf.
*
* (C) 2011, Charlie Robbins and the Contributors.
*
*/
var fs = require('fs'),
path = require('path'),
vows = require('vows'),
assert = require('assert'),
helpers = require('./helpers'),
nconf = require('../lib/nconf');
var mergeDi... |
export{default}from"./CardActions"; |
// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
var ... |
/**
* @fileoverview Report missing `key` props in iterators/collection literals.
* @author Ben Mosher
*/
'use strict';
// var Components = require('../util/Components');
var hasProp = require('jsx-ast-utils/hasProp');
// ------------------------------------------------------------------------------
// Rule Defini... |
/**
* highlight v3 | MIT license | Johann Burkard <jb@eaio.com>
* Highlights arbitrary terms in a node.
*
* - Modified by Marshal <beatgates@gmail.com> 2011-6-24 (added regex)
* - Modified by Brian Reavis <brian@thirdroute.com> 2012-8-27 (cleanup)
*/
var highlight = function($element, pattern) {
if (typeof patt... |
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
* The YUI global name... |
/*!
* Qoopido.js library v3.4.2, 2014-6-10
* https://github.com/dlueth/qoopido.js
* (c) 2014 Dirk Lueth
* Dual licensed under MIT and GPL
*/!function(n){window.qoopido.register("jquery/plugins/shrinkimage",n,["../../dom/element/shrinkimage","jquery"])}(function(n,t,e,r,o){"use strict";var i,c=n.jquery||o.jQuery,u=e.pop... |
/**
* Lo-Dash 2.4.1 (Custom Build) <http://lodash.com/>
* Build: `lodash modularize modern exports="node" -o ./modern/`
* Copyright 2012-2013 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.5.2 <http://underscorejs.org/LICENSE>
* Copyright 2009-2013 Jeremy Ashkenas, DocumentCloud and In... |
'use strict';
angular.module('mean.system', ['mean.controllers.login','mean-factory-interceptor']); |
/**
* @license AngularJS v1.0.3
* (c) 2010-2012 Google, Inc. http://angularjs.org
* License: MIT
*/
(function(window, document, undefined) {
'use strict';
////////////////////////////////////
/**
* @ngdoc function
* @name angular.lowercase
* @function
*
* @description Converts the specified string to lowerca... |
YUI.add("event-hover",function(d){var c=d.Lang.isFunction,b=function(){},a={processArgs:function(e){var f=c(e[2])?2:3;return(c(e[f]))?e.splice(f,1)[0]:b;},on:function(h,f,g,e){f._detach=h[(e)?"delegate":"on"]({mouseenter:d.bind(g.fire,g),mouseleave:f._extra},e);},detach:function(g,e,f){e._detacher.detach();}};a.delegat... |
/**
* @hola.org/videojs-contrib-hls
* @version 2.2.0-14
* @copyright 2016 Brightcove, Inc
* @license Apache-2.0
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=win... |
/*! Qoopido.js library 3.6.9, 2015-07-10 | https://github.com/dlueth/qoopido.js | (c) 2015 Dirk Lueth */
!function(o){var r=[];window.Promise||r.push("../polyfill/window/promise"),window.qoopido.register("promise/race",o,r)}(function(o,r,t,n,e,i,s){"use strict";return function(o){if("[object Array]"!==Object.prototype.... |
YUI.add('widget-modality', function(Y) {
/**
* Provides modality support for Widgets, though an extension
*
* @module widget-modality
*/
var WIDGET = 'widget',
RENDER_UI = 'renderUI',
BIND_UI = 'bindUI',
SYNC_UI = 'syncUI',
BOUNDING_BOX = 'boundingBox',
CONTENT_BOX = 'conte... |
'use strict';
module.exports = function(Chart) {
var defaultConfig = {
hover: {
mode: 'single'
},
scales: {
xAxes: [{
type: 'linear', // scatter should not use a category axis
position: 'bottom',
id: 'x-axis-1' // need an ID so datasets can reference the scale
}],
yAxes: [{
type: '... |
var nconf = require('./lib/config');
var env = process.env.NODE_ENV || 'development';
exports[env] = nconf.get('db');
|
// Third Party Imports
import React from 'react'
import { render } from 'react-dom'
import 'pixi'
import 'p2'
import Phaser from 'phaser'
// Import root app
import App from './containers/App'
// Render the app into the DOM
render(<App />, document.getElementById('app'))
|
var test = require('tape')
var d3Convention = require('.')
function reset () {
/**
* Minimal reset.css for reliable `elm.offset*`
*/
document.body.parentElement.style.margin = 0
document.body.parentElement.style.padding = 0
document.body.style.margin = 0
document.body.style.padding = 0
// Reset the ... |
"use strict";
module.exports = function (t, a) {
a(t.length, 256, "Length");
t.forEach(function (data, index) {
a((data >= 30 && data <= 37) || (data >= 90 && data <= 97), true, "In range #" + index);
});
};
|
var controllerState = require('../controller/state.js');
// helps clean up server if master has left the watch video area
function clearMasterSession(req, res, next) {
if (req.session.isMaster) {
req.session.destroy();
controllerState.setVideoInfo(null);
setTimeout(next, 1000);
}
else {
next();
... |
import React from 'react'
import Base from '../Base'
import range from 'lodash.range'
import PropTypes from 'prop-types'
import { animate, animationName, defaults, preside } from '../util'
const defaultSize = 22
const Wave = ({ color, columns, columnWidth, gutterWidth, reverse, scaleYEnd, scaleYStart, size, ...props... |
// NPM dependencies
var express = require('express');
var bodyParser = require('body-parser');
var cors = require('cors');
// Setup mongoose
require('./models/db');
// Setup app
var app = express();
app.use( cors());
app.use( bodyParser.json());
// Homepage and assets
app.use('/', express.static(__dirname + '/publi... |
const chalk = require('chalk');
const config = require('../config/config');
// create a noop (no operation) function for when loggin is disabled
const noop = () => {};
// check if loggin is enabled in the config
// if it is, then use console.log, if not then noop
const consoleLog = config.logging ? console.log.bind(c... |
var types = require('../util/types');
// Load app modules
require('../controllers/app.controller.js');
require('../controllers/navbar.controller.js');
require('../directives/charts.directive.js');
require('../directives/fields.directive.js');
require('../directives/effects.directive.js');
require('../directives/valida... |
import n3Parser from "./n3/n3Parser.js";
import Graph from "./Graph.js";
import Triple from "./Triple.js";
import BlankNode from "./BlankNode.js";
import Literal from "./Literal.js";
import NamedNode from "./NamedNode.js";
import Profile from "./Profile.js";
/**
* Transforms a Turtle string into a graph a... |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
function getDescriptor (obj, key) {
return Object.getOwnPropertyDescriptor(obj, key)
}
module.exports = getDescriptor
|
var q = require('q'),
_ = require('lodash'),
common = require('@screeps/common');
function removeHidden(obj) {
for(var i in obj) {
if(i[0] == '_') {
delete obj[i];
continue;
}
if(_.isArray(obj[i])) {
obj[i].forEach(removeHidden);
cont... |
import Reflux from 'reflux'
import shortid from 'shortid'
import Actions from './Actions'
export default Reflux.createStore({
listenables: Actions,
init() {
this.list = [
{ id: shortid.generate(), new: false, text: 'Buy milk', complete: false },
{ id: shortid.generate(), new: false, text: 'Wash the dishes... |
export default {
button: {
fontFamily: 'Lucida Grande, Helvetica, Arial, Sans-Serif',
fontSize: '0.8rem',
fontWeight: 'bold',
outline: '0',
background: 'rgba(0,0,0,0.2)',
margin: '0 0 2px 0',
paddingTop: '10px',
paddingRight: '15px',
paddingBottom: '10px',
paddingLeft: '15px',
... |
var Lab = require('lab'),
lab = exports.lab = Lab.script(),
describe = lab.experiment,
before = lab.before,
it = lab.test,
expect = Lab.expect;
var Hapi = require('hapi'),
npme = require('../../services/npme'),
nock = require('nock'),
config = require('../../config');
var server;
befo... |
;
// license: https://mit-license.org
// =============================================================================
// The MIT License (MIT)
//
// Copyright (c) 2020 Albert Moky
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from 'styles/lib/base';
import Modal from 'js/components/modal';
import { Button } from 'js/components/ui';
class Application extends Component {
constructor() {
super();
this.openModal = this.openModal.bin... |
var searchData=
[
['loop_203',['loop',['../class_om_ota_class.html#a4855ce5dfc16f4455a35343931843585',1,'OmOtaClass']]]
];
|
/*
ResponsiveVoice JS v1.4.5
(c) 2015 LearnBrite
License: http://responsivevoice.org/license
*/
function garbage() {}
if("undefined"!=typeof responsiveVoice)garbage("ResponsiveVoice already loaded"),garbage(responsiveVoice);else var ResponsiveVoice=function(){var a=this;a.version="1.4.5";garbage("ResponsiveVoice r... |
'use strict';
var plato = require('../lib/plato');
/*
======== A Handy Little Nodeunit Reference ========
https://github.com/caolan/nodeunit
Test methods:
test.expect(numAssertions)
test.done()
Test assertions:
test.ok(value, [message])
test.equal(actual, expected, [message])
test.notEqua... |
const debug = require('ghost-ignition').debug('web:admin:controller');
const path = require('path');
const config = require('../../config');
const updateCheck = require('../../update-check');
const {logging} = require('../../lib/common');
/**
* @description Admin controller to handle /ghost/ requests.
*
* Every req... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
... |
'use strict';
// TODO: bring sanity to the initialization code.
var ImageDetailsView = Backbone.View.extend({
template: Handlebars.compile($('#body-content-template').html()),
events: {
'change #img-title': 'updateTitle',
'change #img-url': 'updateURL',
'change #img-notes': 'updateNote... |
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/checkbox';
const requireRaw = require.context('!raw-loader!./', false, /\/checkbox\.md$/);
export default function Page({ do... |
var express = require('express')
var app = express()
app.use(express.static('./'));
app.listen(3000, function () {
console.log('Example app listening on port 3000!')
});
|
/*
___
/. _\
.--.|/_/__
''.--o/___ \
/.'o|_o '.|
|/ |_| '
' |_|
|_|
__.|_|.__
/ |_| ``""-..__
. |_| (¯)__|¯|___'-._
| ´"'"`|¯(_-< / -_) \
\ |_/__/_\___| |
'-.__.--._ .-'
`--...--'`
*/
"use... |
'use strict';
/**
* @ngdoc function
* @name appstoreApp.controller:SbbNewCtrl
* @description
* # SbbNewCtrl
* Controller of the appstoreApp
*/
angular.module('appstoreApp')
.controller('SbbNewCtrl', function ($scope,$rootScope, naguBz, sbbService) {
$rootScope.breadcrumb = [
{
... |
angular.module('tasks', ['resources.tasks', 'services.crud'])
.config(['crudRouteProvider', function (crudRouteProvider) {
var sprintBacklogItems = ['Sprints', 'ProductBacklog', '$route', function (Sprints, ProductBacklog, $route) {
var sprintPromise = Sprints.getById($route.current.params.sprintId);
... |
import React from 'react';
const footerStyle={
marginTop: 50,
padding: 20,
}
export default class Footer extends React.Component{
render () {
return (
<div className="text-center" style={footerStyle}>
© CopyRight Node.js实战
</div>
)
}
}
|
import PropTypes from "prop-types";
import React, { Component } from "react";
import { Button, Grid } from "@material-ui/core";
import DeleteIcon from "@material-ui/icons/Delete";
import SeasonTabs from "./SeasonTabs";
class ShowInfo extends Component {
constructor(props) {
super(props);
this.st... |
define([
'lib/test',
'lib/maria',
'models/form',
'models/questions',
'models/question',
], function(test, maria, FormModel, QuestionsModel, QuestionModel) {
return new test.Suite("FormModel", {
setUp: function() {
this.form = new FormModel();
this.observer = {triggered: false, trigger: funct... |
(function(module) {
"use strict";
var util, factories = {};
/* Check if clientside or serverside */
if( typeof module === 'undefined') {
window.pagination = {};
window.exports = {};
module = {
exports : window.pagination
};
util = {
inherits : function(subc, superc) {
if(!superc || !subc) {
... |
var Thalassa = require('thalassa');
var env = process.env;
var server = new Thalassa.Server({
host : "0.0.0.0",
port : 5001,
apihost : "0.0.0.0",
apiport : 9000,
redisHost : env["REDIS_PORT_6379_TCP_ADDR"] || null,
redisPort : env["REDIS_PORT_6379_TCP_PORT... |
var searchData=
[
['label',['Label',['../classsol_1_1_label.html#a40cb06e1ad36d7d2d0d839e898f70808',1,'sol::Label::Label(Font &font)'],['../classsol_1_1_label.html#adef1a0923a9d83c400bcba7e1b83ffed',1,'sol::Label::Label(const std::string &fontName)'],['../classsol_1_1_label.html#ad30bbc37d2dd3ae6fae8c564916e3... |
version https://git-lfs.github.com/spec/v1
oid sha256:dd5505352d3080edda56e94091b857a5aead3bee3b1100cc95fb439013c199b4
size 95194
|
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
//globals
var di=0,
gi=0,
isDude=true,
Team;
//set the team name!
document.getElementById("teamName").innerText=teamName+ " Ball";
//compile our templates
var teamFn = doT.template(html("teamTmpl"));
var curBatter = doT.template(html("battingTmpl2"));
var peopleList=doT.template(html("selectButtons"));
func... |
$(document).ready(function() {
$("body").on("keypress", "#addGroupInput", function(e) {
$("#addGroupInput").val($("#addGroupInput").val().toLowerCase().replace(" ", "-"));
if (e.which === 13) {
e.preventDefault();
$(".addGroupInput").trigger("click");
}
});
$("body").on("click", ".addGroup... |
import React from 'react';
import ReactDOM from 'react-dom';
const Home = props => (
<div>
Home
</div>
);
export default Home; |
module.exports = config => {
config.set({
frameworks: ['jasmine'],
files: ['karma.entry.js'],
preprocessors: {
'karma.entry.js': ['webpack', 'sourcemap']
},
webpack: require('./webpack.config'),
webpackServer: {
noInfo: true
},
reporters: ['dots'],
... |
import { h, Text } from 'ink'
import PropTypes from 'prop-types'
const HelpUsageHeader = ({ appName }) =>
<div>
<Text bold>Usage:</Text> {appName} [commands] [flags]
</div>
HelpUsageHeader.propTypes = {
appName: PropTypes.string,
}
HelpUsageHeader.defaultProps = {
appName: '',
}
export default HelpUsage... |
/* exported timeAddManual, toggleStopwatch, cancelStopwatch */
/* exported toggleDeadlineForm, setDeadline, updateDeadline, deleteDependencyModal, cancelCodeComment, onOAuthLoginClick */
import './publicpath.js';
import Vue from 'vue';
import {htmlEscape} from 'escape-goat';
import 'jquery.are-you-sure';
import './ve... |
var QUNIT = true;
$(document).ready(function(){
var testfield = $('.simple-field'),
testfieldDataMask = $('.simple-field-data-mask'),
testfieldDataMaskWithReverse = $('.simple-field-data-mask-reverse'),
testfieldDataMaskWithClearIfNotMatch = $('.simple-field-data-mask-clearifnotmatch'),
... |
"use strict";
var tslib_1 = require("tslib");
function main(context, request) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
var obj, val, sub, stat, result, v;
return tslib_1.__generator(this, function (_a) {
obj = new TestClass(1, 2, 7);
val = obj.testMethod... |
const fns = require('./fns')
const lowerCase = /^[a-z]/
const titleCase = str => {
return str.charAt(0).toUpperCase() + str.substr(1)
}
/** remove this tag, and its descentents from the term */
const unTag = function (t, tag, reason, world) {
const isVerbose = world.isVerbose()
//support '*' for removing all ta... |
'use strict';
/*eslint-disable no-use-before-define*/
var common = require('./common');
var YAMLException = require('./exception');
var DEFAULT_FULL_SCHEMA = require('./schema/default_full');
var DEFAULT_SAFE_SCHEMA = require('./schema/default_safe');
var _toString = Object.prototype.toStrin... |
/*!
* Add to Homescreen v2.0.11 ~ Copyright (c) 2013 Matteo Spinelli, http://cubiq.org
* Released under MIT license, http://cubiq.org/license
*/
var addToHome = (function (w) {
var nav = w.navigator,
isIDevice = 'platform' in nav && (/iphone|ipod|ipad/gi).test(nav.platform),
isIPad,
isRetina,
isSafari,
is... |
function updateTier({state, services, output}) {
const selectedTierIndex = state.get('techTree.selectedTierIndex');
const selectedTier = state.get(`techTree.tiers.${selectedTierIndex}`);
services.http.patch('/API/tiers/' + selectedTier.id, {
courseDependencyList: selectedTier.courseDependencyList
})
.the... |
//Language: Slovenian
//Translator: ntoombs19
var filter_01 = "FA Filter Settings";
var filter_02 = "Instructions";
var filter_03 = "Created by";
var filter_04 = "Load Pages";
var filter_05 = "to";
var filter_06 = "Enable";
var filter_07 = "Hide All/None";
var filter_08 = "Scout Attack";
var filter_09 = "No losses";
va... |
export default function loadInfo(req, params) {
console.log(' i am in api call to save data', params);
const bhk = params[0];
const arealist = [
{
id: 1,
label: 'LUX',
value: '664',
bhk: '2'
},
{
id: 2,
label: 'PRE',
value: '665',
bhk: '3'
}
];
c... |
const compose = require('ramda/src/compose');
const omit = require('lodash/omit');
const prop = require('ramda/src/prop');
const Reselect = require('reselect');
const URL = require('urlHelpers');
const utils = require('../utils.js');
const { argsToObject } = utils;
const localeSelector = compose(
state => state.ge... |
var path = require('path');
var webpack = require('webpack');
var WebpackBuildNotifierPlugin = require('webpack-build-notifier');
module.exports = {
// devtool: 'eval',
// devtool: "eval-source-map",
devtool: "#inline-source-map",
entry: [
'webpack-dev-server/client?http://localhost:3030',
'webpack/hot... |
import { moduleForModel, test, skip } from 'ember-qunit';
import { manualSetup, make } from 'ember-data-factory-guy';
// setResolver(Ember.DefaultResolver.create({ namespace: 'aeonvera' }))
moduleForModel('host', 'Unit | Model | host', {
// Specify the other units that are required for this test.
needs: [
'mo... |
//https://github.com/slimjack/IWC-SignalR
(function (scope) {
var registeredProxies = {};
var isConnectionOwner = false;
var isSynchronized = false;
var isInitialized = false;
var deferredStartResult = $.Deferred();
var serverInvocationDeferredResults = {};
var lsPrefix = SJ.iwc.getLocalSto... |
(function (window, std, undefined) {
console.log("initialised");
console.log(self);
self.port.emit("get-preferences");
self.port.once("get-preferences", function (prefs) {
console.log("GOT", prefs);
} );
} )(this,
this.SortingCommon); |
/**
* Core module definition for the bowling application.
*/
angular.module('bowling.core', ['ngMaterial', 'ui.router', 'ngMdIcons']); |
import { createSelector } from 'reselect';
import { compareIndexByKey } from 'utils/utils';
const getSearch = (state, search) => search || null;
const getSDGs = state => state.sdgs || null;
const getTargets = state => state.data.targets || null;
const getGoals = state => state.data.goals || null;
const getDocuments = ... |
var webpack = require('webpack');
var helpers = require('./helpers');
/**
* Webpack Plugins
*/
var CopyWebpackPlugin = require('copy-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin;
/**
* Webpack Constants
*/
... |
module.exports = function (error) {
throw error;
};
|
/* jshint indent: 2 */
module.exports = function(sequelize, DataTypes) {
return sequelize.define('OA_Permissions', {
ID: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true
},
MenuID: {
type: DataTypes.INTEGER,
allowNull: false,
ref... |
/** @constructor */
ScalaJS.c.scala_Tuple2$mcCD$sp = (function() {
ScalaJS.c.scala_Tuple2.call(this);
this.$$und1$mcC$sp$f = 0;
this.$$und2$mcD$sp$f = 0.0
});
ScalaJS.c.scala_Tuple2$mcCD$sp.prototype = new ScalaJS.inheritable.scala_Tuple2();
ScalaJS.c.scala_Tuple2$mcCD$sp.prototype.constructor = ScalaJS.c.scala_T... |
import HangingMan from './HangingMan';
export default class HangingManUnconfirmed extends HangingMan {
constructor() {
super();
this.name = 'HangingManUnconfirmed';
}
logic(data) {
let isPattern = this.upwardTrend(data, false);
isPattern = isPattern && this.includesHammer(dat... |
/*!
* SlickQuiz jQuery Plugin
* http://github.com/QuickenLoans/SlickQuiz
*
* @updated December 18, 2010
*
* @author Julie Bellinson - http://www.jewlofthelotus.com
* @copyright (c) 2012 Quicken Loans - http://www.quickenloans.com
* @license MIT
*/
(function($){
$.slickQuiz = function(element, options) {
... |
'use strict';
// MODULES //
var isNumber = require( 'validate.io-number-primitive' ),
isArrayLike = require( 'validate.io-array-like' ),
isTypedArrayLike = require( 'validate.io-typed-array-like' ),
isMatrixLike = require( 'validate.io-matrix-like' ),
ctors = require( 'compute-array-constructors' ),
matrix = req... |
module.exports = { prefix: 'far', iconName: 'bold', icon: [384, 512, [], "f032", "M292 243.533c38.106-18.627 58.232-55.253 58.232-97.312 0-48.226-26.016-85.031-61.552-100.895C266.471 35.173 242.357 32 209.995 32H28c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h34.142v352H28c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 ... |
//Math.random() devuelve número aleatorio entre 0 y 1.
var numero = Math.random();
var str = ' MAYOR que 0,5';
if (numero <= 0.5) {
str = ' MENOR que 0,5';
}
console.log('\n' + numero + str + '\n');
|
export default [
{
inputs: [{ internalType: 'contract ENS', name: '_ens', type: 'address' }],
payable: false,
stateMutability: 'nonpayable',
type: 'constructor'
},
{
anonymous: false,
inputs: [
{ indexed: true, internalType: 'bytes32', name: 'node', type: 'bytes32' },
{
... |
$(document).ready(
function(){
$('#users_usernic').on('change',function(){ checkField(this,'Usernic'); });
$('#users_useremail_first,#users_useremail').on('change',function(){ checkField(this,'Useremail'); });
$('#users_usernic').keyup(function(){ checkField(this,'Usernic'); });
$('#users_use... |
System.register(['../foo'], function (exports, module) {
'use strict';
var foo;
return {
setters: [function (module) {
foo = module.default;
}],
execute: function () {
assert.equal( foo, 42 );
}
};
});
|
'use strict';
/**
* @ngdoc function
* @name magosApp.controller:AboutCtrl
* @description
* # AboutCtrl
* Controller of the magosApp
*/
angular.module('magosApp')
.controller('AboutCtrl', function ($scope) {
$scope.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
});
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.