code stringlengths 2 1.05M |
|---|
// Inject Bower components into source code
//
// grunt-wiredep: <https://github.com/stephenplusplus/grunt-wiredep>
// wiredep: <https://github.com/taptapship/wiredep>
'use strict';
module.exports = {
markups: {<% if (cfg.html) { %>
src: ['<%%= path.markups %>/**/*.html']<% } %><% if (cfg.pug) { %>
src: ['<... |
'use strict';
// WEB PUBLICO
// =============================================================================
var express = require('express');
var router = express.Router();
//var request = require('request');
var Model = require('../../models/jugando.js');
/***********************alarma***************************
va... |
/* eslint no-console: [0] */
'use strict'
const Email = require('trailpack-proxy-email').Email
module.exports = class Customer extends Email {
/**
*
* @param customer
* @param data
* @param options
* @returns {Promise.<{type: string, subject: string, text: string, html:string, send_email:boolean}>}
... |
/* eslint-disable global-require */
import React from 'react';
import { Router, Route, IndexRoute } from 'react-router';
import App from './modules/App/App';
import Landing from './modules/App/Landing';
import TalentInput from './modules/App/TalentInput';
import Performer from './modules/App/Performer';
// require.ens... |
var async = require('async');
var rp = require('request-promise');
var Promise = require('bluebird');
/*
LoL API object that deals with everything.
*/
var LoLAPI = {
init: function(inputObj) {
/*
SET UP LOGGER
*/
if(typeof inputObj.logger !== 'undefined') {
this.logger = inputObj.logger;
... |
function solve(params) {
var N = parseInt(params[0]),
K = parseInt(params[1]),
numbersAsString = params[2];
var numbers = numbersAsString.split(' ').map(Number);
var result = [];
for (var i = 0; i < N; i += 1) {
if(i+K-1 === N) {
break;
}
var min = 1... |
/**
* Created by dima on 06.12.16.
*/
import React from 'react';
import ViButton from './ViButton';
import './ViFileDownload.css'
const ViFileDownloadButton = function ({ onClick, assetUri, type, loading }) {
return (
<div className="ViFileDownload">
{onClick && <ViButton onClick={() => {
... |
'use strict';
exports.BattleFormatsData = {
bulbasaur: {
randomBattleMoves: ["sleeppowder", "gigadrain", "hiddenpowerfire", "hiddenpowerice", "sludgebomb", "powerwhip", "leechseed", "synthesis"],
randomDoubleBattleMoves: ["sleeppowder", "gigadrain", "hiddenpowerfire", "hiddenpowerice", "sludgebomb", "powerwhip", ... |
/*
* GET home page.
*/
exports.index = function(req, res){
res.render('index', { title: 'DSA' });
};
exports.game = function (req,res){
res.render('game',{title: req.params.id })
}; |
const fs = require('fs');
module.exports = (params) => () => {
fs.writeFileSync(`${params.projectRoot}/License.md`, params.license);
return 'licenseMd: ok';
};
|
function Improvement(options) {
this.name = options.name;
this.image = options.image;
this.depth = options.depth || 0;
this.parent = options.parent;
this.children = options.children || [];
this.siblings = options.siblings || [];
this.toDisplay = options.toDisplay || [];
this.toBuild = options.toBuild ... |
(function($, UI) {
"use strict";
var $win = $(window),
$doc = $(document),
scrollspies = [],
checkScrollSpy = function() {
for(var i=0; i < scrollspies.length; i++) {
UI.support.requestAnimationFrame.apply(window, [scrollspies[i].check... |
var typecheck = require('./typeinference').typecheck,
macroexpand = require('./macroexpand').macroexpand,
loadModule = require('./modules').loadModule,
exportType = require('./modules').exportType,
types = require('./types'),
nodeToType = require('./typeinference').nodeToType,
nodes = require('.... |
// @license
// Redistribution and use in source and binary forms ...
// Class for sending and receiving postMessages.
// Based off the library by Daniel Park (http://metaweb.com, http://postmessage.freebaseapps.com)
//
// Dependencies:
// * None
//
// Copyright 2014 Carnegie Mellon University. All rights reserved.
//
... |
"use strict";
/*
The MIT License (MIT)
Copyright (c) Bryan Hughes <bryan@nebri.us>
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 ... |
require.config({ urlArgs: "v=" + (new Date()).getTime() });
require(["game"], function(game) {
// I know it's ugly but it works, make game a global object
G = game;
G.init();
$(window).resize(G.camera.resize);
G.render();
});
|
define([], function () {
var TAGNAMES = {
'select':'input',
'change':'input',
'submit':'form',
'reset':'form',
'error':'img',
'load':'img',
'abort':'img'
};
var Utility = function() {
};
Utility.isEventSupported = function(eventName) {
var el = document.createElement(T... |
if($.cookie('age') !== 'pass') {
$('body').addClass('uh-oh');
$('#age-verify').show();
}
//generate map
function showMap() {
//set locations
var location = new google.maps.LatLng(39.90658,-105.09859);
var stylesArray = [
{
"stylers": [
{ "saturation": -100 }
]
},{
"featureT... |
(function($) {
$.extend({
tablesorter: new function() {
var parsers = [], widgets = [];
this.defaults = {
cssHeader: "header",
cssAsc: "headerSortUp",
cssDesc: "headerSortDown",
sortInitialOrder: "asc",
sortMultiSortKey: "shiftKey",
sortForce: null,
sortAppend: null,
te... |
var exec = require('child_process').exec;
exports.setHostname = function(envSettings){
var command = 'hostname';
exec(command,[], function (error, stdout, stderr) {
if(error){
console.log('error when executing: ' + command);
console.log('output : ' + stderr);
}
console.log('hostname : ' + stdout);
var ... |
//AppliedRules.defineSetByView
module.exports = (function( viewId ){
return this.defineSetByTag( viewId );
}); |
/*
* decaffeinate suggestions:
* DS102: Remove unnecessary code created because of implicit returns
* DS201: Simplify complex destructure assignments
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
*/
const { CompositeDisposable } = require('atom')
let MinimapBookmarksBind... |
/* global ga */
import 'core-js/fn/array/find-index'
import 'core-js/fn/string/starts-with'
import './index.css'
import '../node_modules/md-components/style.css'
import React from 'react'
import ReactDOM from 'react-dom'
import {Route, NavLink, HashRouter} from 'react-router-dom'
import {Shell} from 'md-components'
i... |
import { Meteor } from 'meteor/meteor';
import { Template } from 'meteor/templating';
import { lodash } from 'meteor/stevezhu:lodash';
import { Bert } from 'meteor/themeteorchef:bert';
import { moment } from 'meteor/momentjs:moment';
import 'meteor/sacha:spin';
import { Workshops } from '../../../api/workshops/schema.... |
angular.module('luhbot',[
'ui.router',
'dashboard'
])
//TODO: Persistance of socket
.factory('IO',function(Toasts){
var IO = function(){
this.namespace = null;
this.socket = {};
var self = this;
this.connect = function(namespace){
if(namespace){
this.namespace = String('/').concat(n... |
class ias_machineaccountvalidation {
constructor() {
}
// System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType)
CreateObjRef() {
}
// bool Equals(System.Object obj)
Equals() {
}
// int GetHashCode()
GetHashCode() {
}
// System.Object GetLifetimeService()
... |
var utils = require('./utils')
var webpack = require('webpack')
var config = require('../config')
var merge = require('webpack-merge')
var baseWebpackConfig = require('./webpack.base.conf')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
// ad... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h(h.f, null, h("circle", {
cx: "15.5",
cy: "9.5",
r: "1.5"
}), h("circle", {
cx: "8.5",
cy: "9.5",
r: "1.5"
}), h("path", {
d: "M12 16c-1.48 0-2.75-.81-3.45-2H6.88c.8 2.05 2.79 3.5 5.12 3.5s4.32-1.45 5... |
var content = '<abcdテスト>';
var result = '';
result = encodeURI(content);
console.log("encodeURI('abcdテスト')", result);
console.log("decodeURI(encodeURI('abcdテスト'))", decodeURI(encodeURI(content)));
result = encodeURIComponent(content);
console.log("encodeURIComponent('abcdテスト')", result);
console.log("decodeURICompone... |
// 使用缓存优化标签选择
// 如果没有缓存的话建立缓存,否则返回缓存中的标签对象
function getElements(name) {
if (!getElements.cache) {
getElements.cache = {};
}
return getElements.cache[name] = getElements.cache[name] || document.getElementsByTagName(name);
} |
function ajaxChimpCallback(a) {
if ("success" === a.result) {
$(".beta-request-result").show();
$(".beta-request-form").hide();
$(".beta-request-title").hide();
$.featherlight.current().close();
}
else
{
a.msg.indexOf("already subscribed") >= 0 ? ($(".beta-reque... |
export default class Definition {
get module() { return this._module; }
set module(value) { this._module = value; }
get classArguments() { return this._arguments || []; }
set classArguments(value) { this._arguments = value; }
get tags() { return this._tags || []; }
set tags(value) { this._t... |
/* eslint-disable no-console*/
import low from 'lowdb';
import fse from 'fs-extra';
import uuid from 'uuid';
import slug from 'slug';
import constants from './constants';
import { crypt } from '../utils';
const user = {
id: uuid(),
name: constants.USER_NAME,
password: crypt.encrypt(constants.USER_PASSWORD),
... |
/**
* Fetch configuration data using an API Key and the Application Secret Key.
* By doing so, the sconfig servers will just apply firewall rules (if any) and return
* the encrypted configuration data. The client will then decrypt the configuration
* data using the App Secret Key
* Note: Ff no API Key or App Secre... |
// Lecture 11
function b() {
console.log('Called b!');
}
b();
console.log(a);
// Will return undefined as only set in Creation Phase
var a = 'Hello World!';
console.log(a);
// Lecture 12 Conceptual Aside
/*
-Single Threaded: One command at a time
-Caveat, Javascript is not the only thing happening within a b... |
'use strict';
var mongoose = require('mongoose')
, Schema = mongoose.Schema;
// 스키마 구조
var PollReplySchema = new Schema({
_id: { type:Schema.Types.ObjectId, required:true },
itemMulti: [{
_id: { type:Schema.Types.ObjectId, required:true },
reply: [{
_id: { type:Schema.Types.Objec... |
/**
* @author sole / http://soledadpenades.com
* @author mrdoob / http://mrdoob.com
* @author Robert Eisele / http://www.xarg.org
* @author Philippe / http://philippe.elsass.me
* @author Robert Penner / http://www.robertpenner.com/easing_terms_of_use.html
* @author Paul Lewis / http://www.aerotwist.com/
* @autho... |
var geometry = new (function() {
var pub = this;
pub.distance = function(object1, object2) {
return Math.sqrt(Math.pow(object1.x - object2.x, 2) + Math.pow(object1.y - object2.y, 2));
}
})();
|
/* eslint no-unused-vars:0 */
import {util} from '../../math';
/**
* Particle Emitter base class
*
* @property {number|string} id
* @property {string} name
* @property {Tw2ParticleSystem} particleSystem
* @class
*/
export class Tw2ParticleEmitter
{
constructor()
{
this._id = util.generateID();
... |
var should = require('chai').should();
var pathFn = require('path');
var fs = require('hexo-fs');
var Promise = require('bluebird');
var crypto = require('crypto');
var util = require('hexo-util');
var Pattern = util.Pattern;
var testUtil = require('../../util');
function shasum(content){
var hash = crypto.createHas... |
jQuery(function($) {
$('ul li.active').qtip({
content: 'This is an active list element',
show: 'mouseover',
hide: 'mouseout',
position: { target: 'mouse' }
})
}); |
/**
The MIT License (MIT)
Copyright (c) 2014 MyChannel-Apps.de
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, mod... |
module.exports = function(app){
var validacao = require('../validacoes/usuarios');
var Usuario = app.models.usuarios;
var UsuarioController = {
index: function(req,res){
Usuario.find(function(err,dados){
if(err){
req.flash('erro', 'Erro ao buscar usuários: '+err);
res.redirect('/usuarios');
... |
console.log("J U I loaded");
var timer;
var timer2;
var timer3;
var counter;
var cell;
var curCount = 0;
var gameLost = false;
var multiUp = 0;
var total = 10;
var score = 0;
var points = 100;
var board = [ 0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,
... |
module.exports = {
label: {
display: 'block',
width: '90%',
marginBottom: 15
},
labelText: {
color: '#777',
fontSize: '15px',
display: 'block'
},
input: {
display: 'block',
fontSize: '20px',
padding: 10,
width: '100%',
border: '1px solid #ddd'
},
textarea: {
display: 'block',
fontSize: ... |
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
"download-atom-shell": {
version: "0.23.0",
outputDir: "./atom-shell",
rebuild: true
}
});
grunt.loadNpmTasks('grunt-download-atom-shell');
};
|
// Dependencies
var UFirst = require("ucfirst");
/**
* CrossStyle
* Returns an array of cross-browser CSS properties for given input.
*
* @name CrossStyle
* @function
* @param {String} input The CSS property (e.g. `"transform"` or `"transformOrigin"`).
* @return {Array} An array of strings representing the cros... |
export default {
forward: "转发",
reply: "回复",
ignore: "忽略",
toVoicemail: "到语音信箱",
answer: "接听",
answerAndEnd: "接听并结束",
answerAndHold: "接听并保持"
};
// @key: @#@"forward"@#@ @source: @#@"Forward"@#@
// @key: @#@"reply"@#@ @source: @#@"Reply"@#@
// @key: @#@"ignore"@#@ @source: @#@"Ignore"@#@
// @key: @#@"toVo... |
/*
用 action 来描述“发生了什么”,和使用 reducers 来根据 action 更新 state 的用法。
Store 就是把它们联系到一起的对象。Store 有以下职责:
维持应用的 state;
提供 getState() 方法获取 state;
提供 dispatch(action) 方法更新 state;
通过 subscribe(listener) 注册监听器;
通过 subscribe(listener) 返回的函数注销监听器。
再次强调一下 Redux 应用只有一个单一的 store。当需要拆分数据处理逻辑时,你应该使用 reducer 组合 而不是创建多个 store
*/
imp... |
'use strict';
angular.module('citizenForumsShowApp', [
'citizenForumsShowApp.services',
'ngCookies',
'ngResource',
'ngSanitize',
'ngRoute',
'uiGmapgoogle-maps',
'xeditable',
'restangular',
'nl2br'
]).config(['$interpolateProvider', function($i... |
/*!
* Bootstrap v3.3.5 (http://getbootstrap.com)
* Copyright 2011-2015 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=8a41afce6c65a5315ae2)
* Config saved to config.json and https:... |
window.onload = function () {
// Start a new marked instance and renderer
var marked = window.marked;
var renderer = new marked.Renderer();
var counter = 0;
var specs = [];
var opts = {"mode": "vega-lite", "renderer": "svg" };
// Render the ```vis as a div and save the json spec
renderer.code = function (cod... |
module.exports = require("npm:lodash._createassigner@3.1.1/index"); |
import React from 'react';
import { Gateway } from 'react-gateway';
import ReactModal2 from './ReactModal2';
import Icon from '../Icon';
import './Modal.scss';
/**
* This component is only created to facilitate the process of using react-modal2 with react gateway
*
* You can import this Modal and use onClose props ... |
function solve(args) {
var text = args[0].split('\n');
var textA = text[0];
var textB = text[1];
var state = 0;
for (var i = 0; i < Math.min(textA.length, textB.length); i += 1) {
if (textA[i] > textB[i]) {
state = 1;
break;
}
if (textA[i] < textB[i]) ... |
/* animation.js */
Janice._Animation = {};
Janice._Animation.staticm = {};
Janice._Animation.method = {};
Janice._Animation.staticm.decomposeVersion = function(versionNumber) {
var major = Math.floor(versionNumber)
var minor = parseInt(('' + (versionNumber - major)).substr(2));
return {
major: m... |
function f() {
console.log(1);
console.log(2);
} |
/* SPDX-License-Identifier: MIT */
function GHDataReport(apiUrl) {
apiUrl = apiUrl || '/';
var owner = this.getParameterByName('owner');
var repo = this.getParameterByName('repo');
this.api = new GHDataAPIClient(apiUrl, owner, repo);
this.buildReport();
}
GHDataReport.prototype.getParameterByName = functio... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm... |
// -------------------------------------------------------------------------------
// OEA Original colors
// --------------------------------------------------------------------------------
export default {
blue: "#3299BB",
lightBlue: "#88D4E1",
lighterBlue: "#D6EBF1",
white: "#fff"... |
// Modules
const Config = require('../config/main'),
Good = require('good');
module.exports = {
options: Config.HAPI.GOOD_OPTIONS,
register: Good
};
|
var chokidar = require('chokidar');
process.chdir(__dirname + '/../');
chokidar.watch('.', {ignoreInitial: true, useFsEvents: true}).on('all', function(event, path) {
console.log(new Date, event, path);
});
|
$(function(){
function notOk(s, m) {equal(!!s,false,m);}
module("lock");
test('create', function () {
var lock1 = $.lock(),
lock2 = $.lock(false),
lock3 = $.lock(true);
expect(3);
ok(!lock1.isLocked());
ok(!lock2.isLocked());
ok(lock3.isLock... |
var should=require('should');
var toast=('../toast');
describe('test/toast.js', function () {
it('toast', function () {
toast.should.equal(toast);
});
});
|
var gm = require('gm');
var request = require('request');
var cors = require('cors');
var upload = require('./s3-upload');
function crop(req, res) {
try {
var q = req.query;
var image = gm(request(q.image), 'tempImage');
image.crop(q.width, q.height, q.left, q.top).toBuffer(function(err, buffer) {
... |
"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... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("va... |
// Manipulating JavaScript Objects
// I worked on this challenge: [by myself, with: ]
// There is a section below where you will write your code.
// DO NOT ALTER THIS OBJECT BY ADDING ANYTHING WITHIN THE CURLY BRACES!
var terah = {
name: "Terah",
age: 32,
height: 66,
weight: 130,
hairColor: "brown",
eyeC... |
function Logger () {
}
Logger.getBeats = function (attacker, defender) {
return attacker.role.title + attacker.name + (attacker.weapon.name? '用' + attacker.weapon.name: '') +
'攻击了' + defender.role.title + defender.name + ', ';
};
Logger.getDetails = function (attacker, defender, damage, extra) {
var mainBody = de... |
var webpack = require('webpack');
var helpers = require('./helpers');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
const ENV = process.env.NODE_ENV = process.env.ENV = 'development';
module.exports = {
devtool: ... |
---
layout: null
---
$(document).ready(function(){
console.log("exam.js: document is ready");
$('.template').each(function(i) {
$(this).css('display','none');
});
// Use with <div class="copy-of" data-id="foo"></div>
// Use <div id="foo" class="template"></div> on the stuff you want to cop... |
/*-
* #%L
* ARROWHEAD::WP5::Market Manager
* %%
* Copyright (C) 2016 The ARROWHEAD Consortium
* %%
* 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 witho... |
// this is a little Node program, running on a Node server
// require() will look inside of a folder and get information, similar to import
// NOTE: gulpfile.js must be in the main directory
var gulp = require('gulp');
var sass = require('gulp-sass');
var concat = require('gulp-concat');
var autoprefixer = require('... |
var $ = require('jquery');
var Backbone = require('backbone');
Backbone.$ = $;
//CHALLENGE: "bring in" the appropriate template for this view
var TodoListView = Backbone.View.extend({
tagName: 'div',
className: 'list-group',
initialize: function () {
this.listenTo(this.collection,'all', this.render);
},
... |
// MinuteRepeater Class
// @params dial: object
// @params settings: object
// @params parentWatch: Watch instance
//
// The minuterepeater class accepts a dial, or defaults to the 0th index of the
// dials array on the parent Watch class, and based on the hands' rotation values
// calculates the amount of hours, quart... |
import {first, uniq, compact, startsWith} from 'lodash'
import cheerio from 'cheerio'
import urijs from 'urijs'
import {flattenDeepCheerioElements} from 'utils'
export function getRelevantTags(htmlText, urlToFetch){
return new Promise((resolve, reject) => {
const doc = cheerio.load(htmlText, {
ignoreWhit... |
!function($,t,e,n){"use strict";function i(t,e){this.element=t,this.settings=$.extend({},s,e),this._defaults=s,this._name=u,this.init()}var u="defaultPluginName",s={propertyName:"value"};$.extend(i.prototype,{init:function(){$(this.element).hide(),this.yourOtherFunction("jQuery Boilerplatess")},yourOtherFunction:functi... |
import { Response } from 'aurelia-fetch-client';
import toastr from 'toastr';
/**
* Defines the logger service that provides logging/messaging capabilities.
*/
export class LoggerService {
/**
* @function {logApiError}
* @param {Fault} fault - The http fault message.
* @return {type} {Logs an error concerning an A... |
import Boolius from "./boolius"; // which in turn imports all the classes it depends upon
import XMLius from "./xmlius";
import Mathius from "./mathius";
window.onload = function () {
d3.select("#modeSelect").on("change", function (e) {
var selectedMode = d3.select("#modeSelect").node().value.toLowerCase();
... |
var ErrorHandler = require('./error').errorHandler;
module.exports = exports = function(app) {
// The main page of the blog
app.get('/', function(req, res, next){
return res.render('index', {
title: 'Editor homepage'
});
});
/* The main page of the blog, filtered by... |
var Transform = require('stream').Transform,
util = require('util');
var StreamConcat = function(streams, options) {
Transform.call(this, options);
var self = this;
this.streams = streams;
this.canAddStream = true;
this.currentStream = null;
this.streamIndex = 0;
var nextStream = function() {
s... |
'use strict';
angular.module('home', ['ngMessages'])
.controller('homeCtrl', [function() {
}]); |
/**
* @author 도플광어
-버전 0.13
Box2d 추가
*
* 버전 0.12
* matrix 추가
* box2d 추가
*
*/
this.gbox3d = {
core : {}
};
///
//수학 함수관련 선언
///
gbox3d.core.PI = 3.14159265359;
gbox3d.core.RECIPROCAL_PI = 1 / 3.14159265359;
gbox3d.core.HALF_PI = 3.14159265359 / 2;
gbox3d.core.PI64 = 3.141592653589793;
gbox3d.core.DEGTORAD... |
/*! glimpse 08-03-2014 */
function Glimpse(a){if(!(this instanceof Glimpse))return new Glimpse(a);"undefined"==typeof a&&(a=window);var b=this;return b.domEl="string"==typeof a?document.getElementById(a):a,b.lastFocused=void 0,b.lastBlurred=void 0,b.lastChanged=void 0,b.blurredCallback=void 0,b.focusedCallback=void 0,f... |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.10.1-rc2-master-7bbfd1f
*/
goog.provide('ng.material.components.radioButton');
goog.require('ng.material.core');
/**
* @ngdoc module
* @name material.components.radioButton
* @description radioButton module!
*/
angular.modu... |
var webpack = require('webpack');
var path = require('path');
var mainPath = path.resolve(__dirname,'..','..','src','index.jsx');
var srcPath = path.resolve(__dirname,'..','..', 'src');
var config = require("./webpack.config.js");
var packageJson = require('../../package.json')
/** ============
NOTE: change the follow... |
//main.js
// const greeter = require('./Greeter.js');
// document.querySelector("#root").appendChild(greeter());
import React from 'react';
import {render} from 'react-dom';
import Greeter from './Greeter';
import './main.css';//使用require导入css文件
render(<Greeter />, document.getElementById('root')); |
/**
* Created by eirikskogland on 24.09.15.
*/
angular.module('ExamApp').directive('solutionTableCell', function() {
return {
restrict: 'E',
templateUrl: 'templates/directives/solution-table-cell.html',
scope: {
tableIndex: '@',
hasSolution: '@'
},
c... |
//
// Copyright (c) 2011 - 2015 ASPECTRON Inc.
// All Rights Reserved.
//
// This file is part of JSX (https://github.com/aspectron/jsx) project.
//
// Distributed under the MIT software license, see the accompanying
// file LICENSE
//
var registry = (function()
{
var log = require("log");
var _re... |
'use strict';
module.exports = {
skip: {
type: 'integer',
format: 'int32',
minimum: 0,
maximum: 500,
default: 0,
description: 'The number of results to skip before returning matches. Use this to support paging. Maximum of 500'
},
limit: {
type: 'integer',
format: 'int32',
mini... |
// Use this file to change prototype configuration.
// Note: prototype config can be overridden using environment variables (eg on heroku)
module.exports = {
// Service name used in header. Eg: 'Renew your passport'
serviceName: "Publish data",
// Default port that prototype runs on
port: '3000',
// Enab... |
import config from '../../config/common';
import Context from '../../src/server/context';
import range from 'range';
/**
* Create an instance of Context with the given list of blacklisted IPs.
*
* @param {Array=} blacklistIPs Array of IPs to blacklist in the context.
* @returns {Object} Initialized context object.... |
// @flow
import { workspacesRun, toWorkspacesRunOptions } from '../run';
test('bolt workspaces run');
|
'use strict';
var eslint = require('eslint');
var ruleTester = new eslint.RuleTester();
ruleTester.run('rules/no-exports-typo', require('../rules/no-exports-typo'), {
valid: [
'module.exports = true;',
'module.exports.house()',
'exports.mouse = 234',
'exports = module.exports = {}',
'var House = module.exp... |
"use strict";
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* 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 req... |
var express = require('express');
var router = express.Router();
/**
* 获得主页内容
*
*/
router.get('/', function(req, res, next) {
res.render('user/index', {
title: 'Express'
});
});
module.exports = router;
|
import Channels from './Channels'
export default Channels
export ChannelBackButton from './ChannelBackButton'
export ChannelBalance from './ChannelBalance'
export ChannelCapacity from './ChannelCapacity'
export ChannelCardList from './ChannelCardList'
export ChannelCardListItem from './ChannelCardListItem'
export Chan... |
var allcoin = require('..');
var api = allcoin.PublicApi;
api.depth('mona_btc').then(console.log);
|
function test(){return 5} |
var _privateMethod = babelHelpers.classPrivateFieldLooseKey("privateMethod");
class Foo {
constructor() {
Object.defineProperty(this, _privateMethod, {
value: _privateMethod2
});
this.publicField = babelHelpers.classPrivateFieldLooseBase(this, _privateMethod)[_privateMethod]();
}
}
var _private... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.