code stringlengths 2 1.05M |
|---|
/*
* jQuery edSlider plugin v.1.0
* @author Eduardo Carneiro Moreno
* Code under MIT License
*/
(function ($) {
$.fn.edslider = function (settings) {
var defaults = {
width:960,
height:400,
position:1,
interval:3000,
speed:700,
paginator:true,
navigator:true,
progress... |
/** @jsx React.DOM */
var React = require('react');
var jQuery = require('jquery2');
var Router = require('react-router');
var Route = Router.Route;
var Routes = Router.Routes;
var NotFoundRoute = Router.NotFoundRoute;
var DefaultRoute = Router.DefaultRoute;
var Link = Router.Link;
var BranchStore = require('./lib/st... |
var fs = require('fs')
function File() {
function open(path, document) {
fs.readFile(path, 'utf-8', function (error, contents) {
document.getElementById('editor').value = contentsM
});
}
function save(path, document) {
var text = document.getElementById('edito... |
const argv = require('yargs').argv;
const webpack = require('webpack');
const cssnano = require('cssnano');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const project = require('./project.config');
const debug = require('debug')('app:config:... |
const initState={
list:[],
pageObj:{count:0,page:0},
detailId:-1,
detailList:[]
}
const key='addItem';
function addItem(state=initState,action){
switch(action.type){
case key+'setTypeList':{
return Object.assign({},state,{
list:action.data
})
... |
#!/usr/bin/env node
//
// lib/utils.js
//
// Copyright (c) 2012 Lee Olayvar <leeolayvar@gmail.com>
// MIT Licensed
//
/*jshint asi: true, laxbreak: true*/
// (a, b) -> a + b
//
// Params:
// a: The instance to be written on
// b: The instance to write onto a
//
// Returns:
// The returned object is `a` with the co... |
/* @flow */
'use strict'
import React from 'react'
import {
Animated,
Image,
Platform,
StyleSheet,
TouchableHighlight,
View
} from 'react-native'
import Icon from 'react-native-vector-icons/FontAwesome'
import ProgressBar from '../../ProgressBar'
import colors from '../../colors'
class NavigationBar ex... |
var del = require('del'),
gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
runSequence = require('run-sequence'),
gulpNSP = require('gulp-nsp'),
mocha = require('gulp-mocha'),
install = require('gulp-install'),
lambda = require('gulp-awslambda'),
zip = require('gulp-zip'),
... |
'use strict'
const Emulation = require('./emulation/webDriver')
const Capabilities = require('./capabilities')
const LoaderHelpers = require('./loaderHelper')
class Patata {
constructor () {
this._hasStarted = false
this._suites = []
this._servers = []
this._provider = null
this._emulator = null
... |
var types = [];
var element = '<div class="contentitem"><div class="panel panel-default"><div class="panel-heading"><i class="fa fa-align-justify fa-fw"></i>ContentItem</div><div class="panel-body"><div class="item" contenteditable="True"></div></div></div></div>';
function createElement(){
var dropdown = '<div cla... |
var searchData=
[
['newgamemenu',['NewGameMenu',['../class_symp_1_1_new_game_menu.html',1,'Symp']]]
];
|
angular.module('auth')
.factory('AuthenticationService', AuthenticationService);
function AuthenticationService($http, $window, $q, $rootScope, MessageManager) {
var authservice = {};
authservice.auth_token = undefined;
authservice.user_info = undefined;
authservice.loadPromise = $q.defer();
... |
import React from "react";
import PropTypes from "prop-types";
import classNames from "classnames";
import { Field } from "redux-form";
const renderInput = field => {
const className = classNames([
"form-group",
{ "has-error": field.meta.touched && field.meta.error }
]);
return (
<div className={clas... |
'use strict';
var analytics = require('./analytics');
var find = require('./find-parent-form');
var uuid = require('@braintree/uuid');
var DropinError = require('./dropin-error');
var kebabCaseToCamelCase = require('./kebab-case-to-camel-case');
var WHITELISTED_DATA_ATTRIBUTES = [
'locale',
'payment-option-priorit... |
var renderRequired = false
function requireRender() {
if (renderRequired) return
renderRequired = true
window.requestAnimationFrame(render)
}
function render() {
renderRequired = false
slider.draw()
}
var Slider = function(element) {
this.$element = $(element)
this.$root = this.$element.parent()
this... |
var mongoose = require('mongoose');
var BaseModel = require("./base_model");
var Schema = mongoose.Schema;
var ObjectId = Schema.Types.ObjectId;
var BoardSchema = new Schema({
user_id: { type: ObjectId, ref: 'User' },
title: { type: String },
create_at: { type: Date, default: Date.now },
type: {ty... |
YUI.add("inputex-url",function(Y){
var lang = Y.Lang;
var inputEx = Y.inputEx;
/**
* Adds an url regexp, and display the favicon at this url
* @class inputEx.UrlField
* @extends inputEx.StringField
* @constructor
* @param {Object} options inputEx.Field options object
* <ul>
* <li>favicon: boolean wheth... |
/* eslint-env mocha */
/* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
User Selector - Test
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
import chai, { expect } from 'chai';
import chaiImmutable from 'chai-immutable';
import { fromJS } from 'imm... |
var currentSearch = 0;
var pageCount = 1;
var currentTerm = "";
var intv;
//old loading src https://promotions.coca-cola.com/etc/designs/promotions/img/loading.gif
var loadingsrc = "https://media.giphy.com/media/hQgJCEdGOEHa8/giphy.gif";
$(document).on("ready", function () {
$("#psearchbox").keydown(function(){
... |
import test from 'ava';
import VK from '../';
var app = {
clientId: 'CLIENT_ID',
clientSecret: 'CLIENT_SECRET',
redirectUri: 'REDIRECT_URI',
scope: ['wall', 'friends']
};
test('checking method reachability', t => {
var vk = new VK(app);
t.ok(vk.hasInScope('wall.post'), 'sees scoped method in scope');
t.ok(vk.... |
// Copyright (c) 2006-2009 by Martin Stubenschrott <stubenschrott@vimperator.org>
//
// This work is licensed for reuse under an MIT license. Details are
// given in the License.txt file included with this file.
const DEFAULT_FAVICON = "chrome://mozapps/skin/places/defaultFavicon.png";
// also includes methods for d... |
var fs = require('fs');
module.exports = function($stateProvider, $locationProvider, $urlRouterProvider) {
$stateProvider
.state('app.player', {
views: {
'body': {
template: fs.readFileSync(__dirname + '/../templates/player.html'),
control... |
const PropTypes = require('prop-types');
const StyleConstants = require('./Style');
const shapeForObject = (obj, propType) =>
PropTypes.shape(
Object.keys(obj).reduce((shape, key) => {
shape[key] = propType;
return shape;
}, {})
);
module.exports = {
buttonTypes: [
'base',
'disabled... |
/*
// Desired interface for NP in Phaser:
game.neutrino.init({
effects: "export_js/", // "" by default
textures: "textures/" // "" by default
});
game.neutrino.generateTurbulance(); // to generate turbulance texture
game.neturino.loadTurbulance("path_to_noise_texture"); // to load turbulance texture... |
/**
* Range object.
*/
export default class Range
{
/**
* Creates a Range.
* @param {Position} first - First position.
* @param {Position} last - Last position.
*/
constructor(first, last)
{
this.first = first;
this.last = last;
}
/**
* Returns correct range, ... |
import React, { useState, useEffect } from "react"
import { useLocation } from "@reach/router"
import { UpArrowAlt as Arrow } from "@styled-icons/boxicons-regular/UpArrowAlt"
import { LightBulb as Light } from "@styled-icons/entypo/LightBulb"
import { GridHorizontal as Grid } from "@styled-icons/boxicons-regular/GridH... |
'use babel'
import { File, CompositeDisposable, Emitter } from 'atom'
import LibraryCol from './col-library'
import path from 'path'
export default class DictionaryWatch extends Watch {
constructor () {
}
parseFile(filename, data) {
}
}
|
var Router = Ember.Router.extend(); // ensure we don't share routes between all Router instances
Router.map(function() {
this.route('component-test');
this.route('helper-test');
// this.resource('posts', function() {
// this.route('new');
// });
this.resource('station', { path: '/stations/:station' });
})... |
// Note: we use AVA here because it makes setting up the
// conditions for each test relatively simple. The same
// can be done with Tape using a bit more code.
var test = require('ava')
var configureDatabase = require('./helpers/database-config')
configureDatabase(test)
var db = require('../db')
test('getUsers get... |
"use strict";
var path = require('path'),
expect = require('chai').expect;
require('string.prototype.startswith');
describe('bcrypt argv', function () {
var bcrypt = require(path.join(__dirname, '..', 'index.js'));
it('should handle null value', function (done) {
bcrypt(null, function (err, hash) {
expec... |
"use strict";
var DocumentNode = require('../node/node');
var ContainerNode = function(node, document) {
DocumentNode.call(this, node, document);
};
ContainerNode.type = {
"id": "container",
"properties": {
"nodes": ["array", "content"]
}
};
ContainerNode.Prototype = function() {};
ContainerNode.Protot... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 4c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8zm1 13h-2v-6h2v6zm0-8h-2V7h2v2z" opacity=".3" /><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48... |
import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import Card from '../src/components/Card';
import CardBody from '../src/components/CardBody';
import ContentWrap from '../src/components/ContentWrap';
storiesOf('ContentWrap', module)
.add('default', () => (
<ContentWrap>
<Car... |
/**
* Created by pomy on 4/25/16.
*/
'use strict';
let $ = require('cheerio');
//let coRequest = require('co-request');
let lib = require('../../lib');
let toutiaoLib = require('./toutiaoLib');
function* toutiao() {
//this.response.set("Content-Type", "application/json;charset=utf-8");
let resBody = yiel... |
import gmJs from 'gm';
/**
* Converts images and replaces HTML for image integration.
* @constructor
* @param {Object} config [description]
* @return {Object} [description]
*/
const imageStyles = function(config) {
const external = {};
const internal = {};
const gm = gmJs.subClass({imageMagick: true... |
import Page from "./page"
const PAGE_URL = "/people/new"
const INVISIBLE_CUSTOM_FIELDS = {
textArea: "formCustomFields.textareaFieldName",
number: "formCustomFields.numberFieldName"
}
const SENSITIVE_CUSTOM_FIELDS = {
birthday: "formSensitiveFields.birthday",
politicalPosition: "formSensitiveFields.political... |
/**
* Hydro configuration
*
* @param {Hydro} hydro
*/
module.exports = function(hydro) {
hydro.set({
suite: 'event-to-stream',
timeout: 500,
plugins: [
require('hydro-bdd'),
require('hydro-co')
],
globals: {
assert: require('assert/')
}
})
}
|
smalltalk.addPackage('Helios-KeyBindings');
smalltalk.addClass('HLBinding', smalltalk.Object, ['key', 'label'], 'Helios-KeyBindings');
smalltalk.addMethod(
smalltalk.method({
selector: "applyOn:",
category: 'actions',
fn: function (aKeyBinder){
var self=this;
return smalltalk.withContext(function($ctx1) {
return self}... |
'use strict';
require('./components/grid');
require('./components/tile');
require('./components/tiled_map');
function loadMap(context, callback) {
return function workerListener(e) {
var result = e.data;
if (result.error)
return callback(new Error('Error on loading map: ' + result.error));
callb... |
import Section from './section';
describe('Section', () => {
test('props', () => {
const section = new Section('hoge', {
data: {
title: 'foo',
description: 'bar',
style: {
height: '10px',
},
},
});
expect(section.name).toEqual('hoge');
expect(sec... |
'use strict';
var angular = require('angular').mock;
var moduleName = require('./view2.js');
describe('View2 controller', function() {
beforeEach(function(){
angular.module(moduleName);
angular.inject(function($controller, $rootScope){
this.$controller = $controller;
this.$rootScope = $rootScop... |
describe("Utilities", function() {
beforeEach(function() {
var div = $("<div id='cmd-resume'></div>");
$("body").append(div);
jasmine.Ajax.install();
});
afterEach(function() {
$("#cmd-resume").remove();
jasmine.Ajax.uninstall();
});
describe("Invalid commands", function() {
beforeEach(function() {
... |
module.exports = {
port: process.env.PORT || 3000,
files: ['./**/*.{html,htm,css,js}'],
server:{
baseDir: "./"
}
};
|
import React from 'react';
import { QueryRenderer, graphql } from 'react-relay';
import relay from '../../relay.js';
// https://github.com/facebook/relay/issues/1851
export default function ShortCountSpeedTableDescription(props) {
const q = graphql`
query ShortCountSpeedTableDescriptionQuery {
__type(name... |
var config = require(__dirname + '/lib/config');
var logger = require(__dirname + '/lib/logger');
var fs = require('fs');
if (config.https) {
var https = require('https');
var keyFileName = __dirname + '/ssl/server.key';
var certFileName = __dirname + '/ssl/server.crt';
if (!fs.existsSync(keyFileName)) {
throw ... |
(function($){
$.fn.auto_assemble = function(listing, error_list, permalink) {
var assembler = new Assembler();
var change_handler = function() {
var errors = assembler.assemble($(this).val());
if (errors) {
$(error_list).empty();
for (var i = 0; i < errors.length; ++i) {
... |
require('../app').directive('fileInput', function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
var parent = element.parent();
var fInput = angular.element('<input type="file" accept="image/*" style="display: none"/>');
var imgEl = angular.element('<img style="display: ... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/layout/App.js';
ReactDOM.render(<App />, document.getElementById('root'));
|
class Parent {
constructor(a) {
this.filed1 = a;
}
func1() {
console.log(`原型方法1`);
}
static bar = "静态属性 1"; //静态方式只能自身访问
static bar2 = function () {
console.log("静态方法 1");
};
}
class Child extends Parent {
constructor() {
super(); // 修改this原型指向实现继承 采用函数+对象混合继承
this.filed3 = 111;
}... |
import React from 'react';
import { Link } from 'react-router-dom';
import moment from 'moment';
import messages from 'lib/text';
import * as helper from 'lib/helper';
import style from './style.css';
import SummaryForm from './summaryForm.js';
import Paper from 'material-ui/Paper';
import Divider from 'material-ui/D... |
'use strict';
var _app = angular.module('main');
_app.controller('TodosCtrl', ['$scope', 'TodosStorage', 'Todo', 'underscore', function ( $scope, todosStorage, Todo, _ ) {
// defaults
(function(){
$scope.todos = todosStorage.get();
$scope.formTodoNewTitle = '';
$scope.formTodoNewDescription = '';
$scope.hi... |
import puppeteer from '../puppeteer';
describe('puppeteer helpers', () => {
describe('.launch()', () => {
test('should return a truthy Chromium instance without any param', async () => {
const browser = await puppeteer.launch();
expect(browser).toBeTruthy();
await browser.close();
});
});... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><circle cx="12" cy="16" r="1" /><path d="M12 13c.55 0 1-.45 1-1V8c0-.55-.45-1-1-1s-1 .45-1 1v4c0 .55.45 1 1 1z" /><path d="M17 1H7c-1.1 0-1.99.9-1.99 2v18c0 1.1.89 2 1.99 2h10c1.1 0 2-.9 2... |
(function(){
var shortUrl = require(__dirname + "/src/url");
module.exports = function (url) {
return shortUrl.process(url);
};
})();
|
//--------------------------------------------------------------------------
//
// Server app
//
//--------------------------------------------------------------------------
var env = process.env.NODE_ENV || 'development',
config = require('./config')[env],
path ... |
'use strict'
const mongoose = require('mongoose')
const MONGODB_URL = process.env.MONGODB_URL || 'mongodb://localhost:27017/battleship'
mongoose.Promise = Promise
module.exports.connect = () => mongoose.connect(MONGODB_URL)
module.exports.disconnect = () => mongoose.disconnect()
|
import test from 'ava';
import avaRuleTester from 'eslint-ava-rule-tester';
import rule from '../rules/consistent-compose';
import {code} from './helpers';
const ruleTester = avaRuleTester(test, {
env: {
es6: true
},
parserOptions: {
sourceType: 'module'
}
});
const error = {
ruleId: 'consistent-co... |
// Enable strict syntax mode
'use strict';
// Base class
var BudaLineAgent = require( '../../buda_agent_line' );
// Custom requirements
var util = require( 'util' );
// Constructor method
function BudaJSONLAgent( conf, handlers ) {
BudaLineAgent.call( this, conf, handlers );
}
util.inherits( BudaJSONLAgent, BudaLi... |
//Register babel to transpile before our tests run
require('babel-register')();
// disable webpack features that Mocha does not understand
require.extensions['.css'] = function () {};
|
'use strict';
angular.module('pokedex')
.controller('MainCtrl', function () {
this.awesomeThings = [
'HTML5 Boilerplate',
'AngularJS',
'Karma'
];
});
|
exports.level = {
"goalTreeString": "{\"branches\":{\"master\":{\"target\":\"C7\",\"id\":\"master\"},\"bugWork\":{\"target\":\"C2\",\"id\":\"bugWork\"}},\"commits\":{\"C0\":{\"parents\":[],\"id\":\"C0\",\"rootCommit\":true},\"C1\":{\"parents\":[\"C0\"],\"id\":\"C1\"},\"C2\":{\"parents\":[\"C1\"],\"id\":\"C2\"},\"C3\"... |
const chai = require('chai');
chai.should();
|
import Ember from 'ember';
import config from './config/environment';
const Router = Ember.Router.extend({
location: config.locationType,
rootURL: config.rootURL
});
Router.map(function() {
this.route('l33t-components', function() {
this.route('navbar');
this.route('validated-field');
this.route('se... |
const isNumber = require("../object/isNumber.js");
/**
* Evaluate if a number is the number 1.
* @param {Number} n The number to evaluate
* @returns {Boolean} True if n is 1, false otherwise
*/
function isOne(n)
{
if (isNumber(n) && n === 1)
return true;
return fa... |
IntlMessageFormat.__addLocaleData({locale:"vun",pluralRuleFunction:function(e,a){return a?"other":1==e?"one":"other"}}); |
/**
* Problem: https://leetcode.com/problems/counting-bits/description/
*/
/**
* @param {number} num
* @return {number[]}
*/
var countBits = function(num) {
var result = [0], pow;
for (var i = 1; i <= num; ++i) {
if (i & (i - 1)) {
result.push(result[i - pow] + 1);
} else {
pow = i;
... |
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || function (decora... |
define(['phaser', 'klik/core/ManagedObject'], function (Phaser, ManagedObject) {
'use strict';
return ManagedObject.extends('StarfieldBatched', {
init: function() {
this.distance = 300;
this.speed = 4;
this.max = 200;
this.xx = [];
this.yy = ... |
angular.module('fellowship.modules.users.services', []); // CONTRUCTOR
|
'use strict';
var expect = require('chai').expect,
Poll = require('../lib/poll');
describe('Poll', function () {
it('should be defined', function () {
expect(typeof Poll).to.eq('function');
});
describe('constructor', function () {
var args;
function newPoll() {
re... |
import state from './entity.state'
import mutations from './entity.mutations'
import actions from './entity.actions'
import getters from './entity.getters'
export default {
namespaced: true,
state,
getters,
mutations,
actions
}
|
//私有方法
function _filter_time(time) {
var tmptime = Math.ceil((new Date()-new Date(time))/1000); //时间差
if (tmptime >= 60) {
if (tmptime >= 3600) {
if (tmptime >= 3600*24) {
if (tmptime > 3600*24*30) { //如果时间差超过1个月
tmptime = time.split(' ')[0]; //输出年-月-天
}
else { //如果大于1天小于1个月
if (Math.floor... |
const React = require('react');
const ReactDOM = require('react-dom');
import { QueueAnim, Icon, Button } from '../index';
import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack';
import ScrollLink from 'rc-scroll-anim/lib/ScrollLink';
import ScrollElement from 'rc-scroll-anim/lib/ScrollElement';
import scrollSc... |
version https://git-lfs.github.com/spec/v1
oid sha256:5ba2ca4f8da8962fa5a82327e8aecac68ebbb4804a29f901afc25abea1f6b721
size 17136
|
var Path = require('path');
var parseHtml = require('html-flavors').parseHtml;
var DEBUG = false;
var jsParserOptions = require('./parserOptions')['.js'];
var parsers = {
'.js': function (code) {
var parser = require('acorn-jsx');
return parser.parse(code, jsParserOptions);
},
'.html': f... |
/* GET login page */
exports.view = function(req, res){
res.render('login');
}; |
(function() {
'use strict';
angular.module('fallout4CoolTools.components.ui.directives.pagination', []);
})();
|
import React, { Component } from 'react';
import moment from 'moment';
import EventsContainer from '../../containers/Events';
import _ from 'lodash';
import './index.scss';
import Event from './Event';
import Calendar from './Calendar';
const sortEvents = events => {
const now = moment();
return _.chain(events)... |
import G6 from '@antv/g6';
const data = {
nodes: [{
id: '0',
label: '0'
}, {
id: '1',
label: '1'
}, {
id: '2',
label: '2'
}, {
id: '3',
label: '3'
}, {
id: '4',
label: '4'
}, {
id: '5',
label: '5'
}, {
id: '6',
label: '6'
}, {
id: '7',
lab... |
webApp.controller('ModelsCategoriesController', ['$rootScope', '$scope', '$http', 'modelsCategoriesService',
function($rootScope, $scope, $http, modelsCategoriesService) {
$scope.models_categories = {
inProgress: false,
new_models_category_name: '',
new_models_category_description: '',
data: [],
... |
'use strict';
import { REQUEST_TIMEOUT } from '../lib/constants';
import { default as baseRequest } from 'request';
import { default as moment } from 'moment-timezone';
import cheerio from 'cheerio';
import proj4 from 'proj4';
import epsg from 'proj4js-defs';
import { convertUnits, acceptableParameters } from '../lib/... |
export {
default as PageQuestionnaire
} from './containers/page-questionnaire-container';
|
import Component from '@ember/component'
import { computed } from '@ember/object'
import hbs from 'htmlbars-inline-precompile'
/**
* Core card.
*
* ```handlebars
* {{#rad-card as |components|}}
* {{#components.block}}
* {{#components.title}}Card title{{/components.title}}
* Card body
* {{/component... |
// flow-typed signature: 30d9c3ac4977136c992cb91299f08b2b
// flow-typed version: <<STUB>>/node-forge_v0.7.4/flow_v0.61.0
/**
* This is an autogenerated libdef stub for:
*
* 'node-forge'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
... |
"use strict";
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnPrope... |
/*
Template Name: Color Admin - Responsive Admin Dashboard Template build with Twitter Bootstrap 3.2.0
Version: 1.3.0
Author: Sean Ngu
Website: http://www.seantheme.com/color-admin-v1.3/
*/
var handleGoogleMapSetting = function() {
"use strict";
var mapDefault;
function initialize() {
var mapOpti... |
Module.register("jokes", {
defaults:{
baseUrl: "http://tambal.azurewebsites.net/joke/random"
},
getHeader: function(){
return this.data.header
},
getTranslations: function(){
return false
},
start: function(){
Log.info("Starting module " + this.name);
moment.locale(config.languag... |
/* -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
* File Name : class_statement.js
* Created at : 2019-08-04
* Updated at : 2019-08-22
* Author : jeefo
* Purpose :
* Description :
* Reference : https://www.ecma-international.org/ecma-262/6.0/#sec-class-definitions
.-.-.-.-.-... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var ic_transform = exports.ic_transform = { "viewBox": "0 0 24 24", "children": [{ "name": "path", "attribs": { "d": "M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z" } }] }; |
/**
* impress.js
*
* impress.js is a presentation tool based on the power of CSS3 transforms and transitions
* in modern browsers and inspired by the idea behind prezi.com.
*
*
* Copyright 2011-2012 Bartek Szopka (@bartaz), 2016-2018 Henrik Ingo (@henrikingo)
*
* Released under the MIT and GPL Licenses.
*
* ... |
/**
* HeadsUp 1.5.9
* A smart header for smart people
* @author Kyle Foster (@hkfoster)
* @license MIT
*/
;( function( root, factory ) {
if ( typeof define === 'function' && define.amd ) {
define( factory );
} else if ( typeof exports === 'object' ) {
module.exports = factory;
} else {
root.head... |
function solve(args) {
let len = args.length,
newArr = [],
people = [],
person,
i;
for (i = 0; i < len; i += 3) { //Create array of persons
person = createPerson(args[i], args[i + 1], +args[i + 2]);
people.push(person);
}
newArr = people
.filter(x... |
/* eslint-env jest */
/* global jasmine */
import { join } from 'path'
import { nextBuild } from 'next-test-utils'
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000 * 60 * 1
const appDir = join(__dirname, '../react-site')
describe('Build Stats Output', () => {
it('Shows correct package count in output', async () => {
con... |
/* jshint browser:true */
/* global angular */
angular.module('griddy.directives').directive('column', function () {
return {
restrict: 'E',
templateUrl: 'partials/column.tpl.html',
replace: true,
link: function ($scope, element, attrs) {
var prefs = $scope.project.pre... |
'use strict';
var nodeFormatProps = require('./parts/nodeFormatProps'),
linkFormatProps = require('./parts/linkFormatProps'),
labelFormatProps = require('./parts/labelFormatProps'),
gridFormatProps = require('./parts/gridFormatProps')
;
function formatTab(element, entryFactory, icons) {
var elemFor... |
(function() {
'use strict';
angular
.module('g2MatriculaApp')
.controller('LoginController', LoginController);
LoginController.$inject = ['$rootScope', '$state', '$timeout', 'Auth', '$uibModalInstance'];
function LoginController ($rootScope, $state, $timeout, Auth, $uibModalInstance) ... |
'use strict';
exports.get = get;
exports._get = _get;
exports.set = set;
exports._set = _set;
exports.remove = remove;
exports._remove = _remove;
var mix = require('mix2');
function is_object (subject) {
return Object(subject) === subject;
}
function _keys (key) {
if (typeof key !== 'string') {
return;
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var router_1 = require("@angular/router");
var dashboard_component_1 = require("./dashboard.component");
var dashboard_users_component_1 = require("./users/dashboard-users.component");
var dashboard_user_detail_component_1 = require("./users/d... |
'use strict';
var _ = require('lodash'),
os = require('os'),
Alias = require('./alias.js'),
util = require('./util.js');
/*----------------------------------------------------------------------------*/
function cleanValue(string) {
string = string == null ? '' : (string + '');
return _.trim(string.re... |
(function () {
'use strict';
angular.module('accordion', []);
})(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.