code
stringlengths
2
1.05M
var _privateField = babelHelpers.classPrivateFieldLooseKey("privateField"); var _privateFieldValue = babelHelpers.classPrivateFieldLooseKey("privateFieldValue"); class Cl { static publicGetPrivateField() { return babelHelpers.classPrivateFieldLooseBase(Cl, _privateFieldValue)[_privateFieldValue]; } static ...
import { combineReducers } from 'redux' import relationshipReducer from './relationshipReducer' // NOTE: relationships = { comments: { isOne = false, accepts = ['comment'] } } const createRelationshipsReducer = (options = {}) => (state = {}, action) => { const { relationships } = options if (!relationships) { retu...
app.factory('Rasa_Parse', function($resource) { return $resource(api_endpoint_v2 + '/rasa/parse?q=:query&model=:model', {query:'@id', model: '@id'}); }); app.factory('Rasa_Status', function($resource) { return $resource(api_endpoint_v2 + '/rasa/status'); }); app.factory('Rasa_Config', function($resource) { retu...
module.exports = function dumb(render, displayName = render.name) { const Component = function(props) { return { props, render() { return render.call(this, this.props) } } } Component.displayName = displayName return Component }
require('./test-helper') var eventbrite = require( '../lib/passport-eventbrite-oauth' ); describe( 'passport-eventbrite-oauth', function() { describe('module', function() { it('should report a version', function() { _.isString(eventbrite.version).should.equal(true) }) it('should export 0Auth 2.0 s...
/** * related to start.ui * * @Author : zxhuizhi@126.com * @Timestamp : 2016-08-12 */ var page = sm("do_Page"); var do_ALayout_Root = ui("do_ALayout_Root"); do_ALayout_Root.on("touch",function(){ page.fire("COLSE"); })
'use strict'; // MODULES // var partial = require( './partial.js' ); // PDF // /** * FUNCTION: pdf( out, matrix, alpha, beta ) * Evaluates the probability density function (PDF) for a Gamma distribution with shape parameter `alpha` and rate parameter `beta` for each matrix element. * * @param {Matrix} out - output...
$(window).on("polymer-ready", function() { return Session.set("polymer-ready", true); }); Meteor.startup(function() { $("body").append("<div fit layout vertical iron-router></div>"); return Tracker.autorun(function() { if (Session.get("polymer-ready")) { Router.insert({ el: "[iron-router]" ...
import Ember from 'ember'; /** * FilterContentComponent * * @description component that applys a simple filter to a specified content model * based on basic matching * @memberof App * @extends external:Ember.Component * @constructor */ export default Ember.Component.extend({ /* properties --------------...
'use strict'; var assert = require('assert'); var gutil = require('gulp-util'); var filter = require('./'); describe('filter()', function () { it('should filter files', function (cb) { var stream = filter('included.js'); var buffer = []; stream.on('data', function (file) { buffer.push(file); }); stream...
// 智慧商务 const saasCoupon = r => require.ensure([], () => r(require('@/page/saas/business/coupon.vue')), 'saasCoupon'); // 优惠券管理 const saasCouponSort = r => require.ensure([], () => r(require('@/page/saas/business/couponSort.vue')), 'saasCouponSort'); // 优惠券管理 export default { children: [{ path: '/sa-coupon...
$(function(){ "use strict"; function calculate() { function isContainsLowerCaseLetters(value) { return (/[a-z]/).test(value); } function isContainsUpperCaseLettes(value) { return (/[A-Z]/).test(value); } function isContainsSpaces (value) { return (/ /).test(value); } function isContainsNum...
import React, { Component } from 'react' import { connect } from 'react-redux' import Dao from "../../Dao/Dao" import * as ReduxActions from "../../Actions"; import {Actions} from 'react-native-router-flux' import UserMarkersComponent from "../../Components/Settings/UserMarkersComponent"; import PropTypes from 'prop-ty...
version https://git-lfs.github.com/spec/v1 oid sha256:76b104731317986cff0a3e05f56ed7c87bb2da613d335aa05aea1686091741fc size 6110
if (typeof exports === 'object') { var assert = require('assert'); var alasql = require('..'); } else { __dirname = '.'; } // //http://stackoverflow.com/questions/18811265/sql-creating-temporary-variables // describe('Test 337 SEARCH 8 queens', function () { it.skip('1. CREATE DATABASE', function (done) { alas...
/** * Created by Garrett on 1/17/2015. */ var seltext = null; chrome.extension.onRequest.addListener(function(request, sender, sendResponse) { switch(request.message) { case 'setText': window.seltext = request.data; break; default: sendResponse({data: 'Inv...
function Descuento() { this.B_nombre = ''; } Descuento.prototype.getNombre = function () { return this.B_nombre; }; Descuento.prototype.setNombre = function (nombre) { this.B_nombre = nombre; }; Descuento.prototype.delete = function (url, unique) { formData="&__76d5446dec__=" + unique; contentT...
'use babel'; 'use strict'; var fs = require('fs-extra'); var temp = require('temp'); var specHelpers = require('./spec-helpers'); describe('Keymap', function() { var directory = null; var workspaceElement = null; temp.track(); beforeEach(function() { directory = fs.realpathSync(temp.mkdirSync({ prefix: ...
//= require jquery //= require jsurlify // This adds the events onto a form // this module function is called with com.jivatechnology.Upper as 'this' (function(){ var scope = this; this.Form = (function(){ var generateUploadID = function(){ var uuid = ""; for (i = 0; i < 32; i++) { uuid += Math...
/// <reference path="../../../scripts/angular/ngFormFixes.directive/ngFormFixes.directive.js" /> define(['angular'], function (angular) { var tournamentOrganiser = angular .module('tournamentOrganiser') tournamentOrganiser.registerController('dashboardController', ['dashboardService', '$scope...
/* eslint-disable */ THREE.RenderFragment = { uniforms: { "tDiffuse": { value: null }, "tSize": { value: new THREE.Vector2( 256, 256 ) }, "center": { value: new THREE.Vector2( 0.5, 0.5 ) }, "ratio": { value: 1024.0 }, "frenz": { value: 1024.0 }, "scale": { value: 2.0 } },...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" opacity=".87" /><path d="M3 12v2h8.77l-1.11 5.34L15 15V5H6z" opacity=".3" /><path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1...
import React from 'react'; import PropTypes from 'prop-types'; import styles from './../assets/profiledatakey.css'; const propTypes = { onClick: PropTypes.func.isRequired, selected: PropTypes.bool.isRequired, label: PropTypes.string.isRequired, }; const ProfileDataKey = ({ onClick, selected, label }) => ( <bu...
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; const rootEl = document.getElementById('root'); ReactDOM.render( <App />, rootEl, ); if (module.hot) { module.hot.accept('./App', () => { const NextApp = require('./App').default; // eslint-disable-lin...
/*! * yo * Copyright(c) 2015 Hbomb * MIT Licensed */ 'use strict'; /** * 模块依赖 * @private */ var _ = require('lodash'); var redis = require('redis'); var md5 = require('../util').md5; var debug = require('debug')('cache'); /** * 缓存插件 * @param {Request} options 配置参数 * @return {Function} 返回处理中间件 */ module...
'use strict'; let Queue = function() { this.length = 0; }; Queue.prototype.enqueue = function(value) { this[this.length] = value; this.length++; }; Queue.prototype.dequeue = function() { if (this.length === 0) return; let result = this[0]; for (let i = 0; i < this.length; i++) { this[i - 1] = this[i]...
function wind_chill(T_a, v) { let T_wc = 0; // Your code goes here! return T_wc; }
'use strict' const Encoder = require('../').Encoder const Decoder = require('../').Decoder const assert = require('assert') var encoder var decoder var headers = [] function createEncoder(size) { encoder = new Encoder(size) } function createDecoder(size) { decoder = new Decoder(size) decoder.on('header', func...
import _ from 'lodash' import { trimStart } from 'components/Utils' import { BloodhoundFactory, FormulaUtils, Formulas } from './data' const invokeTypeahead = (query, state, dispatch) => { if(state.currentPartIndex >= state.formulaParts.length) return let parts = state.formulaParts[state.currentPartIndex].match(...
Exhibit.Localization.importLocale("it", { "%general.missingLabel": "missing", "%general.missingSortKey": "(missing)", "%general.notApplicableSortKey": "(n/a)", "%general.itemLinkLabel": "link", "%general.busyIndicatorMessage": " Working...", "%general.showDocumentationMessage": "%1$s\n\nWe will ...
/** * Java Timer Functions * * Handles Realtime-Timers on the page * @author Markus Schlegel <g42@gmx.net> * @author die-staemme.de (original version) * @copyright Copyright (C) 2006 Markus Schlegel * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version SVN: $Id: timer.func.js 3...
const {User} = require('../models') const jwt = require('jsonwebtoken') const config = require('../config/config') function jwtSignUser (user) { const ONE_WEEK = 60 * 60 * 24 * 7 return jwt.sign(user, config.authentication.jwtSecret, { expiresIn: ONE_WEEK }) } module.exports = { async register (req, res) ...
'use strict' var util = require('util') module.exports = function redirect (req, res, next) { var count = req.params.count ? parseInt(req.params.count, 10) : 1 var status = parseInt(req.params.status_code, 10) || 302 var valid = [300, 301, 302, 303, 307, 308] if (count > 100) { count = 100 } if (!~v...
before(function() { Handlebars = require("handlebars"), coolHelpers = require("../../lib/cool-helpers"), chai = require('chai'), helpers = Handlebars.helpers, expect = chai.expect; });
import React from 'react'; import Button from './../_Utilities/Button/Button' export default class TaskDelete extends React.Component { constructor(props) { super(props); } onClickDelete = () => { var p = this.props; p.deleteThisTask(p.task._id) } /***************************************/...
const FILTER_IMG = { filters: [{ name: L('file-image'), extensions: [ 'jpg', 'png', 'gif' ] }], properties: [ "openFile" ] }; const STATUS_CLASS = { 'online': "online", 'afk': "afk" }; const USER_NOTICE = { id: "j-launcher", image: __dirname.replace(/\\/g, "/") + "/img/logo.ico", nickname: L('notice') }; co...
(function() { var DEBUG = false; var pressed = {}; var lastPressed = null; var onPressedCallback = null; function preventDefault(e) { if (e.which == input.keys.BACKSPACE.code || e.which == input.keys.TAB.code || e.which == input.keys.F1.code) { e.preven...
// ----------------------------------------------------------------- // events-async.js // // events-async // Copyright 2014. CM Group Ltd. All rights reserved. // // Paul Jackson <paulj@cm-group.co.uk> // 'use strict'; // ----------------------------------------------------------------- // Dependencies var ev...
'use strict' // title //Настройки Kenzo VK document.title = browser.runtime.getManifest().name + ': ' + browser.i18n.getMessage('o__header'); // ———————————————————————————————————————— angular .module('kenzo') .controller('OptionsHeaderCtrl', OptionsHeaderCtrl); OptionsHeaderCtrl.$inject = ['$scope', '$ele...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var weather_wind_W = exports.weather_wind_W = { "viewBox": "0 0 64 64", "children": [{ "name": "circle", "attribs": { "fill": "none", "stroke": "#000000", "stroke-width": "2", "stroke-miterlimit": "10", "cx": "31.999", "cy": "31.999", "r": ...
import React from 'react'; import { ThemeProvider } from 'styled-components'; import { render, cleanup } from '@testing-library/react'; import theme from '../../../theme/theme'; import Text from '../Text'; const children = 'children'; const renderComponent = (props = {}) => render( <ThemeProvider theme={theme}...
/* * Copyright (c) 2015 by Rafael Angel Aznar Aparici (rafaaznar at gmail dot com) * * openAUSIAS: The stunning micro-library that helps you to develop easily * AJAX web applications by using Java and jQuery * openAUSIAS is distributed under the MIT License (MIT) * Sources at https://github.com/raf...
// var states = []; // var alphabet = "abc"; // var paper_width = 900; // var paper_height = 500; // var graph = new joint.dia.Graph; // var paper = new joint.dia.Paper({ // el: $('#diagram'), // width: paper_width, // height: paper_height, // gridSize: 1, // model: graph // }); // ...
'use strict'; app.factory('auth', ['$q', 'identity', 'requester', 'baseServiceUrl', 'errorHandler', function ($q, identity, requester, baseServiceUrl, errorHandler) { var usersApi = baseServiceUrl + '/api/users'; function register(username, password) { return requester.post(baseService...
/*! KeyTable 1.2.0 * ©2010-2014 SpryMedia Ltd - datatables.net/license */ /** * @summary KeyTable * @description Spreadsheet like keyboard navigation for DataTables * @version 1.2.0 * @file dataTables.keyTable.js * @author SpryMedia Ltd (www.sprymedia.co.uk) * @contact www.sprymedia.co....
#! /usr/bin/env node /* eslint no-unused-vars: "off", no-restricted-modules: "off" */ const fs = require("fs"); const path = require("path"); const colors = require("colors"); const argv = require("minimist")(process.argv.slice(2)); const EasyFtp = require("easy-ftp"); const shell = require("shelljs"); const ini = requ...
'use strict'; const _ = require('lodash'); const HTTP_STATUSES = require('http-statuses'); function resolveProp(obj, stringPath) { stringPath = stringPath.replace(/\[(\w+)]/g, '.$1'); // convert indexes to properties stringPath = stringPath.replace(/^\./, ''); // strip a leading dot const pathArray =...
import {inject, Lazy} from 'aurelia-framework'; import {Router} from 'aurelia-router'; import {Service} from './service'; @inject(Router, Service) export class View { constructor(router, service) { this.router = router; this.service = service; } activate(params) { var id = params....
'use strict'; var parse = require('css-parse'); module.exports = detect; function detect(src) { var res = []; parseDeps(parse(src), res); return dedupe(res); } function parseDeps(ast, res) { function parse(rule) { parseDeps(rule, res); } switch (ast.type) { case 'stylesheet': ast.stylesheet...
// https://github.com/mdn/webassembly-examples/ // 1. +++ fetchAndInstantiate() +++ // // This library function fetches the wasm module at 'url', instantiates it with // the given 'importObject', and returns the instantiated object instance export function fetchAndInstantiate(url, importObject) { return fetch(url)...
var searchData= [ ['decode',['decode',['../class_process_manager.html#ad882d23c995a27ac064826412b5127a8',1,'ProcessManager']]], ['deletechannel',['deleteChannel',['../class_channels_list.html#a72dfd281e40fd29624354254ad3fa791',1,'ChannelsList']]], ['deletesample',['deleteSample',['../class_audio_signal.html#aac1c...
//USAGE: // input parameter 1: inputfile containing features with properties (e.g., residences) // input parameter 2: contourfile containing contours (e.g., building contours) // input parameter 3: output file // input parameter 4: property-name for identifying the input feature (should have a common value with #5) // ...
import { PropTypes } from 'react'; import { BEM } from 'rebem'; import Titles from '#tabs/titles'; import Title from '#tabs/title'; import Panels from '#tabs/panels'; import Panel from '#tabs/panel'; function renderTitles(props) { if ('renderTitles' in props) { return props.renderTitles(props); } ...
const typescript = require('rollup-plugin-typescript2') const pkg = require('./package.json') const alias = require('rollup-plugin-alias') const { join } = require('path') const cwd = __dirname function resolver (path) { return join(__dirname, path) } module.exports = { input: 'src/index.ts', external: ['nervjs']...
// Code Splitting/Code on Demand // Place this code on App.JS for it to run. // Note that you will need to change the path of the Sample Pages. Alternatively, make this an export. app.innerHTML = ` <div id="menu"> <button id="loadPage1">Load Page 1</button> <button id="loadPage2">Load Page 2</button> </div> <div...
var component = FlowComponents.define("app.tools", function() { }); component.extend(Mixins.subNavigation); component.prototype.navs = [{ section: "cpu-profiler", label: i18n("app.cpu_profiler") }];
/** * Created by ejf3 on 3/18/14. */ ContactUtils = function () { var acceptCommands = [] , acceptTypes = []; var self = this; var REPLY = "REPLY" , POST_AN_UPDATE = "POST_AN_UPDATE" , TAKE_A_NOTE = "TAKE_A_NOTE" , PNG_IMAGE = "image/png" , JPG_IMAGE = "image/jpe...
/*global module*/ module.exports = function (grunt) { 'use strict'; // Define the configuration for all the tasks grunt.initConfig({ requirejs: grunt.file.readJSON('grunt/grunt-requirejs.json'), compass: grunt.file.readJSON('grunt/grunt-compass.json'), ngAnnotate: { n...
const imageUrlPrefix = 'image://'; export default function parseThumbnailUrl(rawUrl) { if (rawUrl && rawUrl.startsWith(imageUrlPrefix)) { const decodedUrl = decodeURIComponent(rawUrl.replace(imageUrlPrefix, '')); return decodedUrl.slice(0, -1); } return rawUrl; }
'use strict'; /** * Test pattern inspired by: daniellmb * * 2013-11-29 * https://github.com/daniellmb/angular-test-patterns/blob/master/patterns/directive.md#render-the-expected-output- */ describe('Directive: conversationControl', function () { var CLIENT = 'yanfen@example.com', SERVER = 'dan@examp...
function sort(mode) { var urlRaw = window.location.href.split('?')[0]; var url = new URL(window.location.href); var search = url.searchParams.get("search"); if (search == null) { window.location.href = urlRaw + "?sort=" + mode; } else { window.location.href = urlRaw + "?search="...
import m from 'mithril'; import Button from './components/button/button'; const StyleGuide = { view() { return m('.style-guide', [ m(Button, { label: 'Press me', events: { onclick() { alert('I got pressed'); }, }, }), ]); }, }; const app ...
import _ from 'lodash'; import React, { Component } from 'react'; import { Link } from 'react-router'; import IconButton from 'material-ui/lib/icon-button'; import TextField from 'material-ui/lib/text-field'; import List from 'material-ui/lib/lists/list'; import LeftNav from 'material-ui/lib/left-nav'; import Color fro...
var app = require('../lib/users') , request = require('supertest'); describe('GET /users/id', function() { it('responds with the user info & todos', function(done) { request(app) .get('/users/mohnish') .end(function(err, res) { var result = res.body; result.should.have.property('in...
define([ 'underscore', 'backbone', 'marionette', 'routers/app', 'routers/about', 'layouts/app' ], function (_, Backbone, Marionette, HomeRouter, AboutRouter, AppLayout) { 'use strict'; var App = new Backbone.Marionette.Application(); // An init function for your main application object ...
/** @jsx React.DOM */ var Router = require('react-router'); var React = require('react'); var ServeryHours = require('./serveryhours'); module.exports = ['MealMenu','MenuStore', 'AllergyFilter','FilterStore', function(MealMenu, MenuStore, AllergyFilter, FilterStore){ var meals = ['breakfast', 'lunch', 'dinner']; ...
/* * Kendo UI v2014.2.1008 (http://www.telerik.com/kendo-ui) * Copyright 2014 Telerik AD. All rights reserved. * * Kendo UI commercial licenses may be obtained at * http://www.telerik.com/purchase/license-agreement/kendo-ui-complete * If you do not own a commercial license, this file shall be governed by the trial lice...
'use strict'; var bu = require('benchmark-utils'); bu.verbose = true; function varVarVar() { var a = 1; var b = 2; var c = 3; } function var1() { var a = 1, b = 2, c = 3; } bu.measureTime('var var var', function () { for (var i = 0; i < 1e8; i += 1) { varVarVar(); } }); bu.measureTime('var', func...
/*! * hnzswh-rvt * Copyright(c) 2015 hnzswh-rvt <3203317@qq.com> * MIT Licensed */ 'use strict'; var util = require('speedt-utils'), uuid = require('node-uuid'), mysql_util = util.mysql_util, mysql = util.mysql; var exports = module.exports; var biz = { tasktake: require('./tasktake') }; /** * 获取指定任务ID的...
'use strict'; moduloDirectivas.component('cplistfilterbyintegerspa', { restrict: 'E', bindings: { url: '<', field: '<', rpp: '<', numpage: '<', orderparams: '<', filterparams: '<' }, templateUrl: 'js/system/component/plistspa/cplistfilterbyintegerspa.html'...
import alt from '../alt'; import request from '../request'; import types from '../constants/ActionTypes/cars'; class CarsActions { constructor() { } getAllCars() { const query = `query{cars { _id name doors cost airCondition transmissio...
/** * Module dependencies. */ var passport = require('passport-strategy') , util = require('util') , lookup = require('./utils').lookup; /** * `Strategy` constructor. * * The token authentication strategy authenticates requests based on the * credentials submitted through an authentication token. * * Appl...
initSidebarItems({"enum":[["E","Enum, which is used to contain LinuxTuples element"]],"struct":[["LinuxTuplesConnection","Used to connect to LinuxTuples server"]]});
import Ember from 'ember'; import EventedAnimationSupport from 'ember-vcl-evented-animation-support'; import Button from 'ember-vcl-button'; export default Ember.Controller.extend( Ember.Evented, EventedAnimationSupport, { animations: [ { name: 'pushDown', target: '.animTarget', ...
/** * Copyright 2012-2020, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var Lib = require('../lib'); var Template = require('../plot_api/plot_template'); var handleDomainDefaults = re...
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosUploadOutline extends React.Component { render() { if(this.props.bare) { return <g> <g> <g> <polygon points="288,144 288,160 400,160 400,432 112,432 112,160 224,160 224,144 96,144 96,448 416,448 416,144...
import 'babel-polyfill'; import React from 'react'; import { ApolloProvider } from 'react-apollo'; import ReactDOM from 'react-dom'; import AdminRoot from './react/AdminRoot'; import store, { apolloClient } from './store'; const root = ( <ApolloProvider store={store} client={apolloClient}> <AdminRoot/> </ApolloPr...
var Clarifai = require('clarifai'); // instantiate a new Clarifai app passing in your clientId and clientSecret var app = new Clarifai.App( 'Zwo7bBQt3ovIsiHWOoRi_fL4Qyr2fdUEoyZC3aev', 'EhnmR3pk0PgnBIIRtomklCt4tOvAeybsMXCBp303' ); // predict the contents of an image by passing in a url app.models.predict(Clarifai.G...
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['2169',"Tlece.Recruitment.Models.QuestionVideo Namespace","topic_0000000000000742.html"],['2178',"QuestionVideoEditModel Class","topic_000000000000074A.html"],['2179',"Properties","topic_000000000000074A_props--.html...
const React = require('react'); const urls = require('../../settings').urls; const autoBind = require('react-autobind'); const drf = require('../drf'); const ComponentTemplate = require('./component-template'); var CommentList = require('./comment-list'); var CommentInput = require('./comment-input'); var socket = io...
import { mount, config } from '@vue/test-utils' import AlertBox from '@/components/AlertBox' import { wait } from '../../../utils' config.stubs.transition = false describe('components/AlertBox', function () { it('should render title prop correctly by AlertBox', () => { let wrapper = mount( { compo...
import should from 'should'; import request from 'supertest'; import server from '../../index'; import <%= model %> from '../../models/person'; describe('controllers', () => { describe('<%= controller %>', () => { describe('GET <%= route %>', () => { it('should return a list with <%= model %>s', (done) =>...
jQuery(document).ready(function() { collectionHolder.find('li').each(function() { addTagFormDeleteLink($(this)); }); collectionHolder.append($newLinkLi); collectionHolder.data('index', collectionHolder.find(':input').length); $addTagLink.on('click', function(e) { e.preventDefault(); addTagF...
var BlueRidge = BlueRidge || {}; BlueRidge.Browser = { require: function(url, options){ options = options || {}; var system = options["system"] || false; var callback = options["onload"] || null; url = (system) ? this.treatUrlAsRelativeToCurrentFile(url) : this.treatUrlAsRelativeToSpecFile(url); ...
$(function() { if ($('body').hasClass('homerooms') && $('body').hasClass('show')) { function toggleBulkInterventionsButton () { var student_count = window.bulkInterventionStudents().length; if (student_count > 0) { $('#assign-bulk-interventions').html("+ " + student_count); $('#assig...
import Component from 'ember-rotatable-image/components/image-actions'; export default Component;
function SocketWrapper(socket) { this.socket = socket; this.onOpens = []; this.onMessages = []; this.onErrors = []; this.onCloses = []; var wrap = this; // wat. socket.onopen = function(evt) { // APPARENTLY, this is now socket.this for (var l in wrap.onOpens.slice(0)) { wrap.onOpens[...
/** * freeCodeCamp Front End Algorithm Challenges * @author Heather K. */ // Confirm the Ending of a String function confirmEnding(str, target) { // Checks the input str to see if it ends with the target string // Outputs a boolean var testStr = str.toString(); var len = target.toString().length; ...
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLooks6(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M22 30h4v-4h-4v4zM38 6c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4V10c0-2.21 1.79-4 4-4h28zm-8 12v-4h-8c-2.21 0-4 1.79-4 4v12c0 2.21 ...
'use strict'; import Point from './point'; function arrayMax(array) { return Math.max.apply(Math, array); } function arrayMin(array) { return Math.min.apply(Math, array); } /** * Determine the location of the next item, based on its size. * @param {Object} itemSize Object with width and height. * @param {Arr...
"use strict"; module.exports = function(sequelize, DataTypes) { var Score = sequelize.define("score", { value : DataTypes.FLOAT }, { classMethods : { associate : function(models) { Score.belongsTo(models.user, { foreignKey : 'user_score' }); } }...
/** * Copyright (c) 2014-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ export default function invariant(condition, error) { if (!condition) throw new Error(error); }
(function () { 'use strict'; describe('Collegemaps Route Tests', function () { // Initialize global variables var $scope, CollegemapsService; // We can start by loading the main application module beforeEach(module(ApplicationConfiguration.applicationModuleName)); // The injector ignore...
// Copyright (c) 2014 Titanium I.T. LLC. All rights reserved. For license, see "README" or "LICENSE" file. "use strict"; var assert = require("../util/assert.js"); var reset = require("../__reset.js"); var quixote = require("../quixote.js"); var SizeDescriptor = require("./size_descriptor.js"); var ViewportSize = requ...
module.exports = { currentUrl: 'http://codedamn.com' }
var foundMyself = false; var foundMatch = false; var name, email, photoUrl, uid; var map; var gmarkers = []; var myVM; var myAddress; // alert(); var placezipcode = location.search.split('placezipcode=')[1]; console.log("This will show you study groups near " + placezipcode); var yelpAuth = { // ...
import Ember from 'ember'; var SignupErrorController = Ember.Controller.extend({ queryParams: ['token'], token: null, emailSent: false, emailError: false, actions: { sendEmail: function() { var self = this; var data = { 'token': this.get('token') }; return Ember.$.ajax...
define( [ "./graphLayout", "csapflot" ], function ( graphLayout, csapflot ) { console.log( "Module loaded: graphPackage/settings" ) ; let startButtonUrl = uiSettings.baseUrl + "images/16x16/play.svg" ; let pauseButtonUrl = uiSettings.baseUrl + "images/16x16/pause.png" ; let isKeepPlaying = t...
/* global client */ /* eslint-env mocha */ const chai = require('chai') chai.should() const testCaseFactory = require('./test-case-factory') let calculator let dynamicSection describe('Assertion features', () => { it('should enable the usage of client in page object custom commands', () => { return testCaseFacto...
'use strict'; var TestHelper = require('../../TestHelper'); /* global bootstrapDiagram, inject */ var inherits = require('inherits'); var cmdModule = require('../../../lib/command'); var CommandInterceptor = require('../../../lib/command/CommandInterceptor'); // example commands function TracableCommand() { t...