code stringlengths 2 1.05M |
|---|
var example_8 = switcher.items({eventMethod: "mouseover"});
// Табы
example_8.addTabs('#tab_7 span', function () {
this.classList.add('tab_active');
}, function () {
this.classList.remove('tab_active');
});
// Блоки
example_8.addBlocks('#block_7 img', function() {
var
i=0,
that = this;
this.style.opacit... |
angular
.module('app')
.config(['$stateProvider', '$urlRouterProvider', '$ocLazyLoadProvider', '$breadcrumbProvider', '$authProvider',
function ($stateProvider, $urlRouterProvider, $ocLazyLoadProvider, $breadcrumbProvider, $authProvider) {
$urlRouterProvider.otherwise('/dash... |
/* eslint-disable jsx-a11y/anchor-is-valid */
import '../src/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogTitle from '@material-ui/core/DialogTitle';
import DialogContent from '@material-ui/c... |
/**
* IMG
* preFlash
*
* All functions related to img files
* management.
*/
// PACKAGES
const gulp = require("gulp");
const g = {
cached: require("gulp-cached"),
favicon: require("gulp-real-favicon"),
if: require("gulp-if"),
imagemin: require("gulp-imagemin"),
plumber: require("gulp-plumber"),
rena... |
/**
* Created by @axiat on 2017. 4. 10..
*/
// This script will keep the footer always at the bottom of the page
$(document).ready(function () {
var docHeight = $(window).height();
var footerHeight = $('#footer').height();
var footerTop = $('#footer').position().top + footerHeight;
if (footerTop < do... |
!function () {
'use strict';
var Class = require('ee-class')
, ORM = require('related')
, EventEmitter = require('ee-event-emitter')
, fs = require('fs')
, path = require('path')
, semver = require('semver')
, Promise = require('promise')
, async = require... |
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'components/tree-view';
const requireDemo = require.context('docs/src/pages/components/tree-view', false, /\.(js|tsx)$/);
const re... |
Router.map(function () {
this.route('home', {
path: '/', layoutTemplate: 'mainLayout'
});
this.route('hashtags', { path: '/admin', layoutTemplate: 'mainLayout' }, function () {
this.render('hashtags');
});
this.route('display', {
path: '/display', layoutTemplate: 'mainLayout... |
import React, { PropTypes } from 'react'
import { connect } from 'react-redux'
import { actions as userActions, USER_ENUM } from '../../redux/modules/UserReducer'
class AuthRequiredWrapper extends React.Component {
static propTypes = {
children: PropTypes.element.isRequired,
isAuthenticated: PropTypes.bool... |
GrandCentral.Dashboard = DS.Model.extend({
title: DS.attr('string'),
published: DS.attr('boolean')
}); |
function getMemoryList() {
var memoryList = [{
round: 1,
position: undefined,
valuee: undefined
},
{
round: 2,
position: undefined,
valuee: undefined
},
{
round: 3,
position: undefined,
valuee: undefined
},
{
round: ... |
/*
The MIT License (MIT)
Copyright (c) 2015 Los Andes University
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 rights
to use, copy, modify,... |
module.exports.parse = function (object) {
statement = "";
statement += String(object).toUpperCase() == "AND" ? " AND " : " OR ";
return statement;
};
|
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component, PropTypes } from 'react';
import { AppRegistry, NativeModules, StyleSheet, Text, View } from 'react-native';
import ActionExtensionScreen from './app/ActionExtensionScreen';
export default class ReactNat... |
TextVisApp.factory('dataService', ['$http', function ($http) {
}]); |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
var expect = chai.expect;
var Promise = require('bluebird');
var messages = require('../server/messages');
var Chat = require('../server/database.js');
describe('Chat Timing', function() {
before(function(done) {... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*
* @form... |
/* eslint-env node */
'use strict';
const assert = require('assert');
const fs = require('fs');
const {join} = require('path');
const ohm = require('../../packages/ohm-js');
const contents = fs.readFileSync(join(__dirname, 'csv.ohm'));
const g = ohm.grammar(contents);
const semantics = g.createSemantics().addOperat... |
/*
* ______ _____ _____ _ _____________ _________________ ____________
* | ___ \ _ / __ \| | / /_ _| ___ \ ___| ___| ___| | ___ \ ___ \
* | |_/ / | | | / \/| |/ / | | | |_/ / |__ | |_ | |_ | |_/ / |_/ /
* | /| | | | | | \ | | | /| __|| _| | _| | ___ \ ___ \
* | |\ \\ \_/ / \__/\... |
(function(){
'use strict';
/**
* jQuery UI date pciker range filter model
* @constructor
* @param {string} dataPath - DatePickerRangeFilter data-path attribute
* @param {string} dateTimeFormat
* @param {Date|string} prevDate
* @param {Date|string} nextDate
*/
jQuery.fn.jplist.ui.controls.DatePickerRangeF... |
const {PI} = Math
import SphericalMercator from './sphericalmercator'
import Transformation from './transformation'
class CRS {
constructor(opts) {
this.projection = new SphericalMercator()
this.tileSize = 256 + 256 * (opts.zoom % 1)
const earthRadius = 6378137
const scale = 0.5 / (PI * earthRadius);
thi... |
(function() {
var Walrus;
Walrus = (typeof exports !== "undefined" && exports !== null ? require('./walrus') : this).Walrus;
/**
* *:reverse*
* Reverses a string.
*
* Parameters: none
*
* Usage:
*
* {{ "hello" | :reverse }} // => "olleh"
*/
Walrus.addFilter('reverse', function(valu... |
ya.$onReady(function () {
"use strict";
var view = app.view.Bar.$create({
config: {
models: [
ya.$factory({
module: 'ya',
alias: 'Model',
namespace: 'likes',
data: {
count... |
(function ($, kv) {
var $fSetToggler = $('<a href="#" class="fSetToggler">advanced</a>');
/**
*
* @param event
* @context {ExpandableSet}
*/
function handleToggleClick(event) {
event.preventDefault();
event.data.expandableSet.expandableToggle();
}
/**
*
*/
kv.FormSet.prototype.expandable = fu... |
"use strict"
;(function(m) {
if (typeof module !== "undefined") module["exports"] = m()
else window.o = m()
})(function init(name) {
console.warn(
"Please switch to the `ospec` package to remove this warning and see " +
"the most recent features. Using the `ospec` bundled within Mithril.js " +
"is deprecated, an... |
version https://git-lfs.github.com/spec/v1
oid sha256:c06f2e9547bd4de53c941d51fe6cb23a056852096115e73799c03835b88d9b1f
size 63066
|
// fixtures/basic.fixture.html
var template = function (_swig,_ctx,_filters,_utils,_fn) {
var _ext = _swig.extensions,
_output = "";
_output += _filters["e"]((((typeof _ctx.foo !== "undefined" && _ctx.foo !== null) ? ((typeof _ctx.foo !== "undefined" && _ctx.foo !== null) ? _ctx.foo : "") : ((typeof foo !== "unde... |
'use strict';
var vkey = require('vkey');
var fromUnicode = require('./utext').fromUnicode;
// map virtual key to Unicode corresponding to trit-text, with modifiers
var _keymap = {
// vkey: normal, shifted, control, shift-control
A: ['a', 'A', '☺', ''],
B: ['b', 'B', '☻', ''],
C: ['c', 'C', '♥', ''],
D: ['d... |
module.exports = function isPrimitive(arg) {
return arg === null ||
typeof arg === 'boolean' ||
typeof arg === 'number' ||
typeof arg === 'string' ||
typeof arg === 'symbol' || // ES6 symbol
typeof arg === 'undefined';
}
|
import React, { Component } from 'react';
import {
Text,
View
} from 'react-native';
import styles from './style';
const Favorite = () => (
<View style={styles.container}>
<Text>
This is the Favorite page, I beg to be implemented
</Text>
</View>
);
export default Favorite; |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
// Include required modules
var prefs = require("../../../../lib/prefs");
var tabs = require("../..... |
this["templates"] = this["templates"] || {};
this["templates"]["Basic"] = (function() {
var frag;
function anonymous(data_0) {
var frag = document.createDocumentFragment();
var data = data_0;
var el0 = document.createTextNode("I'm a basic template, yippee!");
frag.appendChild(el0);
return frag;
}... |
$('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) {
// Avoid following the href location when clicking
event.preventDefault();
// Avoid having the menu to close when clicking
event.stopPropagation();
// Re-add .open to parent sub-menu item
$(this).parent().addClass('open... |
export let redditPost = function(state = {}, action) {
return state;
};
|
module.exports = {
publicPath: process.env.NODE_ENV === 'production'
? '/dist/'
: '/',
devServer: {
proxy: {
'/api/v1': {
target: 'http://localhost:8078',
secure: false
},
'/static/': {
target: 'http://localhost:8078',
secure: false
}
}
}
};
|
// Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
// This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
// The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
// The complete set of contributors may be found at http://p... |
import { gql, graphql } from 'react-apollo'
import persist from '../lib/persist'
import React from 'react'
import {
Button,
} from 'react-native'
const Logout = ({ logout }) => {
return (
<Button onPress={logout} title='LogOut'></Button>
)
}
const logout = gql`
mutation logout {
logout {
loggedOutAt
... |
import Em from 'ember';
import { test } from 'ember-qunit';
import startApp from '../helpers/start-app';
import config from 'dummy/config/environment';
var App;
module('Ember CLI Concat', {
setup: function() {
App = startApp();
},
teardown: function() {
Em.run(App, 'reset');
}
});
var checkTagExis... |
var PeerServer = require('peer').PeerServer
var Topics = require('./public/js/Topics.js')
var Hapi = require('hapi')
var server = new Hapi.Server({})
server.connection({
port: Number(process.env.PORT) || 8000
})
server.register(require('inert'), function (err) {
if (err) {
throw err
}
server.route({
... |
/* globals makeAuthRequest,Materialize,micromarkdown,cleanMarkdown */
/* jshint -W003 */ // ugh I'm done with rearranging
"use strict";
var drug, allDrugs, allConsumptions = [],
allExperiences;
var analyticsCount = 0;
var analyticsFinished = 0;
// just get jshint off our back. these are defined in their respective... |
import {log} from 'node-bits';
const select = (table, column) =>
`select max(${column}) from ${table}`;
const selectPostgres = (table, column) =>
`select max(${column}) from "${table}"`;
const resetPostgres = (table, column, max) =>
`alter sequence "${table}_${column}_seq" restart with ${max + 1}`;
const rese... |
'use strict';
module.exports = {
up: function (queryInterface, Sequelize) {
/*
Add altering commands here.
Return a promise to correctly handle asynchronicity.
Example:
return queryInterface.createTable('users', { id: Sequelize.INTEGER });
*/
return queryInterface.createTable(
... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2016 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* The LoadTexture component manages the loading of a texture into the Game Object and the changing of frames.
... |
/**
* Created by zhoujialin on 2016/5/4.
*/
const LinkedStateMixin = React.addons.LinkedStateMixin;
// 数据双向绑定
const Comp = React.createClass({
displayname: 'Comp',
mixins:[LinkedStateMixin],
getInitialState(){
return {
name:''
}
},
render(){
return <div>
... |
import Component from '@ember/component'
import layout from '../../templates/components/bs-table-pagination/table-row'
export default Component.extend({
layout,
tagName: 'tr'
})
|
import {ObserverLocator} from 'aurelia-binding';
import {HttpClient} from 'aurelia-fetch-client';
import breeze from 'breeze-client';
import {Q} from './promise-adapter';
import {BreezeObservationAdapter} from './observation-adapter';
import {AjaxAdapter} from './ajax-adapter'; //eslint-disable-line no-unused-vars
exp... |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');... |
'use strict';
angular.module('myApp.products', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/products', {
templateUrl: 'views/products/products-tpl.html',
controller: 'ProductsCtrl'
});
}])
.controller('ProductsCtrl', func... |
Array.prototype.splice = function(start, num) {
var additions = $A(arguments).slice(2);
var delta = additions.length - num;
var newlen = this.length + delta;
if (delta >= 0) {
this.length += delta;
}
for (var i = start + num + delta; i < newlen + delta + 1; i++) {
this[i] = this[i - delta];
}
for (var j =... |
const DEGREES_SYMBOL = '\u00B0';
const MINUTES_SYMBOL = "'";
function parseLatitude(latitude) {
return {
degrees: parseInt(latitude.substring(0, 2), 10),
minutes: parseInt(latitude.substring(2, 7), 10) / 1000.0,
direction: latitude[latitude.length - 1]
};
}
function parseLongitude(longitude) {
retu... |
import {Buttons} from '../game/input';
import {Menu, MenuPage, ButtonMenuItem, LabelMenuItem} from './menu';
import {DummyInputTarget, ProxyInputTarget} from '../player';
import StageSelectMenuPage from './stage-selection';
import React from 'react';
import {BabylonJS} from '../react-babylonjs';
import BABYLON from 'ba... |
version https://git-lfs.github.com/spec/v1
oid sha256:522e5fb03690b037ed9132d4318611bdd12b069343ae441a28118f819f94f2cf
size 678
|
!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.appstax=e()}}(function(){var define,module,exports;return (function e(t,n,r){functio... |
define('blog/app', [
'jquery',
'list'
], function($, List) {
'use strict';
var timeData = [
'<li>',
'<h4><span class="open">▼</span>2014</h4>',
'<ul>',
'<li class="item"><a href="http://ianli-sc.github.io/performanceInspector/">Performance Inspector... |
/**
* Это внутренний класс, который не должен использоваться приложением.
* @classdesc Box - это тип View, который умеет выбирать какие View показывать.
* @param {string} id
* @param {object} params
* @constructor
* @private
*/
ns.Box = function(id, params) {
this.id = id;
this.__setUniqueId();
this.... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { 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 ("val... |
// https://github.com/ed-lea/jquery-collagePlus
//= require jquery.collageplus/v0.3.3/jquery.collageplus.js |
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
// +---------------------------------------------------------------------------
// | SWAN [ $_SWANBR_SLOGAN_$ ]
// +---------------------------------------------------------------------------
// | Copyright $_SWANBR_COPYRIGHT_$
// +-... |
import OAuth2PasswordGrant from 'ember-simple-auth/authenticators/oauth2-password-grant';
export default OAuth2PasswordGrant.extend({
serverTokenEndpoint: 'http:///localhost:80/employees/admin'
// serverTokenEndpoint: 'http://localhost:80/intranet-api/admin'
}); |
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var ImageAssistant = React.createClass({
displayName: 'ImageAssistant',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: "M19 2H5c-1.1 0-2 .9-2 2... |
import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosIonicOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M425.5,134.8c4.7-5.9,7.5-13.5,7.5-21.6c0-19.2-15.6-34.9-34.8-34.9c-8.2,0-15.7,2.8-21.6,7.5c-34-24.2-75-37.8-... |
import { moduleFor, test } from 'ember-qunit';
moduleFor('controller:login/settings', 'Unit | Controller | login/settings', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
// Replace this with your real tests.
test('it exists', function(assert) {
let controller = t... |
import {
GET_USER_RECIPES,
GET_USER_RECIPES_ERROR,
DELETE_RECIPE,
DELETE_RECIPE_ERROR
} from '../../actions/actionTypes';
import getUserRecipe from '../../reducers/getUserRecipe';
describe('Test for getUserRecipe reducer should', () => {
it('set recipe when action of type GET_USER_RECIPES is called', () => ... |
import { Indicator, IndicatorInput } from '../indicator/indicator';
export class CrossInput extends IndicatorInput {
constructor(lineA, lineB) {
super();
this.lineA = lineA;
this.lineB = lineB;
}
}
export class CrossUp extends Indicator {
constructor(input) {
super(input);
... |
function quadraticEquation(args){
//ax^2 + bx + c = 0
let a = +args[0],
b = +args[1],
c = +args[2];
let x1,x2;
const discriminant = Math.pow(b,2) - 4 * a * c;
if(discriminant === 0){
x1 = x2 =(-b/(2 * a)).toFixed(2);
console.log('x1=x2=' + x1);
... |
"use strict";
/**
* Created by johan on 27/04/16.
*
* Should be in a directory 1 level up.
*/
var express = require("express");
var vhost = require("vhost");
var tls = require("tls");
var fs = require("fs");
// pass your own objects/apps or use cody.makeWebApp to generate them
// apps should be an application ... |
'use strict';
var _ = require('lodash');
var async = require('async');
var config = require('config');
var queue = require('./services/queue-service')(config);
var workers = require('./lib/workers');
var Message = require('./lib/message');
var process = function() {
queue.receiveMessage(function(err, data) {
i... |
args = Array.prototype.slice.call(args, 1);
// [0] = type, [1] = lib.jar [2] = blockX, [3] = classX
var File = java.io.File,
FileReader = java.io.FileReader,
FileInputStream = java.io.FileInputStream,
FRAMEWORK = args[0],
out = java.lang.System.out,
err = java.lang.System.err,
... |
(function() {
'use strict';
var logger = require('../my_modules/logHelper.js');
var common = require('../my_modules/common.js');
var edModel = require('../models/edModel.js');
var express = require('express');
var router = express.Router();
router.get('/account/regist', function(req, res, n... |
$("#toogle-wms").css("visibility", "visible");
//swir wms
var swirwms = L.tileLayer.betterWms("http://landsatfact-data-dev.nemac.org/lsf-cr-swir-allchange?AOI_ID=368", {
layers: 'swir-archiveMaskForForestCloud',
format: 'image/png',
transparent: true,
attribution: '<a href="http://www.landsatfact.com">Landsat... |
module.exports.init = function (db, words, callback) {
var batch = db.batch()
words.forEach(function (word) {
var key = word.length + '!' + word
batch.put(key, word)
})
batch.write(function (err) {
if (err)
callback(err)
else
callback(null)
})
}
module.exports.query = function ... |
import { makeIconComponent } from './utils/icon-wrapper'
import { MenuNav3 } from '@clair/icons'
export const IconMenuNav3 = /*@__PURE__*/ makeIconComponent({
name: 'CIconMenuNav3',
template: MenuNav3
})
|
import prop from "./prop";
import flip from "./flip";
/**
* Returns the value at the specified property.
* The only difference from `prop` is the parameter order.
*
* @func
* @memberOf R
* @see R.prop
* @category Object
* @param {Object} obj The object to query
* @param {String} prop The property name
* @ret... |
var Screen = function (element, settings) {
var screen = this;
var FPS = 0;
// All notes and lines will be stored in this variable and managed
// in key which represents index.
this.items = {};
// default screen settings
this.settings = {
width: 1120, // pixel
height: 630, // pixel
hitPosition: 0.4, // ... |
// tracknewcomments.js
// Copyright (c) 2017 Miles Bright, MIT License
// https://github.com/smilesbright/onewordeachbot
'use strict';
const snoowrap = require('snoowrap');
const jsonfile = require('jsonfile');
const requestParameters = {
client_id: process.env.CLIENTID,
client_secret: process.env.CLIENTSECRET,
u... |
/*!
* SeaUI: transition.js v1.0.0
* Copyright 2013-2014 chanh
* Licensed under MIT(https://github.com/seaui/transition/blob/master/LICENSE)
*/
define("seaui/transition/1.0.0/transition",["jquery/jquery/1.10.1/jquery"],function(a){function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTran... |
'use strict';
(function(){
var camera, scene, renderer;
var projector;
setup();
function setup(){
setupCanvas();
setupScene();
requestAnimationFrame(function animate(){
renderer.render(scene, camera);
requestAnimationFrame(animate);
});
}
function setupCanvas(){
camera =... |
const shell = require('shelljs');
const path = require('path');
console.log('Patch react-devtools-core');
const rdStandalone = path.join(
__dirname,
'../dist/node_modules/react-devtools-core/dist/standalone.js'
);
// Avoid logging from react-devtools-core
// log: connected, disconnected
// error: listening error ... |
'use strict';
describe('Controller: AboutCtrl', function () {
// load the controller's module
beforeEach(module('angularWeatherApp'));
var AboutCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
AboutCtrl... |
var memory__heap__arbitrary_8cpp =
[
[ "hryky_empty", "memory__heap__arbitrary_8cpp.html#a6c8720dea12e6fd18764e6f527183950", null ],
[ "hryky_explicit_instantiation", "memory__heap__arbitrary_8cpp.html#a5faec7b8f35865e03cfca1e00a47e4ef", null ],
[ "hryky::memory::heap::reduce< hryky::uint16_t >", "memory__h... |
var sage = require('../../../build/sage');
var Schema = sage.Schema;
var UserSchema = new Schema({
USER_ID: {
type: "number",
readonly: true
},
CREATED_AT: {
type: "timestamp",
readonly: true
},
USERNAME: {
type: "varchar"
},
POSTS: {
type: "association",
joinType: "hasMany",
... |
define(['views/attributes_view', 'views/attribute_view', 'views/topic_map_attribute_view'], function(AttributesView, AttributeView, TopicMapAttributeView){
var TopicHeaderView = AttributesView.extend({
ordinals: function(){
return this.model.constructor.headers;
},
items: function(){
var mode... |
"use strict";
define(['backbone','model/DomoticModelMapper', 'config'],
function(Backbone, DomoticModelMapper, config) {
return Backbone.Collection.extend({
url: config.rest.domoticItems,
model: function (attrs, options) {
return new (DomoticModelMapper(attrs['@type... |
var express = require('express');
var router = express.Router();
var childProcess = require('child_process'),
jav;
router.get('/', function(req, res, next) {
var idModel = req.query.idModel,
predResult;
jav = childProcess.exec('java -jar C:\\Users\\AegisLabs\\irfan-db\\Dropbox\\THESIS\\c0d3\\TwitterPr... |
// generator: babel-node
// adapted from kangax's tests
var key1 = {};
var key2 = {};
var weakmap = new WeakMap([[key1, 123], [key2, 456]]);
console.log (weakmap.has(key1) && weakmap.get(key1) === 123 &&
weakmap.has(key2) && weakmap.get(key2) === 456);
|
define(['app'],function(UniversalDesignBootstrap) {
UniversalDesignBootstrap.module('Routers.WizardModule', function(WizardModuleRouter, UniversalDesignBootstrap, Backbone, Marionette, $, _) {
// Marionette uses an AppRouter to drop in Controllers. Basically is Controller.method, i.e. '': 'showWizard' = Controller.... |
/**
* Backbone-tastypie.js 0.1
* (c) 2011 Paul Uithol
*
* Backbone-tastypie may be freely distributed under the MIT license.
* Add or override Backbone.js functionality, for compatibility with django-tastypie.
*/
(function( undefined ) {
"use strict";
// Backbone.noConflict support. Save local copy of Ba... |
'use strict';
angular.module( 'mmOrders', [] )
.provider( '$mmOrdersConfig', function() {
this.$get = function() {
return {
'itemFind': '/Shop/Parts/Search',
};
};
} )
.config( [
'$mmApiProvider',
function($mmApiProvider) {
$mmApiProvider.addRoute( 'website', 'shop', '/Shop' );
},
] )
.run... |
Session.setDefault('showGame', 'false');
UI.body.helpers({
showGame: function (state) {
return Session.equals('showGame', state);
}
}); |
var Service, Characteristic;
var apcUps = require("./snmp.js");
var ipaddress = require("./ipaddress");
var ups = new apcUps(ipaddress);
const DEF_MIN_TEMPERATURE = -100,
DEF_MAX_TEMPERATURE = 100,
DEF_TIMEOUT = 5000;
module.exports = function(homebridge) {
Service = homebridge.hap.Service;
Charac... |
'use strict';
System.register(['aurelia-pal', './aurelia-plugins-cookie-consent-config'], function (_export, _context) {
"use strict";
var PLATFORM, Config;
function configure(aurelia, configCallback) {
var instance = aurelia.container.get(Config);
if (configCallback !== undefined && typeof configCallba... |
"use strict";
function render() {
return React.createElement("div", {className: 'component'}, React.createElement("div", {className: 'component__title'}, "Title"), React.createElement("div", {className: 'component__footer'}, "Title"));
} |
let errorConstructors = {};
function generateErrorConstructor(options) {
function F(message) {
this.message = message || options.message;
this.code = options.code;
this.status = options.status;
this.name = options.name;
};
F.prototype = Error.prototype;
Object.defineProperty(F, 'name', {
... |
import React from 'react';
import { SubmitButton } from '../form-fields/submit-button.js';
export class CardSizeButton extends React.Component {
constructor(props) {
super(props);
this.updateSize = this.updateSize.bind(this);
};
updateCardSize(size) {
var cards = document.querySelector('.spell-card... |
'use strict';
var gulp = require('gulp');
var browserSync = require('browser-sync');
var runSequence = require('run-sequence');
gulp.task('reload', function() {
// runSequence('styles', 'ie8styles', 'ie7styles', 'views', 'images', 'js','scripts','copyfonts', 'watch',function(){
// });
console.log('reloadi... |
import verifyAndAssertMessages from "../../helpers/verifyAndAssertMessages";
describe("verify", () => {
it("arrow function support (issue #1)", () => {
verifyAndAssertMessages("describe('stuff', () => {});");
});
it("EOL validation (issue #2)", () => {
verifyAndAssertMessages(
'module.exports = "s... |
// All symbols in the `Zs` category as per Unicode v9.0.0:
[
'\x20',
'\xA0',
'\u1680',
'\u2000',
'\u2001',
'\u2002',
'\u2003',
'\u2004',
'\u2005',
'\u2006',
'\u2007',
'\u2008',
'\u2009',
'\u200A',
'\u202F',
'\u205F',
'\u3000'
]; |
var class_subclone_explorer_1_1_tree_traverse_delegate =
[
[ "TreeTraverseDelegate", "class_subclone_explorer_1_1_tree_traverse_delegate.html#af5e6a4a399fd6e4f0244c0517f044b30", null ],
[ "~TreeTraverseDelegate", "class_subclone_explorer_1_1_tree_traverse_delegate.html#a96b550503dc883a3512aea284630ae11", null ]... |
(function() {
angular.module('angular-linkto', []);
angular.module('angular-linkto').service('keymaster', function() {
return {
replaceKey: function(str, key, params) {
return str.replace(":" + key, params != null ? params[key] : void 0);
},
findKeys: function(str) {
return st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.