code stringlengths 2 1.05M |
|---|
export function deferredFactoryResolveSpy(resolve_value) {
let resolve_fn;
const resolve_spy = sinon.spy(v => resolve_fn(v));
const promise = new Promise(resolve => {
resolve_fn = sinon.spy(resolve);
});
const factory_spy = sinon.spy(() => {
setImmediate(resolve_spy, resolve_value);
return promise... |
'use strict';var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(fu... |
'use strict';
var csp = require('../../dist/index');
csp.longStackSupport = true;
var a = function() {
return csp.go(function*() {
throw new Error("Oops!");
});
};
var b = function() {
return csp.go(function*() {
return yield csp.go(function*() {
return yield a();
});
});
};
var c = funct... |
/**
@module ember
@submodule ember-views
*/
import jQuery from "ember-views/system/jquery";
import Ember from "ember-metal/core";
import o_create from 'ember-metal/platform/create';
import { normalizeProperty } from "dom-helper/prop";
import { canSetNameOnInputs } from "ember-views/system/platform";
// The HTML spec ... |
version https://git-lfs.github.com/spec/v1
oid sha256:2fc29dbedc7376eafdb0844aef43145ddc25d5f50e95271a957e887582688621
size 206304
|
var _ = require('lodash'),
Promise = require('bluebird'),
storage = require('../../../storage/index'),
replaceImage,
ImageImporter,
preProcessPosts,
preProcessTags,
preProcessUsers;
replaceImage = function (markdown, image) {
// Normalizes to include a trailing slash if there was ... |
'use strict';
module.exports = function (req, res) {
res.statusCode = 200;
res.setHeader('X-Frame-Options', 'SAMEORIGIN');
res.setHeader('X-Xss-Protection', '1; mode=block');
res.setHeader('X-Content-Type-Options', 'nosniff');
res.setHeader('Content-Type', 'application/json; charset=utf-8');
res.setHeader... |
import 'styles/main.css';
import ColourBar from 'components/ColourBar';
import Favico from 'components/Favico';
import Navigation from 'components/Navigation';
import { ColourProvider } from 'context/colour';
import Head from 'next/head';
import Script from 'next/script';
// eslint-disable-next-line react/prop-types
... |
import cn from 'classnames';
import React from 'react';
import PropTypes from 'prop-types';
import Listbox from 'react-widgets/lib/Listbox';
import BaseVirtualList from 'react-list';
import ListOption from 'react-widgets/lib/ListOption';
import ListOptionGroup from 'react-widgets/lib/ListOptionGroup';
import { groupByS... |
{
if (error) throw error;
var stratify = d3_hierarchy.stratify().parentId(function(d) {
var i = d.id.lastIndexOf(".");
return i >= 0 ? d.id.slice(0, i) : null;
});
var pack = d3_hierarchy.pack().size([960, 960]);
var data = d3_dsv.csvParse(inputText),
expected = JSON.parse(expectedText),
actua... |
version https://git-lfs.github.com/spec/v1
oid sha256:44d22c376185a41b923a54a5deb87a173bd8952051f41408eb5b9381368dc463
size 4700
|
/*
* grunt-jenkins-build-number
* https://github.com/Ideame/grunt-jenkins-build-number
*
* Copyright (c) 2013 Ideame
*/
module.exports = function (grunt) {
var util = require('util');
grunt.registerMultiTask("jenkinsBuildNumber", "Retrieves the latest build number/state from Jenkins.", function () {
... |
import React, {Component, PropTypes} from 'react';
import ArcGauge from './ArcGauge';
export default class Gauge extends Component {
static propTypes = {
label: PropTypes.string.isRequired,
value: PropTypes.number.isRequired,
units: PropTypes.string,
topLabel: PropTypes.bool
};
static style = {
... |
module.exports = function(config){
config.set({
basePath : './',
files : [
'web/static/bower_components/angular/angular.min.js',
'web/static/compiled/scripts/**/*.js',
'test/**/*.js'
],
autoWatch : true,
frameworks: ['jasmine'],
browsers : ['Chrome'],
plugins : [
... |
import 'core-js/stable';
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
process.on('unhandledRejection', (err) => {
/* eslint no-console: 0 */
console.error(err, err.stack);
});
chai.should();
chai.use(chaiAsPromised);
chai.us... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.messages = exports.ruleName = undefined;
exports.default = function (actual) {
return function (root, result) {
var validOptions = (0, _utils.validateOptions)(result, ruleName, { actual: actual });
if (!validOptions) {
... |
require(["gitbook", "jquery"], function (gitbook, $) {
var matcher = /\/\/jsfiddle.net\/.+/;
var defaults = {
type: 'script',
tabs: ['js', 'html', 'css', 'result'],
theme: 'light'
};
var localConfig = {
jsfiddle: {}
};
var extractConfigFromURL = function (href) {
... |
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore} from 'redux';
import { Provider } from 'react-redux';
import App from './components/App.jsx';
import Reducers from './reducers/index';
const store = createStore(Reducers);
ReactDOM.render((
<Provider store={store}>
<App />
... |
(function(){
angular.module('myApp', ['ngMessages','ngResource','ccLogoFilter']);
})();
|
const CUSTOM_LOG_LOAD = 'crm/log/CUSTOM_LOG_LOAD';
const CUSTOM_LOG_SUCCESS = 'crm/log/CUSTOM_LOG_SUCCESS';
const CUSTOM_LOG_FAIL = 'crm/log/CUSTOM_LOG_FAIL';
const initial = {
};
export default function reducer(state = initial, action = {}) {
switch (action.type) {
case CUSTOM_LOG_LOAD:
return {
... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define({widgetLabel:"Druk\u0101t",title:"Nosaukums",fileName:"Faila nosaukums",titlePlaceHolder:"Faila virsraksts",fileNamePlaceHolder:"Faila nosaukums",formatDefau... |
import {HttpClient} from '../scripts/aurelia-http-client.js';
export class App {
constructor() {
console.log('constructing app...');
this.heading = "Voz da gente";
this.phrase = '';
this.userPhrase = '';
this.foundWords = '';
this.listOfForvoObjs = [];
this.langList = [];
this.selecte... |
function cargar_Perfil() {
$.post(
base_url + "Controllerperfil/cargar_Perfil",
{},
function(ruta, datos) {
$("#content").hide();
$("#content").html(ruta, datos);
$("#content").show('slow');
}
);
//cargar conteni... |
(function() {
'use strict';
// the `highest` controller the app
angular.module('magicsquares').controller('Navigation', ['$scope', '$state', '$ionicSideMenuDelegate', '$ionicHistory', function($scope, $state,$ionicSideMenuDelegate, $ionicHistory) {
console.log('hi from Navigation!');
// wa... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var weather_variable_fullmoon = exports.weather_variable_fullmoon = { "viewBox": "0 0 64 64", "children": [{ "name": "path", "attribs": { "fill": "none", "stroke": "#000000", "stroke-width": "2", "stroke-miterlimit": "10", "d": "M56,50c4.19... |
var mongoose = require('mongoose');
var bcrypt = require('bcrypt-nodejs');
var crypto = require('crypto');
var userSchema = new mongoose.Schema({
email: {
type: String,
unique: true,
lowercase: true
},
name: {
type: String,
default: ''
},
playing: {
type: Boolean,
default: false
},
password: St... |
var gulp = require('gulp'),
ejs = require('gulp-ejs'),
concat = require('gulp-concat'),
jsdoc = require('gulp-jsdoc'),
jsdoc2md = require('jsdoc-to-markdown'),
fs = require('fs'),
path = require('path'),
clean = require('del'),
pkgInfo = require('./package.jso... |
module.exports = {
conditions: [''],
name: 'BitwiseXORExpression_In',
rules: [
'BitwiseANDExpression_In',
'BitwiseXORExpression_In ^ BitwiseANDExpression_In',
],
handlers: [
'$$ = $1;',
'$$ = new (require(\'./ast/BitwiseExpression\').BitwiseXORExpressionNode)($2, $1, $3, { loc: this._$, yy })'... |
module.exports = {
'v-tabs': {
events: [
{
name: 'change',
value: 'number',
},
],
},
}
|
/**
* @typedef {import('unist').Node} Node
*/
import fs from 'node:fs'
import path from 'node:path'
import test from 'tape'
import {unified} from 'unified'
import retextEnglish from 'retext-english'
import {emojiModifier} from 'nlcst-emoji-modifier'
import {emoticonModifier} from 'nlcst-emoticon-modifier'
import {re... |
// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it.
import fn from '../../subMilliseconds/index.js'
import convertToFP from '../_lib/convertToFP/index.js'
var subMillisecondsWithOptions = convertToFP(fn, 3)
export default subMillisecondsWithOptions
|
var should = require("should");
var ConcatSource = require("../lib/ConcatSource");
var RawSource = require("../lib/RawSource");
var OriginalSource = require("../lib/OriginalSource");
describe("ConcatSource", function() {
it("should concat two sources", function() {
var source = new ConcatSource(
new RawS... |
/* global exports */
"use strict";
// module Leaflet.Map
exports.createMap = function(i) {
return function(o) {
return function() {
return L.map(i,o);
}
}
}
|
const fs = require('fs');
console.log('시작');
let data = fs.readFileSync('./readme2.txt');
console.log('1번 ', data.toString());
data = fs.readFileSync('./readme2.txt');
console.log('2번 ', data.toString());
data = fs.readFileSync('./readme2.txt');
console.log('3번 ', data.toString());
console.log("끝");
|
console.clear()
console.log('Hola Mundo desde la Consola :)')
var nombre = 'Jonathan'
console.log('Hola Mundo desde la Consola :) te saluda %s', nombre)
var anio = 2016
console.log('Hola Mundo desde la Consola :) te saluda %s, que tengas un excelente año %d', nombre, anio)
console.error('Error Configurado por el usua... |
(function() {
'use strict';
angular.module('user', [
'ngStorage'
])
.config(function($authProvider) {
$authProvider.google({
clientId: ''
});
$authProvider.facebook({
clientId: ''
});
$authProvider.github({
clientId: ''
});
$authProvider.... |
/**
* @license
* v1.3.8
* MIT (https://github.com/pnp/pnpjs/blob/master/LICENSE)
* Copyright (c) 2019 Microsoft
* docs: https://pnp.github.io/pnpjs/
* source: https://github.com/pnp/pnpjs
* bugs: https://github.com/pnp/pnpjs/issues
*/
import { RuntimeConfig, dateAdd, PnPClientStorage, isFunc, hOP, extend, combi... |
{
var config = oneEventLoopTestConfig(three);
config.startShouldSetResponder.captured.grandParent = {
order: 0,
returnVal: false
};
config.startShouldSetResponder.captured.parent = {
order: 1,
returnVal: false
};
config.startShouldSetResponder.captured.child = {
order: 2,
returnVal: ... |
'use strict';
configApp.factory("AboutPageService", function($http) {
return {
save : function(sendData)
{
var urlConfig = [baseUrl, 'admin','about_page_save'].join('/');
return $http({
method: 'POST',
url: urlConfig,
data: $.param({ data : sendData}),
headers: {'C... |
import Reflux from 'reflux';
module.exports = Reflux.createActions([
'login',
'logout',
'setUserName'
]);
|
'use strict';
var assParser = require('..');
var test = require('tape');
var fs = require('fs');
var sample = function (encoding) {
return fs.readFileSync(__dirname + '/sample.ass', { encoding: encoding });
};
var subtitleWithComments = require('./sample.json');
var subtitleWithoutComments = subtitleWithComment... |
(function() {
//
// object: the camera or other 3D object to attach to (THREE.Object3D)
// size: the size of each page cube (Number)
// distance: the distance from the object to create pages (THREE.Vector3)
// options: the `add` and `remove` callbacks to (Object)
var Paging = function( o... |
// This is our bootstrap file responsible for configuring Require.js and loading dependencies.
require.config({
paths: {
jquery: 'libs/jquery/jquery',
underscore: 'libs/underscore/underscore',
handlebars: 'libs/handlebars/handlebars',
backbone: 'libs/backbone/backbone',
viewcache: 'libs/backbone.viewcache/b... |
namespace('Demo');
Demo.CollectionView = Backbone.View.extend({
render: function() {
this.$el.html("Ready to search...");
return this;
},
showResults: function(tasksJson){
var _this = this;
this.$el.empty();
_.each(tasksJson, function(task) {
_this.$el.append(task.member_name);
});... |
(function() {
'use strict';
angular
.module('app.project')
.controller('EditController', EditController);
/** @ngInject */
function EditController($scope, $rootScope, $mdDialog, selectedProject, projectService) {
$scope.select_project_original = selectedProject;
$scope... |
var NAVTREEINDEX0 =
{
"annotated.html":[1,0],
"api_8h.html":[2,0,0],
"api_8h.html#a2997e5a364a7ef0b05d6b4913cd23a6f":[2,0,0,0],
"api_8h_source.html":[2,0,0],
"binary__symmetric__channel_8h.html":[2,0,1],
"binary__symmetric__channel_8h_source.html":[2,0,1],
"binary__symmetric__channel__impl_8h.html":[2,0,2],
"binary__sy... |
(function(window, undefined){
'use strict';
var imgs = [],
els = [];
function imageViwer(el){
var basePath = el.getAttribute('data-base-path') || 'images/',
images = el.getAttribute('data-images').split(','),
delay = el.getAttribute('data-delay') || 500,
... |
(function (Random) {
describe("integer distribution", function () {
[-Math.pow(2, 53) - 2, -Infinity, NaN, Infinity].forEach(function (min) {
it("throws a RangeError if min = " + min, function () {
expect(function () {
Random.integer(min, 0);
}).toThrow(new RangeError("Expect... |
import Ember from 'ember';
import jsonSchemaSchema from 'ember-cli-json-schema-validator/schemas/json-schema';
var JsonSchemaValidatorService = Ember.Service.extend({
// Validates the argument is a valid JSON schema and returns errors, if any.
// If valid, a falsey value is returned.
validate (schemaObj) {
v... |
'use strict';
/* Directives */
angular.module('myApp.directives', []).
directive('appVersion', ['version', function(version) {
return function(scope, elm, attrs) {
elm.text(version);
};
}])
.directive('chart', function() {
return {
restrict: 'A',
... |
'use strict'
var assert = require('assert')
var s = require('stream')
var Promise = require('promise')
var b = require('../')
describe('barrage(stream) mixin', function () {
it('returns `stream` with a mixin', function () {
var r = new s.Readable()
var w = new s.Writable()
var t = new s.Transform()
... |
/*
* Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
*
* 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 ri... |
import React from 'react';
export default class Wait extends React.Component {
render() {
return (
<div>
<h1>最近十个有新回复的请求</h1>
<hr className="colorgraph" />
</div>
)
}
}
|
import { AttrAssembler } from './AttrAssembler'
import { ChildNodeAssembler } from './ChildNodeAssembler'
import { NodeAssembler } from './NodeAssembler'
const { prototype : { map } } = Array
const { MutationObserver, Node } = window
const { ATTRIBUTE_NODE, DOCUMENT_FRAGMENT_NODE } = Node
const { getNodeOf } = NodeAss... |
/*global xAPS */
/**
* The xAPS module for the Search page.
*
* Doesn't really do that much magical.
*
* Only thing that could make it hard to read is the references to $this.settings
* It makes it easier to change settings without the need to skim the code.
*
* This module is initialized runtime and depend... |
'use strict';
const crypto = require('crypto');
const rrange = 4294967296;
/**
* Return an integer, pseudo-random number in the range [0, 2^32).
*/
const nextInt = function() {
return crypto.randomBytes(4).readUInt32BE(0);
};
/**
* Return a floating-point, pseudo-random number in the range [0, 1).
*/
const ... |
describe('Playlist Saver', function() {
var scope, httpBackend, mockData, rootScope, iscope, UserPlaylists, ApiPlaylists, $q, PlaylistSaverSettings;
var youtubeVideosMock = {};
var html = [
'<playlist-saver on-save="onSave()" on-cancel="onCancel()" tracks="playlist"></playlist-saver>'
];
function fakePromise ()... |
'use strict';
angular.module('wanderlustApp')
.factory('getUser', function($http){
return{
getData: function(userId, callback){
return $http({
method: 'GET',
url: '/api/user/'+userId
}).success(function(data){
callback(data);
});
}
};
})
.... |
/**
* Exports functions to observe an object for changes. Does not follow the now defunct Object.observe API.
*
* @module Grue/core/Observe
* @author Noah Feldman <nfeldman@nsfdev.com>
* @copyright 2012-2016
*/
/**
* @fileOverview
*
* This is an experiment to see if there is a reasonably efficient way to crea... |
var adapter = require("builder-docs-archetype-dev/spec-setup").adapter;
var expect = require("chai").expect;
var routes = require("../../../static-routes");
var validateRelative = function (abs) {
// check if link belongs to our app
if (abs.indexOf(global.TEST_FUNC_BASE_URL) === 0) {
// strip base url out
... |
var TankGame = TankGame || {};
TankGame.Howtoplay = function(){};
var gameFieldX = (window.innerWidth-(61*15))/2;
var gameFieldY = (window.innerHeight-(61*10))/2;
var instrStyle = {font: "16px Arial", fill: "#ffffff"};
TankGame.Howtoplay.prototype = {
create: function() {
var instructionText = "There are tw... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return function (d, b)... |
import React from 'react'
import { withReflex } from '../../src'
const script = `
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?"http":"https";if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,f... |
/*
* Kendo UI Web v2012.2.710 (http://kendoui.com)
* Copyright 2012 Telerik AD. All rights reserved.
*
* Kendo UI Web commercial licenses may be obtained at http://kendoui.com/web-license
* If you do not own a commercial license, this file shall be governed by the
* GNU General Public License (GPL) version 3.
* For GPL... |
define([], function(){
return function (path,speed,trans) {
var length = path.getTotalLength();
trans = typeof trans !== 'undefined' && trans !== '' ? trans : speed;
path.style.transition = path.style.WebkitTransition = 'none';
path.style.strokeDasharray = length + ' ' + length;
path.style.strok... |
/*jslint nomen: true*/
/*global Backbone,_,$,L,waze */
/*jslint browser: true*/
if (typeof waze === "undefined") {
var waze = {};
}
waze.map = (function () {
'use strict';
var Notification, NotificationList, MapModel, NotificationView,
NotificationListView, NotificationListCounterView, MapView, D... |
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['2977',"Tlece.Recruitment.Services.Company Namespace","topic_0000000000000A83.html"],['2978',"CompanyService Class","topic_0000000000000A84.html"],['2991',"Methods","topic_0000000000000A84_methods--.html"],['3051',"P... |
/*
* jQuery ibanner
*
*/
if (typeof Object.create !== "function") {
Object.create = function (obj) {
function F() {}
F.prototype = obj;
return new F();
};
}
(function ($, window, document) {
var Carousel = {
init : function (options, el) {
var base = this;
... |
'use strict';
const rp = require('request-promise');
const {host} = require('./constants');
const createUserAndLogin = (user) => {
return rp.post({
uri: `${host}/auth/login`,
json: true,
body: user
}).then(result => result.token).catch(err => {
console.log(err.statusCode);
... |
(function (JGS, $, undefined) {
"use strict";
/**
This class provides javascript handling specific to the example7 page. Most importantly, it provides the dygraphs
setup and handling, including the handling of mouse-down/up events on the dygraphs range control element.
@class Demo7Page
@constructor
... |
'use strict'
/* global describe, it */
const assert = require('assert')
describe('ShopProduct Model', () => {
it('should exist', () => {
assert(global.app.api.models['ShopProduct'])
})
})
|
$(document).ready(function () {
var regex = /^(?=(?:.*?[A-Z]){1})(?=(?:.*?[0-9]){1})(?=(?:.*?[a-z]){1})*$/;
$('form').submit(function (e) {
e.preventDefault();
if ($('#Senha').val() !== $('#RepetirSenha').val()) {
alert("Senhas não condizem!");
return false;
}... |
const path = require('path');
const rand = require('crypto-random-string');
const os = require('os');
const fs = require('fs');
const escapeUnsafe = require('./helpers/escapeUnsafe');
module.exports = function SitemapStream() {
const tmpPath = path.join(os.tmpdir(), `sitemap_${rand(10)}`);
const stream = fs.create... |
'use strict';
/**
* @ngdoc function
* @module ng
* @name angular.injector
* @function
*
* @description
* Creates an injector function that can be used for retrieving services as well as for
* dependency injection (see {@link guide/di dependency injection}).
*
* @param {Array.<string|Function>} modules A lis... |
'use strict';
((rb, window, $) => {
rb.cardGrids = rb.cardGrids || {};
const CSS = window.CSS;
if (CSS &&
(CSS.supports('display', 'grid') ||
CSS.supports('display', '-ms-grid'))) {
const document = window.document;
const resizeGridItem = (item) => {
const grid = $(item).closest('.ca... |
/*
* The MIT License
* Copyright (c) 2014-2016 Nick Guletskii
*
* 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, c... |
var q = require('q');
var qfs = require('q-io/fs');
var mkdirp = require('mkdirp');
var origExec = require('child_process').exec;
var exec = function(cmd, cb) {
console.log('Running ' + cmd);
return origExec(cmd, cb);
}
function mkdir(dir) {
var d = q.defer();
mkdirp(dir, function(err) {
if (err) {
... |
const debug = require('@tryghost/debug')('web:api:v2:content:app');
const boolParser = require('express-query-boolean');
const bodyParser = require('body-parser');
const express = require('../../../../../shared/express');
const shared = require('../../../shared');
const routes = require('./routes');
module.exports = f... |
/* eslint-disable import/prefer-default-export, camelcase */
export { unstable_Box } from './Box';
|
/*******************************************************************************
* @route NodeJS Sandbox
* @author Jaroslaw Predki
*******************************************************************************/
var express = require( 'express' );
var router = express.Router();
//----------------------------... |
const { avatar_upload, login_cellphone } = require('../server')
const fs = require('fs')
const path = require('path')
async function main() {
const result = await login_cellphone({
phone: '手机号',
password: '密码',
})
const filePath = './test.jpg'
await avatar_upload({
imgFile: {
name: path.basen... |
/**
* Datatable Service will ensure the coherence column between the back side and the view
* @author: Kihansi
*/
//TODO failed, find the way to be able to create a generator
//create generator
function Generator(attributes) {
this.columns = _.clone(attributes);
this.dtProjection = () => {
return ... |
// Generated by CoffeeScript 1.10.0
var extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child;... |
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'showblocks', 'sq', {
toolbar: 'Shfaq Blloqet'
});
|
$(document).ready(function (e) {
if ($("form[data-parsley-validate]").length > 0) {
$("form[data-parsley-validate]").parsley();
}
if ($('.datepicker').length > 0) {
$('.datepicker').datepicker({
clearBtn: true,
format: "yyyy-mm-dd"
});
}
if ($('.selec... |
/**
* @package Regular Labs Library
* @version 17.2.15002
*
* @author Peter van Westen <info@regularlabs.com>
* @link http://www.regularlabs.com
* @copyright Copyright © 2017 Regular Labs All Rights Reserved
* @license http://www.gnu.org/licenses/gpl-2.0.html GN... |
steal('a', 'b', function (__a, __b) {
var a = __a, b = __b;
exports.action = function () {
console.log(`hello world`);
};
}); |
// [Working example](/serviceworker-cookbook/json-cache/).
var CACHE_NAME = 'dependencies-cache';
self.addEventListener('install', function(event) {
// Perform the install step:
// * Load a JSON file from server
// * Parse as JSON
// * Add files to the cache list
// Message to simply show the lifecycle flo... |
// Generated by CoffeeScript 2.1.1
(function() {
// out: ../lib/index.js, sourcemap: true
/*
* @overview Contains the entry point for the right click context menu
* @module tara-right-click-menu
*/
var TARA_CONFIG_DBS, app, join, remote, rimraf;
({app, remote} = require("electron"));
({join} = requ... |
/**
* @since 2017-03-17 11:33:56
* @author vivaxy
*/
import EventEmitter from 'https://unpkg.com/event-based-framework/class/event-emitter.js';
import canvas from './canvas.js';
import Bird from './bird.js';
import Input from './input.js';
import Background from './background.js';
import StickManager from './stick... |
var http = require("http").createServer(handler) // tu je pomemben argument "handler", ki je kasneje uporabljen -> "function handler (req, res); v tej vrstici kreiramo server! (http predstavlja napo aplikacijo - app)
, io = require("socket.io").listen(http)
, fs = require("fs");
function handler (req, res) { // ... |
import { mutations as comicBookMutations } from './comicBook'
export const Mutation = `
type Mutation {
${comicBookMutations}
}
`
|
import isBrowser from 'is-in-browser';
//Grab variables from process.env or window
export const {
APP_WEB_BASE_PATH,
API_HOST,
ALLOW_REDUX_DEV_TOOLS,
GOOGLE_BOOKS_API
} = isBrowser ? window.__APP_ENV_VARS__ : process.env;
|
'use strict';
module.exports = profile;
profile.Profile = Profile;
var event_emitter = require('events').EventEmitter;
var node_util = require('util');
var node_path = require('path');
var fs = require('fs-sync');
var trait = require('trait');
var ini = require('ini');
function profile(options) {
return new Prof... |
var lcdboot_8c =
[
[ "LCD_DATA", "lcdboot_8c.html#a6951f4c8fe91af3b5d606cd933970c86", null ],
[ "LCD_Boot_Init", "lcdboot_8c.html#a9d26519d0eec10bbcc82be0769e320f1", null ],
[ "LCD_Command", "lcdboot_8c.html#ac5e48d9c8ff163af96d51d34d8ccf0b0", null ],
[ "LCD_Data", "lcdboot_8c.html#a231fadbfce2c5e498ffc... |
import enterFullscreen from '../utils/enterFullscreen';
import exitFullscreen from '../utils/exitFullscreen';
export default function (isOn) {
let self = this;
if (isOn) {
enterFullscreen(self.wrapper[0]);
} else {
exitFullscreen();
}
};
|
#!/usr/bin/env node
import { readFile } from 'fs/promises';
import minimist from 'minimist';
import createPullRequest from '../lib/create-github-pr.js';
import fixtureJsonStringify from '../lib/fixture-json-stringify.js';
import importJson from '../lib/import-json.js';
import { checkFixture } from '../tests/fixture-v... |
import{B as t}from"./index-fe8be053.js";const e="orient",n="vertical",i="horizontal";export default class extends t{constructor(t,e=""){super(t);const n=e.split(/\s+/g);this.aria=!n.includes("no-aria"),this.dynamic=n.includes("dynamic"),this.orient=n.includes("v")?"v":"h",this.dynamic&&t.addEventListener("focusin",(()=... |
Polymer({
is: 'moi-actions-row'
});
|
'use strict';
var _chalk = require('chalk');
var _chalk2 = _interopRequireDefault(_chalk);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var error = _chalk2.default.red,
warn = _chalk2.default.yellow,
step = _chalk2.default.green,
start = _chalk2.default... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.