code
stringlengths
2
1.05M
import React, { Component, PropTypes } from 'react' import _ from "underscore" import { unitVector, perpVector, addCoords, scale, magnitude } from "../geoUtils" import Line from "./Line" import { annoTextStyle } from "../paintStyles" export default (props) => { const {edge, offset, lineStyle, svgParams} ...
/** * @fileoverview Require file to end with single newline. * @author Nodeca Team <https://github.com/nodeca> */ "use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module...
var envVars = require('../utils/env-vars'), envConfig = require('../utils/env'), util = require('gulp-util'), _ = require('lodash'), envStatusMessage; var color; var colorMap = { 'development': 'bgGreen', 'production': 'bgCyan' }; color = colorMap[envConfig.ENV] || 'bgMagenta'; var StarterDash...
/* global require, describe, it */ 'use strict'; // MODULES // var chai = require( 'chai' ), path = require( 'path' ), load = require( './../lib/load.js' ); // VARIABLES // var expect = chai.expect, assert = chai.assert; // TESTS // describe( 'load', function tests() { var expected = { 'port': 7331, 'a...
"OMG!";
/* eslint-disable import/prefer-default-export */ import { normalize } from 'normalizr'; import { genStatusIndicators, depaginate } from '../core/helpers'; import { user as userSchema, userList as userArray } from '../store/schema'; import { genUsersPageKey } from '../reducers/pageInfo'; import { LOAD_USERS_START, ...
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import classNames from 'classnames'; // import * as Basic from '../../basic'; import { DateTimePicker } from '../../basic/DateTimePicker/DateTimePicker'; import FilterDateTimePicker from './FilterDateTimePicker'; import FilterEn...
$( document ).ready(function() { $( ".list-group-item" ).fadeIn( "slow" ); });
module.exports = function(grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { files: ['Gruntfile.js', 'dist/js/<%= pkg.name %>.js'], options: { globals: { 'Backbone': true, _: true ...
const hFlex = require("../reaks/hFlex") const displayIf = require("../reaks/displayIf") const value = require("../core/value") const ctxAssign = require("../core/assign") const withResponsiveSize = require("./withResponsiveSize") module.exports = ({ master, detail, breakWidth }) => { return withResponsiveSize( b...
const Link = { propTypes: { router: { source: 'router' }, route: { source: 'route' }, button: { type: 'boolean' }, routeName: { type: 'string', optional: false }, routeParams: { type: 'object' }, routeOptions: { type: 'object' }, activeClass: { type: 'string' ...
import Vue from 'vue'; import issuableApp from './components/app.vue'; import { parseIssuableData } from './utils/parse_data'; import '../vue_shared/vue_resource_interceptor'; export default function initIssueableApp() { return new Vue({ el: document.getElementById('js-issuable-app'), components: { iss...
// units that are also abbreviations are in ../abbrev/units.js module.exports = [ '°c', 'celsius', 'celsiuss', '°f', 'fahrenheit', 'fahrenheits', 'kelvin', 'kelvins', '°n', 'newton', 'newtons', 'm³', 'cubic meter', 'cubic meters', 'm3', 'dm³', 'cubic decimeter', 'cubic decimeters', ...
import posts from '../reducers'; import { addPost, requestPosts, requestPostsError, receivePosts, } from '../actions'; const post = { title: 'A first post' }; beforeAll(() => { Date.now = jest.fn(() => 100100100); }); it('returns initial state', () => { const state = posts(undefined, {}); expect(state)...
class Example extends React.Component { constructor(props, context) { super(props, context); this.handleClick = ({ target }) => { this.setState(s => ({ target, show: !s.show })); }; this.state = { show: false, }; } render() { return ( <ButtonToolbar> <Button on...
'use strict'; import './style.css'; import $ from 'jquery'; import React from 'react'; import helpers from '../../helpers'; class Average extends React.Component { constructor(props) { super(props); this.state = { name: null, value: null, natValue: null, codgov: props.codgov, ...
import Book from '../Book/Book'; require('normalize.css'); require('./BookTable.scss'); import React from 'react'; import BookTableRow from '../BookTableRow/BookTableRow'; import BookActions from '../../actions/BookActions'; export default class BookTable extends React.Component { render() { const { dis...
/** * modalBox的alert方法 */ /** * [alert 模拟window.alert方法] * @param [title,msg,options] * @author Heiyu * @createAt 2017/01/11 * @type {[type]} */ modalBox.register('alert', function(title, msg, options){ var _this = this, _title, _msg, _options; var defaults = { css: { ok...
import func from "./func"; let exports = 10; // eslint-disable-line let require = 20; // eslint-disable-line
// @flow import { push } from 'react-router-redux'; import { getStoredState, SAVE_STATE } from '../app/stateStorage'; export const ACTIVATE = 'ACTIVATE'; export const UPDATE_USERNAME = 'UPDATE_USERNAME'; export function activate(redirect = true) { return (dispatch: Function, getState: Function) => { dispatch({ ...
var mongoose = require('mongoose'), Schema = mongoose.Schema; module.exports = function (db) { var CheckinSchema = new Schema({ username : { type: String }, location : { type: String }, date : { type: Date, default: Date.no...
var mongoose = require('mongoose'); var bcrypt = require('bcryptjs'); // Client Schema var ClientSchema = mongoose.Schema({ firstName: String, lastName: String, gender: String, telNumber: String, email: { type: String, index:true }, password: String }); var Client = module.exports = mongoose.model('Client'...
import React from 'react'; import App from './App'; import Home from './screens/Home'; const getRoute = (store, context) => ({ path: '/', component({ children }) { return ( <App context={context}> {children || <Home />} </App> ); }, childRoutes: [ /* eslint-disable global-requ...
import { GameContext } from './Util'; import React, { useContext } from 'react'; import { Button } from './UI'; import Modal from './Modal.js'; export default function Deny(props) { let context = useContext(GameContext); let name = context.public.player[props.target].name; return ( <Modal title={na...
/* * Copyright (c) 2013 Fabrice ECAILLE aka Febbweiss * * 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...
var $ = window.$, base64 = require('./base-64'), svg = function(stops) { // http://ie.microsoft.com/testdrive/graphics/svggradientbackgroundmaker/default.html return '<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 1 1" preserveAspectRatio="none">' + ...
// flow-typed signature: 9641af6ce268484a44492cbff9c4a9dd // flow-typed version: <<STUB>>/eslint-plugin-standard_v^5.0.0/flow_v0.154.0 /** * This is an autogenerated libdef stub for: * * 'eslint-plugin-standard' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to ...
// Copyright (c) 2012 Ecma International. All rights reserved. // Ecma International makes this code available under the terms and conditions set // forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the // "Use Terms"). Any redistribution of this code must retain the above // copyright and this n...
// Copyright (c) 2012 Tom Steele // See the file license.txt for copying permission var Target = require('../../models/target'); var config = require('configure'); // look up and download shellcode exports.download = function (req, res, next) { var id = req.params.id; res.setHeader('Content-Type', 'text/plain'); ...
var util = require("util"); var choreography = require("temboo/core/choreography"); /* FinalizeOAuth Completes the OAuth process by retrieving a Netflix access token, token secret, and user ID for a user, after they have visited the authorization URL returned by the InitializeOAuth Choreo and clicked "allow....
/* Rest Query Copyright (c) 2014 - 2021 Cédric Ronvel The MIT License (MIT) 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...
var url = require('url'), ApiRouteBase = '/ghost/api/v0.1/', host = 'localhost', port = '2369', schema = 'http://', expectedProperties = { posts: ['posts', 'meta'], users: ['users'], pagination: ['page', 'limit', 'pages', 'total', 'next', 'prev'], post: ['id', 'uuid',...
import { moduleFor, test } from 'ember-qunit'; moduleFor('route:index', 'Unit | Route | index', { // Specify the other units that are required for this test. // needs: ['controller:foo'] }); test('it exists', function (assert) { let route = this.subject(); assert.ok(route); });
/* */ 'use strict'; module.exports = { 'default': '<!DOCTYPE html>' , 'xml': '<?xml version="1.0" encoding="utf-8" ?>' , 'transitional': '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">' , 'strict': '<!DOCTYPE html PUBLIC "-//W3C//DTD...
var urlBase = "/Home"; var urlCurrent = window.location.pathname; var meterId = urlCurrent.substring(urlCurrent.lastIndexOf('/') + 1); /** For edit we shouldnt allow them to change province .... **/ $(function () { var self = this; var urlProvinceNames = "/Home/GetAllProvinceNames"; var urlAreaNames = ...
@{ @include "lib.form.js" @include "lib.ajax.js" @include "modifier.nl2br.js" @include "lib.detachInner.js" @} var comments = {}; comments.context = {}; comments.topcat = {}; comments.subcat = {}; comments.entry = {}; var availNames = {}; availNames._current = new Array(); // Currently in display... av...
'use strict'; var reduce = require('lodash/collection/reduce'), forEach = require('lodash/collection/forEach'), find = require('lodash/collection/find'), assign = require('lodash/object/assign'), defer = require('lodash/function/defer'); var Stack = require('tiny-stack'), SaxParser = require('sax'...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPost, deletePost } from '../actions'; class PostsShow extends Component { componentDidMount() { const { id } = this.props.match.params; this.props.fetchPost(id); ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z" /></g> , 'QuestionAnswer');
'use strict'; // Declare app level module which depends on views, and components angular.module('myApp', [ 'ngRoute', 'myApp.Main', 'myApp.Home' ])
/*eslint-disable*/ // Mock Data const MockData = { PersonArray: [ {'_id':'58536298c7438b2c00000208','firstName':'Brendan','lastName':'Eich','githubId':'BrendanEich','company':'Brave Software','twitterId':'BrendanEich','middleName':'','avatarUrl':'https://media.licdn.com/mpr/mpr/shrinknp_400_400/p/5/005/0b3/33e...
'use strict'; module.exports = (driver, connectorSpec) => { connectorSpec.shouldBehaveLikeMusicSite(driver, { url: 'https://letsloop.com/artist/boards-of-canada/song/open-the-light', playButtonSelector: '#profile-pages-top > div > div.header-content-container > div > div.header-content-avatar > a' }); };
import tiles from '../tiles'; import Pathfinder from './Pathfinder'; export default class Map { constructor(width, height, data) { this._width = width; this._height = height; if (data) { this._data = data; } else { this._data = this._initData(); } ...
class Type { equals(that) { throw new Error("Equals undefined"); } check(value) { throw new TypeClash(this, value); } isParam() { return false; } isConcrete() { return true; } harvest() { return []; } substitute(map) { retu...
'use strict'; /*global process*/ import config from "./config"; import ndVisualization from "./lib/ndVisualization"; import ndParticleGroup from "./lib/ndParticleGroup"; import ndStarPower from "./lib/ndStarPower"; import ndConnector from "./lib/ndConnector"; import ndMidi from "./lib/ndMidi"; import ndSelector from "...
Object.defineProperty(Array.prototype, 'last', { configurable: true, enumerable: false, get: function() { return this[this.length - 1]; } });
/*! * deep-rename-keys <https://github.com/jonschlinkert/deep-rename-keys> * * Copyright (c) 2014 Jon Schlinkert, contributors. * Licensed under the MIT License */ 'use strict'; require('mocha') var assert = require('assert'); var rename = require('./'); it('should rename nested keys.', function() { var foo =...
import React from 'react'; import ReactDOM from 'react-dom'; import jQuery from 'jquery'; import SwitchBox from './components/switch-box' jQuery(function() { ReactDOM.render( <SwitchBox />, document.getElementById('switch-box') ); })
import './Page.styl'; import AuthLogout from '../auth/Logout.react'; import Component from 'react-pure-render/component'; import Helmet from 'react-helmet'; import React, {PropTypes} from 'react'; import RouterHandler from '../components/RouterHandler.react'; import {FormattedMessage} from 'react-intl'; import {Link} f...
'use strict'; var helper = require('./../helper.js'); describe('Outer <describe> block', function () { describe('Inner <describe> block 1', function () { it('GET request 1', function () { var request = helper.server.get('/200').set('authToken', 'TokenValue').expect(200); helper.processRequest(this...
function carregar_dados() { checar_paciente(); var json = JSON.parse(localStorage.getItem("Pacientes")); for(i = 0; i < json.Paciente.Pacientes.length; i++) { if(json.Paciente.Pacientes[i].Nome == sessionStorage.getItem("PacienteSelecionado")) { if(!json.Paciente.Pacientes[i].hasOwnProperty("Tela50")...
/*global describe it expect twofish*/ (function doTest(describe, it, expect, twofish){ 'use strict'; describe('CBC SebNis', function doTestSuite() { var IV = [180, 106, 2, 96, 176, 188, 73, 34, 181, 235, 7, 133, 164, 183, 204, 158] , key = [73, 65, 63, 72, 65, 74] , twF = twofish(IV); it('cbc ...
'use strict'; /* * Module Dependencies. */ const test = require('tape'); const Contentstack = require('../../dist/node/contentstack.js'); const _ = require('lodash'); const init = require('../config.js'); const Utils = require('./utils.js'); const contentTypes = init.contentTypes; const config = require('../config.j...
const path = require('path'); module.exports = { entry: './src/index.js', module: { loaders: [ { test: /.jsx?$/, loader: 'babel-loader', exclude: /node_modules/, query: { presets: ['react'] } } ] }, output: { filename: 'bundle.js', path: path.resolve(__dirname) } };
// @flow import path from 'path'; /*:: type SrcDestPairType = { sourceFilename: FilenameType, destinationFilename: FilenameType, }; type SrcDestPairListType = Array<SrcDestPairType>; type ToSrcDestPairsDepsType = { sourcePath: DirnameType, destinationPath: DirnameType, }; type CreateDestinationDirsDepsType = {...
(function($) { with(QUnit) { var test_app = new Sammy.Application(function() { this.silence_404 = true; this.element_selector = '#main'; }); var test_context = new Sammy.EventContext(test_app, 'get', '#/test/:test', {test: 'hooray'}); context('Sammy', 'EventContext','init',...
var HID = require('node-hid'); var VENDOR_ID = 0x27B8; var PRODUCT_ID = 0x01ED; var REPORT_ID = 1; var REPORT_LENGTH = 9; var _blink1HIDdevices = function() { return HID.devices(VENDOR_ID, PRODUCT_ID); }; var devices = function() { var serialNumbers = []; _blink1HIDdevices().forEach(function(device) { se...
/* jshint globalstrict: true */ /* global process, __dirname */ 'use strict'; /* * Module dependencies. */ var express = require('express'), app = express(), routes = require('./routes'), server = require('http').createServer(app), path = require('path'), multiModule = require('./multi/server'), tokens = requ...
export const USER_MODULE = 'user'; export const TOKEN_USER_MODULE = 'tokenUser'; export const CONTEXT_MODULE = 'context'; export const USER_TYPES = { getUser: `${USER_MODULE}__getUser`, getViewAsUser: `${USER_MODULE}__getViewAsUser`, updateUser: `${USER_MODULE}__updateUser`, updateIdentity: `${USER_MODULE}__up...
import { expect } from 'chai'; import length from '../../src/rules/length'; describe('length()', () => { const sampleString = 'Hello World'; const sampleArray = ['hello', 'world']; const sampleNumber = 1980; it('Up & Running', () => { expect(typeof length).to.equal('function'); }); it('accept a valid...
/*global module:false*/ module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), meta: { banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-mm-dd") + "\\n" %>' + '<%= pk...
game.EnemyBaseEntity = me.Entity.extend({ init: function(x, y, settings) { this._super(me.Entity, 'init', [x, y, { image: "tower", width: 100, height: 100, spritewidth: "100", spriteheight: "100", getShape: funct...
/*! respondr - v0.2.1 - 2015-02-05 * https://github.com/happycollision/respondr * Copyright (c) 2015 Don Denton; Licensed MIT */ (function ($) { // Collection method. $.fn.respondr = function (mediaQuerySizes, includeSquares) { // object where flickr id is the index of the returned data // ie { "1239847239...
// This file is part of css-fitness // (C) 2013 Timur Kristóf // ----- // Licensed to you under the terms of the MIT license. // https://github.com/Venemo/css-fitness/blob/master/LICENSE var fs = require("fs"); var phantomOutside = require("./phantom-outside"); var CleanCSS = require("clean-css"); phantomOutside.anal...
'use strict'; var gulp = require('gulp'); var browserSync = require('browser-sync'); var reload = browserSync.reload; var $ = require('gulp-load-plugins')(); gulp.task('connect', function () { var connect = require('connect'); var app = connect() .use(require('connect-livereload')({ port: 35729 })) ...
/** * @overview datejs * @version 1.0.0-rc3 * @author Gregory Wild-Smith <gregory@wild-smith.com> * @copyright 2015 Gregory Wild-Smith * @license MIT * @homepage https://github.com/abritinthebay/datejs */ /* 2015 Gregory Wild-Smith @license MIT @homepage https://github.com/abritinthebay/datejs 2015 Gregory ...
var htmlMin = require('html-minifier').minify; var es = require('event-stream'); var config = require('../configs/main'); var gutil = require('gulp-util'); /* * Minify html depending on whether regex test is true * * @param {Regex} config.regex - regex to test * @param {Object} config.options - minify options * ...
// DOM Ready ============================================================= $(document).ready(function() { // Populate the user table on initial page load populateIPInfo(); populateDashboardInfo(); // Udate Network Settings button click $('#BtnUpdateNetSettings').on('click', UpdateNetSettings); ...
/* CONFIGURATION: https://github.com/vdemedes/google-images#set-up-google-custom-search-engine */ "use strict"; var Util = require('./../src/Util'); var googleImages = require('google-images'); var captainApi = require('node-memecaptain-api'); var request = require('request'); var crypto = require('crypto...
/** * Created by seven on 2015/10/2. */ function Planet(options){ if (!(this instanceof Planet)) return new Planet(options); } exports = module.exports = Planet;
/** * Copyright (c) 2016 Virtue Studios * * 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, pub...
;(function (app) { 'use strict'; app.directive('imgUpload', imgUploadDirective); imgUploadDirective.$inject = [ 'uploadsUtils' ]; function imgUploadDirective (uploadsUtils) { return { restrict: 'E', scope: { queueLimit: '=', uploader: '=?', sizeLimit: '=', remo...
import React from "react"; import { Link } from "react-router"; import { Button } from 'react-bootstrap'; // Components import Header from "../components/Header"; export default class About extends React.Component { render() { return ( <div className="page about-page bg-primary"> ...
/*globals module*/ "use strict"; module.exports = { is: { isConstLet: function(node) { var kind; return node && (kind = node.kind) && (kind === "const" || kind === "let"); } , isVarConstLet: function(node) { var kind; return node && (kind = node.kind) && (kind === "var" || kin...
import Nav from '../components/Nav' export default () => ( <div> <Nav /> <p>Hello, I'm the home page</p> </div> )
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 = Reflect.decorate(d...
'use strict'; // Modules var webpack = require('webpack'); var autoprefixer = require('autoprefixer'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var CopyWebpackPlugin = require('copy-webpack-plugin'); // Env - Get npm lifecycle event to id...
(function(angular) { var app = angular.module('exampleApp', [ 'angular-elastic-builder', ]); app.controller('BasicController', function() { var data = this.data = {}; data.query = [{ 'term': { 'test.boolean': 0 } }, { 't...
datab = [{},{"Module":{"colspan":"1","rowspan":"1","text":"File-set Identification"},"Reference":{"colspan":"1","rowspan":"1","text":""},"Usage":{"colspan":"1","rowspan":"1","text":"M"},"Module Description":{"colspan":"1","rowspan":"1","text":"File-set identification information"}},{"Module":{"colspan":"1","rowspan":"1...
// Randomized queue. A randomized queue is similar to a stack or queue, // except that the item removed is chosen uniformly at random from items in the data structure. // Create a generic data type RandomizedQueue that implements the following API: // public class RandomizedQueue<Item> implements Iterable<Item> { // ...
import ALIGNCENTERICON from "./align-center.svg"; import ALIGNLEFTICON from "./align-left.svg"; import ALIGNRIGHTICON from "./align-right.svg"; import ARRANGEBRINGFORWARDICON from "./bring-forward.svg"; import ARRANGEBRINGTOFRONTICON from "./bring-to-front.svg"; import ARRANGESENDBACKWARDICON from "./send-backward.svg"...
import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; import classnames from 'classnames'; import moment from 'moment'; import { Form, CellsTitle, FormCell, CellBody, CellFooter, Radio, } from 'react-weui'; import { retrieveParticipantUserUUIDs, retrieveMaxParticipantEventDate...
// Styles require('../../stylus/components/_lists.styl') // Mixins import Themeable from '../../mixins/themeable' import { provide as RegistrableProvide } from '../../mixins/registrable' export default { name: 'v-list', mixins: [ RegistrableProvide('list'), Themeable ], provide () { return { ...
var React = require('react'); var PropTypes = require('prop-types'); var Link = require('react-router-dom').Link; var PlayerPreview = require('./PlayerPreview'); class PlayerInput extends React.Component { constructor (props) { super(props); this.state = { username: '' } ...
var copyFiles = require('./lib/copy-files') var path = require('path') var watch = require('./lib/watch') function processCopy(config, opts) { /** * Build the initial Styles files based on the config provided. */ copyFiles(config, opts) /** * If the watcher is ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var plusCircle = exports.plusCircle = { "viewBox": "0 0 1536 1792", "children": [{ "name": "path", "attribs": { "d": "M1216 960v-128q0-26-19-45t-45-19h-256v-256q0-26-19-45t-45-19h-128q-26 0-45 19t-19 45v256h-256q-26 0-45 19t-19 45v128q0 26 ...
module.exports = function(args) { function usage() { var usage = 'Usage: node index.js [DATE] [OPTIONS]'+ '\nDisplay a continuous stream of selected dates occuring before DATE.'+ '\nIf DATE is omitted the current date is used as a starting point.'+ '\n'+ '\nOptions:'+ '\n --startDa...
"use strict" app = angular.module('cloudStorm.alertService', []) // ===== SERVICE =============================================================== app.service('csAlertService', ['csSettings', function(csSettings){ this.i18n = csSettings.settings['i18n-engine']; this.sequence = 0; this.alerts = []; this.ge...
/*! * jQuery URL Shortener 1.0 * https://github.com/hayageek/jQuery-URL-shortener * * Date: 24-Oct-2013 */ (function ($) { var scriptsLoaded = true; var clientLoaded = true; $.getScript("https://apis.google.com/js/client.js", function () { (function checkIfLoaded() { if (gapi.client) { ...
var ImageData = _class('ImageData', { props: { url: null, node: null, _size: null, callbacks: null }, methods: { init: function ImageData_init(url) { this.url = url; this.node = new _Image(); this.callbacks = []; var self = this; onceOnLoad(function () { ...
var indexSectionsWithContent = { "General": { "Symbols": false, "Numbers": false, "A": false, "B": false, "C": false, "D": false, "E": true, "F": true, "G": false, "H": false, "I": false, "J": true, "K": false, "L": true, "M": ...
'use strict'; /** * @ngdoc function * @name codessesApp.controller:LoginCtrl * @description * # LoginCtrl * Manages authentication to any active providers. */ angular.module('codessesApp') .controller('LoginCtrl', ['$scope', '$localStorage', '$firebaseObject', 'Auth', '$location', '$q', 'Ref', function ($scope,...
/** * Module dependencies. */ var express = require('express'); var http = require('http'); var path = require('path'); var handlebars = require('express3-handlebars') var index = require('./routes/index'); // Example route var add = require('./routes/add'); var app = express(); // all environments app.set('port...
import { combineReducers } from 'redux'; import { reducer as account } from './account/reducer'; import { reducer as api } from './api/reducer'; import { reducer as book } from './book/reducer'; import { reducer as navigation } from './navigation/reducer'; import { reducer as permissions } from './permissions/reducer';...
'use strict'; /*jshint expr: true*/ /** * module dependencies. */ var app = require('../../../server') , config = require('../../../config/config') , _ = require('lodash') , fs = require('fs') , randomstr = require('randomstring') , request = require('supertest') , should = require('should') , async =...
import jsdom from 'mocha-jsdom'; import chai, { assert, expect } from 'chai'; import jsxr from '../src/jsxr'; describe('jsxr', () => { // Load browser API jsdom(); it('should return an HTMLElement with attributes', () => { const Test = ( <div className='test' data-x='x'></div> ); expect(Test)...
$(document).ready(function() { //$("h2").hide(); $("div").show(3000);{ $("div").show(1000); } });
import React from "react"; import {connect} from "react-redux"; import {List} from "material-ui"; import {selectFriendsCount} from "./selectors"; import {createStructuredSelector} from "reselect"; import FriendsListItem from "./Item"; import {selectBackgroundColor} from "../ThemeManager/selectors"; import muiThemeable ...
import ServerResponse from '../commons/ServerResponse'; export default class BaseService { /** * コンストラクタ */ constructor ($log, $translate, $location, $http, GlobalConstants) { this.$log = $log; this.$translate = $translate; this.$location = $location; this.$http = $http; this...
/** * Created by Vladimir on 10.11.2015. */ // //categoriesModule.config(['$routeProvider', function($routeProvider){ // $routeProvider. // when('/goods/:category', { // templateUrl: '../views/components/categories/goods.html', // controller: 'GoodsController' // }). // w...