code stringlengths 2 1.05M |
|---|
console.log("loaded");
var start1 = function() {
document.getElementById('spotify1').style.display = "block";
document.getElementById('whatis').style.display = "none"
}
var start2 = function() {
document.getElementById('spotify1').style.display = "none";
document.getElementById('googlemaps').style.display = "b... |
import React from 'react';
import {Link} from 'react-router';
const DeliveryOption = React.createClass({
render() {
const additionalCost = this.props.option.additional_price;
return (
<option value={this.props.option.id} className="deoptionvery-option">
{this.props.option.name }{additionalCost > 0 ? ' | + ... |
import { applyMiddleware, compose, createStore } from 'redux'
import thunk from 'redux-thunk'
import reducer from './reducers'
import audioDecode from '../middlewares/audioDecode'
export default (initialState = {}) => {
// ======================================================
// Middleware Configuration
// ====... |
let Connection = require('./Connection');
let Request = require('tedious').Request;
let Q = require('q');
let _ = require('lodash');
let TriggerUtil = require('./TriggerUtil');
function createQuery(dataplan) {
let query = '';
dataplan.reverse().forEach(table => {
if (_.contains(TriggerUtil.getTablesWithTrigger... |
// @flow
import React from 'react'
import ImportShapefile from '../import-shapefile'
import {mockWithProvider} from '../../utils/mock-data'
describe('Component > ImportShapefile', () => {
it('renders correctly', () => {
const props = {
close: jest.fn(),
createModifications: jest.fn(),
variants... |
/**
* @jsx React.DOM
*/
/* not used but thats how you can use touch events
* */
//React.initializeTouchEvents(true);
/* not used but thats how you can use animation and other transition goodies
* */
//var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;
/**
* we will use yes for true
* we will use no... |
// ----------------------------------------------------------
// ----- Site
// ----------------------------------------------------------
class C_Site {
constructor(json) {
this.id = -1;
this.Name = "";
this.Slug = "";
this.Street = "";
this.City = "";
th... |
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine'],
files: [
'node_modules/jquery/dist/jquery.js',
'node_modules/bootstrap/dist/js/bootstrap.js',
'node_modules/angular/angular.js',
'node_modules/angular-mocks/angular-mocks.js',
'node_mo... |
import React from 'react'
class GroupList extends React.Component{
constructor(props, context) {
super(props, context);
}
render () {
let groupList = this.props.groupMembers.map((member) => (
<li key={member.name} className="list-group-item">{member.name}</li>
));
return (
<ul className="list-group ... |
/*global describe, beforeEach, it*/
'use strict';
var path = require('path');
var helpers = require('yeoman-generator').test;
describe('ean-crud generator', function () {
beforeEach(function (done) {
helpers.testDirectory(path.join(__dirname, 'temp'), function (err) {
if (err) {
... |
"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... |
/**
* ===================================================================
* main js
*
* -------------------------------------------------------------------
*/
(function($) {
"use strict";
/*---------------------------------------------------- */
/* Preloader
----------------------------------------------... |
import React from 'react';
import PropTypes from 'prop-types';
const Alert = props => (
<div className="react-caps__alert">
<p className="react-caps__alert__text">{props.text}</p>
<button className="react-caps__alert__ok" onClick={e => props.onOkClick(e)}>
Ok
</button>
<style jsx>
{`
... |
var m = require('mithril');
var chessground = require('chessground');
var classSet = chessground.util.classSet;
var partial = chessground.util.partial;
var game = require('game').game;
var status = require('game').status;
var opposite = chessground.util.opposite;
var socket = require('../socket');
var clockView = requi... |
ZRF = {
JUMP: 0,
IF: 1,
FORK: 2,
FUNCTION: 3,
IN_ZONE: 4,
FLAG: 5,
SET_FLAG: 6,
POS_FLAG: 7,
SET_POS_FLAG: 8,
ATTR: 9,
SET_ATTR: 10,
PROMOTE: 11,
MODE: 12,
ON_BO... |
module.exports = {
"commands": [
{
"name": "set",
"params": [
"$abc",
"This_is_abc"
]
}
],
"props": {
"$abc": "This_is_abc"
},
"domains": {
"api.example.com": {
"domain": "api.example.com"... |
import configureMockStore from 'redux-mock-store';
import thunk from 'redux-thunk';
import expect from 'expect';
import React from 'react';
import { shallow } from 'enzyme';
import DocumentCard from '../../components/document/DocumentCard';
const middlewares = [thunk];
const mockStore = configureMockStore(middlewares)... |
var data = require('../models/dataman');
exports.create = function(req,res){
res.render('tree/create');
};
exports.index = function(req,res){
data.read(function(err, trees) {
res.render('tree', {trees: trees});
});
};
exports.createTree = function(req,res){
data.create(req.body, function(err)... |
'use strict';
/**
*
*/
var navlist = angular.module('mainNavList', []);
navlist.controller('mainNavCtrl', ['$scope', '$location', function ($scope, $location) {
$scope.navClass = function (page) {
var currentRoute = $location.path().substring(1) || 'data-replication';
if (currentRoute.match('dat... |
webpackJsonp(["app/js/pay/show-mobile-modal/index"],[function(e,n){"use strict";var i=$("#modal"),a=$("#unbind-form"),o=$("#unbind-btn"),s=a.validate({rules:{mobile:{required:!0,phone:!0}}});o.click(function(){if(s.form()){o.button("loading"),i.modal("hide");var e=$("input[name='payAgreementId']").val();$.post(a.attr("... |
import React from 'react';
import { render } from 'react-dom';
import Demo from './demo';
render(
(
<Demo />
),
document.getElementById('root'),
);
|
import React from 'react';
import { mount } from 'enzyme';
import Card from '../src/Card';
describe('<Card>', () => {
it('should output a div', () => {
mount(<Card>Card</Card>).assertSingle('div');
});
it('should have additional classes', () => {
mount(<Card className="custom-class">Card</Card>).assert... |
describe('api', () => {
describe ('middleware', () => {
describe ('players', () => {
it('TODO', () => {
})
})
})
})
|
// TODO: make singleton instance for cache
|
'use strict';
(function() {
// Yarn descriptions Controller Spec
describe('Yarn descriptions Controller Tests', function() {
// Initialize global variables
var YarnDescriptionsController,
scope,
$httpBackend,
$stateParams,
$location;
// The $resource service augments the response object with methods f... |
import {
divideSync,
meanSync,
subtractSync,
stdSync
} from '../utils/linearAlgebra'
export default (X) => {
const mu = meanSync(X)
const sigma = stdSync(X)
const normX = divideSync(subtractSync(X, mu), sigma)
return [normX, mu, sigma]
}
|
'use strict';
const test = require('tape').test
var dgram = require('dgram')
const persistents = require('../')
const provider = require('./util/get-provider')('UDPWRAP')
test('\nudpwrap: dgram.createSocket', function (t) {
const sock = dgram.createSocket('udp4')
const res = persistents.collect()[provider]
t.eq... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S12.10_A1.3_T1;
* @section: 12.10;
* @assertion: The with statement adds a computed object to the front of the
* scope chain of the current execution context;
* ... |
version https://git-lfs.github.com/spec/v1
oid sha256:f09aa2eb775d6aeb124d3291cc63834c175eaed66927f5c0fffcbafdd2b8d2a7
size 6674
|
'use strict';
angular.module('myApp.login', ['ngRoute'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider.when('/login', {
templateUrl: 'login/login.html',
controller: 'LoginCtrl'
});
}])
/**
* @ngdoc object
* @name myApp.login:LoginCt... |
var loggedUser = checkCookie();
if(loggedUser.userRole != 'DEV' && loggedUser.userRole != 'super'){
redirectToPage(loggedUser.userRole);
}
$('#logged-id').html(loggedUser.userName);
// these three objects are used to store requested data from server so that the browser doesn't have to request the same page.
// init:... |
System.register(["angular2/core"],function(e){var t,n,o=this&&this.__decorate||function(e,t,n,o){var r,c=arguments.length,f=3>c?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(f... |
/**
* @projectDescription SuiteScript JavaScript library summary.
*
* Note that there are some restrictions on API usage. Also note that the only 2 objects that can be
* contructed are nlobjSearchFilter and nlobjSearchColumn. All other objects can only be created via
* top-level function or method calls.
*
* The @gove... |
var terrace = require('../'),
crel = require('crel');
var styles = crel('style');
styles.innerHTML = [
'html{font-size:18px;font-family:Arial;}',
'footer{position:fixed;bottom:0;left:0;right:0;height:30px; background:rgba(0,0,0,0.5);border:solid 1px red;}',
'nav{display: none; position:fixed;bottom:0;t... |
'use strict';
var assert = require('assert');
var controller = require('./../component/controller');
describe('Controller', function() {
var ctrl;
beforeEach(function() {
ctrl = controller();
});
afterEach(function() {
ctrl = null;
});
it('can add', function() {
ass... |
/**
* 后期再提供解析当前数据库结构,根据sql语句反解析
*/
var Vue = require('lib/vue');
module.exports = Vue.extend({
template: __inline('main.html'),
data: function() {
return {
stepItems: [{
target: '#tab1',
title: '基础配置'
}, {
target: '#tab2',
... |
<r-stylesheet href="css/screen.css"></r-stylesheet>
<r-stylesheet href="css/retool.css"></r-stylesheet>
<div class="app-content">
<h1>Server Default</h1>
<r-body></r-body>
</div>
==
class Application extends Template {
btnHello_onclick(){
var msg = Controllers.Hello.sayHello("Retool Developer");
alert(msg... |
var Slider = (function () {
var $container = $('#ps-container'),
// the items (description elements for the slides/products)
$items = $container.children('div.ps-slides'),
itemsCount = $items.length,
$slidewrapper = $container.children('div.ps-slidewrapper'),
// the... |
$(document).ready(function()
{
$(".inputmask").maskMoney({prefix:'', allowNegative: false, thousands:',', affixesStay: false, precision:0});
$(".inputmask").change(function(){
var records = {
};
var ID = $(this).data('id');
records["nilai"] = $(this).val();
$.post(base_url + "/panggarankegiatan/upda... |
import App from './App';
import './App.css';
export default App; |
Ext.define("JS.numerojournal.AdvancedSearch", {
extend: "Xfr.Component",
requires: [],
config: {
slimscroll:false
},
initialize: function () {
console.log("initializing advanced search");
var me = this;
me.on({
afterrendertpl: {
scope: me... |
var gulp = require('gulp');
var watchify = require('watchify');
var browserify = require('browserify');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var gutil = require('gulp-util');
var sourcemaps = require('gulp-sourcemaps');
var assign = require('lodash.assign');
var babelify = ... |
import {PolymerElement, html} from "@polymer/polymer"
import template from "./app-search-result.html"
export default class AppSearchResult extends PolymerElement {
static get template() {
return html([template]);
}
static get properties() {
return {
item : {
type : Object,
value :... |
/**
* Created by DubenskiyAA on 29.07.2016.
*/
"use strict";
angular.module('asPkpApp.myResizer.directive', [])
.directive("myResizer", function ($window, $document, $log, $timeout) {
function linker($scope, $element, $attr) {
var timeoutId;
// вверх-вниз
... |
goog.provide('gmfapp.objectediting');
goog.require('gmf.Themes');
goog.require('gmf.TreeManager');
/** @suppress {extraRequire} */
goog.require('gmf.layertreeComponent');
/** @suppress {extraRequire} */
goog.require('gmf.mapDirective');
/** @suppress {extraRequire} */
goog.require('gmf.objecteditingComponent');
goog.r... |
// Copyright (C) 2012 Orange
//
// 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, publish, distri... |
Template.rentalProductsSettings.helpers({
packageData: function () {
return ReactionCore.Collections.Packages.findOne({
name: 'reaction-rental-products',
shopId: ReactionCore.getShopId()
});
}
});
AutoForm.hooks({
'rental-products-update-form': {
onSuccess: function (operation, result, te... |
exports.renderer = function(input, out) {
out.write('[imported-foo] Name: ' + input.name);
}; |
define([], function()
{
var MapManager = function()
{
}
MapManager.extend = bin.extend;
var Class = MapManager.prototype;
Class.init = function()
{
this.require(function(err)
{
if(err)
{
console.log("Initialize map fail");
}
else
{
console.log("Initialize map succeed");
}
});... |
const db = require('./knex');
const getHappyHoursByLocation = (req, res) => {
const locationId = parseInt(req.params.id, 10);
db('happy_hours')
.where('location_id', locationId)
.select()
.then(happyhours => res.status(200).json({ data: happyhours }))
.catch(error => res.status(500).json({ error }... |
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
var helpers = require('./helpers');
const UglifyWebpack = webpack.optimize.UglifyJsPlugin;
module.exports = {
entry: {
'app': './src/main.ts'
},
resolve: ... |
frappe.email_alert = {
setup_fieldname_select: function(frm) {
// get the doctype to update fields
if(!frm.doc.document_type) {
return;
}
frappe.model.with_doctype(frm.doc.document_type, function() {
var get_select_options = function(df) {
return {value: df.fieldname, label: df.fieldname + " (" + __... |
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(d... |
define('ace/mode/gherkin-sr_cyrl', function(require, exports, module) {
var oop = require("../lib/oop");
var TextMode = require("ace/mode/text").Mode;
var Tokenizer = require("ace/tokenizer").Tokenizer;
var MatchingBraceOutdent = require("ace/mode/matching_brace_outdent").MatchingBraceOutdent;
var Range = require("ace... |
'use strict';
var assert = require('assert')
, shimmer = require('shimmer')
, util = require('util')
, Sequelize = require('sequelize')
, errors = require('./errors')
, paranoiaTypes = [
Sequelize.QueryTypes.SELECT,
//Sequelize.QueryTypes.INSERT,
Sequelize.QueryTypes.UPDATE,
Sequelize... |
var through2 = require('through2');
var gutil = require('gulp-util');
var PluginError = gutil.PluginError;
var path = require('path');
var fs = require("fs");
var request = require('request');
var ncp = require('ncp').ncp;
ncp.limit = 16;
module.exports = function () {
function transform (file, enc, next) {
... |
$ = require("jquery");
_ = require("underscore");
WT = {
path: document.location.pathname.split("/").pop(),
projectPath: "https://en.wikipedia.org",
api: function(endpoint, params, noPath) {
if(typeof params === "object") {
params = _.extend(params, { norecord: true });
} else {
params = (pa... |
// javascript code used with Epic Games HTML5 projects
//
// much of this is for UE4 development purposes.
//
// to create a custom JS file for your project:
// - make a copy of this file - or make one from scratch
// - and put it in: "your project folder"/Build/HTML/GameX.js.template
// ==========================... |
/* @flow */
import * as Decoder from "../"
import * as Result from "result.flow"
import test from "blue-tape"
import testDecode from "./Decoder/Decoder"
test("Decoder.index", async test => {
test.deepEqual(Decoder.index(0, Decoder.Integer), {
type: "Index",
index: 0,
member: Decoder.Integer
})
test... |
// @flow
import path from 'path';
import chalk from 'chalk';
import npmRunPath from 'npm-run-path';
import supportsColor from 'supports-color';
import type { ModuleGraphNode } from 'mor-core';
import type { ProcessingError } from './types';
require('draftlog').into(console, supportsColor);
// $FlowIgnore
const logger... |
import React from 'react'
import PropTypes from 'prop-types'
const Box = ({children, title, padded, color}) => (
<div className='wrapper'>
{title && <h3 className={`header ${color}`}>{title}</h3>}
<div className={padded ? 'padded' : ''}>
{children}
</div>
<style jsx>{`
@import 'colors';
... |
#!/usr/bin/env node
var util = require('util'),
http = require('http'),
fs = require('fs'),
url = require('url'),
events = require('events');
var DEFAULT_PORT = 8000;
function main(argv) {
new HttpServer({
'GET': createServlet(StaticServlet),
'HEAD': createServlet(StaticServlet)
}).start(... |
import util from '../util/util'
import uuid from 'uuid'
export default class Ocurrence {
constructor(options) {
if (options) {
this.email = options.email;
this.code = options.code;
this.latitude = options.latitude;
this.longitude = options.longitude;
this.description = options.descr... |
'use strict';
const express = require('express');
const mongoose = require('mongoose');
const bodyParser = require('body-parser');
const methodOverride = require('method-override');
const _ = require('lodash');
const app = express(); // Create the application
// Add Middleware necessary for REST API's
app.use(bodyP... |
import React from 'react'
import styled from 'styled-components'
import * as styles from 'styles'
import ignoreList from 'utils/math/ignoreList'
import anvil from 'icons/anvil.svg'
import pickaxe from 'icons/pickaxe.svg'
// import sword from 'icons/swords.svg'
import crown from 'icons/crown.svg'
import easel from 'icon... |
"use strict";
angular.module("sbAdminApp").controller('serverEditCtrl', ['$scope', 'serverFactory', 'Notification', 'ipAddressFactory', 'osFactory', 'serverTypeFactory', 'cpuTypeFactory', 'programFactory',
function ($scope, factory, Notification, ipAddressFactory, osFactory, serverTypeFactory, cpuTypeFactory, progr... |
/**
* angular-bluebird-promises - Replaces $q with bluebirds promise API
* @version v1.0.2
* @link https://github.com/mattlewis92/angular-bluebird-promises
* @license MIT
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports =... |
'use strict';
const Entity = require('../entity');
const AddressSchema = require('../shared').AddressSchema;
const PhoneSchema = require('../shared').PhoneSchema;
const ExternalLinkSchema = require('../shared').ExternalLinkSchema;
const PaymentTermSchema = require('../shared').PaymentTermSchema;
const OrganisationSch... |
(function() {
'use strict';
const type = require('ee-types');
const Base = require('./Base');
const log = require('ee-log');
module.exports = class PDFReport extends Base {
};
})();
|
module.exports=function(t){"use strict";t.entries=["maillard","swan","bluethroat"]}; |
/**
* Created by jacky on 12/27/14.
* Main Scene File
* Depends on three leap controller and leap controller and all their dependencies
*/
//array of nodes that have already been constructed
var occupied = [],
constructed = [];
//world wide length dimension scale. used to easily control relative distances and... |
var express = require('express');
var app = express();
var bodyparser = require('body-parser')
app.use(bodyparser.urlencoded({extended: false}));
app.post('/form', function(req, res){
var text = req.body.str.split('').reverse().join('');
//console.log(text);
res.end(text);
});
app.listen(process.argv[2]); |
export { default as dateRanges } from './DateRangeStore';
export { default as currentMonth } from './CurrentMonthStore';
|
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];}}}return target;};var _jsxFileName='src/CircleButton.js';... |
(function() {
var KT, global;
global = this;
KT = require('../lib/katy.coffee').KT;
require('UnderscoreMatchersForJasmine');
describe("Wrapping Katy", function() {
var khw;
khw = KT("Hello World");
describe('K', function() {
it("should provide K", function() {
return expect(khw).... |
/**
* CSSS javascript code
* @author Lea Verou (http://leaverou.me)
* @version 2.0
*/
/**
* Make the environment a bit friendlier
*/
function $(expr, con) { return (con || document).querySelector(expr); }
function $$(expr, con) { return [].slice.call((con || document).querySelectorAll(expr)); }
(function(head,... |
function Component() {}
Component.prototype.view = __dirname;
Component.prototype.init = function () {
// do nothing
};
Component.prototype.create = function (model, dom) {
var self = this;
dom.on('click', function (e) {
self.close(e);
});
dom.on('keydown', function (e) {
if (e.keyCode === 27) se... |
var xtea = require("../xtea");
var Buffer = require("buffer").Buffer;
var test = require("tape");
test('XTEA ECB encryption', function (t) {
var buf = new Buffer([1,2,3]);
var key = new Buffer([1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]);
var enc = xtea.encrypt(buf, key);
var dec = xtea.decrypt(enc, key);... |
'use strict';
var fs = require('fs');
var path = require('path');
var readline = require('readline');
var RECORD_START = /^t=\s*(\d+)\s\[st=\s*(\d+)\]\s+(.+)$/;
var RECORD_KEY_VALUE = /^\s+-->\s(\S+)\s=\s\"?([^\"]+)\"?/;
var RECORD_HEADERS = /^\s+(--> )?(:?[^:]+):\s(.+)$/;
var records = [];
var currentRecord;
funct... |
var receive = require("./serialize-incoming"),
concussion = require("concussion");
/**
* Create connect middleware using the Later configuration.
* @param {Later} later
* @returns {function}
*/
function later(later) {
var Later = require("./later");
if (!(later instanceof Later)) later = new Later(lat... |
/**
* IMGUR: Clase para subir imágenes a un album anónimo.
*/
function Imgur() {
this.params = {
album: {
hash: 'bBAqLK1G2OvMnmj',
id: 'zlvtg'
},
client_id: 'fc503a6be5a62df',
token: '6528448c258cff474ca9701c5bab6927',
url_upload: 'http://api.imgur... |
"use strict";
const {test} = require('../browser');
const Menu = require('../pages/Menu');
const HomePage = require('../pages/Home');
const LocationPage = require('../pages/Location');
const assert = require('assert');
var tab;
var menu;
var homePage;
var locationPage;
var contactPage;
describe('On the landing pag... |
import { library } from '@fortawesome/fontawesome-svg-core';
import { faBook } from '@fortawesome/free-solid-svg-icons/faBook';
import { faCog } from '@fortawesome/free-solid-svg-icons/faCog';
import { faAngleLeft } from '@fortawesome/free-solid-svg-icons/faAngleLeft';
import { faAngleRight } from '@fortawesome/free-s... |
/* eslint-env mocha */
'use strict';
var expect = require('expect.js');
var nj = require('../../src');
describe('exp', function () {
it('should work on scalars', function () {
expect(nj.exp(0).tolist())
.to.eql([1]);
});
it('should work on vectors', function () {
var x = nj.arange(3);
expect(... |
'use strict';
const path = require('path');
const merge = require('webpack-merge');
const webpack = require('webpack');
const baseConfig = require('../../.electron-vue/webpack.renderer.config');
const projectRoot = path.resolve(__dirname, '../../src/renderer');
// Set BABEL_ENV to use proper preset config
process.en... |
$(document).ready(function() {
// inserts a project into the browse box
function insert_project(score,name,category,date,id) {
$('#project-panel').append(`
<div style='padding:0; margin:0; margin-bottom: 2px;' class='row'>
<div class='col-sm-1' style='text-align: center'>
<button class=... |
const assert = require('chai').assert;
const path = require('path');
const fs = require('fs');
const valid_fixture = fs.readFileSync(path.join(__dirname, '..', 'fixtures', 'valid.apib'), 'utf8');
const warning_fixture = fs.readFileSync(path.join(__dirname, '..', 'fixtures', 'warning.apib'), 'utf8');
const error_fixtur... |
$(document).ready(function(){
var pessoa = [];
pessoa[0] = [];
pessoa[0]["nome"] = "Emilia";
pessoa[0]["secreto"] = "Odete";
pessoa[0]["senha"] = "812w";
pessoa[1] = [];
pessoa[1]["nome"] = "jose carlos";
pessoa[1]["secreto"] = "Eusterio";
pessoa[1]["senha"] = "a12b";
pesso... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const config_1 = require("../../models/config");
const app_utils_1 = require("../../utilities/app-utils");
const dynamic_path_parser_1 = require("../../utilities/dynamic-path-parser");
const stringUtils = require('ember-cli-string-utils');
con... |
/* globals $, _ */
/* globals QUnit, test, asyncTest, expect, start, stop, ok, equal, notEqual, deepEqual */
var sinon = require('sinon');
var Environment = require('test/environment');
var EventLog = require('test/EventLog');
var ExampleData = require('example/ExampleData');
var Post = require('example/model/Post');
... |
var companion = require('companion');
var sinon = require('sinon');
var expect = require("chai").expect;
var assert = require("chai").assert;
var Sequenx = require('../js/sequenx.js');
// Mock
var customLog = {
createChild: () => { },
info: () => { },
warning: () => { },
error: () => { },
name: "",... |
'use strict';
angular.module('weatherApp.version.version-directive', [])
.directive('appVersion', ['version', function(version) {
return function(scope, elm, attrs) {
elm.text(version);
};
}]);
|
export { default } from 'ember-cli-chartnew/components/ember-chartnew'; |
var marked = require('marked');
module.exports = function () {
return function(input, strip) {
return marked(input).replace(/<[^>]+>/g, '');
};
}; |
import PropTypes from 'prop-types';
import React from 'react';
import previewStyle from './defaultPreviewStyle';
export default function DateTimePreview({ value }) {
return <div style={previewStyle}>{value ? value.toString() : null}</div>;
}
DateTimePreview.propTypes = {
value: PropTypes.object,
};
|
Accounts.onCreateUser(function(options, user) {
if (Meteor.users.find().count() >= App.maxUsers) throw new Meteor.Error("too_many_users");
if (options.profile) {
user.profile = options.profile;
}
user.profile.week_ends = Math.floor(Math.random()*7);
Schema.Users.clean(user);
return user;
}) |
#!/usr/bin/env node
'use strict';
const net = require('net');
const objectPath = require('object-path'); // replace with .jq receipt?
const notifier = require('node-notifier');
const { SOCKET_PATH, runGcmInquirer } = require('./shared');
const argv = require('minimist')(process.argv.slice(2));
if (argv['setup-gcm']... |
/**
* View para
* @class
* @author
* @name ViewTemplate
*/
define(["jquery",
"underscore",
"backbone",
//el template del view.
"text!templates/common/navbar-tmpl.html"],
function($,_,Backbone,tmpl) {
return Backbone.View.extend({
/**
* Constr... |
/*jshint node:true*/
/* global require, module */
var EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
module.exports = function(defaults) {
var app = new EmberAddon(defaults, {
// Add options here
});
/*
This build file specifes the options for the dummy test app of this
addon, located i... |
var uploadChunk;
uploadChunk = function(blob, url, method, filename, chunk, chunks) {
var formData, xhr;
xhr = new XMLHttpRequest;
xhr.open(method, url, false);
xhr.onerror = function() {
throw new Error('error while uploading');
};
formData = new FormData;
formData.append('name', filename);
formDa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.