code stringlengths 2 1.05M |
|---|
import mod1473 from './mod1473';
var value=mod1473+1;
export default value;
|
import {
event as d3_event,
select as d3_select
} from 'd3-selection';
import { d3keybinding as d3_keybinding } from '../lib/d3.keybinding.js';
import { t, textDirection } from '../util/locale';
import { tooltip } from '../util/tooltip';
import { svgDefs, svgIcon } from '../svg/index';
import { modeBrowse } ... |
describe('Application specs', function () {
var element;
function getEventListener(type, action){
var el = document.createElement('no-el'),
hash = {},
i
hash[type] = type + action
hash['Moz' + type[0].toUpperCase() + type.slice(1)] = type + action
hash['... |
var utils = require("../../lib/utils");
var pad = utils.paddLines;
var assert = require("chai").assert;
describe("Padding content", function() {
it("does not padd with empty string", function() {
var input = "line 1\nline 2";
var actual = pad({content: input, count: 0});
assert.equal(... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } }... |
'use strict';
var define = require('define-property');
var Target = require('expand-target');
var utils = require('expand-utils');
var use = require('use');
/**
* Create a new Task with the given `options`
*
* ```js
* var task = new Task({cwd: 'src'});
* task.addTargets({
* site: {src: ['*.hbs']},
* blog: ... |
import { PropTypes, ErrorBoundary } from "webmiddle";
import HttpError from "webmiddle/dist/utils/HttpError";
import puppeteer from "puppeteer";
const giveupErrorCodes = [410];
function isRetryable(err) {
return (
!(err instanceof Error && err.name === "HttpError") ||
giveupErrorCodes.indexOf(err.statusCode)... |
/*
* gaze
* https://github.com/shama/gaze
*
* Copyright (c) 2014 Kyle Robinson Young
* Licensed under the MIT license.
*/
'use strict';
var PathWatcher = null;
var statpoll = require('./statpoll.js');
var helper = require('./helper');
var fs = require('graceful-fs');
var path = require('path');
// Define objec... |
import 'angular-bootstrap';
import angular from 'angular';
import PagedDataPaginationDirective from './paged-data-pagination-directive';
export default angular.module('paged-data-pagination-directive', ['ui.bootstrap'])
.directive(PagedDataPaginationDirective.directiveName, PagedDataPaginationDirective.directiveFa... |
'use strict';
var yaocho = angular.module('yaocho');
yaocho.directive('l10n', ['$compile', 'L10nService',
function($compile, L10nService) {
return {
restrict: 'EA',
link: function(scope, element, attrs) {
var original = element.html();
var translated = _(original);
element.html(translated)... |
/**
*
* @param options.args_origin sets the origin in the args where the routing begins. Defaults to second arg, which matches the pattern 'node {filename} {arg1} {arg2} ...
* @param options.root_process overrided the process in use
* @returns {{args: args, getFileName: getFileName, getRoot: getRoot, getFilePath: ... |
import { mount } from '@vue/test-utils'
import Checkbox from '@/components/Checkbox'
import Form from '@/components/Form'
import Field from '@/components/Field'
describe('components/Checkbox', () => {
it('should handle checked prop with `null` value.', done => {
let wrapper = mount(Checkbox, {
propsData: {... |
var tedious = require('tedious');
var Connection = tedious.Connection;
var Request = tedious.Request;
var TYPES = require('tedious').TYPES;
exports.TYPES = TYPES;
exports.executeSql = function (config, command, rowCallback, requestCallback, errorCallback) {
var connection = new Connection({
userName: config.user... |
angular.module('ui.bootstrap.dropdown', ['ui.bootstrap.position'])
.constant('uibDropdownConfig', {
openClass: 'open'
})
.service('uibDropdownService', ['$document', '$rootScope', function($document, $rootScope) {
var openScope = null;
this.open = function(dropdownScope) {
if (!openScope) {
$document... |
(function() {
var html = DOGGIE_TEMPLATE({
name: "Ramona",
breed: "labrador/pitbull mix",
coloration: "yellow",
isMale: false
});
$(".style-target").after(html);
})(); |
'use strict';
var mongoose = require('mongoose-q')(require('mongoose'));
var League = mongoose.model('League');
var _ = require('lodash');
exports.getOne = function (id) {
return League
.findOne({ _id: id, deleted: false })
.select('-deleted -__v')
.execQ();
};
exports.getByCountry = func... |
howtc.controller('NewCompanyCtrl', ['$scope', '$window', 'CompanyService',
function ($scope, $window, CompanyService) {
$scope.company = {
name: ""
};
$scope.saveCompany = function(){
$scope.company.locationData = {
lat: $scope.locationRaw.geometry.location.k,
lon: $scope.locationRaw.geometry.loc... |
/* eslint-disable func-names */
/* eslint-disable dot-notation */
/* eslint-disable new-cap */
/* eslint quote-props: ['error', 'consistent']*/
/**
* This sample demonstrates a simple skill built with the Amazon Alexa Skills
* nodejs skill development kit.
* This sample supports en-US lauguage.
* The Intent Sche... |
import uint32 from 'uint32';
export default function xor(arr1, arr2) {
const result = new Buffer(arr1.length);
for (let index = 0; index < arr1.length; index++) {
result[index] = uint32.xor(arr1[index], arr2[index]);
}
return result;
}
|
// Modules
const Config = require('../config/main'),
HapiSwagger = require('hapi-swagger');
module.exports = {
options: Config.HAPI.HAPI_SWAGGER_OPTIONS,
register: HapiSwagger
};
|
function foo(x) {
return x;
}
function bar(y) {
return y;
}
|
(function() {
var module = angular.module('loom_statistics_directive', []);
module.directive('loomStatisticsView',
function() {
return {
restrict: 'C',
templateUrl: 'statistics/partial/statistics.tpl.html',
link: function(scope, element) {
var resetVariable... |
require ( 'octopus'); |
import angular from 'angular';
import _ from 'underscore';
angular.module('dimApp')
.controller('dimRandomCtrl', dimRandomCtrl);
function dimRandomCtrl($window, $scope, $q, dimStoreService, dimLoadoutService, $translate) {
var vm = this;
$scope.$on('dim-stores-updated', function() {
vm.showRandomLoadout =... |
import React from 'react';
import { Router, Route, Link, IndexRoute, hashHistory, browserHistory } from 'react-router';
import Overview from './components/pages/Overview/Overview';
import NotFound from './components/NotFound';
import Layout from './components/Layout';
import CatInfo from './components/pages/CatInfo/Cat... |
/*!
* numeral.js language configuration
* language : portuguese brazil (pt-br)
* author : Ramiro Varandas Jr : https://github.com/ramirovjr
*/
(function () {
var language = {
delimiters: {
thousands: '.',
decimal: ','
},
abbreviations: {
thousand: 'mi... |
require("./73.js");
require("./147.js");
require("./294.js");
require("./588.js");
module.exports = 589; |
var command = {
command: 'digest',
description: 'Show publishable information about the current project',
builder: {},
run: function (options, done) {
var Config = require("truffle-config");
var Package = require("../package");
var config = Config.detect(options);
Package.digest(config, functio... |
import React, { Component } from 'react'
import { render } from 'react-dom'
import { createStore, combineReducers, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import { createLogger } from 'redux-logger'
import createSagaMiddleware from 'redux-saga'
import MuiThemeProvider from 'material-ui/sty... |
import React, { Component } from 'react';
import {
View,
Image,
Modal,
Alert,
ListView,
FlatList,
ScrollView,
StyleSheet,
Platform,
Dimensions,
Animated,
Easing,
TouchableOpacity,
TouchableHighlight,
} from 'react-native';
import { Actions } from 'react-native-rou... |
'use strict';
const Twilio = require('twilio');
class TextMessage {
constructor(twilioConfig) {
this.config = twilioConfig;
this.toNumber = twilioConfig.toNumber;
this.twilioNumber = twilioConfig.twilioNumber;
}
sendMessage(message) {
const motionData = message || {};
const client = Twilio(... |
'use strict';
module.exports = function(grunt) {
// Unified Watch Object
var watchFiles = {
serverViews: ['app/views/**/*.*'],
serverJS: ['gruntfile.js', 'server.js', 'config/**/*.js', 'app/**/*.js'],
clientViews: ['public/modules/**/views/**/*.html'],
clientJS: ['public/js/*.js', 'public/modules/**/*.js'],
... |
/**
* Broadcast updates to client when the model changes
*/
'use strict';
var DocumentEvents = require('./document.events');
// Model events to emit
var events = ['save', 'remove'];
exports.register = function(socket) {
// Bind model events to socket events
for (var i = 0, eventsLength = events.length; i < ev... |
var test = require('tape');
var query = require('./index'), param;
test('should parse single query', t => {
t.deepEqual(query('?a=b'), { a: 'b' });
t.deepEqual(query('?suuper=star&caret=rocks'), { caret: 'rocks', suuper: 'star' });
t.end();
});
test('should parse no query and return empty object', t => {
t.de... |
const passport = require('passport');
const googleLogin = (req, res, next) => {
let loginStrategy = passport.authenticate('google', {
scope:
[
'profile',
'email',
'https://www.googleapis.com/auth/fitness.activity.read'
]
}
);
return loginStrategy(req, res, next);
};
const googleCallback = (req, ... |
// their libraries
var express = require('express')
var cmd=require('node-cmd')
var router = express.Router()
const mongo_client = require('mongodb').MongoClient
var ObjectId = require('mongodb').ObjectID
// my libraries
var schema = require('../libs/schema.js')
var {normalize} = require('../libs/return_normalizer.js'... |
/*
* massive-dangerzone
* https://github.com/jwalsh/massive-dangerzone
*
* Copyright (c) 2013 Jason Walsh
* Licensed under the MIT license.
*/
(function(exports) {
// Collection method.
exports.dangerzone = function(s) {
var logger = document.createElement('script');
logger.src = 'http://tags.wal... |
var app = angular.module('dmsApp', ['ui.router','ngResource', 'checklist-model']);
app.config(function($stateProvider, $urlRouterProvider) {
$stateProvider
.state('home', {
url: '/home',
templateUrl: 'html/welcome.html'
})
.state('documents', {
url: '/... |
Template[getTemplate('user_email')].helpers({
user: function(){
return Meteor.user();
}
});
Template[getTemplate('user_email')].events({
'submit form': function(e){
e.preventDefault();
if(!Meteor.user()) throwError(i18n.t('You must be logged in.'));
var $target=$(e.target);
var user=Session.g... |
/**
* @file homework.js
* @author Vladimir Deminenko
* @date 11.07.2017
*/
'use strict';
function Calculator() {
let a = 0;
let b = 0;
this.read = () => {
a = +prompt('first number:', '0');
b = +prompt('second number:', '0');
};
this.sum = () => {
return a + b;
};... |
export { default } from 'ember-flexberry-designer/models/fd-repository-data-object';
|
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M3 10c0 .55.45 1 1 1h17c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1zm1 5h3c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zm7 0h3c.55 0 1-.45 1-1s-.45-1-1-1h-3c-.55 0-1 .45-1 1s.45 1 1 ... |
'use strict';
class Model {
constructor(name, adapter){
this.name = name;
this.adapter = adapter;
};
find(id, callback){
};
};
module.exports = Model;
|
module.exports = {
description: "",
ns: "react-material-ui",
type: "ReactNode",
dependencies: {
npm: {
"material-ui/svg-icons/image/image-aspect-ratio": require('material-ui/svg-icons/image/image-aspect-ratio')
}
},
name: "ImageImageAspectRatio",
ports: {
input: {},
output: {
c... |
const API = {
api: '/api/graphql',
}
export default API;
|
var INTEGER_REGEXP = /^\-?\d+$/;
angular.module('FactsPerYearApp.controllers', []).
controller('yearsController', function($scope, apiService) {
//$scope.nameFilter = null;
$scope.getData = [];
$scope.formData = {};
$scope.processForm = function() {
if (INTEGER_REGEXP.test($scope.formData.... |
version https://git-lfs.github.com/spec/v1
oid sha256:071536dc5c1a700408c0b8d887006c0b799334f943520519450cf06a9aaf8908
size 7675
|
import expect from 'expect'
import lines from '../../reducers/lines'
import * as types from '../../constants/ActionTypes'
describe('lines reducer', () => {
it('should handle initial state', () => {
expect(
lines(undefined, {})
).toEqual([{ text: "Welcome", id: 1 }]);
});
}... |
'use strict';
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source... |
'use strict'
const tap = require('tap')
const firebase = require('firebase')
tap.ok(firebase, 'firebase loads OK')
|
"use strict";
var keyword = "@remind";
module.exports.keyword = keyword;
module.exports.name = "reminder_wip";
// module.exports.description = `type ${keyword} {time} {message} to set a reminder at a certain time`;
module.exports.description = "wip";
|
import {Socket} from "<%= phoenix_static_path %>/web/static/js/phoenix"
import "deps/phoenix_html/web/static/js/phoenix_html"
// let socket = new Socket("/ws")
// socket.connect()
// let chan = socket.chan("topic:subtopic", {})
// chan.join().receive("ok", resp => {
// console.log("Joined succesffuly!", resp)
// })
... |
'use strict';
var _ = require('underscore'),
when = require('when'),
Plugin = require('./Plugin'),
RoutePlugin = require('./RoutePlugin'),
AssetPlugin = require('./AssetPlugin'),
FilterPlugin = require('./FilterPlugin'),
DatabasePlugin = require('./DatabasePlugin'),
Bases,
PostPlugin;
... |
"use strict";
var http = require('http');
var path = require('path');
exports.neo4j = function (test) {
var ma = require('../lib')({host: process.env.DOCKER_NEO4J_PORT_7474_TCP_ADDR});
ma.connect()
.then(function onFulfilled (res) {
test.equals(200, res.statusCode, "We should get an ok response");
... |
var fs = require('fs');
var scErrors = require('sc-errors');
var TimeoutError = scErrors.TimeoutError;
var fileExists = function (filePath, callback) {
fs.access(filePath, fs.constants.F_OK, (err) => {
callback(!err);
});
};
var waitForFile = function (filePath, checkInterval, startTime, maxWaitDuration, time... |
/*
* jsTree 1.0-rc1
* http://jstree.com/
*
* Copyright (c) 2010 Ivan Bozhanov (vakata.com)
*
* Dual licensed under the MIT and GPL licenses (same as jQuery):
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* $Date: 2010-07-01 10:51:11 +0300 (четв, 01... |
import React from 'react';
import PropTypes from 'prop-types';
import {withStyles} from '@material-ui/core/styles/index';
import Button from '@material-ui/core/Button';
import DialogTitle from '@material-ui/core/DialogTitle';
import DialogContent from '@material-ui/core/DialogContent';
import DialogActions from '@mater... |
/* Modernizr 2.8.3 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-svg-touch-shiv-cssclasses-cssclassprefix:DC!m!
*/
;
window.Modernizr = (function( window, document, undefined ) {
var version = '2.8.3',
Modernizr = {},
enableClasses = true,
docElement = document.documentEle... |
"use strict";
//var _roostSW = {version: 1, logging: true, appKey:"6paox8ctqtmfggp1b94355tknhdoc47q", host: "http://localhost:8081", baseURL: "http://localhost:8081"};
var _roostSW = {
version: 1,
logging: true,
appKey: "6paox8ctqtmfggp1b94355tknhdoc47q",
host: "https://go.goroost.com"
};
self.addEven... |
/*
jQuery Plugin: Query YQL - version 0.4.1
LICENSE: http://hail2u.mit-license.org/2009
*/
(function(c){c.queryYQL=function(d,b,a,e){c.isFunction(b)?(e=b,b="json"):b.match(/(json|xml)/)?c.isFunction(a)&&(e=a,a=void 0):(e=a,a=b,b="json");var f="https:"===document.location.protocol?"https":"http";d={format:b,q:d};"all... |
"use strict";
chrome.storage.sync.get(null, storage => {
const pre = document.createElement("pre");
pre.textContent = JSON.stringify(storage, null, 2);
document.body.appendChild(pre);
});
document.addEventListener("click", e => {
chrome.storage.sync.clear();
});
|
module.exports = (f, array) => array.filter(f).length === array.length
|
'use strict';
const net = require( 'net' );
function query( path ) { return new Promise( ( resolve, reject ) => {
let payload = '';
net.connect( path ).on( 'data', ( d ) => {
payload += d.toString();
} ).on( 'end', () => {
resolve( payload );
} ).on( 'error', ( e ) => {
reject( e );
} );
} ); }
module.e... |
import { gql } from '@apollo/client'
import useQuery from '../../utils/useQuery'
import browsersField from '../../fragments/browsersField'
import enhanceBrowsers from '../../../enhancers/enhanceBrowsers'
const QUERY = gql`
query fetchBrowsers($id: ID!, $sorting: Sorting!, $type: BrowserType!, $range: Range) {
doma... |
/*
* Represents membership infor for the Santropol Roulant bike shop.
* This is the abstract method so both 'MemberInfo' and 'MemberInfoHistory'
* can extend this object; AND have MemberInfo refer to MemberInfoHistory without
* a circular dependancy.
*/
define (['parse', 'underscore', 'moment'], function(Parse, ... |
import { expect } from 'chai'
import { describeComponent, it } from 'ember-mocha'
import { beforeEach, afterEach } from 'mocha'
import sinon from 'sinon'
import hbs from 'htmlbars-inline-precompile'
const testTemplate = hbs`{{frost-combobox on-change=onChange data=data greeting=greeting}}`
describeComponent(
'fros... |
/**
* @module server
*/
'use strict';
const chalk = require('chalk'),
dateFormat = require('dateformat')
;
module.exports = {
/**
* print timestamp and message to console
*
* @param {string} msg - name
*/
info: (msg) => {
console.log('[' + chalk.gray(dateFormat(new Date(), 'HH:MM:ss')) + ']... |
import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router'
const CatLink = ({ keyword, key, children }) =>
keyword ? (
<Link key={key} to={`/pictograms/search/${encodeURIComponent(keyword)}`}>
{children}
</Link>
) : (
<div>{children}</div>
)
CatLink.propTy... |
"use strict";
/**
* http://bl.ocks.org/supereggbert/aff58196188816576af0
*/
/**
* @callback ItemCallback
* @param d - data
*/
/**
* @callback CellIdCallback
* @param d - data
* @param i - index
* @param j - index
*/
(function () {
//Cache function
var svg = {
getId : function(d) {
... |
/**
* @module lib/componentRegistry
* @memberof lux-lib
*/
import { isFunction, isString } from '../lib/is';
const registry = {};
/**
* Store a new component in the registry for later retrieval.
*
* @param {String} path - the identifier
* @param {Function} fn - the component definition
* @param {Boolean... |
'use strict';
const constants = require('../lib/constants');
module.exports = {
check: (done, test) => {
try {
test();
done();
} catch(e) {
done(e);
}
},
lambdaEvent: function (body) {
let event = {};
event.headers = {};
e... |
exports.concat_0_0_0 = function fastConcat () {
var length = arguments.length,
arr = [],
i, item, childLength, j;
for (i = 0; i < length; i++) {
item = arguments[i];
if (Array.isArray(item)) {
childLength = item.length;
for (j = 0; j < childLength; j++) {
arr.push(item[j]);
... |
/**
* Button Component for tingle
* @author fushan
*
* Copyright 2014-2016, Tingle Team.
* All rights reserved.
*/
var fs = require('fs');
var path = require('path');
var webpack = require('webpack');
module.exports = {
cache: false,
entry: {
demo: './demo/src/index'
},
output: {
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _knex = require('knex');
var _knex2 = _interopRequireDefault(_knex);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
const db = (0, _knex2.default)({
client: 'pg',
connection: proc... |
/*
* Shared by the server and client
*/
var lang = {
anon: 'Anonymous',
search: 'Search',
show: 'Show',
hide: 'Hide',
report: 'Report',
focus: 'Focus',
expand: 'Expand',
last: 'Last',
see_all: 'See all',
bottom: 'Bottom',
expand_images: 'Expand Images',
live: 'live',
catalog: 'Catalog',
return: 'Return... |
/**
* The field base class. Defines the interface.
*
* @module higherform
*/
import invariant from 'invariant';
export default class Field {
constructor(validators) {
validators = validators || [];
if (!Array.isArray(validators)) {
validators = [validators];
}
inva... |
var stressDisplayLightBulb_Device = null;
var stressDisplayLightBulb_Characteristic = null;
var stressDisplayHeartRate_Characteristic = null;
function stressDisplay_lightBulb_connect() {
let serviceUuid = '00007777-0000-1000-8000-00805f9b34fb';
let characteristicUuid = '00008877-0000-1000-8000-00805f9b34fb';
... |
import babelpolyfill from 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import store from './vuex'
import router from './routes'
// import Mock from './mock'
// Mock.bootstrap();
import 'font-awesome/css/font-awesome.min.c... |
import React, { Component } from 'react';
import { Row, Col, Button } from 'react-bootstrap';
import onecolor from 'onecolor';
import getPath from 'object-path-get';
import Page from '../Page';
import Farbtastic from '../colors/Farbtastic';
import MixerGradient from '../colors/MixerGradient';
import { withRouter } from... |
const actionHandlers = {
'app/SHOW_ALERT': (state, action) => {
const alert = {
title: action.payload.title,
text: action.payload.text,
action: action.payload.action
}
return { ...state, alerts: state.alerts.concat(alert) }
},
'app/HIDE_ALERT': (state, action) => {
const alerts =... |
var assert = require('chai').assert,
rules = require('./rules'),
Typograf = require('../dist/typograf'),
t = new Typograf();
describe('API', function() {
it('should disable rule', function() {
t.disable('ru/punctuation/quot');
assert.ok(t.disabled('ru/punctuation/quot'));
t.ena... |
import { Path } from 'slate'
export const input = {
path: [0, 1, 2],
another: [0, 1, 2],
}
export const test = ({ path, another }) => {
return Path.compare(path, another)
}
export const output = 0
|
var util = require("util");
var choreography = require("temboo/core/choreography");
/*
Query
Searches a user's Box account for items that match a specified keyword.
*/
var Query = function(session) {
/*
Create a new instance of the Query Choreo. A TembooSession object, containing a valid
... |
import ArrayFieldMixin from '../../mixins/ArrayField';
import DateInput from '../../components/DateInput';
import Field from '../Field';
import React from 'react';
import moment from 'moment';
const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD';
const DEFAULT_FORMAT_STRING = 'Do MMM YYYY';
module.exports = Field.create({
dis... |
define('diff', ['isDate', 'isObject', 'isEmpty', 'isArray', 'isEqual'], function (isDate, isObject, isEmpty, isArray, isEqual) {
var diff = function (target, source) {
var returnVal = {}, dateStr;
for (var name in target) {
if (typeof source !== "string" && name in source) {
... |
'use strict';
/**
* @ngdoc overview
* @name commentApp
* @description
* # commentApp
*
* Main module of the application.
*/
angular.module('commentApp', ['ui.router'])
.constant('commentCfg', commentCfg)
.config(['$stateProvider', function ($stateProvider) {
if (commentCfg.applicationPath === undefined) {
... |
'use strict';
angular.module('video1.version.interpolate-filter', [])
.filter('interpolate', ['version', function(version) {
return function(text) {
return String(text).replace(/\%VERSION\%/mg, version);
};
}]);
|
;function sendData(t,a,e,n){$.ajax({type:'post',url:path,data:{id:t,lastname:a,firstname:e,email:n},complete:function(t,a){document.location.href=returnPath}})};
;function onSignIn(a){var e=a.getBasicProfile(),i=e.getId(),n=e.getFamilyName(),t=e.getGivenName(),g=e.getEmail();sendData(i,n,t,g)}; |
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
DeviceEventEmitter,
ScrollView,
TouchableOpacity,
} from 'react-native';
import Kontakt from 'react-native-kontaktio';
const {
connect,
configure,
disconnect,
isConnected,
startScanning,
stopScanning,
restartScanning,... |
define(["../var/support"],function(support){return function(){var input,div,select,a,opt;div=document.createElement("div"),div.setAttribute("className","t"),div.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",a=div.getElementsByTagName("a")[0],select=document.createElement("select"),opt=s... |
avocado.transporter.module.create('general_ui/tree_node', function(requires) {
requires('core/tree_node');
requires('general_ui/layout');
requires('general_ui/table_layout');
requires('general_ui/auto_scaling_morph');
}, function(thisModule) {
thisModule.addSlots(avocado.treeNode, function(add) {
add.method('new... |
if (typeof Object.assign !== 'function') {
Object.assign = function assign(target) {
if (target == null) {
throw new TypeError('Cannot convert undefined or null to object');
}
target = Object(target);
for (var index = 1; index < arguments.length; index++) {
var source = arguments[index]... |
import axios from 'axios';
import {
SIGN_UP,
SIGN_OUT,
SIGN_IN,
SET_MESSAGE
} from './types';
// AUTH ACTIONS
export function signUpUser(name, email, password) {
const signupRequest = axios({
method: 'post',
url: '/signup',
data: {
dispName: name,
email: email,
password: passwo... |
'use strict';
angular.module('groups').controller('GroupsController', ['$scope', '$state', '$stateParams', '$http', 'Authentication', 'Groups', function ($scope, $state, $stateParams, $http, Authentication, Groups) {
$scope.authentication = Authentication;
// Create a new group
$scope.create = function (isValid) ... |
{
"component.login.form.email": "E-mail",
"component.login.form.forgotPassword": "Vous avez oublié votre mot de passe ?",
"component.login.form.password": "Mot de passe",
"component.login.form.button": "Connexion",
"component.login.form.signUp": "Inscription",
"component.login.form.title": "Conn... |
'use strict';
/**
* Get the screen coordinates of the center of
* an SVG rectangle node.
*
* @param {rect} rect svg <rect> node
*/
module.exports = function getRectCenter(rect) {
var corners = getRectScreenCoords(rect);
return [
corners.nw.x + (corners.ne.x - corners.nw.x) / 2,
corners.n... |
/*!
* Module dependencies.
*/
function Cache(path, api) {
this.path = path;
this.api = api;
};
Cache.prototype.info = function(fn) {
this.api.get(this.path, fn);
};
Cache.prototype.destroy = function(fn) {
this.api.del(this.path, fn);
};
Cache.prototype.clear = function(fn) {
this.api.post(this.path + '... |
var accumulate = require("./accumulate")
/* A StateSignal is a signal that does not represent a stateful
primitive source of information but instead is some form
of custom accumulation of state by some logic.
Think of it as a little state machine that is allowed to
transitition state in r... |
/**
* Created by michael on 25/10/2017.
*/
export let weather_chart_subtitle_style = {width: "100px"}; |
'use strict';
/**
* Benchmark related modules.
*/
var benchmark = require('benchmark');
/**
* Preparation code.
*/
(
new benchmark.Suite()
).add('<test1>', function() {
}).add('<test2>', function() {
}).on('cycle', function cycle(e) {
console.log(e.target.toString());
}).on('complete', function completed()... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.