code stringlengths 2 1.05M |
|---|
import { createStore, createReducer } from 'shasta'
import localReducers from 'reducers/.lookup'
import plugins from '../plugins'
import initialState from './initialState'
export default createStore({
plugins: plugins,
reducers: [
createReducer(localReducers)
],
initialState: initialState
})
|
import ArrayUtilities from "../../common/js/ArrayUtilities.js";
import InputValidator from "../../common/js/InputValidator.js";
import CardResolver from "../../artifact/js/CardResolver.js";
import CardType from "../../artifact/js/CardType.js";
import EnemyCard from "../../artifact/js/EnemyCard.js";
import GameMode from... |
/*
* jQuery for Comment Form Enhancements
* */
jQuery(document).ready(function () {
// $j=jQuery.noConflict();
// $j(document).ready(function() {
$('.showDisqus').on('click', function(){ // click event of the show comments button
var disqus_shortname = ''; // Enter your disqus user name
// ajax req... |
$(document).ready(function() {
$(".remove").on("click", function() {
$("#archive").submit();
})
});
|
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'components/breadcrumbs';
const requireDemo = require.context('docs/src/pages/components/breadcrumbs', false, /\.(js|tsx)$/);
cons... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2013 Adobe System Incorporated
*
* 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 righ... |
var searchData=
[
['fircoefs_2eh',['FirCoefs.h',['../_fir_coefs_8h.html',1,'']]],
['flash_5fdemo_2ec',['flash_demo.c',['../flash__demo_8c.html',1,'']]],
['flash_5fdemo_2edox',['flash_demo.dox',['../flash__demo_8dox.html',1,'']]],
['flash_5fdemo_2eh',['flash_demo.h',['../flash__demo_8h.html',1,'']]],
['flash_5... |
const resolveStyles = sinon.spy(require('resolve-styles.js'));
const Enhancer = require('inject!enhancer.js')({
'./resolve-styles.js': resolveStyles
});
import React, {Component} from 'react';
describe('Enhancer', () => {
it('sets up initial state', () => {
class Composed extends Component { }
const Enhan... |
/*!
* API Documentation
* http://help.bigstockphoto.com/hc/en-us/articles/200303245-API-Documentation
*
* Copyright 2014 Bigstock
* http://www.bigstockphoto.com
*/
// Bigstock Account ID
var account_id = '222306';
// Globals
var selected_category, search_term, infinite_scroll, page, jsonp_happening;
$("#bigs... |
import Ember from 'ember';
import DS from 'ember-data';
export default Ember.Mixin.create({
defaultSerializer: 'cardstack-resource-metadata',
resourceMetadata: Ember.inject.service(),
cardstackRouting: Ember.inject.service(),
_defaultBranch: Ember.computed.alias('cardstackRouting.defaultBranch'),
shouldRelo... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function _helperPluginUtils() {
const data = require("@babel/helper-plugin-utils");
_helperPluginUtils = function () {
return data;
};
return data;
}
function _core() {
const data = require("@babe... |
/*
Created by Bradley Harker and Elijah Wilson
Design Lead - Elijah Wilson
Progamming Lead - Bradley Harker
*/
function Dot() {
this.x;
this.y;
this.color = color(255,255,255);
this.draw = function() {
noStroke();
fill(this.color);
ellipse(this.x,this.y,10,10);
... |
var util = require('util');
//Setup exception handlers
var AbstractException = function (resp,msg,constr) {
Error.captureStackTrace(this, constr || this);
this.message = msg || 'Error';
resp.exception = {"error": {"error_type": this.name, "message": this.message, "stacktrace": this.stack} };
resp.send(null);
}... |
module.exports = func
/**
* Exported function
* @param {number}
* @param {number}
* @returns {number}
* @exports module-exports-func
*/
function func (one, two) {}
|
/*
* Copyright (c) 2012-2016 André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
const {
assertSame,
assertTrue,
assertFalse,
assertEquals,
assertDataProperty,
assertAccessorProperty,
fail,
} = Assert;
// Tested i... |
ig.module(
"game.entities.misc.corpse"
)
.requires(
"impact.entity"
)
.defines(function () {
EntityCorpse = ig.Entity.extend({
zIndex: 0,
ttlTimer: null,
init: function (x, y, settings) {
this.parent(x, y, settings);
this.addAnim("death", 0.25, settings.frames, true);
this.ttlTimer = new ig.Timer(2.5);
... |
import babel from 'rollup-plugin-babel';
import multiEntry, { entry } from 'rollup-plugin-multi-entry';
export default {
entry,
plugins: [babel(), multiEntry('test/**/*_test.js')],
format: 'cjs',
dest: 'build/test-bundle.js'
};
|
import fs from 'fs'
import fse, {outputFileSync, removeSync} from 'fs-extra'
import _ from 'lodash'
import matchBracket from 'match-bracket'
import locater from 'locater'
import {insertToFile, checkFileExists} from '../utils'
import {logger} from '../logger'
import {getConfig} from '../config_utils'
/**
* Gets the o... |
//= require_tree './zahlen'
|
/* jshint proto: true */
/* global CoreObject */
import Ember from 'ember';
import { extend } from './utils';
function detect(obj) {
return obj.isViewClass || this._super(obj);
}
Ember.CoreView.reopenClass({
detect: detect
});
Ember.View.reopenClass({
detect: detect
});
var metaFor = Ember.meta;
var finishPa... |
import React, { Component } from "react"
import PropTypes from "prop-types"
import { connect } from "react-redux"
import IconMenu from "material-ui/IconMenu"
import IconButton from "material-ui/IconButton"
import FontIcon from "material-ui/FontIcon"
import MenuItem from "material-ui/MenuItem"
import { red500, green500 ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _affix = require('./affix');
Object.defineProperty(exports, 'Affix', {
enumerable: true,
get: function get() {
return _interopRequireDefault(_affix)['default'];
}
});
var _anchor = require('./anchor');
Object.d... |
/// <reference path="../../scripts/typings/processing.d.ts" />
/* tslint:disable: no-unused-variable */
/* tslint:disable: comment-format */
var NOC_I_06_a;
(function (NOC_I_06_a) {
'use strict';
var Walker = (function () {
function Walker(p) {
this.p = p;
this.pos = new this.p.P... |
var path = require('path');
var webpack = require('webpack');
module.exports = {
context: __dirname,
entry: {
App: './elm/App',
},
output: {
path: path.resolve('../elvanto_sync/static/js/'),
filename: '[name].js',
},
resolve: {
extensions: ['.js'],
},
plugins: [
new webpack.Load... |
const webpack = require('webpack');
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
var PACKAGE = require('./package.json');
const webpackConfig = {
output: {
filename: '[name].js',
path: path.resolve(_... |
const fs = require('fs');
const path = require('path');
const solution = fs.readFileSync(path.join(__dirname, 'input'), 'utf-8')
.split('\n')
.filter(line => line.length > 0)
.map(line => {
return line.split('-');
})
.map(line => {
const tmp = line[line.length - 1].split('[');
... |
var config = require('../config');
var fs = require('fs')
, path = require('path')
, Sequelize = require('sequelize')
, lodash = require('lodash')
, db = {};
var sequelize = new Sequelize(config.values.dbname, config.values.dbuser, config.values.dbpasswd, {
dialect: 'postgres'
});
fs
.readdir... |
define(['prototype/component'],
function(Component) {
'use strict';
var Widget = function(callbacks){
if (callbacks) {
if (typeof Object.observe == 'function') {
Object.observe(this.model.data, function(changes){
changes.forEach(function(change){
... |
version https://git-lfs.github.com/spec/v1
oid sha256:6d8304df9eb34bb2cc6aae217724051890887b1273ec6a52d987aca26985a3a0
size 657
|
var Type = require("@kaoscript/runtime").Type;
module.exports = function() {
var __ks_RegExp = {};
function foobar(x) {
if(arguments.length < 1) {
throw new SyntaxError("Wrong number of arguments (" + arguments.length + " for 1)");
}
if(x === void 0 || x === null) {
throw new TypeError("'x' is not nullabl... |
'use strict';
/**
* @ngdoc function
* @name pixwallApp.controller:MainCtrl
* @description
* # MainCtrl
* Controller of the pixwallApp
*/
angular.module('pixwallApp')
.controller('MainCtrl', function ($scope,$timeout,$route,$location,$routeParams) {
$scope.mouse;
$scope.presetColors=['#F... |
import React, { Component } from 'react';
import { ActionHome, HardwareKeyboardArrowRight } from 'material-ui/svg-icons';
import { Subheader, IconButton } from 'material-ui';
import { Link } from 'react-router-dom';
import { compose, graphql } from 'react-apollo';
import { mutations, queries } from '../../helpers';
imp... |
var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var http = require('http');
var env = require('node-env-file');
var logging = require('winston');
v... |
/**
* @file [Please Input File Description]
* @author wangmin(wangmin02@baidu.com)
*/
define( function ( require ) {
// require template
//require( 'er/tpl!./stepEnterprise.tpl.html' );
require( 'tpl!./stepEnterprise.tpl.html' );
//var UIView = require( 'ef/UIView' );
var FormView = require( 'e... |
import Flight from 'flight';
const TodoList = Flight.eventType(
function(todos) {
this.todos = todos;
}
);
const TodoListRequest = Flight.eventType(
function(state) {
this.state = state;
}
);
const ActiveCount = Flight.eventType(
function(activeCount) {
this.activeCount = ac... |
var superagent = require('superagent')
, url = require('url');
module.exports = function (req, res) {
// save last URL visited in case of any oauth redirects
req.session.last_url_visited = url.format({
protocol: 'http',
host: 'localhost:3000',
pathname: req.path,
query: req.q... |
/*! jQuery Validation Plugin - v1.14.0 - 6/30/2015
* http://jqueryvalidation.org/
* Copyright (c) 2015 Jörn Zaefferer; Licensed MIT */
!function(a){"function"==typeof define&&define.amd?define(["jquery","../jquery.validate.min"],a):a(jQuery)}(function(a){a.extend(a.validator.messages,{required:"必須填寫",remote:"請修正此欄位",... |
import { moduleFor, test } from 'ember-qunit';
moduleFor('route:playlists/show', 'Unit | Route | playlists/show', {
// 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);
});
|
import m from "mithril";
import {ListingsModel} from '../models/listings.js';
import {ListingItem} from '../components/listingItem.js';
var UnApprovedListings = {
oncreate:function(){
ListingsModel.GetUnApprovedListings()
},
view:function(){
return (
<section>
<div class="pa3 bg-white shado... |
(function (context){
let Rocky = context.Rocky = context.Rocky || {};
Rocky.compile = require('./compiler-esnext');
Rocky.parse = require('./parser-esnext');
})(window);
|
class PrintManager {
/**
*
* @param fileFullPath
* - Full Path of File to be printed
*/
printFile(fileFullPath) {
// Create Instance of open Window
this.win = window.open(fileFullPath);
// Running the print like this allows the close to happen after the print to handle asynchronous
thi... |
const db = require('./db');
const logger = require('../util/logger');
function getSingleSynonym(req, res, next) {
logger.winston.info('synonym.getSingleSynonym');
db.get('select * from synonyms where synonym_id = ?', req.params.synonym_id, function(err, data) {
if (err) {
logger.winston.error(err);
}... |
import Console from "../../system/console.js"
import { Port } from "../../system/port.js"
Console.puts = function(str, no_newline) {
Port.current_output.put_string(str + (no_newline ? "" : "\n"))
};
Console.p = function() {
[].slice.call(arguments).forEach(Port.current_output.put_string);
};
export default Conso... |
module.exports = [
{ room: 'Reimar Lüst Hall, 254', phone: '4100' },
{ room: 'Reimar Lüst Hall, 247', phone: '4103' },
{ room: 'Reimar Lüst Hall, 255', phone: '4111' },
{ room: 'Reimar Lüst Hall, 222', phone: '4112' },
{ room: 'Reimar Lüst Hall, 252', phone: '4116' },
{ room: 'Reimar Lüst Hall, 202', phone:... |
import expect from 'expect';
import React from 'react';
import { shallow } from 'enzyme';
import notfoundComponent from '../../../client/src/components/commons/notFound.component';
describe('<notfoundComponent />', () => {
it('renders the correct elements', () => {
const wrapper = mount(
<notfoundComponent... |
/**
* Copyright (c) 2014 brian@bevey.org
*
* 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, pu... |
'use strict';
var hapi = require('hapi');
var minimist = require('minimist');
var _ = require('lodash');
var argv = minimist(process.argv.slice(2));
var server = new hapi.Server();
var connectionOptions = {
port: argv['p'] || 3080
};
server.connection(connectionOptions);
server.route({
method: '*',
pat... |
let dbus = require('dbus');
let bus = dbus.getBus('system');
let udev = require('udev');
let exec = require('child_process').exec;
let monitor = udev.monitor();
let currentlyPlayingTrack = {};
let getUniqueTrackId = function (track) {
return track.Title + '_' + track.Artist + '_' + track.Album;
};
let getMacAddr... |
function login()
{
var div = document.getElementsByName("myusername")[0].value;
var div2 =document.getElementsByName("mypassword")[0].value;
var div3 =document.getElementById('menu_services_list');
var div4 =document.getElementById('error_login');
if(window.XMLHttpRequest)
{
xhr_object = new XMLHttpReque... |
'use strict';
const util = require('gulp-util');
module.exports = function (gulp) {
gulp.task('default', ['clean'], function () {
let taskList = [];
taskList.push('copy:audio');
taskList.push('copy:fonts');
taskList.push('copy:images');
taskList.push('concat:internal');
... |
/*!
* Copyright 2017 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appli... |
/**
* create SET_COMMITS action
* @param {String[]} commits - List of commit SHAs
* @return {Object} - a SET_COMMITS action with an Immutable.List of SHAs
*/
export const setCommits = commits => (
{ commits
, type: 'SET_COMMITS'
}
)
|
var uuid = require('node-uuid');
var db=require("../core/db");
var self=require("./images");
var AWS=require("../core/S3-upload");
exports.getUserProfile=function(req,resp){
var UserID= (req.body.user_id).replace(/"/g,'');
var UserID= "'"+UserID.replace(/'/g,'')+"'";
var query="SELECT * from ImagePost i where i.us... |
/*! jQuery UI - v1.10.3 - 2014-01-16
* http://jqueryui.com
* Includes: jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js, jquery.ui.position.js, jquery.ui.draggable.js, jquery.ui.droppable.js, jquery.ui.resizable.js, jquery.ui.selectable.js, jquery.ui.sortable.js, jquery.ui.datepicker.js, jquery.ui.progressbar... |
const redis = bot.utils.redis;
const EventEmitter = require("events").EventEmitter;
const resolver = require("../modules/audio/main.js");
const autoplay = require("../modules/audio/autoplay.js");
class Player extends EventEmitter {
constructor(guild, data = {}) {
super();
this.id = guild.id;
this._guild = guild... |
/**
* Created by Raul Rivero on 6/15/2015.
*/
angular.module('controllers').controller('RegisterController', function($scope, $state, $timeout, $ionicPopup, $ionicLoading, mainFactory) {
$scope.modelGUI = {};
$scope.emptyPlayerId = false;
$scope.emptyPin = false;
$scope.emptyName = false;
$scope.wrongPin ... |
var gulp = require('gulp');
var browserSync = require('browser-sync');
var sass = require('gulp-sass');
var prefix = require('gulp-autoprefixer');
var cp = require('child_process');
var messages = {
jekyllBuild: '<span style="color: grey">Running:</span> $ jekyll build'
};
/**
* Build... |
import React from 'react';
import PropTypes from 'prop-types';
import { Svg } from '../../Svg';
import makeIcon from './makeIcon';
const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => (
<Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}>
<Svg.Path
d="M12 2C6.5 2 2 6.5 2 12s4.... |
import { searchJSON } from "../../search.js";
import { v2apibase } from "../../base.js";
import { endpoint } from "./endpoint.js";
export const _search = new URL(
`/${endpoint}/_search`.replace(/\/{2,}/g, "/"),
v2apibase
);
// Minimal metadata
const defaultShow = "id,name,area,status,beginLifespanVersion,geometry... |
var APP_NAME = 'Start Template';
/**
* Module dependencies.
*/
var express = require('express'),
mongoStore = require('connect-mongo')(express),
flash = require('connect-flash'),
http = require('http'),
path = require('path'),
util = require('util'),
bcrypt = require('bcrypt'),
mongoose =... |
//! moment.js locale configuration
//! locale : vietnamese (vi)
//! author : Bang Nguyen : https://github.com/bangnk
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'func... |
'use strict';
const obj1 = {};
obj1.name = 'Marcus';
obj1.city = 'Roma';
obj1.born = 121;
console.dir({ obj1 });
const obj2 = new Object();
obj2.name = 'Marcus';
obj2.city = 'Roma';
obj2.born = 121;
console.dir({ obj2 });
const obj3 = {
name: 'Marcus',
city: 'Roma',
born: 121
};
console.dir({ obj3 });
|
'use strict';
(function() {
describe('Test test case', function() {
it('1 should be equals to 1', function() {
expect(1).toBe(1);
});
});
// Articles Controller Spec
/*describe('MEAN controllers', function() {
describe('ArticlesController', function() {
// The $resource service augment... |
import {run} from "@cycle/core"
import {makeDOMDriver} from "@cycle/dom"
import {Model} from "stanga"
import Counter from "./Counter"
run(Counter, {
DOM: makeDOMDriver("#app"),
M: Model(0) // use initial value 0
})
|
import keyBy from 'lodash/keyBy';
import Immutable from 'seamless-immutable';
import Reservation from '../../../utils/fixtures/Reservation';
import Resource from '../../../utils/fixtures/Resource';
import Unit from '../../../utils/fixtures/Unit';
import User from '../../../utils/fixtures/User';
import reservationPageS... |
if(!xtag.tags['cd-panelmenusubitem']) {
xtag.register('cd-panelmenusubitem', {
accessors: {
id: {
attribute: {}
},
icon: {
attribute: {}
},
href: {
attribute: {}
}
},
lifec... |
// Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* Get the current URL.
*
* @param {function(string)} callback - called when the URL of the current tab
* is found.
*/
function popOut() {
... |
var base_datos = require('./db/db');
var es_ES= require('./idiomas/es_ES');
var en_US= require('./idiomas/en_US');
//###############################################
var autenticado_con_cookies = function (req,res,role,
funcion_exito) {
//Aprobechamos para la comprobacion de idioma
var idioma = req.cookies.id... |
// @flow
import React from 'react';
import withRoot from 'docs/src/modules/components/withRoot';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './svg-icon.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default withRoot(Page);
|
import moment from 'moment';
import { expect } from 'chai';
import isDayVisible from '../../src/utils/isDayVisible';
describe('#isDayVisible', () => {
it('returns true if arg is in visible months', () => {
const test = moment().add(3, 'months');
const currentMonth = moment().add(2, 'months');
expect(isD... |
'use strict';
angular.module('core').controller('TimelineController', ['$scope',
function($scope) {
// Controller Logic
// ...
}
]); |
var winston = require('winston');
winston.emitErrs = true;
var logger = new winston.Logger({
transports: [
new winston.transports.File({
level: 'info',
filename: './logs/server_logs.log',
handleExceptions: true,
json: true,
maxsize: 5242880, // 5MB
maxFiles: 5,
colorize:... |
/*!
* ui-grid - v4.8.5 - 2020-09-14
* Copyright (c) 2020 ; License: MIT
*/
(function () {
angular.module('ui.grid').config(['$provide', function($provide) {
$provide.decorator('i18nService', ['$delegate', function($delegate) {
$delegate.add('nl', {
aggregate: {
label: 'items'
... |
var Matter = require('../../CustomMain');
/**
* A coordinate wrapping plugin for matter.js.
* See the readme for usage and examples.
* @module MatterWrap
*/
var MatterWrap = {
// plugin meta
name: 'matter-wrap', // PLUGIN_NAME
version: '0.1.4', // PLUGIN_VERSION
for: 'matter-js@^0.13.1',
sile... |
/**
* @license Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.editorConfig = function (config) {
// Define changes to default configuration here.
// For the complete reference:
// http://docs.ckeditor.com... |
import { F as FormatterBehavior } from './formatter-b2667231.js';
import { n as numberFormat } from './number-e0c71222.js';
import './index-ea38c5c1.js';
class NumberBehavior extends FormatterBehavior {
static get formatter() {
return numberFormat;
}
}
export default NumberBehavior;
|
/**
* Module dependencies.
*/
var citizen = require('citizen');
var config = require('config');
var request = require('request');
var SideComments = require('side-comments');
var StatefulView = require('stateful-view');
var t = require('t');
var o = require('dom');
var template = require('./template');
var log = req... |
'use strict';
var noteApp = angular.module('myApp.notes', ['ngRoute']);
noteApp.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/notes', {
templateUrl: 'notes/notes.html',
controller: 'NotesController'
});
}]);
noteApp.controller('NotesController', function($scope, NotesBackend) {... |
// secrets for API keys and such
var secrets = require('./.gitignore/secrets.json')
var FeatureCollection = {"type":"FeatureCollection","features":[]}
var fs = require('fs')
var geofilelocation = './maps/geo.json'
//puts together feature information
function weaver (id, latitude, longitude, temperature) {
id = parse... |
/**
*****************************************
* Created by lifx
* Created on 2017-08-16 16:21:35
*****************************************
*/
'use strict';
/**
*************************************
* 定义数据模型
*************************************
*/
const
model = {};
/**
********************************... |
var Keys = {
BACKSPACE: 8,
TAB: 9,
ENTER: 13,
SHIFT: 16,
CTRL: 17,
ALT: 18,
PAUSE: 19,
CAPS_LOCK: 20,
ESCAPE: 27,
SPACE: 32,
PAGE_UP: 33,
PAGE_DOWN: 34,
END: 35,
HOME: 36,
LEFT_ARROW: 37,
UP_ARROW: 38,
RIGHT_ARROW: 39,... |
'use strict';
describe('Controller: CreategroupCtrl', function () {
// load the controller's module
beforeEach(module('infoApp'));
var CreategroupCtrl,
scope;
// Initialize the controller and a mock scope
beforeEach(inject(function ($controller, $rootScope) {
scope = $rootScope.$new();
Createg... |
import React from 'react'
import PropTypes from 'prop-types'
// external-global styles must be imported in your JS.
import normalizeCss from 'normalize.css'
import resetcss from 'styles/reset.less'
import hljscss from 'styles/hljs.css'
// import normalizeCss from 'normalize.css'
import s from './Layout.css'
import ... |
import React from 'react';
import { Provider } from 'react-redux';
import { renderToString } from 'react-dom/server';
import configureStore from '../common/store/configureStore';
import App from '../common/containers/App';
function renderFullPage(html, preloadedState) {
return `
<!doctype html>
<html>
... |
/**
* Created by DELL on 2017/7/13.
*/
var svg = dreamCharts.getSVG("#svg");
//定义需要的全局变量
var svg_width = svg.attr("width"),svg_height = svg.attr("height");
var wStart = svg_width*0.05,wEnd = svg_width*0.95,hStart = svg_height*0.05,hEnd = svg_height*0.95;//依次是直方图范围左上角顶点x坐标,直方图范围右下角顶点x坐标,直方图范围左上角顶点y坐标,直方图范围右下角顶点y坐标
v... |
var util = require('util');
var assert = require('assert');
var _ = require('lodash');
describe('Association Interface', function() {
describe('Has Many Through Association with Custom Primary Keys', function() {
/////////////////////////////////////////////////////
// TEST SETUP
/////////////////////... |
(function(root) {
'use strict';
root.app = root.app || {};
root.app.View = root.app.View || {};
root.app.Helper = root.app.Helper || {};
root.app.View.mapMapView = Backbone.View.extend({
initialize: function(options) {
this.router = options.router;
},
onMapClick: function() {
this... |
module.exports = [
{name: "bin/{{ project-name }}.js", data: require("./file/bin")},
{name: "lib/{{ project-name }}.js", data: ""},
{name: "test/lib/{{ project-name }}.test.js", data: require("./file/test")},
{name: "test/suite.js", data: require("./file/suite"... |
/*!
* jQuery blockUI plugin
* Version 2.36 (16-NOV-2010)
* @requires jQuery v1.2.3 or later
*
* Examples at: http://malsup.com/jquery/block/
* Copyright (c) 2007-2008 M. Alsup
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.... |
/*
* grunt-json-toc-generator
* https://github.com/jediq/documento/grunt-json-toc-generator
*
* Copyright (c) 2015 Ricky Walker
* Licensed under the MIT license.
*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js... |
/**
* Checks if the given form element's value equals the expected value.
*
* ```
* this.demoTest = function (browser) {
* browser.assert.value("form.login input[type=text]", "username");
* };
* ```
*
* @method value
* @param {string|object} definition The selector (CSS/Xpath) used to locate the el... |
'use strict';
var ValidateFields = function (formValues) {
var isValid = {};
isValid['all'] = true;
var validator = {
formValues: formValues,
name: function (inputName) {
var self = this;
return ( self.checkMinLength(inputName, 4));
},
email: function ... |
import React from 'react'
import ReactDOM from 'react-dom'
// class Hello extends React.Component {
// render(){
// return React.createElement('h1', null, 'Hello')
// }
// }
class Clock extends React.Component {
constructor(){
super();
this.state = {
now: new Date().toL... |
import Ember from 'ember';
import layout from '../templates/components/m3r-modal-buttons';
export default Ember.Component.extend({
modal: Ember.inject.service(),
layout: layout,
actions: {
closeModal() {
this.get('modal').close('close');
},
ok() {
this.get(... |
/*!
* DevExtreme (dx.messages.cs.js)
* Version: 21.1.4 (build 21209-0924)
* Build date: Wed Jul 28 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
! function(root, factory) {
if ("function" ... |
/*
* 曲線エディタ
* https://github.com/tckz/curveedit
*
* Copyright(c) 2011 tckz<at.tckz@gmail.com>
* This software is licensed under the MIT license.
* See COPYRIGHT.txt
*/
/**
* 点モデル
*/
var Dot = function() {
this.initialize.apply(this, arguments);
}
Dot.prototype = {
/**
* 図上のx,y座標
*/
initialize: fu... |
/**
* @overview A sevice that sends get, post, put, and delete requests to the server through http. Allows raw mongoDB queries to be passed to the server. The user creates a new instance of the endpoints service providing an endpoint url to reach and calls api methods on that instance.
* @author Jon Paul Miles <mile... |
module.exports = {
semi: true,
tabWidth: 4,
singleQuote: true,
trailingComma: 'es5'
}; |
var breadcrumbs=[['-1',"",""],['2',"SOLUTION-WIDE PROPERTIES Reference","topic_0000000000000C16.html"],['2754',"Tlece.Recruitment.Models.SelectionProcess Namespace","topic_000000000000094D.html"],['2772',"SelectionProcessIndexDataVm Class","topic_0000000000000955.html"],['2774',"Properties","topic_0000000000000955_prop... |
(function() {
'use strict';
angular
.module('myApp')
.config(config);
config.$inject = [
// '$routeProvider',
// '$locationProvider',
// '$httpProvider'
'$stateProvider',
'angularAuth0Provider',
'lockProvider',
'$urlRouterProv... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.