code stringlengths 2 1.05M |
|---|
/**
* Class REST
*/
var rest = require('app/config/rest')();
/**
* Class ApiFriendController
* @extends REST class
* @property {String} model name of the MoongooseJS model
* @property {Array} auth authorization of methods (index, list, etc...)
* @property {Object} req ExpressJS request object (req)
... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'removeformat', 'de-ch', {
toolbar: 'Formatierung entfernen'
} );
|
import Ember from 'ember';
/**
*/
var FormControlValidationStateSupport = Ember.Mixin.create({
classNameBindings: [ 'validationStateClass' ],
validationState: null, // Possible values are: null, 'error', 'warning', 'success'
validationStateClass: Ember.computed('validationState', function() {
var validation... |
import { connect } from 'react-redux'
import { Header } from './component'
export const mapStateToProps = state => ({
inventory: state.inventory
})
export const mapDispatchToProps = dispatch => ({
importStockSetup: setup => {
console.log('save stock setup as current stock', setup)
},
exportStoc... |
$(document).ready(function() {
$("#functionaryTypeForm").submit(function(event){
var id = $(this).data('id');
var request = $.ajax({
url: "/api/functionaryTypes/" + id + "/",
method: 'PUT',
data: $(this).serialize()
});
request.done(function() {
location.reload();
});
request.fail(function... |
define(function () {
var DirectivesGalleryController = function ($scope) {
$scope.testModel = {}
}
DirectivesGalleryController.$inject = ['$scope'];
return DirectivesGalleryController;
}); |
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
const Form_1 = __importDefault(require("../Form"));
class TableForm extends Form_1.default {
/*static async create(data, parent) {
return new TableForm(dat... |
/**
* Copyright (c) UNA, Inc - https://una.io
* MIT License - https://opensource.org/licenses/MIT
*
* @defgroup Messenger Messenger
* @ingroup UnaModules
* @{
*/
/**
* Record video js file.
*/
function oJotVideoRecorder(oOptions)
{
this.bstart = oOptions.bstart || '#start-record';
this.bplay = oOptions.b... |
/*!
* @packet util.touch;
*/
var currentTime = function () {
return new Date().getTime();
};
var eventAgent = {
events: (function () {
if ((/AppleWebKit.*Mobile.*/).test(window.navigator.userAgent)) {
return {
type: "mobile",
down: "touchstart",
... |
export class HtmlTools {
static escapeHtml (text) {
return text.replace(/[\"&<>]/g, a => HtmlTools._escapeCharMap[a]);
}
static anchorLinksEscapeHtml (text) {
var linkRegex = /((https?:\/\/|ftps?:\/\/|www\.|[^\s:=]+@www\.).*?[a-zA-Z_\/0-9\-\#=&])(?=(\.|,|;|:|\?|\!)?("|'|«|»|\[|\s|\r|\n|$))/... |
import Marionette from 'backbone.marionette';
import { mixin } from 'core-decorators';
import template from 'templates/dashboard/item';
@mixin({
template,
tagName: 'li',
className: 'articles-item articles-item--inline'
})
export default class DashboardItemView extends Marionette.ItemView {}
|
import React from 'react';
import PropTypes from 'prop-types';
import './label.scss';
const Label = ({
htmlFor,
children,
}) => (
<label styleName="label" htmlFor={htmlFor}>{children}</label>
);
export default Label;
|
/*jshint browserify: true */
'use strict';
module.exports = {
listenTo: require('./listento-mixin'),
listenToProp: require('./listento-prop-mixin'),
connect: require('./connect-mixin'),
connectProp: require('./connect-prop-mixin'),
connectVia: require('./connect-via-mixin')
}; |
const Lab = require('@hapi/lab')
const Code = require('@hapi/code')
const server = require('../../api.js')
const lab = exports.lab = Lab.script()
lab.experiment('Goodbye Tests', function () {
// tests
lab.test('POST /account/goodbye', function (done) {
var options = {
method: 'POST',
url: '/account... |
'use strict';
var views = {
addHomePageView : function(req, res){
var workflow = req.app.utility.workflow(req, res);
var now = new Date;
var currentDate = Date.UTC(now.getUTCFullYear(),now.getUTCMonth(), now.getUTCDate(),
0, 0, 0, 0);
workflow.on('addView', function() {
var field... |
var readable = process.stdin;
if(gdk.config.Mcores){
if (gdk.c.cluster.isMaster) {
bootStdin();
}
}else{
bootStdin();
}
function bootStdin (){
readable.on('data', function (chunk) {
var bash = (chunk.toString()).substr(0, (chunk.toString()).length - 1);
functionFac(bash);
}... |
import "@AX6UI/AX6UITooltip/style.scss";
let html = `
<br/>
<br/>
<button data-ax6ui-tooltip="나는 툴팁" class="btn">default</button>
<button data-ax6ui-tooltip="tooltip bottom" class="btn tooltip-bottom">bottom</button>
<button data-ax6ui-tooltip="tooltip top" class="btn tooltip-top">top</button>
<button data-ax6ui-toolt... |
import React from 'react';
import ReactDOM from 'react-dom';
import './css/index.css';
import App from './js/App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
'use strict';
const github = require('octonode');
exports.closeIssue = function (id){
var client = github.client(process.env.GITHUB_KEY);
var ghissue = client.issue(process.env.ISSUES_REPO, id);
ghissue.update({
"state": "closed",
}, function(err, data, headers) {
if(err) {
... |
import { computed } from '@ember/object';
import $ from 'jquery';
import { DescriptionView } from './fd-description-view';
export let RoleView = DescriptionView.extend({
template: [
'<div class="uml-link-inputs">',
'<input type="text" class="description-input" value="" />',
'<input type="text" class="st... |
function countChar(inStr, inChar) {
var result = 0;
for (var i = 0; i < inStr.length; i++) {
if(inStr.charAt(i) == inChar) {
result++;
}
}
return result;
}
function countBs(inStr) {
return countChar(inStr, "B");
}
|
'use strict';
angular.module('datePicker').factory('datePickerUtils', function () {
var tz, firstDay;
var createNewDate = function (year, month, day, hour, minute) {
var utc = Date.UTC(year | 0, month | 0, day | 0, hour | 0, minute | 0);
return tz ? moment.tz(utc, tz) : moment(utc);
};
return {
get... |
import test from 'ava';
import 'babel-core/register';
import exists from 'mustream/src/utils/exists';
test('undefined does not exist', t => {
t.false(exists(undefined));
});
test('null does not exist', t => {
t.false(exists(null));
});
test('false does exist', t => {
t.true(exists(false));
});
test('undefin... |
import {combineReducers} from "redux";
import {routerReducer as routing} from "react-router-redux";
import zipcodeReducer from "../../widgets/zipcode/src/reducers/zipcodeReducer";
export default combineReducers({
routing,
zipcodeReducer
});
|
/**
* Each section of the site has its own module. It probably also has
* submodules, though this boilerplate is too simple to demonstrate it. Within
* `src/app/home`, however, could exist several additional folders representing
* additional modules that would then be listed as dependencies of this one.
* For exam... |
/**
* Created by hamidbehnam on 5/28/16.
*/
angular.module("smo.controllers", []);
/**
* Created by hamidbehnam on 5/28/16.
*/
angular.module("smo.directives", []);
/**
* Created by hamidbehnam on 5/28/16.
*/
angular.module("smo", ["smo.controllers", "smo.directives", "smo.services"]);
/**
* Created by ham... |
angular.module('gamilms_directives')
.directive('countTo', ['$rootScope','$timeout', function($rootScope, $timeout) {
return {
replace: false,
scope: true,
link: function(scope, element, attrs) {
var e = element[0];
var num, refreshInterva... |
this.BaseView = Backbone.View.extend({
template: function(){ throw new Error("You need to define a template"); },
render: function(){
var data = {};
if(this.model)
this.model.toJSON();
this.$el.html(this.template(data));
this.afterRender();
},
afterRender: function(){}
}); |
"use strict";
var Ember = require("ember")["default"] || require("ember");
exports["default"] = Ember.Handlebars.template(function anonymous(Handlebars,depth0,helpers,partials,data) {
this.compilerInfo = [4,'>= 1.0.0'];
helpers = this.merge(helpers, Ember.Handlebars.helpers); data = data || {};
var buffer = '', helpe... |
import React, { Component } from 'react';
import './styles/index.css';
import './styles/font-awesome.min.css';
import products from './rolls.json';
import productPic1 from './resources/images/default1.jpg';
import productPic2 from './resources/images/default2.jpg';
import productPic3 from './resources/images/default3.... |
'use strict';
const MarkdownIt = require('markdown-it');
const _ = require('lodash');
const wire = require('event-wire');
const utils = require('./utils');
const $ = require('./cheequery');
function wireOptions() {
let options = {};
if (module.exports.Promise) options.p = module.exp... |
var gulp = require('gulp');
var coffee = require('gulp-coffee');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var imagemin = require('gulp-imagemin');
var sourcemaps = require('gulp-sourcemaps');
var del = require('del');
var paths = {
scripts: ['client/js/**/*.coffee', '!client/extern... |
import React from 'react';
import { Route, Redirect } from 'react-router-dom'
import { ls } from './../../services';
const AuthenticatedRoute = ({ component: Component, ...rest }) => {
const renderMethod = props => {
const currentUser = ls.get('current_user');
if (!currentUser) {
alert('Não autorizad... |
var modules = [
'ngMaterial',
'ngResource',
'ngRoute',
'templates',
'navigation',
'projects',
'explore',
'users',
'alert',
'restangular',
'ngAnimate',
'search'
];
angular.module('instaemploy', modules)
.filter('capitalize', this.Capitalize)
.filter('datetime', this.Datetime)
.config(this.Config)
.run(this.Run)... |
/**
* @file mip-qtkj-addrem 组件
* @author yzxsl
*/
define(function (require) {
'use strict';
var customElement = require('customElement').create();
customElement.prototype.firstInviewCallback = function () {
function hasClassAll(obj, className) {
for (var i = 0, len = obj.length; i < ... |
/* eslint-disable */
/**
* Minified by jsDelivr using UglifyJS v3.1.10.
* Original file: /npm/string.startswith-polyfill@1.0.1/string.startsWith.js
*
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
*/
"use strict";!function(t,n){"function"... |
var path = require('path');
var srcDir = path.join(__dirname, '..', 'packages');
var exceptSrcDir = path.join(__dirname, '..', 'packages/**/**/tests/*.js')
//srcDir = ['*.js', 'test/**/*.js','!packages/**/server/tests/**', '!test/coverage/**', '!bower_components/**', 'packages/**/*.js', '!packages/**/**/tests/*.js','!p... |
export default {
data: () => ({
coords: [
54.82896654088406,
39.831893822753904,
],
}),
methods: {
onClick(e) {
this.coords = e.get('coords');
},
},
};
|
CRUDS.init(function() {
$loader = $('<div/>')
.attr({})
.css({
position: 'absolute',
width: '100%',
height: '100%',
background: 'rgba(255,255,255,0.9)',
'z-index': 99999999,
margin: '0px',
padding: '0px',
top: '0px'
}).append(
$('<p/>')
.css({
color: 'black',
position: 'ab... |
version https://git-lfs.github.com/spec/v1
oid sha256:ccf42cb44f7c27b8d34c1e0e567d1c698cb8050d4763ea5ed5cfed8a3dfff0e3
size 9570
|
(function (window) {
var Muuri = window.Muuri;
QUnit.module('Grid methods');
QUnit.test('destroy: should return the instance', function (assert) {
assert.expect(1);
var container = utils.createGridElements();
var grid = new Muuri(container);
var teardown = function () {
grid.destroy();
... |
// 49: Proxy - basics
// To do: make all tests pass, leave the assert lines unchanged!
describe('proxies bring intercession to JavaScript', function() {
it('is made of handler, traps and target', function() {
let target = {};
let handler = {
// get is a trap
get(target, propKey, receiver) {
... |
var express = require('express');
var router = express.Router();
var request = require('request');
var config = require('config.json');
router.post('/add', function (req, res) {
// authenticate using api to maintain clean separation between layers
request.post({
url: config.apiUrl + '/groups/add',
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var schemaGenerator_1 = require("./schemaGenerator");
function autopublishMutationResults(schema, pubsub) {
// decorate the mutations with your thingy
var mutationFields = schema.getMutationType().getFields();
Object.keys(mutationF... |
module.exports = function(app) {
app.config([
'formioComponentsProvider',
function(formioComponentsProvider) {
formioComponentsProvider.register('fieldset', {
fbtemplate: 'formio/formbuilder/fieldset.html',
icon: 'fa fa-th-large',
views: [
{
name: 'Display',... |
// Generated by CoffeeScript 1.8.0
(function() {
var CoffeeScript;
CoffeeScript = require('coffee-script/register');
module.exports = {
renderFile: function(path, options, callback) {
var err;
try {
if ((options.app != null) && !options.app.enabled('view cache')) {
delete requi... |
import {Map as IMap} from 'immutable';
import {GET} from '../constants';
export function dataCache(state = IMap({}), action) {
let {type, data, dataType} = action;
switch (type) {
case GET.ACTION_TYPES.LOADING_SUCCESS:
return state.set(dataType, data);
default:
retu... |
import {Promise} from '../core/Externals';
import {poll, stopPolling} from './Utils';
export default class Queue {
static _pollInterval = 250;
static _releaseTimeout = 5000;
constructor(cache, cacheId) {
this._cache = cache;
this._cacheId = cacheId;
this._promise = null;
}
... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
import React, { PropTypes } from 'react';
const propTypes = {
image: PropTypes.string,
name: PropTypes.string,
statusIcon: PropTypes.string,
statusText: PropTypes.string,
};
const defaultProps = {
image: '/dist/img/no-avatar.png',
name: 'Full Name',
statusIcon: 'fa fa-circle text-success',
statusText:... |
if (process.env.NODE_ENV === 'production') var newrelic = require('newrelic');
var path = require('path');
var ejs = require('ejs');
var config = require('../config');
var express = require('express');
var app = express();
var port = process.env.PORT || 8000;
app.set('view engine', 'ejs');
app.set('views', path.resolv... |
var colorVec;
function StoolPyramid() {
this.objs = [];
this.sp = new Stool();
colorVec = [1,0,0];
this.disk = new Disk(1, 2, 30, 30);
this.sphere = new Sphere(2);
this.cylinder = new Cylinder(1,2,3,150,150);
this.torus = new Torus(0.2,2);
a = vec3.fromValues(-15, 0, 5);
b = vec3.... |
var collections = {};
var createObject = function(Parent)
{
if(typeof Object.create !== "undefined")
return Object.create(Parent);
var F = function(){};
F.prototype = Parent;
return new F();
};
var getId = function()
{
return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
var r = Math.ran... |
'use strict'
var test = require('tape')
var Router = require('../')
test('route not found', function (t) {
t.plan(1)
var state = Router()
Router.onNotFound(state, function (data) {
t.deepEqual(data, { path: '/' })
})
Router.watch(state)
})
|
'use strict';
var grunt = require('grunt');
/**
* Fake transport. Instead of sending an email, writes it down to a file...
*/
function FileStubTransport(){}
FileStubTransport.prototype.sendMail = function(emailMessage, callback) {
var output = "";
// sendmail strips this header line by itself
emailMe... |
/* controls what keys to press for the left, right, and fire functions*/
var Game = new function() {
var KEY_CODES = { 37:'left', 39:'right', 32 :'fire', 13: 'enter'};
this.keys = {};
this.initialize = function(canvas_dom,level_data,sprite_data,ca... |
/*
* Kendo UI v2015.1.408 (http://www.telerik.com/kendo-ui)
* Copyright 2015 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial licen... |
module.exports = Marionette.CompositeView.extend({
tagName: 'div',
className: 'base-composite-view',
onRender: function(){
//a workaround taken from:
// http://stackoverflow.com/questions/14656068/turning-off-div-wrap-for-backbone-marionette-itemview
// Get rid of that pesky wrappi... |
'use strict';
var _inherits = require('babel-runtime/helpers/inherits')['default'];
var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default'];
var _extends = require('babel-runtime/helpers/extends')['default'];
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-defa... |
'use strict';
var express = require('express'),
crypto = require('crypto'),
router = express.Router(),
mongoose = require('mongoose'),
TimeEntry = mongoose.model('TimeEntry'),
Issue = mongoose.model('Issue'),
Repo = mongoose.model('Repo');
var TIME_REGEX = /:clock\d{1,4}: (\d{1,})([m|h])(?:(?:.... |
var Stream = require('net').Stream;
var util = require('util');
function Request () {
this.writable = true;
this.readable = true;
}
module.exports = Request;
util.inherits(Request, Stream);
Request.prototype.setHeader = function (key, value) {
if (this.written) throw new Error("can't set headers after wri... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M22 11h-5V6h-3v5h-4V3H7v8H1.84v2H7v8h3v-8h4v5h3v-5h5z" />
, 'AlignVerticalCenter');
|
import * as newsProxy from './news'
import * as userProxy from './user'
import * as postProxy from './post'
export {newsProxy,userProxy,postProxy} |
$(document).ready(function(){
$("#maptable span").on("click", function(){
$(this).text("");
});
}); |
var directionsDisplay,
directionsService = new google.maps.DirectionsService(),
routes = [];
function initialize() {
var mapOptions = {
center: new google.maps.LatLng(42.3581, -71.0636),
zoom: 12,
travelMode: google.maps.TravelMode.BICYCLING,
};
var map = new google.maps.Map(document.getElementB... |
// @flow
const fs = require('fs')
const http = require('http')
require('@babel/polyfill')
require('@babel/register')
const chokidar = require('chokidar')
const config = require('../../config').env[
process.env.NODE_ENV || 'development'
]
const PORT = process.env.PORT || config.PORT
const REPO_ROOT = config.REPO_RO... |
// @flow
import { storiesOf } from '@storybook/react'
import { base, filename } from 'paths.macro'
import * as React from 'react'
import { storyname } from 'storybook-utils'
import Login from './Login'
storiesOf(storyname(base, filename), module).add('without session', () => (
<Login />
))
|
import root from './pages/root';
import promptOrientation from './popups/promptOrientation/promptOrientation.component.ins';
import weChatShare from './shared/weChatShare';
export default () => Promise.resolve()
.then(() => Promise.all([
weChatShare(),
root.init(),
promptOrientation.load(),
]))
.catc... |
// Karma configuration
// Generated on Wed Aug 14 2013 12:11:09 GMT+0800 (中国标准时间)
module.exports = function(config) {
config.set({
// base path, that will be used to resolve files and exclude
basePath: '',
// frameworks to use
frameworks: ['jasmine'],
// plugins : [
// 'karma-mocha'
... |
#!/usr/bin/env node
/* *****************************************************************************
* umdlib.js creates the skeleton for writing a micro UMD Javascript library.
*
* The MIT License (MIT)
*
* Copyright (c) 2019 jclo <jclo@mobilabs.fr> (http://www.mobilabs.fr)
*
* Permission is hereby granted, fre... |
// FEATURES TESTED:
// sequential calls with nested parallel
var expect = require('expect');
var request = require('supertest');
module.exports = function(app) {
describe('Sequential Calls (seq_par.js)', function() {
it('should make sequential calls with some nested parallel calls', function(done) {
... |
/*
* THIS FILE IS AUTO GENERATED FROM 'lib/lex/null_lexer.kep'
* DO NOT EDIT
*/
"use strict";
var __o = require("bennu")["parse"],
__o0 = require("bennu")["text"],
nullLiteral, always = __o["always"],
next = __o["next"],
label = __o["label"],
string = __o0["string"];
(nullLiteral = label("Null Lex... |
// @flow
import React from "react";
import { connect } from "react-redux";
import Dialog from "material-ui/Dialog";
import FlatButton from "material-ui/FlatButton";
import { isDirty } from "../accessors";
import { logout } from "../actionCreators";
type Props = {
isDirty: boolean,
open: boolean,
cancel: () => vo... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModu... |
/**
* Global id generator to return ascending ids.
*/
var ID = {
current: 1,
ascending: function(){
return ID.current++;
}
};
/**
* Any cloned node can have multiple simultaneous versions
*/
function VersionedNode(initial){
this[initialVersion] = initial;
}
// Global initial Version
var initialVersion = ... |
/**
* @url http://braddickason.com/jasmine-and-nodejs-testing/
*/
(function() {
var coffee, isVerbose, jasmine, key, showColors, sys, _i, _len;
jasmine = require('jasmine-node');
_ = require('./lib/underscore/underscore.js');
sys = require('sys');
for (_i = 0, _len = jasmine.length; _i < _len; _i++) {
key = ... |
export const ic_add_location_alt = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M20 1v3h3v2h-3v3h-2V6h-3V4h3V1h2zm-8 12c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm2-9.75V7h3v3h2.92c.05.39.08.79.08 1.2 0 3.32-2.67 7.25-8 11... |
define(function () {
return {
env: 'prod',
version: '1.2',
sound: true,
width: 257,
height: 222,
}
});
|
module.exports = function(app) {
var express = require('express');
var <%= camelizedModuleName %>Router = express.Router();
var resource = '<%= dasherizedModuleName %>';
var dbSetupConfig = {};
dbSetupConfig[resource] = 'id';
var db = require('rethinkdb_adapter');
db.setup('http_mock_db', dbSetupConfig)... |
this.NesDb = this.NesDb || {};
NesDb[ '2B5889759B3C5AFCF00F58F15879507945B33D57' ] = {
"$": {
"name": "Gorby no Pipeline Daisakusen",
"altname": "ゴルビーのパイプライン大作戦",
"class": "Licensed",
"catalog": "GTS-4G",
"publisher": "Tokuma Shoten",
"developer": "Compile",
"region": "Japan",
"players": "1",
"date"... |
/*
Quicksand 1.2.2
Reorder and filter items with a nice shuffling animation.
Copyright (c) 2010 Jacek Galanciak (razorjack.net) and agilope.com
Big thanks for Piotr Petrus (riddle.pl) for deep code review and wonderful docs & demos.
Dual licensed under the MIT and GPL version 2 licenses.
http://github.com... |
version https://git-lfs.github.com/spec/v1
oid sha256:d12bd8d6630012bbb821927797b3be203227c0c448ac5c8edb74a186d8be0b23
size 1510
|
'use babel';
import { CompositeDisposable } from 'atom';
import packageConfig from './config-schema.json';
export default {
config: packageConfig,
events: null,
timer1: null,
activate(state) {
this.subscriptions = new CompositeDisposable();
this.subscriptions.add(
atom.workspace.observeTextEditors(this.c... |
'use strict';
const Generator = require('yeoman-generator');
class AppGenerator extends Generator {
constructor(args, opts) {
super(args, opts);
this.option('skip-install');
}
install() {
if(!this.options['skip-install']) {
this.installDependencies({ bower: false });
}
// Run the bas... |
var structbtNode =
[
[ "childLT", "structbtNode.html#affcef39503dd760867921a9e4f330891", null ],
[ "ct", "structbtNode.html#ad02ac144be7ec52d5da566ccaaebe76d", null ],
[ "fkey", "structbtNode.html#ac09825cf871b922f59456da9c9c69263", null ],
[ "leaf", "structbtNode.html#acfb0dde7924b4c4c1b10c8ad649456d5"... |
const path = require('path');
const autoprefixer = require('autoprefixer');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CspHtmlWebpackPlugin = require('csp-html-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const isProd = pro... |
var encendido = false;
var estricto = false;
var botonesMusicales = new Array(4);
var secuenciaBotones = [];
var puntos=0;
var esJugador=false;
var botonApretado=false;
var contadorBotonesApretados=0;
var audioActual;
$(document).ready(function(){
cargarBotonesMusicales();
$("#puntos").val("- -");
$("#switch").o... |
import React, {Component} from 'react';
import SearchResult from '../SearchResult';
export default class SearchBody extends Component {
constructor(props) {
super(props);
}
render() {
console.log(this.props.results);
const results = this.props.results.map(function(item) {
console.log('item', ... |
var _ = require('underscore');
function above(originalFn, aboveFn) {
return _.wrap(originalFn, aboveFn);
};
module.exports = above; |
import React, { Fragment, Component } from "react";
import { getRandomNumber } from "./utils/getRandomNumber";
import "./DotAnimation.css";
let DOT_COUNT = 15;
class DotAnimation extends Component {
dots = [];
initDotsArray = () => {
const { height, width } = this.canvas;
for (let i = 0; i < DOT_COUNT;... |
'use strict';
/**
* @ngdoc service
* @name $cacheFactory
*
* @description
* Factory that constructs cache objects and gives access to them.
*
* ```js
*
* var cache = $cacheFactory('cacheId');
* expect($cacheFactory.get('cacheId')).toBe(cache);
* expect($cacheFactory.get('noSuchCacheId')).not.toBeDefined(... |
// @flow
import React from 'react'
import autoBind from 'react-autobind'
import { injectIntl, defineMessages, FormattedMessage } from 'react-intl'
import { Card, CardTitle, CardText } from 'material-ui/Card'
import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton'
import type { AssistantInputProps } fr... |
/**
* Copyright Facebook Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
Ext.define('Organization.Form',{
extend: 'Ext.form.Panel',
alias: 'widget.organizationform',
/**
* Хранилище групп организаций
*/
storeGroup: null,
/**
* Хранилище сотрудников
*/
storeUser: null,
/**
* Хранилище сотрудников ХК
*/
storeUserHk: null,
/... |
var express = require('express')
var router = express.Router()
router.get('/', function (req, res, next) {
if (req.session.isLogin) {
res.render('index', {
isLogin: true,
userInfo: {
username: req.session.userName
}
})
} else {
req.ses... |
/*
Copyright (c) 2012-2016 Sutoiku
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, publish, distribute, su... |
/********************************************
*
* Button Control
*
* Darren Hurst
* BroadStreet Mobile
* Created, July 23 2012
*
*setText may also take img as html
*
*/
define(['underscore', 'backbone','icons/icons'], function(_, Backbone,Icons) {
var ButtonControl = Backbone.View.extend({
setText: fu... |
angular.module('bookstore.landing', [])
.controller('LandingController', ['$scope', '$http', 'Landing', 'Auth', '$window', '$location', function($scope, $routeParams, Landing, Auth, $window, $location) {
$scope.books = [];
$scope.savedSearch = '';
$scope.savedMax = null;
$scope.savedOrder = '';
$scope.page = ... |
'use strict';
const common = require('../../common');
const connection = common.createConnection();
const assert = require('assert');
connection.query('select 1', () => {
const serverVersion = connection._handshakePacket.serverVersion;
// mysql8 renamed some standard functions
// see https://dev.mysql.com/doc/r... |
// Load required packages
let oauth2orize = require('oauth2orize');
let User = require('../models/user');
let Model = require('../models');
let Client = Model.Client;
let Token = Model.Token;
let Code = Model.Code;
let appConfig = require('config').application;
// Create OAuth 2.0 server
let server = oauth2orize.creat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.