code stringlengths 2 1.05M |
|---|
var FileGenerator = require('./FileGenerator');
var Generator = require('./Generator');
var gen = new Generator({});
process.on('message', function(msg) {
if (msg.config) {
gen.config = msg.config;
gen.config.asset_path = gen.asset_path.bind(gen);
gen.config.asset = gen.asset.bind(gen);
}
if (msg.as... |
var express = require('express');
var app = express();
var server = require('http').createServer(app);
var io = require('socket.io')(server);
app.use(express.static(__dirname + '/node_modules'));
app.use(express.static('public'));
app.get('/', function(req, res,next) {
res.sendFile(__dirname + '/index.htm... |
test insert_final_newline
|
import React, {Component} from 'react'
import {bindActionCreators} from 'redux'
import {connect} from 'react-redux'
import RaisedButton from 'material-ui/RaisedButton';
import Paper from 'material-ui/Paper';
import TextField from 'material-ui/TextField';
import {
updateLoginFormField,
resetLoginForm,
doRe... |
describe('Knobicon', function() {
it("should exist", function() {
expect(typeof Knobicon).not.toBe("undefined");
});
describe('when called with missing required params', function() {
it('should throw error', function(){
expect(function(){Knobicon()}).toThrow();
expect(function(){Knobicon('im... |
var test = require('tap').test;
var format = require('util').format;
var dtest = require('./dtrace-test').dtraceTest;
test(
'firing JSON probe with too few arguments',
dtest(
function() {
},
[
'dtrace', '-Zqn',
'nodeapp$target:::p1{ printf("%s\\n%s\\n"... |
version https://git-lfs.github.com/spec/v1
oid sha256:9df868985a0d422a79eb85261ea45471116c664e34dedb889400d11e981d5c39
size 84376
|
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var expressValidator = require('express-validator');
var index = require('./routes/index');
var use... |
//=require core-min.js
//=require md5-min.js
var md5 = function(value) {
return CryptoJS.MD5(value).toString();
}
var global = {};
//=require ../node_modules/dateformat/lib/dateformat.js
(global);
var dateformat = global.dateformat;
var app = angular.module('myApp', []);
//=require helpers.js
//=require myEnte... |
'use strict';
const assert = require('assert');
const {onError, onValidCheck, validationMessage} = require('./log');
const {childPropExists,
childIsMandatoryString,
childIsFixedLengthString,
hasOnlyDigits, testDateFormat} = require('./util');
const checkChildAdmissionDate = (child) => {
const ... |
/**
* Hotdraw.js : RelativeLocator
*
* {Comments are copied from the Java Implementation of HotDraw}
*
* A locator that specfies a point that is relative to the bounds of a figure.
*
* @author Adnan M.Sagar, Phd. <adnan@websemantics.ca>
* @copyright 2004-2017 Web Semantics, Inc.
* @license http:... |
var crypto = require('crypto');
module.exports = function(defaultEncoding) {
//as per node 0.10.29 docs
var validDigests = {
'hex': true,
'binary': true,
'base64': true
};
var validEncodings = {
'ascii': true,
'utf8': true,
'utf16le': true,
'ucs2': true,
'base64': true,
'bin... |
// config/auth.js
// expose our config directly to our application using module.exports
module.exports = {
'facebookAuth' : {
'clientID' : '1502073733378616', // your App ID
'clientSecret' : 'f9cec0250dc4caf083f311d58ce67a77', // your App Secret
'callbackURL' : 'http://localhost:42... |
define([], function() {
"use strict";
var SectionsView = Backbone.View.extend({
initialize: function() {
},
events: {
'click .tabs li': function (e) {
var liIndex = $(e.currentTarget).index();
$('.sections li').removeClass('active');
$($('.sections li.info')[liIndex]).addClass('active');
... |
'use strict';
const wrap = (func) => {
let limit = 0;
let counter = 0;
let timer = null;
let fn = func;
const wrapper = (...args) => {
if (!fn) return;
if (limit && counter === limit) {
limit = 0;
counter = 0;
this.cancel();
return;
}
const res = fn(...args);
coun... |
require("./7.big.js");
require("./15.big.js");
require("./31.big.js");
require("./61.big.js");
if(Math.random())hello.world();test.a.b.c.d();x(1,2,3,4);var a,b,c,d,e,f;
if(Math.random())hello.world();test.a.b.c.d();x(1,2,3,4);var a,b,c,d,e,f;
if(Math.random())hello.world();test.a.b.c.d();x(1,2,3,4);var a,b,c,d,e,f;
if(... |
var express = require('express');
var path = require('path');
var bodyParser = require('body-parser');
var favicon = require('serve-favicon');
var logger = require('morgan');
var app = express();
var server = require('http').Server(app);
var io = require('socket.io')(server);
//app.use(favicon(__dirname + '/public/fa... |
const { range } = require('./utils')
function getSize(i) {
if(i < 4) {
return i
} else {
return i * 2
}
}
function getRandomVals(ranGen, n) {
return range(0, n).map((i) => ranGen(getSize(i)))
}
module.exports = {
getRandomVals,
getSize
}
|
import React from 'react';
export default function(props) {
var i = 0;
return (
<div>
<ul>
{
props.messages.map( msg => {
return (
<li key={ i++ }>
<b>{ msg.user.name }</b>: { msg.msg }
</li>
)
})
}
</ul>
</div>
);
}
|
'use strict';
var path = require('path');
var assert = require('assert');
var cssExclude = require('../lib/css-exclude');
var lessFixtures = require('./_helper').lessFixtures;
var sassFixtures = require('./_helper').sassFixtures;
var readTestFileSync = require('./_helper').readTestFileSync;
var parseTestFileSync = requ... |
(function(window){ 'use strict';
var ws = new window.SS((window.location.protocol === 'https:' ? 'wss':'ws')+'://'+window.location.host+'/socket'),
get = function(selector){
return document.querySelector(selector);
},
rand = function(min, max){
return Math.floor(Math.random() * (max - min + 1) + min);
},
abTo... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
View,
TextInput,
TouchableOpacity,
ImageBackground,
AsyncStorage,
ScrollView
} from 'react-native';
import styles from '../../componen... |
function CharacterTileBuilder(game, config) {
BaseTileBuilder.call(this, game, config);
}
CharacterTileBuilder.prototype = Object.create(BaseTileBuilder.prototype);
CharacterTileBuilder.prototype.build = function () {
this.characterSize = '20px';
this.font = 'Arial';
var tile = this.game.add.bitmapDat... |
'use strict'
const { getEnvAuth } = require('./index')
const { jiraFetch } = require('./jirafetch')
const auth = getEnvAuth()
async function myself () {
try {
const myself = await jiraFetch(auth).then((json) => { return json.name })
return myself
} catch (err) {
console.error('ERROR> Failed to log in... |
console.log('1/2/3/test.js')
|
'use strict'
var test = require('tape')
var pull = require('pull-stream')
var block = require('../')
test("don't pad, small writes", function (t) {
t.plan(2)
pull(
pull.values([
Buffer.from('a'),
Buffer.from('b'),
Buffer.from('c')
]),
block(16, {nopad: true}),
pull.through(fun... |
var SIM = (function(){
// Public members
var engine = {
activate: function(config){
console.log('LED SIMULATOR ACTIVATING...');
this.config = config || {};
if (Detector.webgl) {
init(config);
console.log('LED SIMULATOR ACTIVATED!');
} else {
console.error('WebGL ... |
Ext.define('CustomApp', {
extend: 'Rally.app.App',
requires: ['Rally.ui.tree.UserStoryTreeItem'],
componentCls: 'app',
layout: {
type: 'vbox',
align: 'stretch'
},
launch: function() {
var leftPanel = Ext.create('Ext.panel.Panel', {
id: 'leftcontainer',
bo... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _postcss = require('postcss');
var _postcss2 = _interopRequireDefault(_postcss);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function getImports(css) {
var imports = {};
css.e... |
function ajaxArtists() {
$('.resultsPanel').empty();
$('.resultsTitle').empty();
$('.resultsTitle').append('Artists');
$.get("/artists", function(data,status){
// alert("Data: " + JSON.stringify(data) + "\nStatus: " + status);
var i;
for(i in data) {
// console.log
var imgSrc;
if(data[i].Image... |
// Quartz.Input.Input
// require:core.util
// require:input.input
// require:input.keyboard
// require:input.pointer
(function () {
/**
* Olayı işleyicisi
* @constructor
*/
Input.Handler = function (event , element , original) {
var point;
/**
* olay pointera aitse,
... |
import {sepia, normalizeShaderModule} from '@luma.gl/shadertools';
import test from 'tape-catch';
test('sepia#build/uniform', t => {
normalizeShaderModule(sepia);
const uniforms = sepia.getUniforms();
t.ok(uniforms, 'sepia module build is ok');
t.equal(uniforms.amount, 0.5, 'sepia amount uniform is ok');
t.... |
'use strict'
const api = require('../adapters/api')
const file = require('../helpers/file')
const mysql = require('../adapters/mysql')
const logger = require('./logger')('service/category')
const _nodeCategoryMapping = []
function save (node) {
let parentCid
switch(node.parent_node_id) {
case 25:
// Al... |
// Ionic Starter App
// angular.module is a global place for creating, registering and retrieving Angular modules
// 'starter' is the name of this angular module example (also set in a <body> attribute in index.html)
// the 2nd parameter is an array of 'requires'
// 'starter.controllers' is foundb in controllers.js
an... |
// Copyright Joyent, Inc. and other Node contributors.
//
// 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, modi... |
'use strict';
const assert = require('assert');
const fixtures = require('../../lib/index.js');
const MongoClient = require('mongodb').MongoClient;
const url = 'mongodb://localhost:27017/test';
var db;
before(function (next) {
MongoClient.connect(url, function (err, _db) {
db = _db;
next();
});
});
after... |
/**
* Light(weight) lightbox plugin.
*/
(function($) {
$.fn.lightweight = function(options) {
var scrollTop = $(window).scrollTop();
var closeMe = typeof options == 'string' && options == 'close';
var opts = (closeMe) ? $.extend({}, $.fn.lightweight.defaults) : $.extend({}, $.fn.lightwei... |
class Peanut {
//Konstruktor
constructor() {
this.device = null;
this.onDisconnected = this.onDisconnected.bind(this);
}
//
request() {
let options = {
'filters': [{ 'name': 'SensePeanut' }],
'optionalServices': ['93cd3ce1-58d0-4757-8767-3a9e03511f43']
};
//Scan for a device with blu... |
'use strict';
var defaultEnvConfig = require('./default');
module.exports= {
db: {
uri: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || '127.0.0.1') + '/m',
options: {
user: '',
pass: ''
},
// Enable mongoose debug mode
d... |
// Nikita Kouevda
// 2014/04/19
Bot.register('nkouevda', function(board_state, player_state, move) {
var me = board_state.me;
var board = board_state.board;
var safe_dirs = board.safe_directions(me);
if (safe_dirs.length === 0) {
move(me.straight());
return;
}
var ordered_dirs = [
me.sharp_ri... |
//=============================================================================
// AltMenuScreen.js
//=============================================================================
/*:
* @plugindesc Alternative menu screen layout.
* @author Yoji Ojima
*
* @help This plugin does not provide plugin commands.
... |
if( typeof(Chartled) == 'undefined' ) Chartled = {};
Chartled.TimeKeeper = function( definition , chartles ) {
this._deserialize( definition , chartles );
};
Chartled.TimeKeeper.prototype = {
_deserialize: function( definition, chartles ) {
// We do not really want TimeKeeper intances to be re-configu... |
/* eslint-disable comma-dangle, no-param-reassign, no-unused-expressions, max-len */
require('~/gl_dropdown');
require('~/lib/utils/common_utils');
require('~/lib/utils/type_utility');
require('~/lib/utils/url_utility');
(() => {
const NON_SELECTABLE_CLASSES = '.divider, .separator, .dropdown-header, .dropdown-menu... |
import * as t from '@babel/types';
import { ast2Str } from '../utils';
import { ValidationError } from '../errors';
import { PO_PRIMITIVES } from '../defaults';
import { hasUsefulInfo } from '../po-helpers';
const { MSGSTR } = PO_PRIMITIVES;
const NAME = 'gettext';
function getMsgid(node) {
return node.arguments[0... |
module.exports = {
"keyframes": "snímky",
"animation": "animace",
"animation-name": "jméno-animace",
"animation-duration": "délka-animace",
"animation-timing-function": "průběh-animace",
"animation-delay": "zpoždění-animace",
"animation-iteration-count": "počet-opakování-animace",
"animation-direction":... |
define(function (require, exports, module) {
"use strict";
var $ = require('jquery'),
Backbone = require('backbone'),
App = require('app/app'),
UserModel = Backbone.Model.extend({
initialize: function(){
_.bindAll(this);
... |
/* global Metro */
(function(Metro, $) {
'use strict';
var Utils = Metro.utils;
var ValidatorFuncs = {
required: function(val){
if (Array.isArray(val)) {
return val.length > 0 ? val : false;
} else {
return Utils.isValue(val) ? val.trim() : fa... |
import _ from "lodash"
import { createWriteStream, existsSync } from "fs-extra"
import { parse, posix } from "path"
import kebabHash from "kebab-hash"
import { fixedPagePath } from "gatsby-core-utils"
import { IMMUTABLE_CACHING_HEADER } from "./constants"
import {
COMMON_BUNDLES,
SECURITY_HEADERS,
CACHING_HEADER... |
angular
.module('cms.products', ['ngRoute', 'cms.shared'])
.constant('_', window._)
.constant('products.modulePath', '/Cofoundry/Admin/Modules/Products/Js/');
angular.module('cms.products').config([
'$routeProvider',
'shared.routingUtilities',
'products.modulePath',
function (
$routeProvider... |
var elasticsearch = require('elasticsearch');
var Chance = require('chance');
var chance = new Chance();
var client = new elasticsearch.Client({
host: 'localhost:9200',
//log: 'trace'
});
var developers = [];
generateDevelopers(developers, 20);
function handleError(error) {
console.log("Error: " + JSO... |
import { allowAny } from './default-validators'
import { omit, pick, intersection } from './common'
export default function buildSchema (definition, contexts) {
const defaultSchema = fillDefaultProperties(definition)
const contextSchemas = Object.entries(contexts)
.reduce(
(acc, [ contextName, contextDe... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var Class = require('../../utils/Class');
var FileTypesManager = require('../FileTypesManager');
var JSONFile ... |
'use strict';
var utils = require('./e2e-tools');
var request = require('supertest');
var expect = utils.expect;
var promise = protractor.promise;
describe('SMS GH', function() {
before(utils.initDb);
after(utils.disconnectDropDb);
beforeEach(utils.resetDb);
beforeEach(utils.initAdmin.bind({}, 'asdfasdf'));
... |
describe(`Hot Reloading`, () => {
beforeEach(() => {
cy.visit(`/hot-reloading`).waitForRouteChange()
})
it.skip(`works for changes in queries in themes`, () => {
cy.exec(
`npm run update -- --file ../gatsby-theme-about/src/pages/hot-reloading.js --new-file scripts/new-file.js`
)
cy.getTest... |
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['408',"Tlece.Recruitment.Controllers Namespace","topic_000000000000018A.html"],['607',"StageQuestionVideoController Class","topic_0000000000000238.html"],['609',"Methods","topic_0000000000000238_methods--.html"],['61... |
import{openBlock,createElementBlock,normalizeClass,renderSlot}from"vue";var script={props:{size:{type:String,default:void 0},vertical:{type:Boolean,default:!1},justified:{type:Boolean,default:!1}}};function render(e,t,r,o,l,n){var i;return openBlock(),createElementBlock("div",{class:normalizeClass(((i={"btn-group":!r.v... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.17/esri/copyright.txt for details.
//>>built
define("esri/dijit/nls/Directions_he-il",{"dijit/form/nls/validate":{invalidMessage:"\u05d4\u05e2\u05e8\u05da \u05e9\u05e6\u05d5\u05d9\u05df \u05d0\u05d9\u05e0\u05d... |
(function () {
'use strict';
angular.module('xyz.socket.chat.interactions', [
'xyz.socket.chat.interactions.keyboard'
]);
})();
|
import Home from './containers/Home.react';
module.exports = {
path: '/home',
getComponent(location, cb) {
require.ensure([], require => {
cb(null, Home);
});
}
}
|
/*
* A modal for caching data
* Daemon processes will update the data, and the app will get teh data
*/
var mongoose = require('mongoose');
var Github = new mongoose.Schema({
date: {
type: Date,
unique: true,
default: Date.now,
trim:true
},
issues: {
type: Numb... |
/*global
ko, googleMaps, placesManager, wikipedia, Place, document, $
*/
/**
* Defines Knockout's view model.
*
* @param address The initial address where the map should be centered.
* @constructor
*/
var SearchViewModel = function(address){
"use strict";
var self = this;
self.searchValue = ko.obs... |
/*!
* froala_editor v3.2.2 (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... |
import React, { Component, PropTypes } from 'react'
import ReactDOM, { render } from 'react-dom'
import cx from 'classname'
import autobind from 'autobind-decorator'
export default class EndPhase extends Component {
constructor(props) {
super(props)
this.state = {}
localStorage.removeItem('display.gameC... |
function FollowAppsDirective() {
this.restrict = 'E';
this.templateUrl = 'ng_application/templates/components/follow_apps.html';
this.scope = { apps: '=' };
this.controller = 'FollowAppsController';
return this;
}
HolaApps.directive('followApps', FollowAppsDirective);
function FollowAppsControlle... |
search_result['4093']=["topic_00000000000009D1_events--.html","LoginRequestDto Events",""]; |
describe("ParseParenthesesExpression", () => {
const Namespace = require("rewire")("../../Exports.js")
const ParseParenthesesExpression = Namespace.__get__("ParseParenthesesExpression")
Namespace.__set__("ParseExpression", (tokens, startIndex, endIndex) => {
expect(tokens).toEqual("Test Child Token... |
{
"kind": 73,
"attributes": [],
"body": [
{
"kind": 49,
"attributes": [],
"name": {
"kind": 52,
"name": "foobar",
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 12
}
},
"st... |
var wa;
var timer=15;
$(document).ready(function(){
setInterval(function(){ myTimer() }, 1000);
setTimeout(function(){wrongAnswer();},15000);
});
function myTimer() {
timer=timer-1;
document.getElementById("qid").innerHTML = timer;
}
function wrongAnswer(){
getWrongAnswer();
document.getElementById("wron... |
'use strict';
var express = require('express');
var app = express();
var bodyParser = require('body-parser');
// BodyParser allows us to get data out of URLs
app.use(bodyParser.urlencoded({extended: true}));
app.use(bodyParser.json());
// Add in the routes
require('./routes')(app);
// Start the server
app.listen(80... |
/*!
* DevExtreme (dx.messages.nl.js)
* Version: 21.1.4 (build 21181-0313)
* Build date: Wed Jun 30 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
! function(root, factory) {
if ("function" ... |
/*!
* DevExtreme (dx.messages.sv.js)
* Version: 20.2.8 (build 21181-0330)
* Build date: Wed Jun 30 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
! function(root, factory) {
if ("function" ... |
/**
* @license Highstock JS v9.3.3 (2022-02-01)
*
* Indicator series type for Highcharts Stock
*
* (c) 2010-2021 Wojciech Chmiel
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
mo... |
import"./index-76f02c55.js";import t from"./input-2d1b2225.js";export default class extends t{static get params(){return{tag:"textarea"}}}
|
"use strict";
exports.__esModule = true;
exports.handleAck = handleAck;
exports.handleRequest = handleRequest;
exports.handleResponse = handleResponse;
var _src = require("zalgo-promise/src");
var _src2 = require("cross-domain-utils/src");
var _src3 = require("belter/src");
var _conf = require("../../conf");
var ... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(require("react"));
/**
* @ignore - internal component.
*/
const StepperContext = /*... |
/*
Highcharts JS v9.0.0 (2021-02-02)
(c) 2009-2019 Torstein Honsi
License: www.highcharts.com/license
*/
(function(m){"object"===typeof module&&module.exports?(m["default"]=m,module.exports=m):"function"===typeof define&&define.amd?define("highcharts/modules/series-label",["highcharts"],function(u){m(u);m.Highchar... |
export { B as Behavior, V as CONTEXT, a5 as CUSTOM_UNITS, a3 as FLEX_GAP_SUPPORTED, O as NuAction, M as NuBase, L as Nude, a6 as ROOT_CONTEXT, a4 as STATES_MAP, a0 as assign, X as behaviors, T as contrast, c as deepQuery, d as deepQueryAll, L as default, $ as define, P as elements, Z as helpers, a2 as hue, I as icons, ... |
(function () {
'use strict';
var expect;
if(typeof window === 'object' && window.expect) {
expect = window.expect;
}
else {
expect = require('chai').expect;
}
describe('Protolib.object.implements', function () {
before(function () {
if(typeof window !== ... |
/* gettext library */
var catalog = new Array();
function pluralidx(count) { return (count == 1) ? 0 : 1; }
function gettext(msgid) {
var value = catalog[msgid];
if (typeof(value) == 'undefined') {
return msgid;
} else {
return (typeof(value) == 'string') ? value : value[0];
}
}
function ngettext(s... |
require('../../support');
var expect = require('chai').expect;
var schemaLinkRewriter = require('../../../lib/http/schema-link-rewriter');
describe('schemaLinkRewriter', function() {
var body;
var baseUrl = 'http://example.org';
var originalBody;
beforeEach(function() {
originalBody = {};
... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define({"esri/identity/nls/identity":{lblItem:"elemento",title:"Iniciar sesi\u00f3n",info:"Inicie sesi\u00f3n para acceder al elemento en {server} {resource}",oAut... |
(function () {
'use strict';
var
links = document.querySelectorAll('.topics a'),
i = 0, t = links.length,
simplifyPath = function (path) {
return path.replace('/topics/', '').replace('/', '');
},
isLocal = function (link) {
return (link.host === window.location.host);
},
isV... |
// TODO: Strict mode
"use strict";
// TODO: Wrap this file's code in an immediately invoked function expression
(function(){
var copyOwnProperties = function (from, to) {
for (var propertyName in from) {
if (from.hasOwnProperty(propertyName)) {
to[propertyName] = from... |
private var mat : Material;
var upMode : boolean;
function Start() {
mat = GetComponent(MeshRenderer).material;
mat.mainTextureScale.x = 1;
mat.mainTextureScale.y = .1;
}
function Update() {
transform.localScale = Vector3.one * Mathf.Max(.5, Mathf.Min(10, Vector3.Distance(transform.position, Camera.main.transform... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.6.2_A2.1_T2;
* @section: 11.6.2;
* @assertion: Operator x - y uses GetValue;
* @description: If GetBase(x) is null, throw ReferenceError;
*/
//CHECK#1
try... |
/* eslint-disable */
var path = require('path');
var webpack = require("webpack");
module.exports = {
entry: [
"./src/index.js"
],
output: {
path: __dirname + '/build/',
filename: 'bundle.js',
publicPath: '/build/',
library: "akkad",
libraryTarget: "umd"
... |
//check if value is provided, otherwise return false
//needed for custom fields which if not set initially will be null
return (args.value) ? args.value : false;
|
/**
* 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.
*
* @generated SignedSource<<1c72958d4edcd0d33abca3e7f0a3c3a9>>
* @flow
* @lightSyntaxTransform
* @nogrep
*/
/* eslint-disable ... |
/**
* PhysicsJS v0.7.0 - 2015-06-19
* A modular, extendable, and easy-to-use physics engine for javascript
* http://wellcaffeinated.net/PhysicsJS
*
* Copyright (c) 2015 Jasper Palfree <jasper@wellcaffeinated.net>
* Licensed MIT
*/
// ---
// inside: src/intro.js
(function (root, factory) {
if (typeof export... |
'use strict';
module.exports = function(url){
return new Promise(function(resolve, reject){
var xhr = new XMLHttpRequest();
xhr.open('GET', url);
xhr.addEventListener('load', function(){
if(xhr.status < 400)
resolve(JSON.parse(xhr.responseText));
else... |
/**
* @Object {Object} axboot.call
*/
/**
* 여러개의 AJAX콜을 순차적으로 해야 하는 경우 callback 지옥에 빠지기 쉽다. `axboot.call & done`은 이런 상황에서 코드가 보기 어려워지는 문제를 해결 하기 위해 개발된 오브젝트 입니다
* @method axboot.call
* @example
* ```js
* axboot
* .call({
* type: "GET", url: "/api/v1/programs", data: "",
* callback:... |
// Nothing here yet |
version https://git-lfs.github.com/spec/v1
oid sha256:e1b309bcc220dc5b698d66f0253850492da6812a455d9ec303be7362a73d7fa1
size 4745
|
/*
* Showup.js jQuery Plugin
* http://github.com/jonschlinkert/showup
*
* Copyright (c) 2013 Jon Schlinkert, contributors
* Licensed under the MIT License (MIT).
*/
(function( $ ) {
$.fn.showUp = function(ele, options) {
options = options || {};
var target = $(ele);
var down... |
/**
* @author Pedro Sanders
* @since v1
*
* Unit Test for the "Restful Data Source"
*/
import RestfulDataSource from 'data_api/restful_datasource'
import GatewaysAPI from 'data_api/gateways_api'
import { Status } from 'core/status'
import TestUtils from 'data_api/test_utils.js'
import getConfig from 'core/config_u... |
// ==UserScript==
// @name development auto auth for supro
// @author olecom
// @namespace supro
// @description supro userman app module auto auth; setup: localStorage['supro.user' || 'supro.role' || 'supro.pass']; defaults `olecom:developer.local:pass`
// @match http://localhos... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define('localforage', ['module', 'exports', './drivers/indexeddb', './drivers/websql', './drivers/localstorage', './utils/serializer', './utils/promise', './utils/executeCallback', './utils/executeTwoCallbacks', './utils/include... |
// Game: Two player grid based game where each player tries to burn down the other player's buildings. Let it burn.
// DO NOT MODIFY THIS FILE
// Never try to directly create an instance of this class, or modify its member variables.
// Instead, you should only be reading its variables and calling its functions.
cons... |
var markdown = require('node-markdown').Markdown;
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
gru... |
/* eslint-disable */
const should = require('should');
const fs = require('fs');
const path = require('path');
const Vinyl = require('vinyl');
const getStylesheetList = require('list-stylesheets');
const getHrefContent = require('../index');
function getFile(filePath) {
return new Vinyl({
path: path.resol... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.