code stringlengths 2 1.05M |
|---|
var gulpConfig = function() {
var src = './src/';
var build = './build/';
var assets = build + 'assets';
var config = {
/**
* native files
*/
src: {
js: src + 'js/**/*.js',
allJade: src + '**/*.jade',
pageJade: src + '*.jade',
applicationSass: src + 'sass/application.s... |
/**
* Gentelella adopted theme scripts
*/
/* eslint-disable */
var CURRENT_URL = window.location.href.split('?')[0],
$BODY = $('body'),
$MENU_TOGGLE = $('#menu_toggle'),
$SIDEBAR_MENU = $('#sidebar-menu'),
$SIDEBAR_FOOTER = $('.sidebar-footer'),
$LEFT_COL = $('.left_col'),
$RIGHT_COL = $('.right_col'),
... |
/**
* @flow
* @module cartReducer
*
* @author Oleg Nosov <olegnosov1@gmail.com>
* @license MIT
*
* @description
* Redux reducer to operate with cart
*
*/
import { combineReducers } from "redux";
import products from "./cart/products";
import currency from "./cart/currency";
/**
* @function
* @description
... |
'use strict';
const chai = require('chai'),
Sequelize = require('../../../../index'),
expect = chai.expect,
Support = require(__dirname + '/../../support');
describe(Support.getTestDialectTeaser('Model'), () => {
describe('scopes', () => {
beforeEach(function() {
this.ScopeMe = this.sequelize.define... |
// No browsers as of this writing implement Fullscreen API without prefixes
// So we look for prefixed versions of each API feature.
const fullscreenEnabled = document.fullscreenEnabled || // Spec - future
document.webkitFullscreenEnabled || // (Blink/Webkit) Chrome/Opera/Edge/Safari
document.mozFullScreenEnabled |... |
/* Brazilian initialisation for the jQuery UI date picker plugin. */
/* Written by Leonildo Costa Silva (leocsilva@gmail.com). */
jQuery(function($){
$.datepicker.regional['pt-BR'] = {
closeText: 'Fechar',
prevText: '<Anterior',
nextText: 'Próximo>... |
var bodyParser = require('body-parser');
var express = require('express');
var methodOverride = require('method-override');
var RSVP = require('rsvp');
var logger = require('./utility/logger').createLogger('teksavvy-usage');
var TeksavvyClient = require('./lib/teksavvy-client');
var UsageController = require('./contr... |
var gameView = require('../view/gameView');
var Item = require('./Item');
var level = require('../level');
var TILE_HEIGHT = settings.tileSize.height;
var ANIMATION = [
assets.entity.item.life0,
assets.entity.item.life1,
assets.entity.item.life2,
assets.entity.item.life3,
assets.entity.item.life4,
assets... |
var mongoose = require('mongoose');
module.exports = mongoose.model('poll', {
pollName : {type : String, default: ''},
pollDesc : {type : String, default: ''},
pollStartTime : Date,
pollEndTime : Date,
pollInterval : Number,
isDeleted : {type : Boolean, default: false},
pollPublic : {type : Boolean, default: fa... |
import {
moduleFor,
test
} from 'ember-qunit';
moduleFor('route:locations', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
var route = this.subject();
assert.ok(route);
});
|
var ajax = require('../../utils/ajax');
var message = require('../../utils/message');
var formatWeather = function(local, weather) {
var weather = weather.data;
var str = 'ใ' + local +'ๅคฉๆฐใ\n\r\n\r';
for (var i in weather.forecast[0]) {
if (i == 'date') {
str += 'ใ' + weather.forecast[0]... |
// Right now this doesn't really do anything. It just wraps
// a net connection in case we want to do fancier stuff later.
var EventEmitter = require('events').EventEmitter,
net = require('net'),
Telnet;
Telnet = function (host, port) {
var self = this,
client;
client = net.connect({ host: host, port: port }, ... |
import React from 'react'
import Modal from './Modal'
const BLEND_MODES = [
'normal', 'multiply', 'screen', 'overlay', 'darken', 'lighten',
'color-dodge', 'color-burn', 'hard-light', 'soft-light', 'difference',
'exclusion', 'hue', 'saturation', 'color', 'luminosity'
]
class ColumnSettings extends React.Componen... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define({zoom:"Transfocare la",next:"Obiectul spa\u0163ial urm\u0103tor",previous:"Obiectul spa\u0163ial anterior",close:"\u00cenchidere",dock:"Doc",undock:"Anulare ... |
;(function(commonjs){
// Blacklist common values.
var BLACKLIST = [
"11111111111111"
, "22222222222222"
, "33333333333333"
, "44444444444444"
, "55555555555555"
, "66666666666666"
, "77777777777777"
, "88888888888888"
, "99999999999999"
];
var verifierDigit = function(numb... |
"use strict";
function Shader(vp, fp, names)
{
function compileShader(prog, type)
{
var shader = gl.createShader(type);
gl.shaderSource(shader, prog);
gl.compileShader(shader);
if (!gl.getShaderParameter(shader, gl.COMPILE_STATUS))
{
console.l... |
const fs = require('fs');
const http2 = require('http2');
const config = require('config');
const expressStaticGzip = require("express-static-gzip");
const path = require('path');
const compress = require('compression');
const expressGraphQL = require('express-graphql');
const schema = require('../schema');
const rout... |
'use strict'
const NullFactory = require('./null')
const Transient = require('../constitutors/transient')
class ClassFactory extends NullFactory {
constructor (key, constitutor0) {
// Alias defaults to the transient constitutor
const constitutor = constitutor0 || Transient.with([])
super(constitutor)
... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var ic_sentiment_dissatisfied = exports.ic_sentiment_dissatisfied = { "viewBox": "0 0 24 24", "children": [{ "name": "circle", "attribs": { "cx": "15.5", "cy": "9.5", "r": "1.5" } }, { "name": "circle", "attribs": { "cx": "8.5", "cy": "9.5"... |
import {blendValues} from '../validators/isBlendMode';
export default {
valid: [
...blendValues,
...blendValues.map(value => value.toUpperCase()),
],
invalid: ['superblend', 'blend-man'],
};
|
require.config({
baseUrl: 'scripts',
paths: {
backbone: '../../bower_components/backbone/backbone',
underscore: '../../bower_components/underscore/underscore',
underscoreString: '../../bower_components/underscore.string/lib/underscore.string',
jquery: '../../bower_components/jquery/dist/jquery',
... |
import React from 'react';
import ReactDataGrid from 'react-data-grid';
const DataGridBasic = React.createClass({
getInitialState() {
this.createRows();
this._columns = [
{ key: 'id', name: 'ID' },
{ key: 'title', name: 'Title' },
{ key: 'count', name: 'Count' } ];
return nu... |
import path from 'path';
import fs from 'fs';
import LocalStorage from '../../main/local-storage';
import {globalBeforeEach} from '../../__jest__/before-each';
describe('LocalStorage()', () => {
beforeEach(async () => {
await globalBeforeEach();
jest.useFakeTimers();
// There has to be a better way to r... |
const webpack = require('webpack');
const path = require('path');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const extractCSS = new ExtractTextPlugin('[name].css');
const BUILD_DIR = path.resolve(__dirname, 'build');
const APP_DIR = path.resolve(__dirname, 'src');
const STYLES_DIR = path.resolve... |
import {inject} from 'aurelia-framework';
import {BaseService} from './base-service';
import {CustomHttpClient} from '../lib/custom-http-client';
import {Contact} from '../lib/models/contact';
@inject(CustomHttpClient)
export class ContactService extends BaseService
{
constructor(httpClient) {
super(h... |
version https://git-lfs.github.com/spec/v1
oid sha256:1be67e1bed29cdf9d270af70d61350b8867dc9c1ad575f912afadb575690202e
size 12529
|
import PropTypes from 'prop-types';
import React from 'react';
const TwitterHandle = ({handle}) => <a href={`https://twitter.com/${handle}`}>{`@${handle}`}</a>;
TwitterHandle.propTypes = {
handle: PropTypes.string.isRequired,
};
export default TwitterHandle;
|
/**
* Created by petermares on 20/02/2016.
*/
(function() {
console.log("GitRunner booting!");
var settings = require('../settings');
var Game = new Phaser.Game(settings.display.width,
settings.display.height,
Phaser.AUTO,
... |
// utils / existsInArray
export let existsInArray = (v, arr) => {
return arr.some((k) => {
return k === v;
});
};
|
(function () {
'use strict';
angular
.module ('videoWorks')
.directive("videoWork", videoWork)
.directive ("viewVideoWork", viewVideoWork);
videoWork.$inject = ['$rootScope', '$http', '$timeout', '$mdDialog', '$mdMedia',
'$mdToast', '$sce', 'VideoWorks', 'PhotoWorks', 'VideoCo... |
module.exports = {
"env": {
jest: true
},
"parser": "babel-eslint",
"extends": ["standard", "standard-react"]
};
|
/* eslint max-len: "off" */
import template from "babel-template";
const helpers = {};
export default helpers;
helpers.typeof = template(`
(typeof Symbol === "function" && typeof Symbol.iterator === "symbol")
? function (obj) { return typeof obj; }
: function (obj) {
return obj && typeof Symbol ===... |
var constants = require('./constants');
var parseEvent = require('./parseEvent');
module.exports = function(parent, stream){
// parse out track header segment
stream.string('header', 4);
stream.tap(function(){
if (typeof this.vars.header === 'undefined')
return parent.emit('error', new Error('Failed t... |
/* */
(function(process) {
var assign = require("object-assign");
var babel = require("babel");
var babelDefaultOptions = require("../babel/default-options");
var babelOpts = babelDefaultOptions;
module.exports = {process: function(src, path) {
if (!path.match(/\/node_modules\//) && !path.match(/\/thir... |
var Travis = {
app: null,
start: function() {
Backbone.history = new Backbone.History;
Travis.app = new ApplicationController;
Travis.app.run();
},
trigger: function(event, data) {
Travis.app.trigger(event, _.extend(data.build, { append_log: data.log }));
}
};
if(!INIT_DATA) {
var INIT_DATA... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tmrm = require("azure-pipelines-task-lib/mock-run");
const path = require("path");
const mocks = require("./mockWebApi");
let rootDir = path.join(__dirname, '../../Tasks', 'TagBuild');
let taskPath = path.join(rootDir, 'tagBuild.js');
le... |
'use strict';
/**
* Implementation of $lte
* @see http://docs.mongodb.org/manual/reference/operator/query/lte/
*/
module.exports = function operation(model, update, options) {
return model[options.queryItem] <= update.$lte;
};
|
/*
* grunt-x-combine
* https://github.com/shadowmint/grunt-x-combine
*
* Copyright (c) 2014 doug
* Licensed under the MIT license.
*/
'use strict';
module.exports = function (grunt) {
// Tasks
require('matchdep').filterAll('grunt-*').forEach(function (x) {
console.log("Autoload: " + x);
... |
import { boolean } from 'type-func';
import { cancelAnimationFrame, requestAnimationFrame } from 'animation-frame-polyfill';
import { addElements, hasElement, removeElements } from 'dom-set';
import { createPointCB, getClientRect, pointInside } from 'dom-plane';
import mousemoveDispatcher from 'dom-mousemove-dispatcher... |
const fs = require('fs');
const EJSON = require('mongodb-extended-json');
class ExpImpUsers {
static get FILENAME_POSTFIX() {
return '_users.json';
}
static get MAPNAME_POSTFIX() {
return '_userMap.json';
}
static searchUser(allUserDoc, searchID) {
for (let i=0; i < allUser... |
/**
* User: adoanhuu
* Date: 03/05/11
*/
$(document).ready(function() {
$('#keywords').focus(function() {
$('#keywords').val('');
});
$('#gallery img.thumbnail').click(function() {
// Store main photo
var photo = $('#gallery img.photo')[0].src;
// Replace main photo by clicked thumbnail
... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
define(["app/app",
"adapters/ApplicationAdapter",
"ember"], function(App, ApplicationAdapter, Ember) {
// Adapter for sending data encoded as 'multipart/form-data' instead of JSON
// (for submitting forms that contain files)
App.FormDataAdapter = App.ApplicationAdapter.extend({
ajaxOptions: f... |
define(function (require, exports, module) {
'use strict';
var App = require('app');
// Create a new module.
var Overview = App.module();
Overview.picturefill = require('picturefill');
// Models.
Overview.Models = {};
Overview.Models.Index = Backbone.Model.extend({
defaults: ... |
/*
Tasks:
$ gulp : Runs the "js" and "css" tasks.
$ gulp js : Runs the "js" tasks.
$ gulp css : Runs the "css" tasks.
$ gulp watch : Starts a watch on the "js" and "css" tasks.
*/
const { parallel, series } = require('gulp');
const js = require('./gulp/js');
const css = require('./gulp/css');
/*
$ gulp
*... |
'use strict';
const swal = require('sweetalert');
const EditFilesCtrl = (app) => {
app.controller('EditFilesCtrl', ['$window', '$scope', '$rootScope', 'Upload', 'editFilesRESTResource', ($window, $scope, $rootScope, Upload, resource) => {
$scope.errors = [];
$scope.files = [];
$scope.filesToDele... |
import {
uuid
} from './utils/index';
import {
removeClasses,
height,
width,
outerHeight
} from './utils/css';
import {
isString,
isFunction
} from './utils/type';
import EventEmitter from './utils/eventEmitter';
import Autoplay from './components/autoplay';
import Breakpoint from './components/breakpoin... |
'use strict';
angular.module('myApp')
.controller('edit-EntidadCtrl', ['$scope','$location','datosEntidad','Execute','$route','$window', function($scope,$location,datosEntidad,Execute,$route,$window){
var NombreActual;
if ($route.current.params.idEntidad==0)
{
$scope.tiTulo = "Nueva Entidad";
$scope.buttonText... |
(function() {
window.FrimFram = {
isProduction: function() {
return window.location.href.indexOf('localhost') === -1;
},
wrapBackboneRequestCallbacks: function(options) {
var originalOptions;
if (options == null) {
options = {};
}
originalOptions = _.clone(options);
... |
var requireDir = require('require-dir');
requireDir('_tasks', { recurse: true });
|
var SpeedShifter;
(function (SpeedShifter) {
(function (Services) {
'use strict';
Services.CachePromiseProvider = function () {
var serviceProvider = this, defOptions = {}, cacheStore = {};
this.$get = [
'$q', '$cacheFactory', function ($q, $cacheFactory) {
... |
import React, {Component, PropTypes} from 'react';
import {reduxForm} from 'redux-form'
import Dialog from 'material-ui/Dialog';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
export const fields = [ 'name', 'description' ];
const validate = values => {
const error... |
export default {
demo: {
index: {
welcome: 'ๆฌข่ฟไฝฟ็จTaurus Desktop้กน็ฎๆจกๆฟ๏ผ',
'zh-CN': 'ไธญๆ็ฎไฝ',
'en-US': '็พๅผ่ฑ่ฏญ',
language: '่ฏญ่จ',
module: 'ๆจกๅ็คบไพ',
cloud: '็ ๅไบๅนณๅฐ็คบไพ',
osp: '่ฝๅๅผๅๅนณๅฐ็คบไพ'
},
cloud: {
portal: {},
login: {
name: '็จๆทๅ',
password: 'ๅฏ็ '
... |
// Generated by LiveScript 1.2.0
(function(){
var spec, ref$, forAll, sized, data, Int, compose, curry, partial, uncurry, uncurryBind, flip, wrap, id, x, slice$ = [].slice;
spec = require('brofist')();
ref$ = require('claire'), forAll = ref$.forAll, sized = ref$.sized, data = ref$.data;
Int = data.Int;
ref$ =... |
var gulp = require('gulp');
var config = require('../config').images;
gulp.task('images', function() {
return gulp.src(config.src)
.pipe(gulp.dest(config.dest));
}); |
๏ปฟ(function() {
"use strict";
angular
.module("editor")
.run(configureAuth);
configureAuth.$inject = ["authService", "$location", "$window"];
function configureAuth(authService, $location, $window) {
// checks whether access token present
if (!authService.getAccessToken... |
/*
* ๅบ้บ่ฏ่ฎบใ็น่ต้กต้ข.
**/
var app = getApp()
var config = require('../../config.js')
var util = require('../../utils/util.js')
var appManager = require('../../apimanagers/appmanager.js')
var shopManager = require('../../apimanagers/shopmanager.js')
var commentManager = require('../../apimanagers/commentmanager.js')
Page({
... |
"use strict";
var devices_directives_1 = require("./devices-directives");
exports.IsDesktop = devices_directives_1.IsDesktop;
exports.IsTablet = devices_directives_1.IsTablet;
exports.IsMobile = devices_directives_1.IsMobile;
exports.IsSmartTv = devices_directives_1.IsSmartTv;
exports.ShowItDevice = devices_directives_... |
"atomic component";
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var PubSub = require("pubsub... |
var markdown = require('markdown-it'),
gutil = require('gulp-util'),
through = require('through2');
var md = markdown({html:true})
.use(require('markdown-it-container'), 'gengo')
.use(require('markdown-it-container', 'table-reponsive'));
module.exports = function () {
return through.obj(f... |
/**
* Module dependencies.
*/
var EventEmitter = require('events').EventEmitter;
var _ = require('underscore')._;
/**
* Client.
*/
function Client(connParams) {
this.connParams = connParams;
this.connected = false;
this.lastError = null;
};
Client.prototype.__proto__ = EventEmitter.prototype;
Client.pro... |
'use strict';
/**
* Main Controller
*/
angular.module('basic')
.controller('MainCtrl', function () {
this.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
});
|
var async = require('async'),
landmark = require('landmark-serve'),
async = require('async'),
_ = require('underscore');
var Location = landmark.list('Location'),
Tour = landmark.list('Tour');
/**
* List Locations
* /api/locations/list for GET
*/
exports.list = function(req, res) {
Location.model.find(... |
/**
* Created by krakenboss on 2015-08-02.
*
* route to create new account.
*
*/
var http = require('./API/protocol');
var express = require('express');
var app = express();
var account = require('../model/account');
var protocol = require('./API/protocol');
var mail = require('../bin/mail');
app.post('/', fun... |
/**
* Created by JChhabda on 6/2/2016.
*/
var oViewDataClient =null ;
$(document).ready (function () {
oViewDataClient =new Autodesk.ADN.Toolkit.ViewData.AdnViewDataClient (
'https://developer.api.autodesk.com',
'https://whiting-turner-auth.herokuapp.com/auth'
) ;
$('#btnTranslateThisO... |
import Component from '@ember/component';
import layout from '../../../templates/components/bootstrap/simple-form/-controls';
export default Component.extend({
tagName: '',
layout,
});
|
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors'),
Article = mongoose.model('Article'),
_ = require('lodash');
/**
* Create a article
*/
exports.create = function(req, res) {
var article = new Article(req.body);
article.user = req.user;
consol... |
$('#post_register').on('click', e => {
const username = $('#reg_username').val()
const password = $('#reg_password').val()
$.ajax({
url:'/u/register',
type: 'post',
data: {
username: username,
password: password
},
success: result => {
console.log(result)
},
error: er... |
export { default } from 'ember-bootstrap-controls/components/freestyle-prop-types/-one-of'; |
import graphqlite from 'graphqlite'
import _ from 'lodash'
import Mapper from './mapper'
import Node from './node'
export default class App {
static Node = Node
mappers = []
// Process GraphQL and return response
async process(query, request, resolver) {
if (!resolver) throw 'No resolver callback provi... |
(function(ko){
// Wrap ko.observable and ko.observableArray
var methods = ['observable', 'observableArray'];
try {
ko.utils.arrayForEach(methods, function(method){
var saved = ko[method];
ko[method] = function(initialValue, options){
options = options || {};
var key = optio... |
/*jslint devel:true, browser:true */
/*global $, d3, google */
var DrawD3GoogleMapsGeoJSONChart = {};
DrawD3GoogleMapsGeoJSONChart.init = function (targetElement, mapElement, dataset, geojson) {
'use strict';
var map, max, styleFeature, data, dataSettlement, dataValue, i, j, jsonSettlement;
data = datase... |
$(document).foundation();
// BLOG ICON
$(window).scroll(function() {
var scroll = $(window).scrollTop();
if (scroll >= 110) {
$("#blog-icon").addClass("locked");
}
else {
$("#blog-icon ").removeClass("locked");
}
});
// SOCIAL BUBBLE OPEN/CLOSE
$('#twitter').click(functio... |
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import ExerciseSelectType from './ExerciseSelectType';
import { setEditedExerciseType } from '../../exercises/Actions';
/* eslint no-console: 0 */
const mapStateToProps = state => ({
exercises: state.exerciseTypes.list,
});
const mapD... |
'use strict'
const Pair = require('./pair')
class TextEditor {
constructor () {
this.inputStack = []
this.string = ''
}
createOperation (op, word) {
return new Pair(op, word)
}
append (input) {
if (typeof input === 'string' || input instanceof String) {
this.inputStack.push(this.create... |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here. For example:
config.language = 'es';
// config.uiColor =... |
import React from 'react';
import classNames from 'classnames';
import PropTypes from 'prop-types';
import MuiPaper from '@material-ui/core/Paper';
import { capitalize } from '@material-ui/core/utils/helpers';
import { withStyles } from '@material-ui/core/styles';
const styles = theme => ({
backgroundLight: {
ba... |
function decodeFusionJuncSpan(tokens, header) {
/*
Format:
0 #scaffold
1 fusion_break_name
2 break_left
3 break_right
4 num_junction_reads
5 num_spanning_frags
6 spanning_frag_coords
0 B3GNT1--NPSR1
1 B3GNT1--... |
var myapp = angular.module('app', [ 'angucomplete-alt', 'generalFilters' ]);
function answerController($scope, $http) {
// Variabelen
var self = this;
$scope.reverse = false;
$scope.selectedAnswer = {};
$scope.order = 'text';
$scope.answers = {};
$scope.questions = {};
$scope.curPage = 0;
$scope.pageSize = 10... |
/*
* Wegas
* http://wegas.albasim.ch
*
* Copyright (c) 2013-2021 School of Management and Engineering Vaud, Comem, MEI
* Licensed under the MIT License
*/
/**
* @fileoverview
* @author Maxence Laurent (maxence.laurent gmail.com)
*/
YUI.add('wegas-sendmail', function(Y) {
'use strict';
var Wegas = Y.We... |
import { INIT_PARTS_NUM } from '../constants/puzzle'
import { UPDATE_IMAGE_GRID_STATE } from '../constants/actionTypes'
export default (state = {
vn: INIT_PARTS_NUM,
hn: INIT_PARTS_NUM,
lineColor: null
}, action) => {
switch (action.type) {
case UPDATE_IMAGE_GRID_STATE:
return {
... |
//app.js
var util=require('utils/util.js')
App({
onLaunch: function () {
var that=this
// ่ทๅopenIdๅนถๆพๅ
ฅ็ผๅญ
wx.login({
success: res => {
if (!that.globalData.getOpenId){
wx.request({
url: 'https://api.beckbuy.com/api/openId/',
data:{
'code':res.code
}... |
var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var tools = require('./tools');
var ROOT_PATH = path.resolve(__dirname);
var BUILD_PATH = path.resolve(ROOT_PATH, 'build');
var APP_PATH = path.resolve(ROOT_PATH, 'app');
module.exports = {
entry: {... |
/*
* Copyright (c) Andrรฉ Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
const {
assertSame
} = Assert;
// 14.4.13 EvaluateBody: Invalid assertion in step 1
// https://bugs.ecmascript.org/show_bug.cgi?id=2640
// no crash
(func... |
var CILJS = require("../CilJs.Runtime/Runtime");
var asm1 = {};
var asm = asm1;
var asm0 = CILJS.findAssembly("mscorlib");
asm.FullName = "Exceptions.cs.ciljs, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null";/* A..ctor()*/
asm.x6000001 = function _ctor(arg0)
{
/* IL_00: ldarg.0 */
/* IL_01: ldstr Exc... |
define(['js/views/card/itemview',
'js/mtapi',
'js/commands',
'moment',
'moment.lang',
'cards/feedbacks/models/comments_model',
'hbs!cards/feedbacks/templates/reply'
],
function (CardItemView, mtapi, commands, moment, momentLang, Model, template) {
'use strict';
return CardItemView.... |
angular.module('ordercloud-assignment-helpers', [])
.factory('Assignments', AssignmentHelpers)
;
function AssignmentHelpers($q, Underscore, $state) {
return {
//getAssigned: getAssigned,
//getSelected: getSelected,
//getUnselected: getUnselected,
//getToAssign: getToAssign,
... |
import localstate from './localstate'
import statefull from './statefull'
import root from './root'
export default {
localstate,
statefull,
root
}
|
'use strict';
import { Rooms } from '../../api/rooms.js';
import { playState } from '../lib.js';
Template.play.onCreated(() => {
let templateInstance = Template.instance();
templateInstance.playState = playState;
const roomId = localStorage.getItem('roomId');
const userId = localStorage.getItem('userId');
te... |
var show = (function(){
var move = function(e) {
var DIRECTIONS = {
37: -1, // >
38: -1, // up
39: 1, // <
40: 1, // down
32: 1, // _
13: 1, // return
27: 'home', // esc
left: -1,
right: 1
};
if (dir = DIRECTIONS[e.which ||... |
var express = require('express')
var router = express.Router()
var assert = require('assert')
var session = require('express-session')
var secret = require('../config/secret.config')
var State = require('./state')
const pjson = require('../package.json');
// Routes
require('./stories')(router)
require('./users')(rou... |
import React from 'react'
import RadioGroup from 'react-ions/lib/components/Radio/RadioGroup'
import Button from 'react-ions/lib/components/Button'
import style from './style.scss'
const options = [
{
value: true,
label: 'Yes'
}, {
value: false,
label: 'No'
}
]
class ExampleRadioChecked extends ... |
export Textarea from './Textarea';
|
function test(chart) {
var point = chart.series[0].points[2],
offset = $(chart.container).offset();
// Set hoverPoint
chart.hoverSeries = point.series; // emulates element onmouseover
point.onMouseOver();
chart.pointer.onContainerMouseMove({
type: 'mousemove',
pageX: 310,
pageY: 300,
target: chart.cont... |
//Add watch window variables
expRemoveAll()
expAdd("fError", getNatural())
expAdd("fail", getNatural())
expAdd("pass", getNatural())
expAdd("Cla1Regs._MR0.i32", getNatural())
expAdd("Cla1Regs._MR0.f32", getNatural())
expAdd("Cla1Regs._MR0.f32", getHex())
expAdd("Cla1Regs._MR1.i32", getNatural())
expAdd("Cla1Regs._MR1.f... |
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var NotificationSimCardAlert = React.createClass({
displayName: 'NotificationSimCardAlert',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: "M18... |
// ==UserScript==
// @name Table to Markdown Copier
// @name:vi Chรฉp bแบฃng HTML qua dแบกng markdown
// @namespace https://github.com/hotmit/table-markdown-userscript
// @version 1.0.1
// @description Convert html table to markdown format
// @description:vi Chuyแปn bแบฃng html (table) qua dแบกng markdown.... |
import should from 'should';
import '../../utils/assertions.js';
import nock from 'nock';
import fs from 'fs-extra';
import scrape from 'website-scraper';
const testDirname = './test/functional/base/.tmp2';
describe('Functional: check it works', function() {
beforeEach(function () {
nock.cleanAll();
nock.disabl... |
(function() {
"use strict";
angular
.module('app.createHall')
.controller('CreateHallController', CreateHallController);
/* @ngInject */
function CreateHallController (hallService, $state, $rootScope) {
var ctrl = this;
ctrl.hall = {
ScreenX: 0,
... |
import { Light } from './Light';
import { DirectionalLightShadow } from './DirectionalLightShadow';
import { Object3D } from '../core/Object3D';
/**
* @author mrdoob / http://mrdoob.com/
* @author alteredq / http://alteredqualia.com/
*/
function DirectionalLight( color, intensity ) {
Light.call( this,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.