code stringlengths 2 1.05M |
|---|
export default function getKillsPct(currentNumberOfKills, guildKills) {
if (currentNumberOfKills === 0) { return 0; }
return (guildKills * 100) / currentNumberOfKills;
}
|
'use strict';
var path = require('path');
var stormpath = require('stormpath');
var stormpathConfig = require('stormpath-config');
var configStrategy = stormpathConfig.strategy;
// Factory method to create a client using a configuration only.
// The configuration provided to this factory is the final configuration.
f... |
import React, { Component } from 'react';
import styled from 'styled-components';
import { connect } from 'react-redux';
import { RefreshControl, ActivityIndicator } from 'react-native';
import { ListItem } from 'react-native-elements';
import ActionSheet from 'react-native-actionsheet';
import { SafeAreaView } from 'r... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["react-syntax-highlighter_languages_highlight_scala"],{
/***/ "./node_modules/highlight.js/lib/languages/scala.js":
/*!**********************************************************!*\
!*** ./node_modules/highlight.js/lib/languages/scala.js ***!
\*********... |
/**
* Modules in this bundle
*
* loxe:
* license: MIT
* author: ahomu
* version: 0.5.0
*
* object-assign:
* license: MIT
* author: Sindre Sorhus <sindresorhus@gmail.com>
* maintainers: sindresorhus <sindresorhus@gmail.com>
* version: 3.0.0
*
*/
(function(f){if(typeof exports==="object"&&t... |
define_ibex_controller({
name: "Message",
jqueryWidget: {
_init: function () {
this.cssPrefix = this.options._cssPrefix;
this.utils = this.options._utils;
this.finishedCallback = this.options._finishedCallback;
this.html = this.options.html;
this.element.addClass(this.cssPr... |
/*
Copyright (c) 2017, Dogan Yazar
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... |
import React, { Component } from 'react'
import UserList from './UserList'
import Pagination from 'react-js-pagination';
import PropTypes from 'prop-types';
class PaginatedUsers extends Component {
handlePageChange(page){
this.context.router.history.push('/'+page);
this.props.actions.loadUsers(page)
}
... |
"use strict";
var BottleneckError, States;
BottleneckError = require("./BottleneckError");
States = class States {
constructor(status1) {
this.status = status1;
this._jobs = {};
this.counts = this.status.map(function () {
return 0;
});
}
next(id) {
var current, next;
current = this... |
/* global describe,require,it,before */
"use strict";
require("requirish")._(module);
var opcua = require("index");
var AddressSpace = opcua.AddressSpace;
var should = require("should");
var assert = require("assert");
var _ = require("underscore");
var path = require("path");
var encode_decode_round_trip_test = requ... |
/* jshint -W097 */
/* jshint strict:false */
/* jslint node:true */
/* jshint expr:true */
'use strict';
const testAdapter = require('../lib/testAdapter');
const dataDir = `${__dirname}/../tmp/data`;
const statesConfig = {
options: {
auth_pass: null,
retry_max_delay: 100,
retry_max_count: ... |
import React from 'react';
import TestUtils from 'react-dom/test-utils';
import Formsy from './..';
import { InputFactory } from './utils/TestInput';
const TestInput = InputFactory({
render() {
return <input value={this.props.getValue()} readOnly/>;
}
});
class TestForm extends React.Component {
render() {... |
/**
* Project: darlingjs (GameEngine).
* Copyright (c) 2013, Eugene-Krevenets
*/
var gameFBModule = window.gameFBModule || angular.module('GameFBModule', []);
gameFBModule
// Register the 'myCurrentTime' directive factory method.
// We inject $timeout and dateFilter service since the factory method is DI.
... |
module.exports = function (app) {
/*app.get('/', function (req, res) {
res.render('index.ejs', {
user: req.user
});
});*/
}; |
/**
* Using Rails-like standard naming convention for endpoints.
* GET /things -> index
* POST /things -> create
* GET /things/:id -> show
* PUT /things/:id -> update
* DELETE /things/:id -> destroy
*/
'use strict';
var _ = require('loda... |
/*!
* Module dependencies.
*/
var util = require('util'),
super_ = require('../Type');
/**
* URL FieldType Constructor
* @extends Field
* @api public
*/
function url(list, path, options) {
this._nativeType = String;
this._underscoreMethods = ['format'];
url.super_.call(this, list, path, options);
}
/*!
*... |
/**
* author: yhtml5
* reference: https://github.com/facebook/jest/blob/master/docs/ExpectAPI.md
* description: common matcher
*/
/**** Common Matchers ****/
// toBe uses === to test exact
test('two plus two is four', () => {
expect(2 + 2).toBe(4);
});
// check the value of an object, use toEqual
test('object ... |
(function() {
//inject angular file upload directives and services.
var app = angular.module('fileUpload');
app.controller('Controller2', [function () {
var ctrl = this;
ctrl.name = undefined;
}]);
})();
|
var phonegapReady = function(){
new jQuery.nd2Toast({message:"we are in phonegap"});
};
jQuery(document).ready(function(){
document.addEventListener("deviceready", phonegapReady, false);
});
|
import React, { Component } from 'react'
import { object } from 'prop-types'
// redux
import { connect } from 'react-redux'
import { signIn } from 'store/modules/ui/profile'
// libs
import { importWallet } from 'helpers/wallet'
import { Link } from 'react-router-dom'
// components
import FileReaderInput from 'react-fil... |
export default from './CodeEditor'
|
import Backbone from 'backbone';
import routes from '../routes';
export default class Variable extends Backbone.Model {
constructor(attributes, options) {
super(attributes, options);
this.urlRoot = routes.variables;
}
}
|
const db = require('georap-db');
module.exports = function (id, callback) {
// Get single location without events and entries
//
// Parameters:
// id
// ObjectId
// callback
// function (err, loc)
// err null and loc null if no loc found
//
const locColl = db.collection('location... |
/// <reference path="CoordinateTests.ts" />
/// <reference path="tsUnit.ts" />
var UnitTests;
(function (UnitTests) {
var TestRunner = (function () {
function TestRunner() {
this.test = new tsUnit.Test();
this.test.addTestClass(new UnitTests.CoordinateTests());
}
Test... |
var path = require('path');
var webpack = require('webpack');
var pkg = require('./package.json');
module.exports = {
node: {
fs: 'empty'
},
entry: {
'coins-logon-widget': './scripts/coins-logon-widget.js'
},
output: {
path: path.join(__dirname + '/dist'),
filename: ... |
var jQuery15 = jQuery;
jQuery.noConflict(true); |
/// <reference types="cypress" />
context('Standard Calendar', () => {
it('Create New Event', () => {
let title = "My New Event - " + Cypress._.random(0, 1e6);
cy.loginStandard("v2/calendar");
cy.get('.fc-row:nth-child(1) > .fc-content-skeleton .fc-thu').click();
cy.get('.modal-hea... |
var Kybrd = function(element) {
element = element || document;
element.addEventListener('keydown', this._onKeyDown.bind(this));
element.addEventListener('keyup', this._onKeyUp.bind(this));
this._keys = {};
};
Kybrd.prototype.isPressed = function(key) {
return this._keys.hasOwnProperty(key);
}
Kyb... |
import Component from 'react-pure-render/component';
import React from 'react';
import { FormattedMessage, defineMessages } from 'react-intl';
import EditorFormatAlignLeft from 'material-ui/svg-icons/editor/format-align-left';
import { grey200 } from 'material-ui/styles/colors';
const _messages = defineMessages({
e... |
'use strict';
angular.module('angularjsDE-module-seed')
.controller('ChangepasswordCtrl', function ($scope, $modalInstance, hoodieAccount, $log) {
$scope.alerts = [];
$scope.ok = function () {
hoodieAccount.changePassword($scope.old, $scope.new).then(function(data) {
$log.log(data);
$... |
import axios from 'axios';
var api = function api(baseUrl) {
var create = axios.create({
baseURL: baseUrl,
withCredentials: true
});
create.interceptors.request.use(function (request) {
return request;
}, function (error) {
error.msg = 'Erro ao tentar enviar dados.';
... |
/*
* A number of helper functions used for managing events.
* Many of the ideas behind this code originated from
* Dean Edwards' addEvent library.
*/
jQuery.event = {
// Bind an event to an element
// Original by Dean Edwards
add: function( elem, types, handler, data ) {
if ( elem.nodeType === 3 || elem.nodeT... |
export default {
getClassName: function(classes) {
if (this.props.className) {
return this.props.className + ` ${classes}`;
}
return classes;
}
}
|
import './a';
import './b';
|
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\"... |
// Karma configuration
// Generated on Thu Mar 19 2015 17:35:54 GMT+0000 (GMT)
var webpack = require('webpack');
var WATCH = process.argv.indexOf('--watch') > -1;
var MIN = process.argv.indexOf('--min') > -1;
var webpackConfig = {
cache: true,
devtool: 'inline-source-map',
module: {
preLoaders: [{
tes... |
import React from 'react'
import styled from 'styled-components'
import { colors, fontFamily } from '../../style'
import Loader, { StyledLoader } from './Loader'
const Button = styled.button`
display: inline-block;
vertical-align: top;
appearance: none;
outline: none;
border: 0;
border-radius: 2px;
paddi... |
import { RenderBuffer } from "./renderbuffer.js";
import { failure } from "../utils.js";
export class FrameBuffer {
constructor(context) {
var _a;
this.context = context;
this.target = WebGL2RenderingContext.FRAMEBUFFER;
this._colorBuffer = null;
this._depthBuffer = null;
... |
import Vue from 'vue'
const style = {
position: 'relative',
backgroundColor: '#808080',
background: 'linear-gradient(-90deg, rgba(0, 0, 0, .1) 1px, transparent 1px), linear-gradient(rgba(0, 0, 0, .1) 1px, transparent 1px)',
backgroundSize: '20px 20px, 20px 20px',
backgroundPosition: '10px 10px',
... |
var searchData=
[
['robot',['Robot',['../class_robot.html#a4fc7c70ae20623f05e06f2ecb388b6c4',1,'Robot::Robot()'],['../class_robot.html#a0e6819bf54f9cb47a4147ce6e883ff06',1,'Robot::Robot(std::string str)']]],
['run',['run',['../class_robot.html#a68db0807318b24bf97b590217687f14a',1,'Robot']]]
];
|
Core.soundManager = function(audios, options) {
var created = {};
var playing = {};
var _play = function(id) {
_load(id);
if(sessionStorage.soundDisabled !== 'true') {
playing[id] = created[id];
created[id].play();
}
};
var _stop = function(id) {
if(!playing[id]) { return; }
playing[id].pause... |
var db = require('../config/db');
var sanitizeHtml = require('sanitize-html');
var htmlToText = require('html-to-text');
var NoteSchema = db.Schema({
title: String,
body_html: String,
body_text: String,
user: { type: db.Schema.Types.ObjectId, ref: 'User' },
updated_at: { type: Date, default: Date.now }
});
... |
/* jshint undef:false*/
(function() {
'use strict';
describe('HomeCtrl', function() {
var rootScope;
var ctrl;
var scope;
beforeEach(module('app'));
beforeEach(inject(function($rootScope, $controller) {
rootScope = $rootScope;
scope = $rootScope.$new();
ctrl = $controller('Ho... |
const spawn = require('child_process').spawn;
const path = require('path')
const mkdirp = require('mkdirp');
const electron = require('electron');
const ipc = electron.ipcRenderer;
const remote = electron.remote;
const app = remote.app;
const win = remote.getCurrentWindow();
const parentWin = win.getParentWindow();
con... |
var should = require('should'),
sinon = require('sinon'),
versionMatch = require('../../../../../server/web/shared/middlewares/api/version-match');
describe('Version Mismatch', function () {
var req, res, getStub, nextStub;
afterEach(function () {
sinon.restore();
});
beforeEach(fun... |
/*!
* Native JavaScript for Bootstrap v4.0.0 (https://thednp.github.io/bootstrap.native/)
* Copyright 2015-2021 © dnp_theme
* Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE)
*/
var transitionEndEvent = 'webkitTransition' in document.head.style ? 'webkitTransitionEnd' : 'trans... |
'use strict';
var sinon = require('sinon');
module.exports = function() {
var logger = {
debug: sinon.stub(),
verbose: sinon.stub(),
info: sinon.stub(),
warn: sinon.stub(),
error: sinon.stub()
};
return logger;
};
|
/**
* Open Payments Cloud Application API
* Open Payments Cloud API
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*
*/
(function(root, factory) {
if (ty... |
import isViablePhoneNumber from './helpers/isViablePhoneNumber'
import parseNumber from './parse_'
import _isValidNumberForRegion from './isValidNumberForRegion_'
export default function isValidNumberForRegion(number, country, metadata) {
if (typeof number !== 'string') {
throw new TypeError('number must be a strin... |
import { FETCH_LOCATIONS, CATEGORY_CHANGE, MARKER_CLICK, MARKER_OVER, MARKER_OUT,ITEMS_FETCH_DATA_SUCCESS,ITEMS_IS_LOADING } from '../actions/types';
export function itemsIsLoading(state = false, action) {
switch (action.type) {
case ITEMS_IS_LOADING:
console.log('map is loading')
retur... |
import React, { PropTypes } from 'react';
import { findDOMNode } from 'react-dom';
import { DragSource, DropTarget } from 'react-dnd';
import { Link } from 'react-router';
import handleUpdateTodo from '../helpers/handleUpdateTodo';
const todoSource = {
beginDrag(props) {
return { props };
}
};
const t... |
/**
@module ember-time-tools
*/
import Component from '@ember/component';
import layout from '../templates/components/tt-input-time';
import format from 'ember-time-tools/utils/format';
import DestinationElementMixin from 'ember-ui-components/mixins/destination-element';
/**
This component is a container for a Tim... |
App.LoadingRoute = Em.Route.extend({
templateName: 'loading_route',
renderTemplate: function() {
// have it always render into the application template
this.render('loading_route', {
outlet: 'main'
});
}
});
|
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var protocol = require('pomelo-protocol');
var logger = require('pomelo-logger').getLogger('pomelo', __filename);
var Package = protocol.Package;
var Message = protocol.Message;
var ST_INITED = 0;
var ST_WAIT_ACK = 1;
var ST_WORKING = 2;
va... |
(function() {
'use strict';
angular
.module('plagUiApp')
.config(compileServiceConfig);
compileServiceConfig.$inject = ['$compileProvider','DEBUG_INFO_ENABLED'];
function compileServiceConfig($compileProvider,DEBUG_INFO_ENABLED) {
// disable debug data on prod profile to impro... |
/*!
* bootstrap-fileinput v5.1.2
* http://plugins.krajee.com/file-input
*
* Krajee Explorer Font Awesome theme configuration for bootstrap-fileinput.
* Load this theme file after loading `fileinput.js`. Ensure that
* font awesome assets and CSS are loaded on the page as well.
*
* Author: Kartik Visweswaran
* C... |
/**
* @license Highstock JS v9.1.2 (2021-06-16)
* @module highcharts/indicators/ao
* @requires highcharts
* @requires highcharts/modules/stock
*
* Indicator series type for Highcharts Stock
*
* (c) 2010-2021 Wojciech Chmiel
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../Stock/Indicato... |
// Executable at least with NodeJS
var readline = require('readline');
var rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
terminal: false
});
rl.on('line', function(line){
var visited=[[0,0]]; // List of (x,y) coords
for (var i = 0; i < line.length; i++) {
var oldCo... |
/**
* @ Lamosty.com 2015
*/
(function ($) {
function swap_large_image(event) {
event.preventDefault();
var newLargePhotoSrc = $(this).data('photo-large');
$('#large-photo').attr('src', newLargePhotoSrc);
}
var RentiFlat = {
'common': {
init: function () {
... |
(function (window, document, Laya) {
var __un = Laya.un, __uns = Laya.uns, __static = Laya.static, __class = Laya.class, __getset = Laya.getset, __newvec = Laya.__newvec;
var Browser = laya.utils.Browser, CSSStyle = laya.display.css.CSSStyle, ClassUtils = laya.utils.ClassUtils;
var Event = laya.events.Event, HTMLC... |
/**
* @ngdoc module
* @name ng-translation.files-loader
*
* @description
* handle load static files phase
*/
angular.module('ng-translation.files-loader', [])
.factory('staticFilesLoader', ['$http', '$q', staticFilesLoaderFactory]);
function staticFilesLoaderFactory($http, $q) {
/**
* @ngdoc method
... |
// Copyright 2011 Mark Cavage <mcavageginomail> All rights reserved.
module.exports = {
EOC: 0,
Boolean: 1,
Integer: 2,
BitString: 3,
OctetString: 4,
Null: 5,
OID: 6,
ObjectDescriptor: 7,
External: 8,
Real: 9, // float
Enumeration: 10,
PDV: 11,
Utf8String: 12,
RelativeOID: 13,
Sequence: ... |
'use strict';
var db = require('mano').db;
exports.email = db.Email;
exports.password = db.Password;
|
/*
*
* WeeklyPriorities
*
*/
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
import styled from 'styled-components';
import { makeSelectWeeklyPriorities } from 'containers/Priorities/selectors';
import {
addDaily,
editDaily,... |
var searchData=
[
['i2c_5fbus_5fref_5fct',['i2c_bus_ref_ct',['../a00843.html#gaa7deec7f5d89dfb4f9746d050b0926f9',1,'hal_linux_i2c_userspace.c']]],
['i2c_5fbuses_5fdefault',['i2c_buses_default',['../a00467.html#ad2e9f2387bb528f37bceb48cd88af3d0',1,'i2c_buses_default(): i2c_bitbang_samd21.c'],['../a00470.html#ad... |
//set global options
//toastr options
/*global options for plugins and directives */
toastr.options = {
"closeButton": false,
"debug": false,
"newestOnTop": false,
"progressBar": false,
"positionClass": "toast-top-full-width",
"preventDuplicates": false,
"onclick": null,
"show... |
import React from 'react';
import markdown from '../data/index.md';
import Article from '../components/content/Article';
const Home = () => <Article markdown={markdown} />;
export default Home;
|
'use strict';
import $ from 'jquery';
import { GetYoDigits, ignoreMousedisappear } from './foundation.core.utils';
import { MediaQuery } from './foundation.util.mediaQuery';
import { Triggers } from './foundation.util.triggers';
import { Positionable } from './foundation.positionable';
/**
* Tooltip module.
* @mod... |
'use strict';
/*
* This program is distributed under the terms of the MIT license:
* <https://github.com/v0lkan/talks/blob/master/LICENSE.md>
* Send your comments and suggestions to <me@volkan.io>.
*/
import cluster from 'cluster';
import log from 'local-fluent-logger';
import { cpus } from 'os';
import { init as... |
import React from 'react';
import renderer from 'react-test-renderer';
import EventListItem from './EventListItem';
test('renders correctly', () => {
const tree = renderer.create(<EventListItem event={{}} onPress={() => {}} />).toJSON();
expect(tree).toMatchSnapshot();
});
|
/*
MIT License
Copyright (c) 2016 Judd Niemann
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, ... |
var Widget = require("./widget")
, ArrowKeys = require("arrow-keys")
, duplex = require("duplexer")
, SPEED = 5
module.exports = Player
/*
A player is a stream which emits requested changes in state and which when
written to changes the actual state.
Generally you hook the input up to the cha... |
(function(){
'use strict';
angular.module('purpose')
.config(['$routeProvider', '$locationProvider', PurposeRoutes]);
function PurposeRoutes($routeProvider, $locationProvider, $q){
$routeProvider
.when('/purpose', {
templateUrl: '/src/pages/purpose/view/content.html',
controll... |
var path = require('path'),
webdriver = require('selenium-webdriver'),
jasmine = require('jasmine-node');
process.env.PATH += path.delimiter + path.dirname(require('chromedriver').path);
var client = new webdriver.Builder()
.withCapabilities(webdriver.Capabilities.chrome())
... |
// Licensed to the Software Freedom Conservancy (SFC) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The SFC licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you m... |
import React, { PropTypes } from 'react';
const WelcomeMessage = ({ userText }) => {
return (
<h2>{`Welcome, ${userText}. Here's what you should watch tonight:`}</h2>
);
};
WelcomeMessage.propTypes = {
userText: PropTypes.string.isRequired
};
export default WelcomeMessage;
|
const option = require('../option');
it('should return option', () => {
expect(typeof option).toBe('function');
});
|
'use strict';
var expect = require("expect.js"),
simplator = require("simplator"),
templates = {
nameTmpl: simplator.compile("{first},{last}"),
addressTmpl: simplator.compile("{street},{city}")
},
subTemplates = require('../lib/simplator-subtemplates');
describe("simplator_subtempl... |
import React, { Component } from 'react';
import TemplateController from '../../controllers/Templates';
import ContentController from '../../controllers/Content';
import {Card, CardHeader, CardText, TextField, Toggle, RaisedButton, Snackbar} from 'material-ui';
import utl from '../../utl/StringFormatting.js';
export d... |
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import App from '../common/components/App'
import configureStore from '../common/store/configureStore';
const preloadedState = window.__PRELOADED_STATE__ ? window.__PRELOADED_STATE__ ... |
chrome.extension.onRequest.addListener(function(request, sender, sendResponse) {
if (request.method == "getLocalStorage")
sendResponse({data: localStorage[request.key]});
else
sendResponse({});
});
|
export { default, slice } from '@abcum/ember-helpers/helpers/slice';
|
// Mouse buttons constants
this.creatine.buttons = {
LEFT : 0,
MIDDLE : 1,
RIGHT : 2,
}; |
var expect = require('../lib');
expect.addAssertion('<any> to bar', function(expect, subject) {
expect(subject, 'to equal', 'bar');
return expect.promise(function(resolve, reject) {});
});
expect.addAssertion('<any> to foo', function(expect) {
expect('bar', 'to bar');
});
it('should call the callback', functio... |
'use strict';
/**
* app.js
*
* Use `app.js` to run your app without `sails lift`.
* To start the server, run: `node app.js`.
*
* This is handy in situations where the sails CLI is not relevant or useful.
*
* For example:
* => `node app.js`
* => `forever start app.js`
* => `node debug app.js`
* => `... |
/* @flow */
import * as React from 'react';
type Props = {
text: string,
};
type State = {
text: string,
};
export default class FlowText extends React.Component<Props, State> {
static defaultProps: any;
props: Props;
// property initializers used to ensure issue is fixed: https://github.com/babel/babel/i... |
/**
* Processes a Facebook Group's feed. Allows you to run each group thread
* through any number of filters which expose auto-moderator functionality.
* @module
*/
var Post = require('./Post')
var Promise = require('es6-promise').Promise
var _ = require('underscore')
var fb = require('./fb')
/**
* The query par... |
import { getRandNumber } from './Utils';
export default class Particle {
canvas = {};
vector = {};
/*
* Initialize the particle.
* @param {Object} canvas DOM element.
* @param {Object} params Few particle's params.
*/
constructor(canvas, params){
this.params = {
color: 'white',
minSize: 2,
maxS... |
import React from "react";
import {
Page,
HashSection,
Paragraph,
MultiSandbox
} from "../../components/example/common";
let meta = {
title: "Navigation Confirmation"
};
let explanationMeta = {
title: "Explanation",
hash: "explanation"
};
let demoMeta = {
title: "Live Demo",
hash: "demo"
};
let co... |
import { moduleFor, test } from 'ember-qunit';
moduleFor('route:gamer', 'Unit | Route | gamer', {
// Specify the other units that are required for this test.
// needs: ['controller:foo']
});
test('it exists', function(assert) {
var route = this.subject();
assert.ok(route);
});
|
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.createREGL = factory());
}(this, (function () { 'use strict';
var isTypedArray = function (x) {
return (
x i... |
export const beforeHooks = {
global: ["auth:verify"]
};
export const afterHooks = { global: [] };
|
import demo from './index';
import {makeDOMDriver} from '@cycle/dom';
import {run} from '@cycle/core';
const main = demo;
run(main, {
DOM: makeDOMDriver(`.demo-container`),
});
|
/*
* View Source
* Generates copy/pastable markup from actual rendered markup.
*
* Copyright (c) 2012 Filament Group, Inc.
* Licensed under the MIT, GPL licenses.
*/
(function( $ ) {
var pluginName = "xrayhtml",
o = {
text: {
open: "View Source",
close: "View Demo"
},
classes: {
button: "btn btn-sm... |
// var process = require('child_process');
// const globby = require('globby');
// const shell = require('shelljs');
// const buildReveal = async () => {
// const paths = await globby('md/*.md')
// paths.forEach((path) => {
// const name = path.match(/md\/(\w*).md/)
// if(name[1]) {
// ... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Export from './export';
import Delete from './delete';
import Quantity from './quantity';
import NonOption from '../featureValues/nonOption';
import Option from '../featureValues/option';
export default class Edit extends Component {
... |
'use strict';
const gulp = tars.packages.gulp;
const gulpif = tars.packages.gulpif;
const rename = tars.packages.rename;
const plumber = tars.packages.plumber;
const notifier = tars.helpers.notifier;
const skipTaskWithEmptyPipe = tars.helpers.skipTaskWithEmptyPipe;
const svgImagesPath = `./dev/${tars.config.fs.static... |
'use strict';
describe('filters', function() {
var filter;
beforeEach(inject(function($filter) {
filter = $filter;
}));
it('should call the filter when evaluating expression', function() {
var filter = jasmine.createSpy('myFilter');
createInjector(['ng', function($filterProvider) {
$filter... |
// More info on Webpack's Node API here: https://webpack.github.io/docs/node.js-api.html
// Allowing console calls below since this is a build file.
/* eslint-disable no-console */
import webpack from 'webpack';
let ncp = require('ncp').ncp;
import config from '../webpack.config.prod';
import {chalkError, chalkSuccess,... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2016 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
/**
* The Destroy component is responsible for destroying a Game Object.
*
* @class
*/
Phaser.Component.Destroy = function... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.