code stringlengths 2 1.05M |
|---|
/*globals $, svgedit, unescape, DOMParser, ActiveXObject, getStrokedBBox*/
/*jslint vars: true, eqeq: true, bitwise: true, continue: true, forin: true*/
/**
* Package: svgedit.utilities
*
* Licensed under the MIT License
*
* Copyright(c) 2010 Alexis Deveria
* Copyright(c) 2010 Jeff Schiller
*/
// Dependencies:
... |
/*
* request
* author: ruleechen
* contact: rulee@live.cn
* create date: 2014.7.4
* description: migrate from expressjs [https://github.com/strongloop/express/blob/master/lib/request.js]
*/
'use strict';
var parse = require('url').parse,
accepts = require('accepts'),
fresh = require('fresh'),
utils = requ... |
"use strict";
const util_1 = require("../util/util");
const path = require("path");
const fs_extra_p_1 = require("fs-extra-p");
const _7zip_bin_1 = require("7zip-bin");
//noinspection JSUnusedLocalSymbols
const __awaiter = require("../util/awaiter");
class CompressionDescriptor {
constructor(flag, env, minLevel) {... |
export { reset } from './-private/window';
export { default as setupWindowMock } from './-private/setup-window-mock';
|
"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var __decorate = (this && this.__decorate) || fu... |
import Histogram from "./components/Histogram";
import Histoslider from "./components/Histoslider";
import Slider from "./components/Slider";
export { Histogram, Histoslider, Slider };
export default Histoslider;
|
(function() {
/*
* Track pageview
*/
chrome.runtime.sendMessage({
action: 'trackPageview',
page: 'update.html'
});
/*
* Locale
*/
var elements = document.getElementsByTagName('*');
for (var i=0, ilen=elements.length; i<ilen; i++) {
var... |
var tape = require('tape');
const through = require('through2');
const mapper = require('../../lib/streams/unitSplittingMapperStream');
const Document = require('pelias-model').Document;
module.exports.tests = {};
// test exports
module.exports.tests.interface = function (test) {
test('interface: factory', t => {
... |
var fs = require('fs')
// TODO wrap Q with associated functions for MAGIC!
function wrap (ctx) {
ctx.fsCalls = {}
// wrap app fs calls
Object.keys(fs).forEach(function (m) {
var orig = fs[m]
fs[m] = function () {
// $captureStack is a utility to capture a stacktrace array
var stack = ctx.$... |
'use strict';
describe('Quiz-Management Page', function(){
var $ctrl;
var $rootScope;
var $location;
var $q;
var authService;
beforeEach(angular.mock.module('app'));
beforeEach(angular.mock.inject(function(_$injector_) {
var $injector = _$injector_;
$roo... |
angular.module('AffilinetToolbar')
.controller('SearchDiscoverController', ['$scope', '$rootScope', 'LogonService', '$timeout', '$translate', 'productWebservice' , 'BrowserExtensionService', SearchDiscoverController]);
function SearchDiscoverController($scope, $rootScope, LogonService, $timeout, $translate, pro... |
// A board for the cellular automata game Life.
//
// constructor
// r is number of rows, c number of columns
// has two arrays, one for current state (cells), one for next state
// cell state is 0 for dead and 1 for alive.
//
// methods (public)
// setCell
// toggleCell
// step
// run
// resize
//
// messages (e... |
// Regular expression that matches all symbols in the Enclosed Ideographic Supplement block as per Unicode v9.0.0:
/\uD83C[\uDE00-\uDEFF]/; |
/*
@deploy
@title Minimal Hello world!
*/
module.exports = function(req, res, next) {
res.send('Hello World!');
}; |
module.exports = {
ENV: process.env.ENV,
NETLIFY: process.env.NETLIFY
};
|
/********************************************************
* *********************
* 前端 代码规范 *********************
* *********************
* 更新日期 : 2015-11-20 12:19 *********************
*
*************************************... |
module.exports = [
'<div class="success">',
'<div class="success-note note">',
'Payment success! Thanks for your business!',
'</div>',
'</div>'
].join('\n')
|
'use strict';
// Requires
const request = require('request');
const cheerio = require('cheerio');
const _ = require('lodash');
const TVShow = require(`${__dirname}/../src/tvshow`);
let Logger;
class ProviderEZTV {
constructor(LocalConfiguration) {
this.name = 'EZTV';
this.baseUrl = 'https://eztv.... |
'use strict';
angular.module("ngLocale", [], ["$provide", function ($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function ... |
import React from 'react';
import { connect } from 'react-redux';
import IssueComponent from './component';
import { fetchIssue, clearDetail } from './actions';
class IssueDetail extends React.Component {
componentWillMount() {
if(this.props.issueId) {
this.props.getIssue(this.props.issueId);
... |
var assert = require('assert');
var _ = require('lodash');
/**
* When `autoIncrement` is set to `true` on an attribute and no value is provided for it a
* new unique value will be assigned by the adapter before the record is created. It is
* guaranteed that the adapter will assign a unique value not present on any ... |
// FIXME: should be in its own NPM package
"use strict";
var Netmask = require('netmask').Netmask;
whitelist.knownRemotes = [
'207.97.227.224/27',
'173.203.140.192/27',
'204.232.175.64/27',
'72.4.117.96/27',
'204.232.175.64/27',
'192.30.252.0/22',
// '2620:112:3000::/44',
'207.97.227... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
describe('Test NetBeans homepage', function () {
it('should find correct title', function () {
browser.driver.get('http:/... |
//~ name c727
alert(c727);
//~ component c728.js
|
(function(){
'use strict';
angular.module('app').controller('DashboardCtrl', DashboardCtrl);
DashboardCtrl.$inject = ['$scope', '$rootScope', '$timeout', '$mdToast', '$q', 'Auth', 'restSrv', '$window'];
function DashboardCtrl($scope, $rootScope, $timeout, $mdToast, $q, Auth, restSrv, $window){
var ... |
import React, { Component } from 'react';
import firebase, { reference, signIn } from '../firebase';
import { pick, map, extend } from 'lodash';
class LogOutButton extends React.Component {
constructor(props) {
super(props);
}
render () {
return (
<button className='logout-button' onClick={this.p... |
import assert from 'assert';
import axios from 'axios';
import { getHttpApi } from '../bin/index';
describe('Http', function () {
it('should retrieve the http api', function () {
const api = getHttpApi();
assert.ok(typeof api === 'object');
})
it('should populate the http api', function () {
const ... |
'use strict';
var utils = require('./utils');
var trim = require('trim');
module.exports = function(pg, persistence, consumerPersistence, consumptionsPersistence, broadcast) {
var consumptions = {};
consumptions.getConsumptionRecords = function(req, res) {
console.log("get Consumption Record");
var days... |
window.addEventListener("load", function() {
(function() {
var myPromise = new Promise((resolve, reject) => {
navigator.geolocation.getCurrentPosition((pos) => {
resolve(pos);
}, (error) => { reject(error); });
});
function parseCoords(pos) {
... |
"use strict";
var fx = require("framework");
var Class = fx.import("framework.Class");
var App = fx.import("framework.app.App");
var ProgressView = fx.import("framework.ui.view.ProgressView");
Class.define("MyApp", App, {
onStart: function() {
this.progressView = new ProgressView();
this.progressVi... |
var fs = require('fs');
fs.access('/tmp/example.txt', fs.constants.R_OK, function(err) {
if (err) throw err;
console.log('File or directory is readable!')
})
|
import React from 'react';
import style from 'PVWStyle/ReactProperties/PropertyPanel.mcss';
import factory from '../PropertyFactory';
export default React.createClass({
displayName: 'PropertyPanel',
propTypes: {
className: React.PropTypes.string,
input: React.PropTypes.array,
labels: React.Pro... |
'use strict';
/**
* Declare and export default values for middleware options.
* @module lib/defaults
*/
const curry = require('lodash.curry');
/**
* Name of default attributes shown on errors.
* This attributes can be customized by setting a
* `format` function during middleware declaration.
* @type {Array}
*/... |
count = db.items.count();
num = 0;
print("Adding item.rootPost (" + count + ")");
db.items.find({}, {_id:1}).forEach(function(row) {
post = db.posts.findOne({
parent: null,
'target.$ref': 'items',
'target.$id': row._id,
}, {_id: 1});
if(post) {
db.items.update({_id: row... |
import React from "react";
import {
blockRenderMap as checkboxBlockRenderMap,
CheckableListItem,
CheckableListItemUtils,
CHECKABLE_LIST_ITEM,
} from "draft-js-checkable-list-item";
import { Map, OrderedSet, is } from "immutable";
import CodeBlock from "./components/Code";
import {
getDefaultKeyBinding,
Mod... |
;(function () {
'use strict';
var isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
},
Opera: function() ... |
'use strict';
var path = require('path');
var helpers = require('yeoman-test');
var assert = require('yeoman-assert');
describe('Chisel Generator with jQuery in vendor bundle', function () {
before(function (done) {
helpers
.run(path.join(__dirname, '../../generators/app'))
.withOptions({
'... |
import React, { Component } from 'react';
export default class Hero extends Component {
render (){
const imageUrl = this.props.image;
const title = this.props.title;
let image;
if ( imageUrl !== '' ){
const styles = {
backgroundImage: 'url(' + imageUrl + ')'
};
image = <div ... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.16/esri/copyright.txt for details.
//>>built
define(["require","exports"],function(m,h){function k(a,d,e,c,b){if(null!=c&&null!=b&&c===b)return function(b){return c>=a.getAttribute(b,d)&&c<=a.getAttribute(b,e... |
'use strict';
/***
* @ngdoc factory
* @name tiUtil
* @module ngTagsInput
*
* @description
* Helper methods used internally by the directive. Should not be called directly from user code.
*/
tagsInput.factory('tiUtil', function($timeout) {
var self = {};
self.debounce = function(fn, delay) {
var... |
'use strict';
var checks = require('./checks');
var compare = require('./compare');
var NodeUtil = require('util');
var mongoose = require('mongoose');
var ObjectID = require('mongodb').ObjectID;
/**
* [validateObjectId description]
*
* @param {[type]} requestor
* @param {[type]} text
*
* @return {[type]}
*... |
let o = {
f: function () {
if (this !== o)
throw new Error("MemberCall");
}
}
o.f(); |
var gulp = require('gulp'),
$ = require('gulp-load-plugins')(),
pkg = require('./package.json'),
fs = require('fs'),
changelog = require('conventional-changelog'),
karma = require('karma').server,
args = require('yargs').argv,
path = require('path'),
es = require('event-stream');
var ex... |
'use strict';
/**
* 表单字段
*/
module.exports = function(data) {
data || (data = {});
return [{
label: '员工号',
colspan: 3,
attrs: {
type: 'text',
name: 'code',
required: 'required',
maxlength: 30,
value: data.code || ''
}
}, {
l... |
/*
Product Name: dhtmlxSuite
Version: 4.0.3
Edition: Standard
License: content of this file is covered by GPL. Usage outside GPL terms is prohibited. To obtain Commercial or Enterprise license contact sales@dhtmlx.com
Copyright UAB Dinamenta http://www.dhtmlx.com
*/
/* dhtmlx.com */
if (typeof(window.dhx4) == "u... |
var map = require('array-map');
var filter = require('array-filter');
var reduce = require('array-reduce');
exports.quote = function (xs) {
return map(xs, function (s) {
if (s && typeof s === 'object') {
return s.op.replace(/(.)/g, '\\$1');
}
else if (/["\s]/.test(s) && !/'/.tes... |
var _ = require('lodash');
var url = require('url');
var numberOfHeroes = require('./res/heroes.json').length;
function getNextUrl(originalUrl, currentPage) {
var nextPage = parseInt(currentPage, 10) + 1 || 2;
if (_.isEmpty(currentPage)) {
originalUrl += _.endsWith(originalUrl, '/') ? nextPage: '/' + ... |
angular.module('app.maps', ['ngResource']); |
var express = require('express'),
path = require('path'),
cookieParser = require('cookie-parser'),
bodyParser = require('body-parser'),
compression = require('compression'),
colors = require( "colors");
var routes = require('./routes/index'),
config = require('./conf/config');
var minify;
var... |
/**
* Created by Pradeep on 4/28/2017.
*/
(function() {
$.fatNav();
}());
|
"use strict";
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 = Refl... |
/**
* 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 Axes = require('../../plots/cartesian/axes');
var isArray1D = require('../../lib').isArray1D;
var cheaterBas... |
var JSProblemState = {
'selected': 'No response selected'
};
console.log('inner ready');
// If someone clicks a radio button, put its value into the state.
let formbits = document.forms.emojibox.elements;
Array.from(formbits).forEach(function(e){
e.addEventListener('change', function(){
console.log(e... |
const image_financial_security = require('images/aspiration_finsec_small.png')
export default function (state, action) {
return [
{
title: 'Financial Security',
what: 'A future where I only work when I want',
why: 'I want to decide how i invest my time',
mantra: 'I am saving now for a wor... |
var FileRendererAppDirective = angular.module('FileRendererApp.Directive', ['ngResource','ui.bootstrap', 'jsonFormatter']);
FileRendererAppDirective.directive('sidebarToggle', function() {
return {
link: function(scope, element, attrs) {
$('[data-toggle=offcanvas]').click(function() {
$('.row-... |
module.exports = function (sequelize, DataTypes) {
var Tecnica = sequelize.define(
'Tecnica',
{
id: {
type: DataTypes.BIGINT(11),
primaryKey: true,
autoIncrement: true,
comment: 'ID tecnica',
validate: {
isNumeric:true,
notNull: true
}
... |
const examples = [
'button', 'markdown'
];
F.component('list', {
template: require('../template/list.html'),
getData: function(cb) {
cb(examples.map(v => { return { href: "#" + v, name: v }; }));
}
});
|
import { connect } from 'react-redux';
// component
import WidgetsIndex from './component';
export default connect(
(state) => ({ user: state.user }),
null,
)(WidgetsIndex);
|
//
//{block name="backend/create_backend_order/store/create_backend_order"}
//
Ext.define('Shopware.apps.SwagBackendOrder.store.CreateBackendOrder', {
extend: 'Ext.data.Store',
model: 'Shopware.apps.SwagBackendOrder.model.CreateBackendOrder',
remoteSort: true,
remoteFilter: true,
pageSize: 50,
... |
// Generated by jsScript 1.10.0
(function() {
Meteor.publish('notifications', function() {
return Notifications.find({
owner: this.userId
});
});
}).call(this);
|
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
errorHandler = require('./errors.server.controller'),
Student = mongoose.model('Student'),
_ = require('lodash');
/**
* Create a Student
*/
exports.create = function(req, res) {
var student = new Student(req.body);
student.user =... |
KISSY.add('mux.bcharts/charts/js/m/widget/widget',function(S,Base,Node,SVGElement){
var $ = Node.all
function Widget(){
var self = this
/*
arguments:
o:{
parent_id:'' //div id
w :100 //div 宽
h :100 //div 高
type :'' //图表类型[histogram = 直方图 | line = ]
... |
(function () {
'use strict';
describe('Trainings Test', function () {
var $scope, createController;
beforeEach(module('ui.router'));
beforeEach(module('training.module'));
beforeEach(inject(function ($rootScope,$controller,$injector,$templateCache) {
createController = function(resolveTrainin... |
let utils = require('./utils')
let webpack = require('webpack')
let config = require('../config')
let merge = require('webpack-merge')
let baseWebpackConfig = require('./webpack.base.conf')
let HtmlWebpackPlugin = require('html-webpack-plugin')
let FriendlyErrorsPlugin = require('friendly-errors-webpack-plugin')
// ad... |
version https://git-lfs.github.com/spec/v1
oid sha256:43684d18fb457a7cb1ca66fee3aa3b13f08e2fbbec2bcedf8c3749607ee8ada5
size 2282
|
function getProperty(object, path) {
if (!object || typeof(object) !== 'object') {
return undefined;
}
var parts = path.split('.');
return parts.length > 1 ? getProperty(object[parts.shift()], parts.join('.')) : object[path];
}
function hasProperty(object, path) {
if (!object || typeof(object) !== 'object') {
... |
var BaseField = require('./BaseField');
var Crypto = require('crypto');
class IdField extends BaseField {
parseForCreate(input) {
// @todo uniqueness
if(this.opts.primary) {
return { value: Crypto.randomBytes(8).toString('hex').slice(0, 16) };
}
}
}
module.exports = IdField;
|
var DAY = 1000 * 60 * 60 * 24;
module.exports = function(app){
return {
name: 'getSubjects',
fn: function(next){
app.untis.subjects().then(function(subjects){
next(null, subjects);
}, function(err){
next(err);
});
},
options: {
cache: {
expiresIn: DAY
... |
/**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import sequelize from '../sequelize';
import { User, Us... |
'use strict';
require('./lib/index').WebServer.create().start();
|
require("./prototypes/string");
require("./prototypes/array");
require("./prototypes/object");
require("./prototypes/map");
require("./prototypes/set");
|
import { NgModule, NgZone, OpaqueToken, Inject, Optional } from '@angular/core';
import { LIB_KEY, LIB_KEY_SEPARATOR } from './constants/lib';
import { STORAGE } from './enums/storage';
import { LocalStorageService, SessionStorageService } from './services/index';
import { WebStorageHelper } from './helpers/webStorage'... |
function onGLC(glc) {
glc.loop();
// glc.size(400, 400);
// glc.setDuration(5);
// glc.setFPS(20);
// glc.setMode("single");
// glc.setEasing(false);
// glc.setMaxColors(256);
var list = glc.renderList,
width = glc.w,
height = glc.h;
// your code goes her... |
/**
* !!! This file can be found as worker.js in the quick_server folder !!!
*
* Provides worker oriented networking interface.
*
* Created by krause on 2016-06-22.
*/
export const CONFIG = {
preDelay: 500,
timeStart: 500,
// has to be below 2min so the server doesn't remove the result
timeCap: 1000*60,
... |
'use strict';
var expect = require('chai').expect,
kasane = require('../lib/kasane');
describe('kasane', function () {
describe('.use', function () {
it('should throw errors if `path` argument is not a string', function () {
try {
kasane().use(1, function () {});
... |
"use strict";
(function () {
var app = angular.module("todoApp", ["todoController"]);
})(); |
/*
* Connection
* Copyright (c) 2014 Björn Acker | http://www.bjoernacker.de
*
* 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 r... |
import React, { PropTypes } from 'react';
class ComentariosForm extends React.Component {
handleSubmit (e) {
e.preventDefault();
var text = this.refs.text.value;
if (!text) {
return;
}
this.props.onCommentSubmit({comment: text});
this.refs.text.value = ''... |
'use strict';
var chalk = require('chalk');
var _ = require('lodash');
var api = require('../lib/api');
var logger = require('../lib/logger');
var utils = require('../lib/utils');
var ALLOWED_JSON_KEYS = [
'localId', 'email', 'emailVerified', 'passwordHash', 'salt', 'displayName', 'photoUrl', 'createdAt', 'lastSig... |
import {Form} from 'widget/form/form'
import {LegendBuilder, defaultColor} from 'app/home/map/legendBuilder'
import {Panel} from 'widget/panel/panel'
import {RecipeFormPanel, recipeFormPanel} from 'app/home/body/process/recipeFormPanel'
import {activator} from 'widget/activation/activator'
import {compose} from 'compos... |
"use strict";
/**
* Created by akselon on 2017-04-24.
*/
var League = (function () {
function League(id, name) {
this.id = id;
this.name = name;
}
;
return League;
}());
exports.League = League;
//# sourceMappingURL=league.js.map |
const path = require('path')
const boilerplate = require('workshopper-boilerplate')
const run = require('../../lib/run')
const bruggieMessage = require('../../lib/bruggie-message')
var exercise = require('workshopper-exercise')()
exercise = boilerplate(exercise)
exercise = run(exercise)
exercise = bruggieMessage(exerc... |
import Conan from "conan";
import attachRolePolicyStep from "../../lib/steps/attachRolePolicyStep.js";
import sinon from "sinon";
import chai from "chai";
describe(".attachRolePolicyStep(conan, context, stepDone)", () => {
let conan,
context,
stepDone,
awsResponseError,
awsResponseData,
stepReturnErr... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
export default {
entry: '../../../dist/packages-dist/router/index.js',
dest: '../../../dist/packages-dist/router... |
version https://git-lfs.github.com/spec/v1
oid sha256:3242ed6005ac5563f9959de1d45ac897f34c259a3ca8b6ab21cce51b826872dc
size 61353
|
/*
jcclient.js - Don Cross
https://github.com/cosinekitty/jcadmin
*/
;(function(){
'use strict';
function ApiCall(verb, path, onSuccess, onFailure) {
var handled = false;
var request = new XMLHttpRequest();
request.onreadystatechange = function(){
if (!handled) {... |
const { Model } = require('../../../');
const { expect } = require('chai');
module.exports = (session) => {
const { knex } = session;
describe('#ref attack', () => {
class Role extends Model {
static get tableName() {
return 'roles';
}
}
class User extends Model {
static get... |
define([
'text!../../html/alerts.html'
], function(temp){
return Backbone.View.extend({
el: '#alerts',
events: {
'click a[rel=submit-number]': 'submit'
},
initialize: function() {
this.template = Handlebars.compile(temp);
this.render();
},
render: function() {
$(this.el).html(this.temp... |
/*
MIT
Creato by Webz Ray
*/
CKEDITOR.dialog.add("wenzgmapDialog",function(b){return{title:"Insert Google Map",minWidth:400,minHeight:75,contents:[{id:"tab-basic",label:"Basic Settings",elements:[{type:"text",id:"addressStr",label:"Please enter your central map address"},{type:"text",id:"mapWidth",label:"Map Width ... |
/**
* Created by lizhengwei on 2016/7/29.
*/
var app=angular.module('bookStoreApp',[]);
app.filter('to_trusted',['$sce',function($sce){
return function (text) {
return $sce.trustAsHtml(text);
}
}]);
app.service('deepCopyService',function(){
return function (obj) {
var result={};
fo... |
import "./sass/index.scss";
import 'rxjs';
import React, {Component} from 'react';
import {render} from 'react-dom';
import App from './app';
function Main(){
return <App/>;
}
render(<Main/> , document.getElementById("reactapp"));
|
'use strict';
const Tag = require('../lexer/tag');
const Word = require('../lexer/word');
const Op = require('./op');
class Access extends Op {
constructor(line, id, expr, type) {
super(line, new Word('[]', Tag.INDEX), type);
this.array = id;
this.index = expr;
}
gen() {
return new Access(this... |
import asAnUser from '../helpers/asAnUser'
import Articles from '../helpers/articles'
import setFieldWithReduxForm from '../helpers/setFieldWithReduxForm'
import sleep from '../helpers/sleep'
const host = 'http://localhost:3000'
describe('Articles', () => {
describe('Report', () => {
before(() => {
server.... |
AutoForm.addHooks(['updateProfileData'], {
onSuccess: function(formType, result) {
bootbox.alert(TAPi18n.__("profile_updated", lang_tag=null));
},
onError: function(formType, error) {
bootbox.alert(TAPi18n.__(error.message, lang_tag=null));
}
});
var commentsHooks = {
before: {
insert:... |
import React from 'react';
import { connect } from 'react-redux'
import MessagesList from './MessagesList';
import SlackActions from '../actions/SlackActions';
class SearchMessagesSection extends React.Component {
componentDidMount() {
this.initialzeData(this.props.match.params.searchWord);
}
componentWillRe... |
// @flow
import {EventEmitter2 as EventEmitter } from "eventemitter2"
function filter(v: number, min: number, max: number): number {
v = Math.min(v, max);
v = Math.max(v, min);
return v;
}
class HitPoint extends EventEmitter {
current: number
max: number
constructor(current: number, max: numbe... |
/**
* Created by chenchaowei on 4/24/15.
*/
describe('suite of tests for hello world', function () {
describe('another suite', function () {
var controller;
beforeEach(module('myApp.helloworld'));
beforeEach(inject(function ($controller) {
var $scope = {};
control... |
app.controller('app.controller', function($scope) {
$scope.data = {
lname: '',
fname: '',
email: '',
phone_mobile: ''
};
var masterData = angular.copy($scope.data);
var key;
$scope.isUpdating = false;
$scope.list = [];
$scope.btnClear = function () {
... |
define(['exports', 'external'], function (exports, external) { 'use strict';
class Foo extends external.Component {
constructor () {
super();
this.isFoo = true;
}
}
class Bar extends external.Component {
constructor () {
super();
this.isBar = true;
}
}
class Baz extends external.Component {
... |
(function() {
'use strict';
angular.module('dataservice', [
'ngResource'
]);
})(); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.