code stringlengths 2 1.05M |
|---|
"use strict";
const setupTask = require("utils").setupTask;
module.exports = {
run : function(creep){
if(!creep.task){
//this should never happen
creep.role = ROLE_RECYCLER;
}
}
}
|
ace.define("ace/mode/erlang_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var ErlangHighlightRules = funct... |
App.User = DS.Model.extend({
firstName: DS.attr('string'),
lastName: DS.attr('string'),
email: DS.attr('string'),
tags: DS.attr(),
type: DS.attr('string'),
disable: DS.attr('number'),
name: function() {
if ((this.get('lastName') == null) && (this... |
import controller from '../../helpers/controller';
function Form(el) {
function init () {
}
return { init };
}
controller.add('Form', Form);
function Textarea(el) {
const input = el.querySelector('.js-textarea');
const pre = el.querySelector('.js-pre');
function update() {
pre.innerHTML = input.val... |
module.exports = exports = function (kernel) {
kernel.app.post('/contact-us', function (request, response) {
var adminList = kernel.model.User.find({root: true}).exec(function(err, admins) {
var emailObject = {
subject: 'Message received from Contact Us (target.monimus.com:4000)',
template:... |
module.exports = {
user: '',
repo: '',
token: ''
}
|
'use strict';
var ensureObject = require('es5-ext/object/valid-object')
, ensureString = require('es5-ext/object/validate-stringifiable-value')
, ensureIterable = require('es5-ext/iterable/validate-object')
, d = require('d')
, registerEmitter = require('dbjs-persistence/lib/emitter')
,... |
import Vue from './instance/vue'
import directives from './directives/public/index'
import elementDirectives from './directives/element/index'
import filters from './filters/index'
import { inBrowser } from './util/index'
Vue.version = '1.0.12'
/**
* Vue and every constructor that extends Vue has an
* associated op... |
'use strict';
module.exports = require('./includes');
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2NsaWVudC9saWIvbG9kYXNoL2ZwL2NvbnRhaW5zLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsT0FBTyxPQUFQLEdBQWlCLFFBQVEsWUFBUixDQUFqQiIsImZpbGUiOiJjb250YWlucy5qcyIsInN... |
'use strict'
function getDependencies(tree) {
/*
Traverse the `tree` argument (a package dependency object) and
return a list of strings in the format of "package@version".
The list will be alphabetically sorted.
Duplicate packages (i.e. same name, same version) will only
be... |
// Includes
var http = require('../util/http.js').func;
var getGeneralToken = require('../util/getGeneralToken.js').func;
// Args
exports.required = ['userId'];
exports.optional = ['jar'];
// Define
function unfollow (jar, token, userId) {
var httpOpt = {
url: '//www.roblox.com/api/user/unfollow',
options: ... |
import path from 'path';
import fs from 'fs-promise';
import {resolve} from './async';
import Ast from './ast';
import ImportGraph from './import_graph';
import PostCss from './postcss';
class PostCssCached extends PostCss {
process(css, options) {
if (!('importGraph' in this)) {
this.importGraph = new Imp... |
'use strict';
(function ($) {
$(document).ready(function () {
if ($('body').hasClass('lt-ie7')) {
return;
}
var bLazy = new Blazy({ selector: '.app-img' });
});
}(jQuery)); |
// 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";
/**
* Module dependencies
*/
var socketio = require('socket.io');
var messagingService = require('../services/messagingService');
var channelService = require('../services/channelService');
var projectService = require('../services/projectService');
var models = require('../models');
var socketi... |
var test = require('tape')
var vec2 = require('../vec2')
var allMethods = Object.keys(vec2)
var handledMethods = []
test('vec2.create', function (t) {
var expected = [0, 0]
var a = vec2.create()
t.deepEqual(a, expected, 'should return a new vec2')
handledMethods.push('create')
t.end()
})
test('vec2.set',... |
jQuery(document).ready(function() {
jQuery('.tabs .tab-links a').on('click', function(e) {
var currentAttrValue = jQuery(this).attr('href');
// Show/Hide Tabs
jQuery('.tabs ' + currentAttrValue).show().siblings().hide();
// Change/remove current tab to active
jQu... |
module.exports = new Date().toISOString();
|
import React from 'react';
import ReactDOM from 'react-dom';
import EventEmitter from 'events';
import './index.css';
import App from './components/App';
import ErrorDisplay from './components/ErrorDisplay';
import MainActions from './mainActions';
import { SubscribableState, StateMapper } from './ruxx';
// Load Kur... |
const fs = require('fs');
const util = require('./util');
const engines = [];
fs.readdirSync('./engines').forEach(name => {
let engine = require(`./engines/${name}`);
engines.push(engine);
});
const dataCount = 100;
const maxCount = 10000;
const data = util.buildData(dataCount);
console.log(`${dataCount}条数据,执行${... |
//================================================================
var filter;
var depthDimension;
var depthGrouping;
//================================================================
function init() {
d3.tsv("depth.tsv", function(data) {
data.forEach(function(d) {
d.Depth = +d.Depth;
});
points=data;
ini... |
$(function () {
module("transition")
test("should be defined on jquery support object", function () {
ok($.support.transition !== undefined, 'transition object is defined')
})
test("should provide an end object", function () {
ok($.support.transition ? $.support.transition.end : true,... |
var React = require('react');
var ReactDOM = require('react-dom');
var SimpleInpagenav = require('@rbarilani/react-simple-inpagenav');
var App = React.createClass({
render () {
return (
<SimpleInpagenav>
<SimpleInpagenav.Bar>
<SimpleInpagenav.BarItem target="foo">
Foo
</SimpleInpagenav.BarIte... |
const content = require('../data/content');
const logger = require('../log');
const {getSearchResultsCount, getSearchResults} = require('../data/search');
const utils = require('../data/utils');
const audit = require('../data/audit');
const resultsPerPage = require('../server/config').searchResultsPerPage;
const {valid... |
export default {'offset': -25200, 'dst': true, 'abbrev': 'PPT'};
|
'use strict';
var GraphQL = require('graphql');
var resolveMap = require('../resolve-map').resolveMap;
var getSelectionSet = require('./get-selection-set');
var getUnaliasedName = require('./get-unaliased-name');
var db = require('../db');
var config = require('../config/config');
function getResolver(type) {
var... |
var User = require('../models/users'),
multiparty = require('multiparty');
function LoginHandler () {
// nothing here
};
LoginHandler.index = function (request, response) {
response.send('This is simpleLogin app!');
}
LoginHandler.login = function (request, response) {
var user = new User({
... |
exports.BattlePokedex = {
tornadustherian:{num:641,species:"Tornadus-Therian",baseSpecies:"Tornadus",forme:"Therian",formeLetter:"T",types:["Flying"],gender:"M",baseStats:{hp:79,atk:100,def:80,spa:110,spd:90,spe:121},abilities:{0:"Wind Speed"},heightm:1.4,weightkg:63,color:"Green",eggGroups:["Undiscovered"]},
... |
/**
* @author alteredq / http://alteredqualia.com/
*/
THREE.ShaderPass = function ( shader, textureID ) {
THREE.Pass.call( this );
this.textureID = ( textureID !== undefined ) ? textureID : "tDiffuse";
if ( shader instanceof THREE.ShaderMaterial ) {
this.uniforms = shader.uniforms;
this.mat... |
//Dependencies
var props = require('dotenv').config().parsed;
//Module
module.exports = {
port: props.PORT,
cookieSecret: props.COOKIE_SECRET,
quandlAPIKey: props.QUANDL_API_KEY,
}; |
module.exports = function( ) {
// Library imports
var FCM = require( 'fcm-node' );
// Setup
var fcmSender = new FCM( process.env.FCM_API_KEY );
function send( title, messageText, key, callback ) {
// Construct message
const to = `/topics/${key}`;
const message = {
to: to,
collapse_key: key,
noti... |
var _ = require('underscore');
var config = require('config');
var async = require('async');
var mongoose = require('mongoose');
var GitHub = require('../lib/model/github');
var Project = require('../lib/model/project');
console.log('### sync all project for labels ###');
mongoose.connect(config.get('mongo.url'));
v... |
const glfw = require("./glfw")
glfw.init()
process.on('exit', () => {
glfw.terminate()
})
glfw.FOCUSED = 0x00020001
glfw.ICONIFIED = 0x00020002
glfw.RESIZABLE = 0x00020003
glfw.VISIBLE = 0x00020004
glfw.DECORATED = 0x00020005
glfw.AUTO_ICONIFY = 0x00020006
glfw.FLOATING = 0x00020007
glfw.MAXIMIZED = 0x00020008
glfw... |
define(['deps/dep1', 'deps/dep2'], function () {
require(['deps/dep4']);
}); |
var Xflow = Xflow || {};
var XML3D = XML3D || {};
(function() {
Xflow.registerOperator("xflow.grid", {
outputs: [ {type: 'float3', name: 'position', customAlloc: true},
{type: 'float3', name: 'normal', customAlloc: true},
{type: 'float2', name: 'texcoord', customAlloc: true},
{type: 'int', name: 'i... |
version https://git-lfs.github.com/spec/v1
oid sha256:3cedd360d3a184ff1afb5ba21cd02d87d0a374722d3f5bc2129c171110702021
size 6046
|
import {Router} from "express";
import {wrapJSON} from "../../../shared/utils/wrapper";
import {methodNotAllowed} from "../../../shared/utils/middleware";
import SNSController from "../../../mail/controllers/sns";
const router = Router(); // eslint-disable-line new-cap
const snsController = new SNSController();
route... |
// generated from http://www.json-generator.com/
var mockData = {
"id": 1,
"jsonrpc": "2.0",
"total": 6,
"result": [
{
"id": 0,
"guid": "c9f64636-5a62-450e-a25f-da4e4bdde4c1",
"isActive": false,
"balance": "$2,424.00",
"picture": "http:... |
/* ==================================================================================
-- DATA HANDLING PROTOTYPE
CONNECTIONS TO ALL APIS
-- =============================================================================== */
define(["jquery"]
,function($) {
var Data = function() {
var self = this;
}
Data... |
'use strict';
const gulp = require('gulp');
const del = require('del');
gulp.task('clean', [], () => {
return del(['dist']);
});
|
'use strict';
var assert = require('assert');
var path = require('path');
var fs = require('fs');
var muk = require('muk');
// for(var filepath in require.cache){
// delete require.cache[filepath];
// }
var Index = require('../../lib/index.js');
var instance = new Index();
instance.load();
think.APP_PATH = path.d... |
module.exports = function( THREE ){
/**
* @author alteredq / http://alteredqualia.com/
*
* Blend two textures
*/
THREE.BlendShader = {
uniforms: {
"tDiffuse1": { type: "t", value: null },
"tDiffuse2": { type: "t", value: null },
"mixRatio": { type: "f", value: 0.5 },
"opacity": { type: "f"... |
'use strict';
Math.seed = function(s) {
return function() {
s = Math.sin(s) * 10000;
return s - Math.floor(s);
};
};
Math.getRandomRange = function(seedFunc, min, max) {
return seedFunc() * (max - min) + min;
}
Math.getIntRandomRange = function(seedFunc, min, max) {
return Math.floor(M... |
/*
* Copyright (C) 2010 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
#!/usr/bin/env node
const fsp = require('fs').promises
const firebase = require('firebase-tools')
const argv = require('minimist')(process.argv.slice(2))
const project = process.env.GCLOUD_PROJECT
if (!project) {
console.error('Missing GCLOUD_PROJECT environment variable.')
process.exit(1)
}
async function getF... |
function TaggingEditBlock(runtime, element) {
$(element).find('.save-button').bind('click', function() {
var handlerUrl = runtime.handlerUrl(element, 'studio_submit');
var data = {
href: $(element).find('input[name=href]').val(),
tag: $(element).find('input[name=tag]').val(),
};
$.post(han... |
// 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... |
;
/*** DEPENDS (including cascading dependencies, listed in cascading dependency order):
core.static.js (optional)
core.array.js (required)
core.dom.js (required)
index.static.js
index.var.js
index.factory.js
index.handler.js
***/
var _= _ || {};
_.INIT= _.INIT || {};
_.INIT.BIND= function(){
... |
// Limited driver used purely to compute and emit direct and computed values to outer master process
'use strict';
var customError = require('es5-ext/error/custom')
, setPrototypeOf = require('es5-ext/object/set-prototype-of')
, d = require('d')
, deferred = require('deferred')
, Reduced... |
// COPYRIGHT © 2017 Esri
//
// All rights reserved under the copyright laws of the United States
// and applicable international laws, treaties, and conventions.
//
// This material is licensed for use under the Esri Master License
// Agreement (MLA), and is bound by the terms of that agreement.
// You may redistribute... |
module.exports={A:{A:{"2":"H C G E A B EB"},B:{"2":"D p x J L N I"},C:{"2":"0 1 2 3 4 5 6 8 9 YB BB F K H C G E A B D p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t u v w y WB QB"},D:{"1":"0 1 2 3 4 5 6 8 9 J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n o M q r s t u v w y KB aB FB... |
define({
"addLayer": "Pievienot slāni",
"layerName": "Slānis",
"layerRefresh": "Atjaunot",
"layerLabel": "Etiķete",
"actions": "Darbības",
"mainPanelTextPlaceholder": "ār.: pēdējā atjaunināšana:",
"invalidInterval": "Drīkst izmantot tikai pozitīvus veselus skaitļus",
"uploadImage": "Augšupielādēt attēlu... |
ace.define("ace/snippets/vbscript",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText = "";
exports.scope = "vbscript";
});
(function() {
ace.require(["ace/snippets/vbscript"], function(m) {
if (typeof modu... |
import * as lib from './references';
describe('references', () => {
describe('getComponentName', () => {
const fn = lib.getComponentName;
test('gets name from default uri', () => {
expect(fn('/_components/base')).toBe('base');
});
test('gets name from instance uri', () => {
expect(fn('/... |
import Ember from 'ember';
import moment from 'moment';
import computeFn from '../utils/compute-fn';
const runBind = Ember.run.bind;
export default Ember.Helper.extend({
globalAllowEmpty: false,
compute: computeFn(function(params, hash) {
this.clearTimer();
if (hash.interval) {
this.timer = setTim... |
$dh.Require("ctrl/richcanvas");
$dh.isLoaded("ctrl/loginform");
$dh.newClass("DHLoginForm", DHRichCanvas, {
__defaults__: {txtStyle: "position:absolute;left:0px;text-align:left;", lbStyle: ";color:gray;position:absolute;left:0px;text-align:left;", btStyle: "border:solid 1px gray;", lineHeight: 25, boundPadding... |
angular
.module('app')
.directive('trackTimer', [
'$interval',
'$q',
function($interval, $q) {
return {
scope: {
status: '=trackTimer',
onSeek: '&'
},
templateUrl: 'scripts/directives/trackTimer.html',
link: function(scope) {
var MODE_P... |
import $ from 'dom7';
import Utils from '../../utils/utils';
import View from './view-class';
function getCurrentView(app) {
const $popoverView = $('.popover.modal-in .view');
const $popupView = $('.popup.modal-in .view');
const $panelView = $('.panel.panel-in .view');
let $viewsEl = $('.views');
if ($viewsE... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Scene Create Event.
*
* This event is dispatched by a Scene after it has been created by the Scene Manager.
*
* If a Scene has ... |
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
{
"file": "plugins/cordova-plugin-calendar/www/Calendar.js",
"id": "cordova-plugin-calendar.Calendar",
"clobbers": [
"Calendar"
]
},
{
"file": "plugins/cordova-pl... |
app.controller('DataFeedCtrl', function ($scope) {
}); |
/*
* Copyright (c) 2012 Yahoo! Inc. All rights reserved.
*/
/*global YUITest*/
YUI.add('module-tests', function (Y) {
'use strict';
var suite = new Y.Test.Suite('gallery-yqlmock'),
A = YUITest.Assert,
yqlmock;
suite.add(new Y.Test.Case({
setUp: function () {
yqlmock ... |
module.exports = function(grunt) {
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' ... |
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.$ = f()}})(fun... |
/*! jQuery UI - v1.10.3 - 2013-08-05
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.effect.js, jquery.ui.effect-blind.js... |
;(function(plugin) {
var chicago = window.Chicago || {
utils : {
now: Date.now || function() {
return new Date().getTime();
},
uid : function(prefix) {
return ( prefix || 'id' ) + chicago.utils.now() + 'RAND' + Math.ceil( Math.random() * 1e5 );
},
is : {
number : function(obj) {
retu... |
// Support for more ES6 features in Node.
require('babel-core/register');
require('./server');
|
var Player = function() {
this.image = document.createElement("img");
this.x = canvas.width/2;
this.y = canvas.height/2;
this.width = 159;
this.height = 163;
this.velocityX = 0;
this.velocityY = 0;
this.angularVelocity = 0;
this.rotation = 0;
this.image.src = "hero.png";
};
Player.prototype.update = ... |
var should = require('should'),
sinon = require('sinon'),
passport = require('passport'),
ghostPassport = require('../../../../server/services/auth/passport'),
sandbox = sinon.sandbox.create();
describe('Ghost Passport', function () {
beforeEach(function () {
sandbox.spy(passport, 'use');
... |
version https://git-lfs.github.com/spec/v1
oid sha256:a3c4c798ee32fcb9434adff9e3ac6ad7a50ff1eb2532f14cf6c1d8fd4134a076
size 7795
|
import Engine from '../../system/engine';
import EngineInstance from '../../system/engine-instance';
import { getEngineParent, setEngineParent } from '../../system/engine-parent';
import { run } from 'ember-metal';
import { factory } from 'internal-test-helpers';
import {
moduleFor,
AbstractTestCase as TestCase
} f... |
import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './toggle-button.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default Page;
|
'use strict';
angular.module('musicApp.startPage', ['ngRoute'])
.config(['$routeProvider' , function($routeProvider) {
$routeProvider.when('/start', {
templateUrl: 'startPage/startPage.html'
});
}])
.controller('startPageCtrl', ['globalData', '$mdDialog', '$http', '$scope', '$timeout', '$scope', fun... |
/**
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
const RelayQuery = require('../query/RelayQuery');
const RelayQueryVisitor = require('../query/Rel... |
module.exports = {
// db collection
collection: 'auths',
// projection of db collection
publicCollection: 'users',
// passportjs options
passport: {
successRedirect: '/',
failureRedirect: '/',
registerCallback: function(req, res, user, done) {
var model = req.... |
import globby from 'globby';
import path from 'path';
import semver from 'semver';
export const versions = async () => {
const folders = await globby('/etc/php/*', {
onlyFiles: false,
onlyDirectories: true
});
if (!folders.length) {
throw new Error('No PHP version found');
}
... |
import {
selectPrediction,
} from '../selectors';
import { fromJS } from 'immutable';
import expect from 'expect';
const selector = selectPrediction();
describe('selectPrediction', () => {
});
|
/**
* The goal of this file is to provide the basic understanding:
* -> The migration from non-module to module
*
* How to run this example.
* 1. Open Example-2.html in browser.
* 2. Press F12, go to console tab.
* 3. See the message get displayed on that console tab.
*/
printMsg(getHelloWorld());
printMsg(ge... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "M20.94 11c-.46-4.17-3.77-7.48-7.94-7.94V2c0-.55-.45-1-1-1s-1 .45-1 1v1.06C6.83 3.52 3.52 6.83 3.06 11H2c-.55 0-1 .45-1 1s.45 1 1 1h1.06c.46 4.17 3.77 7.48 7... |
const nodeResolve = require('rollup-plugin-node-resolve')
const commonjs = require('rollup-plugin-commonjs')
const json = require('rollup-plugin-json')
module.exports = ['boolbase', 'css-what', 'domelementtype', 'entities', 'nth-check', 'lodash-es'].map(name => {
return {
input: `vendor/_${name}.js`,
output:... |
/*
YUI 3.7.2 (build 5639)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("lang/console",function(e){e.Intl.add("console","",{title:"Log Console",pause:"Pause",clear:"Clear",collapse:"Collapse",expand:"Expand"})},"3.7.2");
|
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else if(typeof exports === 'object')
exports["json2csv"] = factory();
else
root["json... |
/**
* All handlers defined here
*/
module.exports = {
// Website
build: require('../routes/build')
, handleGithubWebhook: require('../routes/handleGithubWebhook')
, index: require('../routes/index')
, projects: require('../routes/projects')
, login: require('../routes/login')
, logout: require('../routes/logout')
... |
/**
* Created by john on 2017-01-13.
*/
define(function(require, exports, module) {
module.exports = {
create: {
button: "新建",
title: "新建表单",
submit: "提交"
},
edit: {
button: "保存",
title: "编辑表单",
submit: "提交"
}... |
"use strict";
let Base = /*#__PURE__*/babelHelpers.createClass(function Base() {
babelHelpers.classCallCheck(this, Base);
});
let Obj = /*#__PURE__*/function (_Base) {
babelHelpers.inherits(Obj, _Base);
var _super = babelHelpers.createSuper(Obj);
function Obj() {
babelHelpers.classCallCheck(this, Obj);
... |
module.exports = {
response: function response() {
this._ended = false;
this._responseCode = null;
this._headers = null;
this._data = null;
this._status = null;
this._json = null;
this.status = (val) => {
this._status = val === undefined ? this._status : val;
return this._sta... |
var modules = {
'repo': function (repo_id) {
$.ajax({url:'index.php?module=admin&action=modules&getModsListFromRepo=' + repo_id})
.done(function(data, textStatus){
if(textStatus == 'success') {
$("#repo_" + repo_id).html(data);
}
})
.fail(function (a,b,t){
$("#repo_" + repo_id).html("Фата... |
'use strict';
var swintHelper = require('swint-helper'),
path = require('path'),
defaultize = swintHelper.defaultize,
walk = swintHelper.walk;
module.exports = function(options) {
defaultize({
dir: path.dirname(require.main.filename),
walkOption: {
ext: 'js'
}
}, options);
return load(options);
};
va... |
'use strict';
var util = require('../../../util');
module.exports = util.REST.extend({
attrs: {
module: 'rbac',
baseUri: [util.LOC_ORIGIN, 'v0.1', 'users/{user_id}/roles']
}
});
|
/**
@namespace Seemple.binders
@module seemple/binders
@importance 1
@desc Пространство имен для байндеров. Из коробки содержит байндеры общего назначения (для связывания атрибутов и пр.). Этот объект можно расширять собственными свойствами, чтоб не засорять глобальное пространство имен.
Примите во внимание небольшое ... |
module.exports = function(grunt){
grunt.initConfig({
uglify: {
dist: {
options: {
sourceMap: true,
preserveComments: 'some'
},
files: {
"jquery.rut.min.js": "jquery.rut.js"
}
}
},
watch: {
uglify: {
files: ['./jquery.rut.js'],
tasks: ['uglify:dist'],
options: {... |
$(function () {
var hub = $.connection.linksConfigurationHub;
hub.client.success = function (msg) {
$.notify({
// options
message: msg
}, {
// settings
newest_on_top: true,
type: 'info',
placement: {
from:... |
function echo () {
// http://kevin.vanzonneveld.net
// + original by: Philip Peterson
// + improved by: echo is bad
// + improved by: Nate
// + revised by: Der Simon (http://innerdom.sourceforge.net/)
// + improved by: Brett Zamir (http://brett-zamir.me)
// + bugfixed by: Eugen... |
RocketChat.API = {
delete(endpoint, params) {
return RocketChat.API._jqueryCall('DELETE', endpoint, params);
},
get(endpoint, params) {
return RocketChat.API._jqueryCall('GET', endpoint, params);
},
post(endpoint, params, body) {
if (!body) {
body = params;
params = {};
}
return RocketChat.API._... |
// Modelo para la tabla de usuarios
'use strict'
const mongoose = require('mongoose')
const Schema = mongoose.Schema
const bcrypt = require('bcrypt-nodejs')
module.exports = (app) => {
const StatsSchema = new Schema({
dataUser: [{
publications : String,
type: {
typ... |
const DrawCard = require('../../drawcard');
class BaelorBlacktyde extends DrawCard {
setupCardAbilities(ability) {
this.persistentEffect({
targetController: 'opponent',
effect: ability.effects.cannotPlay(card => this.hasCopyInDiscard(card))
});
}
hasCopyInDiscard(ca... |
/**
* @module ember-paper
*/
import $ from 'jquery';
import { computed } from '@ember/object';
import { htmlSafe } from '@ember/string';
import layout from '../templates/components/paper-menu-content';
import ContentComponent from 'ember-basic-dropdown/components/basic-dropdown/content';
import { nextTick } from 'em... |
console.log("HELLO WORLD!");
phantom.exit(); |
'use strict';
var path = require('path');
var conf = require('./gulp/conf');
var _ = require('lodash');
var wiredep = require('wiredep');
var pathSrcHtml = [
path.join(conf.paths.src, '/**/*.html')
];
function listFiles() {
var wiredepOptions = _.extend({}, conf.wiredep, {
dependencies: true,
devDepende... |
"use strict";
/**
* Refer to the angular shematics library to let the dependency validator
* know it is used..
*
* require('@schematics/angular')
*/
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@angular-devkit/core");
const schematics_1 = require("@angular-devkit/schematic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.