code stringlengths 2 1.05M |
|---|
Capybara = {
nextIndex: 0,
nodes: {},
attachedFiles: [],
keyModifiersStack: [],
invoke: function () {
try {
if (CapybaraInvocation.functionName == "leftClick") {
var args = CapybaraInvocation.arguments;
var leftClickOptions = this["verifiedClickPosition"].apply(this, args);
... |
import express from 'express';
import bodyParser from 'body-parser';
import path from 'path';
const app = express();
// allow cross-origin requests
app.use(function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");
re... |
'use strict';
module.exports = lastContainedIndex;
function lastContainedIndex(maxIndex, indexesArray) {
while (indexesArray.indexOf(maxIndex) === -1) {
maxIndex--;
}
return maxIndex;
}
|
var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, de... |
version https://git-lfs.github.com/spec/v1
oid sha256:295eaea121e63329af0104e60bdf15ec28f4bef432c5845f73b0ceaa64e098bc
size 38825
|
angular.module('app.services',['services-users', 'services-posts'])
.service('dbPath', function($location){
if($location.$$host==='localhost'){
this.path= $location.$$protocol+'://'+$location.$$host+':'+$location.$$port;
}else{
this.path=$location.$$protocol+'://'+$location.$$host;
}
})
.service('getSetti... |
$(function () {
var RELOAD = 5000, TIMEOUT = 2000, SHIFT = 20, PERCISION = 2;
var SERIES = {};
var table = $('#containers').DataTable({
"ajax": "/api/ps",
"columns": [
{ "title": "Container ID", "data": "Id" },
{ "title": "Image", "data": "Image" },
{ "title": "Comma... |
import { Mongo } from 'meteor/mongo';
RocketChat.Migrations.add({
version: 42,
up() {
const files = RocketChat.__migration_assets_files = new Mongo.Collection('assets.files');
const chunks = RocketChat.__migration_assets_chunks = new Mongo.Collection('assets.chunks');
const list = {
'favicon.ico': 'favicon_... |
(function() {
var locations = angular.module("locations", [ ], function($interpolateProvider) {
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']]');
});
locations.controller("LocationsController", [ '$http', function($http) {
var locations = this;
lo... |
version https://git-lfs.github.com/spec/v1
oid sha256:bc18c14cf7bdcb08a36e0ef050472c62cbdd2047f2ea2999cab1249399b24d91
size 2895
|
describe('Filter', function() {
let Filter = require('../../validators/filter');
let attribute = 'notFiltered';
it('Filter', (done) => {
let value = ' Test ';
let model = {};
model[attribute] = value;
let errors = {};
let validator = new Filter(attribute, {
... |
'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; }
__.prototype = b.prototype;
d.prototype = new __();
};
var di_1 = require('angular2/di');
var PipeBinding = (function (_super) ... |
"use strict";
var React = require('react/addons')
var TestUtils = React.addons.TestUtils
var proxyquire = require('proxyquire')
require('../../test/setup')
var envStub = {}
var configStub = {common: {'host': '127.0.0.1', 'port': 3000, 'apiBasePath': '/api'}}
var Global = proxyquire('../../src/common/Global', {
... |
/**
* author:oppoffice
* date:2017.1
*/
;(function(){
function getFileName(file){
return file.replace(/.*(\/|\\)/, "");
}
function getExt(str){
return /\.[^\.]+$/.exec(str);
}
function addEvent(el,type,fn){
if(typeof el ==='undefined' || el.nodeType!==1){
... |
/*!
* lv.emotions v1.0.0
* Criado para utilizar emoticons em suas páginas web
* https://github.com/LucasViniciusPereira
* License : MIT
* Author : Lucas Vinicius Pereira (http://lucasvinicius.eti.br/)
*/
(function ($) {
$.fn.emotions = function (options) {
// Definição dos valores padrões
var ... |
GAME.setConsts({
E_MAXVEL : 0.1,
B_MAXVEL : 0.1,
S_PLAYER : [[-0.5, -0.5], [0.5, -0.5], [0.5, 0.5], [-0.5, 0.5]],
S_BULLET : [[0, .5], [-.3, 0.15], [-.3, -.3], [.3, -.3], [.3, 0.15]],
E_TYPE_ENEMY : 0,
E_TYPE_PLAYER : 1,
E_TYPE_BULLET : 2,
REPULSION_CONST : 3 / 30,
WALL_REPULSION_CONST ... |
$(document).ready(function() {
// put all your jQuery goodness in here.
var filmstrip = $("#filmstrip-holder");
var animating = false;
//create the automatic animation
function startTimer(){
filmstrip.everyTime(6000, "slider", function() {
scrollLeft(true);
});
}
function scrollLeft(looping){
/... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M8 17h8v-.24L8.34 9.1C8.12 9.68 8 10.32 8 11v6zm4-10.5c-.19 0-.37.03-.55.06L16 11.1V11c0-2.48-1.51-4.5-4-4.5z" opacity=".3" /><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm0-15.5c2.... |
/**
* @Author: Zhang Yingya(hzzhangyingya) <zyy>
* @Date: 2016-07-20T16:59:19+08:00
* @Email: zyy7259@gmail.com
* @Last modified by: zyy
* @Last modified time: 2016-07-20T17:09:40+08:00
*/
var argv = require('yargs').argv
if (argv.ships > 3 && argv.distance < 53.5) {
console.log('Plunder more riffiwobbles!')
}... |
import request from 'superagent'
import { EventEmitter } from 'events'
export default class SlackData extends EventEmitter {
constructor ({ token, interval, org: host }){
super()
this.host = host
this.token = token
this.interval = interval
this.ready = false
this.org = {}
this.users = {}... |
var winston = require('winston');
var MemoryStorage = module.exports = function(options, verbosity) {
// default configuration
options = options || {};
verbosity = verbosity || 'info';
this.config = {capacity: 1000};
// update configuration and defaults
for (var k in options) {
this.config[k]... |
// EventEmitter service for injection
angular.module('EventEmitter', [])
.factory('EventEmitter', ['$window',
function ($window) {
return $window.EventEmitter
}
]); |
version https://git-lfs.github.com/spec/v1
oid sha256:ba252e1698dee26f1488778f51f2307a30a1ee639d55cd4e98d7d1e101e70f81
size 9415
|
var globals = require("./globals");
var gl = globals.gl;
/* Create a new Tensor with the given shape and data, and upload
the resulting texture to the GPU.
*/
function Tensor(shape, data){
if(shape.length != 2)
throw new Error("Only Tensor of order two (matrix) is supported right now.");
var M = shape[0],
N ... |
import React from 'react';
import Tracking from 'tracking';
import findIndex from '../helpers/index';
export default class Video extends React.Component {
constructor() {
super();
}
componentDidMount() {
this.createVideo();
}
createVideo() {
navigator.mediaDevices.getUserMedia({ audio: false, v... |
//! logs/app.js
//! listen to nmea message events, write them to disk, and enable
//! downloading of log archives
//! version : 0.1
//! homegrownmarine.com
var path = require('path');
var util = require('util');
var fs = require('fs');
var async = require('async');
var _ = require('lodash');
var moment = require('m... |
// pages/posts/posts.js
var postData = require("../../data/posts_data.js");
Page({
data: {
condition: true,
},
onItemTap: function (event) {
// console.log("onItemTap" + event.currentTarget.dataset.postid);
wx.navigateTo({
url: 'posts-detail/posts-detail?id=' + event.currentTarget.dataset.post... |
import React from 'react';
import { ResultList } from 'components';
import { connect } from 'react-redux';
import { voteResultRequest } from 'actions/vote';
class VoteResult extends React.Component {
componentDidMount() {
this.props.voteResultRequest().then(
() => {
//console.log(this.props.resultData);
}... |
"use strict";
const {
markEvalScopes,
isMarked: isEvalScopesMarked,
hasEval,
} = require("babel-helper-mark-eval-scopes");
module.exports = ({ types: t, traverse }) => {
const hop = Object.prototype.hasOwnProperty;
class Mangler {
constructor(charset, program, {
blacklist = {},
keepFnName =... |
import moment from 'moment';
import _ from 'lodash';
const sorts = {
createDateOldestToNewest({ createdAt: a }, { createdAt: b }) {
return moment(a).isAfter(b);
},
createDateNewestToOldest({ createdAt: a }, { createdAt: b }) {
return moment(a).isBefore(b);
},
startDateOldestToNewes... |
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 session = require('express-session')
var routes = require('./routes/index');
var app = express... |
// flow-typed signature: 268c848364eeda2427a142849237d02b
// flow-typed version: <<STUB>>/redux-logger_v^3.0.1/flow_v0.40.0
/**
* This is an autogenerated libdef stub for:
*
* 'redux-logger'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with ... |
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import { setupIntl } from 'ember-intl/test-support';
import { render, click } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';
module('Integration | Component | new objective', function (hooks) {
setupRen... |
/**
* @fileoverview Translation for `validateLineBreaks` (JSCS) to ESLint
* @author Breno Lima de Freitas <https://breno.io>
* @copyright 2016 Breno Lima de Freitas. All rights reserved.
* See LICENSE file in root directory for full license.
*/
'use strict'
//----------------------------------------------------------... |
#! /usr/bin/env node
var parseJS = require("../lib/parse-js");
var sys = require("sys");
// write debug in a very straightforward manner
var debug = function(){
sys.log(Array.prototype.slice.call(arguments).join(', '));
};
ParserTestSuite(function(i, input, desc){
try {
parseJS.parse(input);
debug("ok "... |
import '/resources/gis/leaflet/leaflet-lib.js';
import '/resources/gis/leaflet/markerrotation/leaflet.rotatedMarker.js'; |
BasicGame.Preloader = function (game) {
this.background = null;
this.preloadBar = null;
this.ready = false;
};
BasicGame.Preloader.prototype = {
preload: function () {
// These are the assets we loaded in Boot.js
// A nice sparkly background and a loading progress bar
this.background = this.add.sprite(... |
version https://git-lfs.github.com/spec/v1
oid sha256:50e539cc660deb4e7e2bbd6ff64cf1eba14952ebb5e8e0394a326914fb4ff00f
size 1568
|
/*
server.js
main server script for the socket.io chat demo
*/
|
#!/usr/bin/env node
/******************************************************************************
* *
* @file server.js *
* @author Clément Désiles <main@jokester.fr> ... |
/**
* Service Proxy for CpProxyAvOpenhomeOrgVolume3
* @module ohnet
* @class Volume
*/
var CpProxyAvOpenhomeOrgVolume3 = function(udn){
this.url = window.location.protocol + "//" + window.location.host + "/" + udn + "/av.openhome.org-Volume-3/control"; // upnp control url
this.domain = "av-openhome-o... |
const validate = (input) => {
const errors = {};
const values = input.toJS();
if (!values.username) {
errors.username = 'Required';
} else if (values.username.length > 15) {
errors.username = 'Must be 15 characters or less';
} else if (values.username.length < 3) {
errors.username = 'Must be 3 cha... |
export * from './dbl-click-copy.directive';
export * from './visibility.directive';
export * from './directives.module';
//# sourceMappingURL=index.js.map |
// Based on iniparser by shockie <https://npmjs.org/package/iniparser>
var fs = require('fs');
/*
* define the possible values:
* section: [section]
* param: key=value
* comment: ;this is a comment
*/
var regex = {
section: /^\s*\[(([^#;]|\\#|\\;)+)\]\s*([#;].*)?$/,
param: /^\s*([\w\.\-\_]+)\s*[=:]\s*(.*?)\s... |
// flow-typed signature: f2de767c1337d15eb591f26fd1ab3af4
// flow-typed version: <<STUB>>/babel-plugin-react-intl-auto_v^2.3.0/flow_v0.102.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-react-intl-auto'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encou... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
var channelName = document.getElementById('channel-name');
var startButton = document.getElementById('start-button');
startButton.onclick = function(){
if(channelName.value){
var webrtc = new SimpleWebRTC({
// the id/element dom element that will hold "our" video
localVideoEl: 'localVideo',... |
/*!
* Flickr Downloadr
* Copyright: 2007-2015 Sondre Bjellås. http://sondreb.com/
* License: MIT
*/
'use strict';
/*
Simple wrapper for the socket.io. Hiding some of the details
to create a new instance. Due to the individual socket pr. client
nature of socket.io, we'll simply return the socket.io instance
... |
/*global module:true*/
var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet;
var mountFolder = function (connect, dir) {
return connect.static(require('path').resolve(dir));
};
var yeomanConfig = {
app: 'app',
dist: 'dist'
};
module.exports = function (grunt) {
'use strict';
re... |
function aggregateOffsetTop(element) {
if (!element) {
return -1;
}
let y = element.offsetTop;
while (element = element.offsetParent) {
y += element.offsetTop;
}
return y;
}
chrome.extension.sendMessage({}, function(response) {
const readyStateCheckInterval = setInterval(function() {
if (d... |
'use strict'
// var distance = require('./centimeter')
// distance.set('league', 'centimeter', 1 / 0.0000020712373)
// module.exports = distance
module.exports = ['league', 'centimeter', 1 / 0.0000020712373]
|
jui.define("chart.brush.polygon.core", [], function() {
var PolygonCoreBrush = function() {
this.createPolygon = function(polygon, callback) {
this.calculate3d(polygon);
var element = callback.call(this, polygon);
if(element) {
element.order = this.axis.d... |
/**start**/this["JST"] = this["JST"] || {};this["JST"]["test/fixtures/template/shop.html"] = function(obj) {obj || (obj = {});var __t, __p = '', __e = _.escape;with (obj) {__p += '<div id="M-Shop"><h2>' +((__t = (title)) == null ? '' : __t) +'</h2><div class="shop-list"></div></div>';}return __p};this["JST"] = this["JS... |
// Keep track of which names are used so that there are no duplicates
var userNames = (function () {
var names = {};
var claim = function (name) {
if (!name || names[name]) {
return false;
} else {
names[name] = true;
return true;
}
};
// find the lowest unused "guest" name and c... |
/**
* Created by zpl on 15-3-22.
* 专门存储token
*/
angular.module('RDash').
factory('SessionService',['$localStorage','$cookies','User','$window',function($localStorage,$cookies,User,$window){
return {
getUserinfo: function(){
this.login()
var user ={
... |
'use strict';
var gulp = require('gulp');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var babel = require('gulp-babel');
var compass = require('gulp-compass');
var cssmin = require('gulp-cssmin');
gulp.task('scripts', function(){
return gulp.src('./src/ng-circle.js')
.pipe(babel())... |
( function () {
'use strict';
mare.views.LogIn = Backbone.View.extend({
// this view controls the content of the modal window, create an element to insert into the modal
tagName: 'section',
// give the container for our view a class we can hook into
className: 'log-in-container',
initialize: function in... |
var crypto = require('crypto')
, sync = require('sync');
var iterCnt = 512;
var pwdtLen = 32;
var saltLen = 16;
var userToOTT = {};
function getOTT() {
var shasum = crypto.createHash('sha1');
shasum.update(Date.now().toString());
return shasum.digest('hex');
}
function generateOTT(uid, ott) {
if (us... |
(function($) {
/* --------------------- Plugin Vars --------------------- */
var _ajax = $.ajax,
fauxHandlers = [],
fakedAjaxCalls = [],
unhandled = [];
/* ---------------- The Fauxjax Object ------------------- */
$.fauxjax = {};
/* -------------------- Pu... |
/* ************************************************************************
Copyright: Hericus Software, LLC
License: The MIT License (MIT)
Authors: Steven M. Cherry
************************************************************************ */
qx.Mixin.define("dev.layout.LayoutTripleField", {
members : {
... |
'use babel';
import React, { Component } from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { createSession, connectToPeer, destroy } from '../actions/session'
import SidebarHeader from '../components/SidebarHeader'
import SidebarBody from '../components/SidebarBody'... |
/**
* TranslationOverride Service
*
* @class TranslationOverrideService
* @module Hightail
* @submodule Hightail.Services
*
* @author justin.fiedler
* @since 0.0.1
*
* @copyright (c) 2014 Hightail Inc. All Rights Reserved
*/
'use strict';
angular.wilson.service('TranslationOverrideService', function() {
... |
/**
* Copyright (c) 2013-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.
*
* @flow
* @format
*/
'use strict';
const QueryBuilder = require('../query/QueryBuilder');
const RelayMetaRoute = require('../route/Re... |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... |
angular
.module('app')
.factory('notificationService', notificationService);
notificationService.$inject = ['$window', '$timeout', '$compile', '$rootScope', '$sce'];
function notificationService($window, $timeout, $compile, $rootScope, $sce) {
var elementBuffer = [];
var service = {
notify : notify,
... |
/*
* Given an array of integers, find if the array contains any duplicates.
* Your function should return true if any value appears at least twice in the array, and it should return false if every element is distinct.
*
* Tags:
* - Array
* - Hash Table
*/
/**
* @param {number[]} nums
* @return {boolean}
*/... |
const co = require('co');
const phantomjs = require('../index');
// Tests whether SendEvent function works.
//
// If working, the following output should be:
//
// 1. Positions of Button { height: 27, left: 10, right: ~98, top: 10, width: ~88 }
// 2. Clicked on body
// 3. Clicked on button
// 4. Clicked on button
//
/... |
var argscheck = require('cordova/argscheck'),
exec = require('cordova/exec');
var safesmsExport = {};
/*
* Methods
*/
safesmsExport.startWatch = function(filter, successCallback, failureCallback) {
cordova.exec( successCallback, failureCallback, 'SMS', 'startWatch', [ filter ] );
};
safesmsExport.stopWatch ... |
import { isPlainObject, isPlain } from '../util/is'
import { setDeep } from '../util/getset'
import { mergeCore } from '../util/merge'
export default function applyPatchFactory(patchers) {
return function applyPatch(target, patch) {
const mutations = []
const target_root = { '': target } // ... |
define(['core/core-modules/framework.form', 'core/core-modules/framework.table'], function (form, table) {
var options;
/** 查看详情按钮时间处理程序 */
var execute_action = function () {
if ($(this).attr('disabled')) {
return;
}
if ($(this).data('custom')) {
return;
}
var data = table.getSele... |
(function (angular, noty) {
"use strict";
angular.module('ClassesModule', ['myApp', 'ngRoute'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/classes', {
templateUrl: 'classes/show.html',
controller: 'ClassesController',
resolve: {
classSty... |
const svgNS = 'http://www.w3.org/2000/svg';
let locationHref = '';
let _useWebWorker = false;
const initialDefaultFrame = -999999;
const setWebWorker = (flag) => { _useWebWorker = !!flag; };
const getWebWorker = () => _useWebWorker;
const setLocationHref = (value) => { locationHref = value; };
const getL... |
'use strict';
const assert = require('assert');
const app = require('../../../src/app');
describe('remitos service', function() {
it('registered the remitos service', () => {
assert.ok(app.service('remitos'));
});
});
|
/*!
* Stylus - Import
* Copyright(c) 2010 LearnBoost <dev@learnboost.com>
* MIT Licensed
*/
/**
* Module dependencies.
*/
var Node = require('./node');
/**
* Initialize a new `Import` with the given `expr`.
*
* @param {Expression} expr
* @api public
*/
var Import = module.exports = function Import(expr,... |
'use strict';
var path = require('path');
var assert = require('yeoman-assert');
var helpers = require('yeoman-test');
describe('generator-wass:app', () => {
beforeAll(() => {
return helpers.run(path.join(__dirname, '../generators/app'))
.withPrompts({someAnswer: true});
});
it('creates files', () => ... |
#!/usr/bin/env node
const vows = require('vows'),
assert = require("assert"),
math = require("../math"); // require my math.js library
vows.describe('division').addBatch({
'div()' : {
topic: math.div(),
'should be NaN': function (topic) {
assert.ok(true, isNaN(topic));
}
},
'div(42... |
/*
Language: Haxe
Author: Christopher Kaster <ikasoki@gmail.com> (Based on the actionscript.js language file by Alexander Myadzel)
*/
function(hljs) {
var IDENT_RE = '[a-zA-Z_$][a-zA-Z0-9_$]*';
var IDENT_FUNC_RETURN_TYPE_RE = '([*]|[a-zA-Z_$][a-zA-Z0-9_$]*)';
return {
aliases: ['hx'],
keyword... |
/*
* RailsAdmin remote form @VERSION
*
* License
*
* http://www.railsadmin.org
*
* Depends:
* jquery.ui.core.js
* jquery.ui.widget.js
* jquery.ui.dialog.js
*/
(function($) {
$.widget("ra.remoteForm", {
dialog: null,
options: {
dialogClass: "",
height: 600,
width: 720
},
... |
module.exports = {
author : {
nickName: 'makishvili',
shortName: 'Вадим Макишвили',
firstName: 'Вадим',
middleName: 'Юрьевич',
lastName: 'Макишвили'
},
project : {
root: '/Users/makishvili/projects/storymill-export/',
import: '/Users/makishvili/Yandex.... |
import * as THREE from '../../../build/three.module.js';
import { RGBELoader } from '../../../examples/jsm/loaders/RGBELoader.js';
import { TGALoader } from '../../../examples/jsm/loaders/TGALoader.js';
import { UIElement, UISpan, UIDiv, UIRow, UIButton, UICheckbox, UIText, UINumber } from './ui.js';
import { MoveObj... |
'use strict';
import EventConfiguration from './eventConfiguration';
import Dispatcher from './dispatcher';
import Container from './container.react';
import Handler from './handler.react';
var r34k7 = {
'EventConfiguration': EventConfiguration,
'Dispatcher': Dispatcher,
'Conta... |
import './classes_add.tpl.jade';
import { toast, error } from '/imports/ui/helpers/toasts.js'
Template.classes_add.events({
"submit form"(event, template) {
const name = event.target.name.value.trim();
const color = event.target.color.value.trim();
const short = event.target.short.value.trim();
... |
define("Path",["JSYG"],function(JSYG) {
"use strict";
/**
* <strong>nécessite le module Path</strong><br/><br/>
* Chemins SVG
* @param arg optionnel, argument JSYG faisant référence � un chemin svg (balise <path>). Si non d�fni, un nouvel élément sera cr��.
* @returns {JSYG.Path}
*/
JSYG.Path = f... |
'use strict';
/**
* Module dependencies.
*/
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
/**
* Geos2 Schema
*/
var Geos2Schema = new Schema({
name: {
type: String,
default: '',
required: 'Please fill Geos2 name',
trim: true
},
created: {
type: Date,
default: Date.n... |
/**
* Created by yangyxu on 8/20/14.
*/
zn.define(function () {
return zn.Class({
statics: {
getInstance: function (inArgs, context) {
return new this(inArgs, context);
}
},
methods: {
init: {
auto: true,
... |
define([
"backbone"
], function(
Backbone
) {
return Backbone.UniqueModel(Backbone.Model.extend({
}), "Contributor");
});
|
'use strict';
import createReactClass from 'create-react-class';
const SomeMixin = {
componentDidMount() {
console.log('did mount');
},
};
export default createReactClass({
displayName: 'class-prune-react.input',
mixins: [SomeMixin],
render: function() {
return null;
},
});
|
const { declMatches, parseSelector } = require('../../machinery/ast')
const { isFile } = require('../../machinery/filename')
const allowedInReset = [
'width', 'height',
'max-width', 'max-height',
'margin', 'margin-top', 'margin-right', 'margin-bottom', 'margin-left',
]
const messages = {
'no class selectors':... |
(function(root, factory) {
if(typeof exports === 'object') {
module.exports = factory();
}
else if(typeof define === 'function' && define.amd) {
define('GMaps', [], factory);
}
root.GMaps = factory();
}(this, function() {
/*!
* GMaps.js v0.4.13
* http://hpneo.github.com/gmaps/
*
... |
( function ( mw ) {
QUnit.module( 'ext.pageTriage.actionQueue' );
QUnit.test( 'Testing the queue: synchronous and asynchronous methods', function ( assert ) {
var test = {},
pushToTest = function ( action, text, data ) {
test[ action ] = test[ action ] || [];
test[ action ].push( {
action: action,
... |
/*!
* dc 2.0.0-beta.18
* http://dc-js.github.io/dc.js/
* Copyright 2012-2015 Nick Zhu & the dc.js Developers
* https://github.com/dc-js/dc.js/blob/master/AUTHORS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... |
import Jasmine from 'jasmine';
console.log('Running specs in node..');
const jasmine = new Jasmine();
jasmine.loadConfigFile('tests/jasmine.conf.json');
jasmine.execute();
|
/**
* @copyright Lloyd Brookes <75pound@gmail.com>
*/
function copyrightedFunction () {}
|
'use strict';
var uuid = require('node-uuid');
function getRandomToken() {
return uuid.v4();
}
function findUser(User, username, callback) {
User.find({
usernameToLower: username.toLowerCase()
}, (err, users) => {
if (err) {
throw err;
}
callback(users[0]);
});
}
module.exports = functi... |
import Typography from 'typography';
export default new Typography({
baseFontSize: '18px',
headerFontFamily: ['Roboto Slab', 'Arial', 'sans-serif'],
headerWeight: 300,
bodyFontFamily: ['Roboto', 'Arial', 'sans-serif'],
});
|
'use strict';
/** @this */
function $IntervalProvider() {
this.$get = ['$rootScope', '$window', '$q', '$$q', '$browser',
function($rootScope, $window, $q, $$q, $browser) {
var intervals = {};
/**
* @ngdoc service
* @name $interval
*
* @description
* Angular's w... |
const ngtools = require('@ngtools/webpack');
const webpackMerge = require('webpack-merge');
const commonPartial = require('./webpack/webpack.common');
const clientPartial = require('./webpack/webpack.client');
const serverPartial = require('./webpack/webpack.server');
const prodPartial = require('./webpack/webpack.prod... |
import reducer from './reducer';
import Counter from './components/counter';
import * as constants from './constants';
export default {
constants,
Counter,
reducer,
};
|
'use strict';
const MySqlSource = require('sifttt/lib/beam/MySqlSource');
const h = require('highland');
let phrase = (prefix, values, separator) => {
let ret = '';
if (values) {
ret = prefix + ' ' + (
(Array.isArray(values))
? values.join(separator && ` ${separator} `)
: values
);... |
'use strict';
var baseAddr = Module.findBaseAddress('example');
console.log('software main executable baseAddr: ' + baseAddr);
var strncpy = resolveAddress('0xdf0');
var fuzzed_data;
var dst_addr;
var dst_len = 0;
Interceptor.attach(strncpy, {
onEnter: function (args) {
console.log('[+] Called strncp... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.