code stringlengths 2 1.05M |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.dotPowDependencies = void 0;
var _dependenciesDenseMatrixClass = require("./dependenciesDenseMatrixClass.generated");
var _dependenciesEqualScalar = require("./dependenciesEqualScalar.generated");
var _dependenciesMatrix = requir... |
import { combineReducers } from 'redux';
import user from './user';
import modals from './modals';
import navbar from './navbar';
const allReducers = combineReducers({
user,
modals,
navbar,
});
export default allReducers;
|
/* PlayerManager.js
KC3改 Player Manager
Manages info about the player and all its holdings
Includes HQ, Fleets, Docks, LandBases
Does not include Ships and Gears which are managed by other Managers
*/
(function(){
"use strict";
window.PlayerManager = {
hq: {},
consumables: {},
fleets: [],
base... |
/**
Demo script to handle the theme demo
**/
var Demo = function () {
// Handle Theme Settings
var handleTheme = function () {
var panel = $('.theme-panel');
if ($('body').hasClass('page-boxed') === false) {
$('.layout-option', panel).val("fluid");
}
$('.sidebar-o... |
var Endian = {
BIG_ENDIAN: 'bigEndian',
LITTLE_ENDIAN: 'littleEndian'
};
|
IFEmailField = IF.extend(IFFormComponent, function(uniqueId, bindingName) {
if (! this.register(uniqueId, bindingName)) {
console.log("No email field found with id "+uniqueId);
}
},
{
hasValidValues: function(c) {
console.log("Validating email field with value " + c.value());
... |
import React from 'react';
export default props => {
return (
<svg
height="24"
viewBox="0 0 24 24"
width="24"
xmlns="http://www.w3.org/2000/svg"
>
<path
strokeWidth="0.2"
strokeLinejoin="round"
d="M 9.99936,3.99807L 3.99936,3.99807C 2.89436,3.99807 2.0093... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Article Schema
*/
var ArticleSchema = new Schema({
created: {
type: Date,
default: Date.now
},
title: {
type: String,
default: '',
trim: true,
required: 'Title cannot be blank'
},
cont... |
import 'jquery';
// bootstrap jQuery plugins
import 'bootstrap-sass/assets/javascripts/bootstrap/affix';
import 'bootstrap-sass/assets/javascripts/bootstrap/alert';
import 'bootstrap-sass/assets/javascripts/bootstrap/dropdown';
import 'bootstrap-sass/assets/javascripts/bootstrap/modal';
import 'bootstrap-sass/assets/j... |
'use strict';
var should = require('should'),
request = require('supertest'),
path = require('path'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
Meal = mongoose.model('Meal'),
express = require(path.resolve('./config/lib/express'));
/**
* Globals
*/
var app, agent, credentials, user,... |
const solo = require('./lib/index');
const options = {
host: '127.0.0.1',
port: 6379,
ttl: 7000,
ping: 3000,
interval: 5000
};
solo('process1', options, (error, worker) => {
console.log('Doing process 1');
setTimeout(() => worker.done(), 2000);
});
|
/* eslint-disable max-len */
import axios from 'axios';
const hostname = 'http://localhost:8080/';
|
'use strict';
module.exports = {
'#': require('./#'),
custom: require('./custom'),
isError: require('./is-error'),
validError: require('./valid-error')
};
//# sourceMappingURL=index-compiled.js.map |
version https://git-lfs.github.com/spec/v1
oid sha256:9193cfa133c0676a829520d7c05df85aafd1a5eeaad6999cb684e977d68f2795
size 1547
|
var Errors, SubContent;
Errors = require("./errors");
module.exports = SubContent = (function() {
function SubContent(fullText) {
this.fullText = fullText != null ? fullText : "";
this.text = "";
this.start = 0;
this.end = 0;
}
SubContent.prototype.getInnerLoop = function(templaterState) {
... |
"use strict";
/*global $:false */
// http://stackoverflow.com/a/210733/2397542 - jQuery center function from Tony L.
jQuery.fn.center = function () {
this.css("position", "fixed");
this.css("top", Math.max(0, (($(window).height() - this.outerHeight()) / 2) + $(window).scrollTop()) + "px");
this.css("left"... |
/** @jsx jsx */
import { Editor } from 'slate'
import { jsx } from '../../..'
export const run = editor => {
Editor.setNodes(editor, { key: true }, { match: 'inline' })
}
export const input = (
<editor>
<block>
<text />
<inline>
<anchor />
word
</inline>
<focus />
... |
// 有空改成 MVC 的
define('options', function(exports, module) {
// 用户实际存下来的 options 数据
var user_options = {};
// 默认选项
// 展示时先 sort_by_category 然后再按 category 分别显示
var DEFAULT_OPTIONS = {
/*
"font-family": {
"category": "界面",
"description": "默认字体",
"val... |
/*
* Aconite Readiness Notification Utilities
* http://github.com/colinbdclark/aconite
*
* Copyright 2017, Colin Clark
* Distributed under the MIT license.
*/
(function () {
"use strict";
fluid.defaults("aconite.readinessResponder", {
gradeNames: "fluid.modelComponent",
readinessEventNa... |
app.controller('EditTownAsAdminController', ['$scope', '$modalInstance', 'town',
function($scope, $modalInstance, town) {
$scope.town = angular.copy(town);
$scope.edit = function(town) {
$modalInstance.close(town);
};
$scope.cancel = function() {
$modalInstance.dismiss('cancel');
};
}
]) |
$(document).ready(function() {
$('#bg').blurjs({
source: 'body',
radius: 10,
overlay: 'rgba(255, 255, 255, .5)'
});
});
var _paq = _paq || [];
_paq.push(["trackPageView"]);
_paq... |
/*
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties#Polyfill
*/
if (!Object.defineProperties) {
Object.defineProperties = function(object, props) {
function hasProperty(obj, prop) {
return Object.prototype.hasOwnProperty.call(obj, prop);
}
f... |
function MeteroitSpritesPool() {
this.createBrownMeteroits();
this.createGreyMeteroits();
}
////// Brown
MeteroitSpritesPool.prototype.borrowBrownMeteroit = function () {
return this.brownMeteroits.shift();
};
MeteroitSpritesPool.prototype.returnBrownMeteroit = function(sprite) {
this.brownMeteroits.push(sprite... |
/**
* Problem: https://leetcode.com/problems/valid-parenthesis-string/description/
*/
/**
* @param {string} s
* @return {boolean}
*/
var checkValidString = function(s) {
let left = 0, change = 0, mark = 0, right = 0;
for (let i = 0; i < s.length; ++i) {
if ('(' === s[i]) {
++left;
} else if ('*'... |
/*!
* node-rcon - examples/stdio.js
* Copyright(c) 2012 Justin Li <j-li.net>
* MIT Licensed
*/
/*
* This example reads commands from stdin and sends them on enter key press
* You need to manually `npm install keypress` for this example to work
*/
var Rcon = require('../node-rcon');
var conn = new Rcon('localh... |
var webpack = require('webpack');
module.exports = {
entry: './src/js/app.jsx',
output: {
filename: 'components.js',
path: './assets/js',
},
module: {
loaders: [
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel'
}
]
},
externals: {
... |
'use strict'
var render = require('../../../render')
render(
{
src: __dirname + '/../../../src/commonJS/*.js',
separators: true
},
__dirname + '/readme.md'
)
|
/*!
* Quill Editor v1.3.6
* https://quilljs.com/
* Copyright (c) 2014, Jason Chen
* Copyright (c) 2013, salesforce.com
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' &&... |
(function () {
'use strict';
define(['app'], function (app) {
app.controller('robotCtrl', robotCtrl);
robotCtrl.$inject = ['$location','$rootScope'];
function robotCtrl($location,$rootScope) {
/* js hint valid this: true*/
var vm = this;
vm.location ... |
export { default } from 'ember-powered-datepicker/components/powered-datepicker-nav'; |
/**
* THIS FILE IS AUTO-GENERATED
* DON'T MAKE CHANGES HERE
*/
import { ComplexDependencies } from './dependenciesComplexClass.generated';
import { typedDependencies } from './dependenciesTyped.generated';
import { createSqrt } from '../../factoriesAny.js';
export var sqrtDependencies = {
ComplexDependencies: Comp... |
'use strict';
var ext = require('./.gruntExt');
var iwc = require('./.gruntIwc').load(ext);
module.exports = function (grunt) {
// Common
ext.configure({
clean: {
component: ['dist/*']
},
connect: {
demo: {
options: {
port: 300... |
/** This converts to keycodes to real characters. Language dependency included. Calls executeKey to show the keys in effect **/
function action_handleKeyCode(keyCode,e) {
console.log("KC2:"+keyCode);
console.log(keyCode);
return false;
}
/** This gets called due when a different even... |
/*
Copyright (c) 2014 Zachary Seguin
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, merge, p... |
'use strict';
const fs = require('fs');
const path = require('path');
const semver = require('semver');
const sri = require('sri-toolbox');
const { app, files } = require('../config');
const PUBLIC_DIR = path.join(__dirname, '../public/');
const SRI_CACHE = {};
function capitalize(str) {
if (typeof str !== 'str... |
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { themr } from 'react-css-themr';
import { INPUT } from '../identifiers';
import InjectedFontIcon from '../font_icon/FontIcon';
const factory = (FontIcon) => {
class Input extends React.Component {
static p... |
// const BlueRPC = require('../../lib');
// describe('HTTP',
// require('./tests.skip.js')(
// BlueRPC.Server.HTTP,
// BlueRPC.Client.HTTP
// )
// );
// const async = require('async');
// module.exports = (Server, Client) => {
// return () => {
// let server, client, client2, state;
// befo... |
(function(exports) {
// $(document).ready(function() {
console.log('bar.js');
var senior = (6/8),
major = (35/56),
game = (12/24);
var data = [
{label: "Cornell University Senior", detail: "6 of 8 semesters", value: senior},
{label: "Computer Science Major", detail: "35 of 56 core credits", value: major},... |
import React from 'react'
import { Link } from 'react-router-dom'
import RaisedButton from 'material-ui/RaisedButton'
class Home extends React.Component {
render() {
return (
<div id='home' >
<h1>Welcome to Bookaholics Anonymous</h1>
<h4>Trade books with people in your area</h4>
<L... |
'use strict';
var yaocho = angular.module('yaocho');
yaocho.controller('NavCtrl', ['$scope', '$rootScope',
function($scope, $rootScope) {
var locationTrail = [];
$rootScope.ui = {
backHidden: true,
current: {
title: gettext('Mozilla Support'),
}
};
$scope.ui = $rootScope.ui;
$scope.back... |
export const androidSync = {"viewBox":"0 0 512 512","children":[{"name":"path","attribs":{"d":"M256,93.09V32l-80,81.454l80,81.456v-61.093c65.996,0,120,54.982,120,122.183c0,20.363-5,39.714-14.004,57.016L391,342.547\r\n\tc15.996-25.457,25-54.988,25-86.547C416,166.401,343.998,93.09,256,93.09z M256,378.184c-66.001,0-120-54... |
// @flow
import { first, last } from 'lodash/fp';
import { Pattern, CaptureElement, CaptureWildcard } from '../modules/patternMatcher';
import type { Transformer } from '../modules/transformer/types';
import { basePercentage } from '../modules/math/types';
import type { PercentageNode } from '../modules/math/types'; //... |
var https = require('https');
var qsocks = require('qsocks');
var fs = require('fs');
var request = require('request');
var Promise = require("promise");
// var js2xmlparser = require('js2xmlparser');
var appList = require('./lib/app-list');
var connList = require('./lib/app-connections');
var appTables = require('./l... |
/**
*
* DASH4 configuration
* https://github.com/smollweide/dash4
*
*/
const { PluginTerminal } = require('@dash4/plugin-terminal');
const { PluginReadme } = require('@dash4/plugin-readme');
const { PluginNpmScripts } = require('@dash4/plugin-npm-scripts');
const { PluginActions } = require('@dash4/plugin-action... |
'use strict';
/*
React component containing the whole game interface
*/
import React from 'react';
import Globals from '../../libs/globals';
import Socket from '../../libs/socket';
import reactBootstrap from 'react-bootstrap';
var Button = reactBootstrap.Button;
var Glyphicon = reactBootstrap.Glyphicon;
var Button... |
import {
moduleFor,
test
} from 'ember-qunit';
moduleFor('route:people/index', 'PeopleIndexRoute', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function() {
var route = this.subject();
ok(route);
});
|
"use strict";
import {xhrGet} from './xhrGet';
import lzbase62 from "./lzbase62.min";
import {json} from './json';
let kanaPos = {
'ア' : {start:0.932,dulation:0.579},
'イ' : {start:2.135,dulation:0.452},
'ウ' : {start:3.383,dulation:0.439},
'エ' : {start:4.654,dulation:0.412},
'オ' : {start:5.957,dulation:0.434}... |
var batchcompute = require('./batchcompute');
/**
*
*/
var jobId = 'job-00000000559638EC00005F780000069A';
batchcompute.getJob({
jobId:jobId
},function(err, result) {
if(err) {
console.log(err);
return;
}
console.log(data);
});
|
function match(p, r) {
if(Array.isArray(p)) {
return p.every(function(p, i) {
return match(p, r[i])
})
} else if(typeof(p) == 'object' && p && !(p instanceof Number || p instanceof String || p instanceof RegExp || p instanceof Boolean)) {
for(var k in p) {
if(!match(p[k], r[k])) return false
}
return ... |
/* Copyright 2017 Apinf Oy
This file is covered by the EUPL license.
You may obtain a copy of the licence at
https://joinup.ec.europa.eu/community/eupl/og_page/european-union-public-licence-eupl-v11 */
Template.mostFrequentUsersTable.helpers({
users () {
const buckets = Template.instance().data.buckets;
... |
/**
* @author zhangpeng
* @date 2015-10-02
* @file 扩展ejs模板,增加layout和widget相关功能
* extend ejs template system, supporting layout and widget functionalities
*
* layout实现:在layout中通过特殊标记留坑,在template中标记各个坑对应的块,然后在res.render的callback中去填坑
* widget实现:load_widget时输出html并保存js,css路径,然后在res.render的callback中填充js,css
*/... |
// Copyright 2015 Teem2 LLC, MIT License (see LICENSE)
// Parts copyright 2012 Google, Inc. All Rights Reserved. (APACHE 2.0 license)
define.class('$gl/glshader', function(require, exports, self){
this.matrix = mat4()
this.viewmatrix = mat4()
this.position = function(){
return mesh.pos * matrix * viewmatrix
}
... |
/*jshint browser:true*/
/*jslint nomen: true*/
/*global define, require*/
define(['jquery', 'underscore', 'oro/tools', 'oro/mediator', 'orofilter/js/map-filter-module-name',
'oro/datafilter/collection-filters-manager'],
function ($, _, tools, mediator, mapFilterModuleName, FiltersManager) {
'use strict';
... |
(function (angular) {
'use strict';
var module = angular.module('angular-smilies', []);
/**
* Smilies and Emojis parser
* @param config
* @constructor
*/
function SmiliesParser (config) {
this.config = config;
}
/**
* Returns the config
* @returns {object... |
var Template = require('../index.js').Template;
var e = require('element.js').e;
var Badge = function () { return e.span([], { classes: ['badge'] }); };
Template.prototype.append = function (item) {
if (Array.isArray(item)) {
for (var i=0; i<item.length; i++) {
this.append(item[i]);
}
} else {
if (typeof it... |
/*jshint esversion: 6 */
import Ember from 'ember';
export function initialize(app){}
var get, set;
get = Ember.get;
set = Ember.set;
// Set title and metaTags properties in any route to update page title and meta tags respectively.
Ember.Route.reopen({
tagsData: Ember.inject.service('tags-data'),
title: null,
... |
/*!
* numeral.js language configuration
* language : chinese Hong Kong (hk)
* author : Rich Daley : https://github.com/pedantic-git
*/
(function () {
var language = {
delimiters: {
thousands: ',',
decimal: '.'
},
abbreviations: {
thousand:... |
var expect = require('chai').expect;
var sinon = require('sinon');
var fireworm = require('fireworm');
var Config = require('../lib/config');
var App = require('../lib/app');
var FakeReporter = require('./support/fake_reporter');
describe('App', function() {
var app, config, sandbox;
beforeEach(function() {
... |
console.warn( "THREE.Water2: As part of the transition to ES6 Modules, the files in 'examples/js' were deprecated in May 2020 (r117) and will be deleted in December 2020 (r124). You can find more information about developing using ES6 Modules in https://threejs.org/docs/#manual/en/introduction/Installation." );
/**
* ... |
/**
* Routes API requests either to the server or to a local JSON file if the
* DEMO constant is set to true.
*/
'use strict';
angular.module('hackaFinderApp')
.factory('API', ['$http', '$log', 'Validate', 'Authenticate', 'DEMO',
function ($http, $log, Validate, Authenticate, DEMO) {
// -------------... |
//! moment.js
//! version : 2.4.0
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function (undefined) {
/************************************
Constants
************************************/
var moment,
VERSION = "2.4.0",
round = ... |
var passport = require('passport');
// route middleware to ensure user is logged in
module.exports = function (req, res, next) {
//console.log('authMidware has been called..........-->');
if (req.isAuthenticated())
return next();
res.redirect('/login');
}
|
/**
* @file Database
* @author Jim Bulkowski <jim.b@paperelectron.com>
* @project magnum-di
* @license MIT {@link http://opensource.org/licenses/MIT}
*/
/**
* Fake database for Magnum-di examples
* @module Database
*/
module.exports = {
User: {
users: {Bob: {name: 'Bob', age: 27}, Tom: {name: 'Tom', age... |
import React, { useContext } from 'react';
import PropTypes from 'prop-types';
import { ThemeContext } from '../ThemeContext/ThemeContext';
import SectionMaxWidth from '../SectionMaxWidth/SectionMaxWidth';
import { Styled } from './DetailCallout.styles';
const DetailCallout = ({ children, header }) => {
const { color... |
'use strict';
angular.module('angularMaterialAdmin', ['app'])
//remove setellizer
.config(function(AnalyticsProvider, $stateProvider, $urlRouterProvider, $mdThemingProvider, $authProvider, $locationProvider,
$mdIconProvider, socialProvider, $httpProvider, $mdDateLocaleProvider, $mdAriaProvider, $compil... |
'use strict';
Template.pickUsername.events({
'submit form': function (ev) {
ev.preventDefault();
var $form = $(ev.target),
username = $form.serializeArray()[0].value;
if ($form.data('bootstrapValidator').isValid()) {
Meteor.call('setUsername', username, function (er... |
module.exports = require('./dist/collection.min.js');
|
var Parser = require("jade/lib/parser.js");
var jade = require("jade/lib/runtime.js");
var esprima = require("esprima");
var _ = require("lodash");
module.exports = function(string, thisVar) {
var jadeString = flattenLeftWhitespace(string);
var parser = new Parser(jadeString, null, {});
var jadeTree = parser.p... |
Date; //doc: Creates JavaScript Date instances which let you work with dates and times.
new Date; //doc: Creates JavaScript Date instances which let you work with dates and times.
var myalias = Date;
myalias; //doc: Creates JavaScript Date instances which let you work with dates and times.
// This is variable foo.
v... |
const express = require('express');
const router = express.Router();
router.get('/login', (req, res) => {
res.render('index');
});
module.exports = router; |
// giveaway
$(document).on('ready pjax:end', function () {
if ($('#gw_app').length > 0) {
window.giveaway_app = new Vue({
el: '#gw_app',
data: {
history: {
history: [],
historyOwn: []
},
config:... |
/***
*
* Note that this localization is alredy included by default.
* Simply call Date.setLocale(<code>)
*
* var locale = Date.getLocale(<code>) will return this object, which
* can be tweaked to change the behavior of parsing/formatting in the locales.
*
* locale.addFormat adds a date format (see this file for... |
import Enum from '../../lib/Enum';
import { moduleActionTypes } from '../../enums/moduleActionTypes';
import proxyActionTypes from '../../enums/proxyActionTypes';
export default new Enum(
[...Object.keys(moduleActionTypes), ...Object.keys(proxyActionTypes)],
'dateTimeFormat',
);
|
/**
*
* Block
*/
import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import styles from './styles.scss';
const renderMsg = msg => <p>{msg}</p>;
const Block = ({ children, description, style, title }) => (
<div className="col-md-12">
<div className=... |
var HtmlWebpackPlugin = require('html-webpack-plugin');
var HtmlWebpackPluginConfig = new HtmlWebpackPlugin({
template: __dirname + '/app/index.html',
filename: 'index.html',
inject: 'body'
})
module.exports = {
entry: [
'./app/index.js'
],
output: {
path: __dirname + '/dist',
filename: 'index_... |
define(['src/util/api'], function (API) {
return async function loadZips(zipURLs, options = {}) {
const JSZip = await API.require('jszip');
const superagent = await API.require('superagent');
const xyParser = await API.require('https://www.lactame.com/lib/xy-parser/1.3.0/xy-parser.min.js');
const SD ... |
(function () {
'use strict';
angular
.module('softvApp')
.controller('ordenEjecutadaCtrl', ordenEjecutadaCtrl);
ordenEjecutadaCtrl.inject = ['$state', 'ngNotify', '$stateParams', '$uibModal', 'DescargarMaterialFactory', 'ordenesFactory', '$rootScope', '$filter'];
function ordenEjecutadaCtrl($state, n... |
"use strict";
import React, {Component} from 'react';
import {
AsyncStorage,
Alert,
StyleSheet,
View,
ScrollView,
} from 'react-native';
import {GoogleSignin} from 'react-native-google-signin';
import CONFIG from './../config';
import _, {LANGUAGES} from './../i18n';
import CloudStorage from './..... |
/*
* Verse Websocket Asynchronous Module
*
* The MIT License (MIT)
*
* Copyright (c) 2013-2014 Jiri Vrany, Jiri Hnidek
*
* 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 rest... |
/**
* Chunk an array into pieces based on itemsPerChunk.
* You can use this to paginate an array of data.
*/
$.extend({
chunk: (data, itemsPerChunk) => {
let ret = []
let pages = Math.floor(data.length / itemsPerChunk)
if (data.length % pages) pages++
let temp = 0
for (let i = 0; i < pages; i... |
module.exports = {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 10,
},
},
],
'@babel/preset-typescript',
'@babel/preset-react',
],
plugins: ['@babel/plugin-proposal-class-properties'],
compact: false,
};
|
version https://git-lfs.github.com/spec/v1
oid sha256:eeff9c5665590e117c68718dc9df044d760c211c6c9943dedf556033d16134d9
size 558294
|
version https://git-lfs.github.com/spec/v1
oid sha256:c34f8081961fc0eb3779e71334ae8785b432a95fb1ccfee056010aa90c747d21
size 6514
|
'use strict';
var React = require('react-native');
var {
Image,
StyleSheet,
Text,
TouchableHighlight,
View,
} = React;
var Buzzer = React.createClass({
render: function() {
var {
buzzer
} = this.props.data;
return (
<TouchableHighlight style={styles.button} underlayColor='transpar... |
/* global expect jest test */
import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import UserCard from '../../../components/user/UserCard';
jest.dontMock('../../../components/user/UserCard');
describe('UserCard Component', () => {
test('should match the user card snapsh... |
import Buff from './Buff';
export default class SlowDebuff extends Buff {
/**
* @class SlowDebuff
* @description A debuff that increases the time between actions
*/
constructor(dungeon, duration, factor = 1, modifier = 0, name = 'Slowed') {
super(dungeon);
this._duration = dur... |
const path = require('path');
const fixPath = require('fix-path');
const os = require('os');
module.exports = (shepherd) => {
shepherd.pathsAgama = () => {
switch (os.platform()) {
case 'darwin':
fixPath();
shepherd.agamaDir = `${process.env.HOME}/Library/Application Support/Agama`;
... |
"use strict";define("settings/select",function(){var e=null;var t;function n(t,n){for(var a=0;a<n.length;a+=1){var r=n[a];var i=r.text||r.value;delete r.text;t.append($(e.helper.createElement("option",r)).text(i))}}t={types:["select"],use:function(){e=this},create:function(t,a,r){var i=$(e.helper.createElement("select"... |
var Firebase = require('firebase')
var _ = require('lodash')
module.exports = function ($firebase, $q, mnFirebaseConstants) {
var playersSync = $firebase(new Firebase(mnFirebaseConstants.ROOT_REF).child(mnFirebaseConstants.PLAYERS))
var addPlayer = function (playersArray, playerName) {
// TODO: Use isNameUniq... |
var stylZ=(function(window,undefined){// 'Z_' is an alias for 'styleZ'
console.clear();//testing console
var stylZ=function(el,index){
var ele;/*this variable turns into elemz to work inside functions*/
if( arguments[0] &&
!arguments[1]){
//No 2nd argument p... |
// (function () {
// 'use strict';
// angular.module('yapp')
// .factory('authService', function ($state, $localStorage, $http) {
// return {
// isLogged: false,
// tokenStillValid: false,
// check: check,
// decodeToken: decod... |
export const ic_subject_twotone = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M14 17H4v2h10v-2zm6-8H4v2h16V9zM4 15h16v-2H4v2zM4 5v2h16V5H4z"},"children":[]}]}; |
/*
meld v0.1
unobtrusive templating engine that runs on nodejs (jsdom+jquery) and browsers (jquery).
prompted by weld.js; syntax by hquery
Copyright Chew Choon Keat 2011
Released under the MIT License
*/
(function(context, $) {
/* find all elements matching object's attribute key
and set each innerTex... |
import React from 'react';
const Blog = () => <div>TODO - Blogging comes here</div>
export default Blog; |
uni.observe("component:upload:loaded", function(comp) {
var controller = comp.controller,
view = comp.view,
uploaders = {};
function _(str) {
return plupload.translate(str) || str;
}
function renderUI(id, target) {
// Remove all existing non plupload items
target.contents().each(function(i, node) {
... |
define([
'backbone',
'jquery',
'underscore'
], function(
Backbone,
$,
_
) {
return Backbone.Model.extend({
defaults : {
'data' : '',
'algorithm' : 'sha1',
'hashed' : null,
'error' : null
},
initialize : function() {
this.syncing = false;
... |
var async = require('async'),
fs = require('graceful-fs'),
colors = require('colors'),
_ = require('lodash');
module.exports = function(args, callback){
var config = hexo.config.deploy,
log = hexo.log,
extend = hexo.extend,
deployers = extend.deployer.list();
if (!config){
var help = '';
... |
/*LEWD-BOT*/
// Initialization
'use strict';
var Botkit = require('./lib/Botkit.js');
var _ = require('lodash');
var os = require('os');
var controller = Botkit.slackbot({debug: false});
var bot = controller.spawn({token: process.env.token}).startRTM();
// Constants
var lewdTerms = [
'ass',
'beach',
'b... |
/*#inport <forEach.js>*/
/*#inport <types.js>*/
/*#inport <extend.js>*/
/*#inport 'watch.js'*/
var bindingTypes = {
'*': function attrAndProp(name) {
var attrName = snakeCase(name);
return {
configurable: false,
get: function() { return this.getAttribute(attrName); },
set: functi... |
/*******************************************************************************
* Simple script to submit forms
* Copyright (c) 2013 Romain TOUZÉ
******************************************************************************/
/*jslint browser: true*/
var fieldsAreValid = function () {
'use strict';
consol... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.