code stringlengths 2 1.05M |
|---|
/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add( 'link', function( editor )
{
// Handles the event when the "Target" selection box is changed.
var targetChanged = function()
{
var dialog... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'removeformat', 'no', {
toolbar: 'Fjern formatering'
} );
|
/*! jQuery UI - v1.9.2 - 2014-06-04
* http://jqueryui.com
* Copyright 2014 jQuery Foundation and other contributors; Licensed MIT */
(function(e){e.effects.effect.transfer=function(t,i){var a=e(this),s=e(t.to),n="fixed"===s.css("position"),r=e("body"),o=n?r.scrollTop():0,h=n?r.scrollLeft():0,l=s.offset(),u={top:l.top-... |
/*
*************************
Logarithmic Scale Tests
*************************
*/
describe("Slider with logarithmic scale tests", function() {
var testSlider;
it("Should have the number of tick marks you specify", function() {
testSlider = $("#testSlider1").slider({
min: 0,
max: 10000,
scale: 'log... |
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReduxLittleRouter"]... |
new C<T>();
|
'use strict';
module.exports = require('./components/columngroup/ColumnGroup'); |
/**
* 锚点插件,为UEditor提供插入锚点支持
* @file
* @since 1.2.6.1
*/
UE.plugin.register('anchor', function (){
return {
bindEvents:{
'ready':function(){
utils.cssRule('anchor',
'.anchorclass{background: url(\''
+ this.options.themeP... |
module.exports = [require("./a")];
|
Template.user_controller.onCreated(function () {
var template = this;
template.subscribe('singleUser', FlowRouter.getParam("_idOrSlug"));
});
Template.user_controller.helpers({
data: function () {
var idOrSlug = FlowRouter.getParam("_idOrSlug");
var findById = Meteor.users.findOne(idOrSlug);
var fin... |
/*
* SVG Icon Loader 2.0
*
* jQuery Plugin for loading SVG icons from a single file
*
* Copyright (c) 2009 Alexis Deveria
* http://a.deveria.com
*
* MIT License
How to use:
1. Create the SVG master file that includes all icons:
The master SVG icon-containing file is an SVG file that contains
<g> elements. ... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.get = get;
exports.transformOptions = transformOptions;
function get() {
return {
debug: false,
initImmediate: true,
ns: ['translation'],
defaultNS: ['translation'],
fallbackLng: ['dev'],
fallbackNS: false... |
$(function () {
$('h1').find('a')
.attr('target', '_blank')
.addClass('edit-page-link')
.text('Edit on GitHub');
// languages
$('[data-language]').each(function (i) {
var $this = $(this),
language = $this.data('language');
// default
if (i === 0)... |
// Muaz Khan - www.MuazKhan.com
// MIT License - www.WebRTC-Experiment.com/licence
// Experiments - github.com/muaz-khan/WebRTC-Experiment
// This library is known as multi-user connectivity wrapper!
// It handles connectivity tasks to make sure two or more users can interconnect!
var broadcast =... |
(function() {
var IMG_SRC = fabric.isLikelyNode ? (__dirname + '/../fixtures/greyfloral.png') : '../fixtures/greyfloral.png';
function createImageElement() {
return fabric.isLikelyNode
? new (require('canvas').Image)()
: fabric.document.createElement('img');
}
function setSrc(img, s... |
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
frappe.ui.form.on("Event", {
onload: function(frm) {
frm.set_query("ref_type", function(txt) {
return {
"filters": {
"issingle": 0,
}
};
});
},
refresh: function(frm) {
if(fr... |
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
throw Error("opening input stream (invalid filename?)");
|
/*jshint node:true*/
var testInfo = require('ember-cli-test-info');
module.exports = {
description: 'Generates a view unit test.',
locals: function(options) {
return {
friendlyTestDescription: testInfo.description(options.entity.name, "Unit", "View")
};
},
};
|
/* big.js v2.0.0 https://github.com/MikeMcl/big.js/LICENCE */
;(function ( global ) {
'use strict';
/*
big.js v2.0.0
A small, fast, easy-to-use library for arbitrary-precision decimal arithmetic.
https://github.com/MikeMcl/big.js/
Copyright (c) 2012 Michael Mclaughlin <M8ch88l@gmail.com... |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v5.0.2
* @link http://www.ag-grid.com/
* @license MIT
*/
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : ... |
// I don't allow MAIL FROM:<> on my server, because it's all crap and I send
// so little mail anyway that I rarely get real bounces
exports.hook_mail = function (next, connection, params) {
var mail_from = params[0];
if (mail_from.isNull()) {
return next(DENY, "No bounces accepted here");
}
re... |
/**
* vue-i18n v1.1.1
* (c) 2015 kazuya kawaguchi
* Released under the MIT License.
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define(factory);
el... |
/*
Copyright (c) 2012 DinahMoe AB & Oskar Eriksson
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... |
var express = require('express');
var http = require('http');
var app = express();
app.use(express.static( __dirname ));
var port = process.env.PORT || 3000;
http.createServer(app).listen(port);
console.log('Server running on ' + port);
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var mathRole = {
abstract: false,
accessibleNameRequired: false,
baseConcepts: [],
childrenPresentational: true,
nameFrom: ['author'],
props: {},
relatedConcepts: [],
requireContextRole: [],
requiredOwnedElements: [],
re... |
/*
Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
//>>built
define("dojo/dom",["./sniff","./_base/lang","./_base/window"],function(_1,_2,_3){
if(_1("ie")<=7){
try{
document.e... |
/*
* Sugar Library v1.3.8
*
* Freely distributable and licensed under the MIT-style license.
* Copyright (c) 2013 Andrew Plummer
* http://sugarjs.com/
*
* ---------------------------- */
(function(){var k=true,l=null,n=false;function aa(a){return function(){return a}}var p=Object,q=Array,r=RegExp,s=Date,t=St... |
/*!
* inferno-create-element v1.0.0-beta28
* (c) 2016 Dominic Gannaway
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Inf... |
/*!
* Connect - json
* Copyright(c) 2010 Sencha Inc.
* Copyright(c) 2011 TJ Holowaychuk
* MIT Licensed
*/
/**
* Module dependencies.
*/
var utils = require('../utils')
, _limit = require('./limit');
/**
* noop middleware.
*/
function noop(req, res, next) {
next();
}
/**
* JSON:
*
* Parse JSON requ... |
(function() {
var __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
angular.module('bardo.directives', []);
angular.module('bardo.directives').directive('slick', ['$timeout', function($timeout) {
var SLICK_F... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
* @format
*/
'use strict';
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < argument... |
/*!
* @overview Ember - JavaScript Application Framework
* @copyright Copyright 2011-2015 Tilde Inc. and contributors
* Portions Copyright 2006-2011 Strobe Inc.
* Portions Copyright 2008-2011 Apple Inc. All rights reserved.
* @license Licensed under MIT license
* See https://ra... |
/*! tableSorter 2.3 widgets - updated 6/1/2012
*
* jQuery UI Theme
* Column Styles
* Column Filters
* Sticky Header
* Column Resizing
* Save Sort
*
*/
;(function($){
// *** Store data in local storage, with a cookie fallback ***
/* IE7 needs JSON library for JSON.stringify - (http://caniuse.com/#search=json)
... |
/*!
Lo-Dash 0.8.2 lodash.com/license
Underscore.js 1.4.2 underscorejs.org/LICENSE
*/
;(function(e,t){function s(e){if(e&&e.__wrapped__)return e;if(!(this instanceof s))return new s(e);this.__wrapped__=e}function o(e,t,n){t||(t=0);var r=e.length,i=r-t>=(n||H),s=i?{}:e;if(i)for(n=t-1;++n<r;){var o=e[n]+"";(Z.call(s,o)?... |
/*!
* jQuery UI Effects Bounce @VERSION
* http://jqueryui.com
*
* Copyright 2013 jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
* http://api.jqueryui.com/bounce-effect/
*
* Depends:
* jquery.ui.effect.js
*/
(function( $, undefined ) {
$.effects.effe... |
/*!
* # Semantic UI 2.1.1 - Video
* http://github.com/semantic-org/semantic-ui/
*
*
* Copyright 2015 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ($, window, document, undefined) {
"use strict";
$.fn.embed = function(parameters) {
var
$allModules ... |
/**
* autoNumeric.js
* @author: Bob Knothe
* @author: Sokolov Yura aka funny_falcon
* @version: 1.9.14 - 2013-08-05 GMT 4:30 PM
*
* Created by Robert J. Knothe on 2010-10-25. Please report any bugs to https://github.com/BobKnothe/autoNumeric
* Created by Sokolov Yura on 2010-11-07
*
* Copyright (c) 2011 Robert J. Knot... |
// Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExpor... |
/*
Copyright (c) 2004-2012, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojo._base"]){
dojo._hasResource["dojo._base"]=true;
dojo.provide("dojo._base");
dojo.require("dojo.... |
var resolve = require('path').resolve
var fs = require('graceful-fs')
var test = require('tap').test
var mkdirp = require('mkdirp')
var rimraf = require('rimraf')
var common = require('../common-tap.js')
var pkg = resolve(__dirname, 'gently-rm-overeager')
var dep = resolve(__dirname, 'test-whoops')
var EXEC_OPTS = {... |
/*
* # Semantic - Shape
* http://github.com/jlukic/semantic-ui/
*
*
* Copyright 2013 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
*/
;(function ( $, window, document, undefined ) {
$.fn.shape = function(parameters) {
var
$allModules = $(this),
$body ... |
/**
* Copyright 2013-2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... |
//// Copyright (c) Microsoft Corporation. All rights reserved
(function () {
"use strict";
var page = WinJS.UI.Pages.define("/html/scenario1basic.html", {
ready: function (element, options) {
document.getElementById("printButton").addEventListener("click", printButtonHandler, false);
... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("language","pl",{button:"Ustaw język",remove:"Usuń język"}); |
Mithril = m = new function app(window) {
var selectorCache = {}
var type = {}.toString
var parser = /(?:(^|#|\.)([^#\.\[\]]+))|(\[.+?\])/g, attrParser = /\[(.+?)(?:=("|'|)(.+?)\2)?\]/
function m() {
var args = arguments
var hasAttrs = type.call(args[1]) == "[object Object]"
var attrs = hasAttrs ? args[1] : ... |
// A singleton instance of this class is yielded by Inflector.inflections, which can then be used to specify additional
// inflection rules. Examples:
//
// BulletSupport.Inflector.inflect ($) ->
// $.plural /^(ox)$/i, '$1en'
// $.singular /^(ox)en/i, '$1'
//
// $.irregular 'octopus', 'octopi'
//
... |
/*! p5.js v0.3.6 September 11, 2014 */
var shim = function (require) {
window.requestDraw = function () {
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (callback, eleme... |
import Ember from 'ember';
import ApplicationSerializer from 'ghost/serializers/application';
var SettingSerializer = ApplicationSerializer.extend({
serializeIntoHash: function (hash, type, record, options) {
// Settings API does not want ids
options = options || {};
options.includeId = fal... |
this is file 94 |
var common = require('../../common');
var connection = common.createConnection();
var assert = require('assert');
var rows;
connection.query('SELECT ""', function(err, _rows) {
if (err) throw err;
rows = _rows;
});
connection.end();
process.on('exit', function() {
assert.deepEqual(rows, [{'': ''}]);
}... |
/**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file js-data-localstorage.js
* @version 0.1.1 - Homepage <http://www.js-data.iojs-data-localstorage/>
* @copyright (c) 2014 Jason Dobry
* @license MIT <https://github.com/js-data/js-data-localstorage/blob/master/LICENSE>
*
* @overview My Adapter.
*/
!function(e){if(... |
YUI.add('dd-plugin', function (Y, NAME) {
/**
* Simple Drag plugin that can be attached to a Node or Widget via the plug method.
* @module dd
* @submodule dd-plugin
*/
/**
* Simple Drag plugin that can be attached to a Node or Widget via the plug method.
... |
/*
* /MathJax/jax/output/HTML-CSS/fonts/STIX/General/Bold/AlphaPresentForms.js
*
* Copyright (c) 2009-2013 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
process.env.NODE_PATH = __dirname;
require('module').Module._initPaths();
var server = require('./server/app')
/* Read hostfile and certificates and start server.
* Returns promise
*/
server.start()
.catch( err => console.log('Oops, something happend', err) ) |
import mod1646 from './mod1646';
var value=mod1646+1;
export default value;
|
module.exports = require('./lib/jwt-auth.js')
|
var test = require('ava');
var child = require('child_process');
var fs = require('fs');
var path = require('path');
test.cb('basic', t => {
t.plan(1);
child.exec('node ' + __dirname + '/../bin/useref.js testfiles/01.html output', function(err) {
if (err) t.fail();
var file = fs.readFileSync(path.join('o... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Router = void 0;
const uuid_1 = require("uuid");
const Logger_1 = require("./Logger");
const EnhancedEventEmitter_1 = require("./EnhancedEventEmitter");
const ortc = require("./ortc");
const errors_1 = require("./errors");
const WebRtc... |
const xliff = require("./xliff")
const resx = require("./resx")
function from(format, baseLang, data, options = {}) {
if (format === "xliff") {
return xliff.from(baseLang, data, options.normalise)
} else if (format === "resx") {
return resx.from(baseLang, data, options.normalise)
}
}
function getSupport... |
/* global ShapePath, pointPool, poolFactory */
/* exported shapePool */
var shapePool = (function () {
function create() {
return new ShapePath();
}
function release(shapePath) {
var len = shapePath._length;
var i;
for (i = 0; i < len; i += 1) {
pointPool.release(shapePath.v[i]... |
module.exports.Tracer = require('./tracer.js');
module.exports.Probe = require('./probe.js');
|
/**
*
* Wait for an element (selected by css selector) for the provided amount of
* milliseconds to be (un)selected. If multiple elements get queryied by given
* selector, it returns true (or false if reverse flag is set) if at least one
* element is (un)selected.
*
* @param {String} selector element to wait f... |
for (var i = 0; i < 1000; i++) {
console.log(_('app.js'))
}
alert(_("There's pie in them hills")) |
export { ConfigAliasMiddleware } from './config-alias'
export { ConfigOverrideMiddleware } from './config-override'
export { ExtendHandler, ExtendMiddleware } from './extend'
export { InputHandlerMiddleware } from './input-handler'
export { RecursiveHandler } from './recursive'
|
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import get from 'lodash.get';
import isEmpty from 'lodash.isempty';
import { connect } from 'react-redux';
import { AddStudentsView } from '../../components/AddStudents';
import { getBoundariesEntities, getLanguages } from '../../actions';
i... |
var context = require.context('./test/client', true, /.+\.spec\.jsx?$/);
context.keys().forEach(context);
module.exports = context;
|
var fs = require("fs");
// get the cpu count; only need to do this once
var cpuCount = (function () {
var data = fs.readFileSync("/proc/cpuinfo");
var lines = data.split("\n");
var count = 0;
var i;
for (i = 0; i < lines.length; i++) {
var line = lines[i];
if (line.match(/^processor... |
/*
* Copyright (C) 2015 Stefano D'Angelo <zanga.mail@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "A... |
"use strict";
/**
* Copyright (c) 2015, Yaacov Zamir <kobi.zamir@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS... |
var test=require("tap").test,archy=require("../");test("beep",function(e){var t=archy({label:"beep",nodes:["ity",{label:"boop",nodes:[{label:"o_O",nodes:[{label:"oh",nodes:["hello","puny"]},"human"]},"party!"]}]},"",{unicode:!1});e.equal(t,["beep","+-- ity","`-- boop"," +-- o_O"," | +-- oh"," | | +-- hello"," | | `... |
'use strict';
const fs = require('fs');
const path = require('path');
const expand = require('./expand');
/**
* Reads the contents of an array of
* files and returns the array.
*
* @param {Array} files
* @param {String} stdin
* @param {Object} options
* @return {Array}
* @api public
*/
module.exports = fun... |
module.exports = {
flags: {
quiet: true
},
'path:**/foo.css': {
flags: {
quiet: false
}
},
'path:**/foo.js': {
flags: {
quiet: true
}
}
}; |
version https://git-lfs.github.com/spec/v1
oid sha256:71d33a9cff96494a108235133f62c14f9e7d06837991d34a33178ea137b2bf05
size 42155
|
// @flow
import React from 'react';
import styled from 'styled-components';
const Label = styled.label`
flex-basis: 100%;
margin-bottom: 10px;
`;
const StyledTextarea = styled.textarea`
display: block;
appearance: none;
border: none;
outline: 0;
width: 100%;
padding: 10px;
resize: none;
height: 15... |
var Activity = require('../lib/Activity.js');
var ActivityManager = require('../lib/ActivityManager.js');
var test = require('tape');
test('Bundle passed', function(t) {
t.plan(3);
var BUNDLE = {};
var m = new ActivityManager();
function A()
{
this.onCreate = function(bundle) {
... |
$(function () {
$('.delete').click(function (e) {
e.preventDefault();
if (confirm('Do you want to delete your listing?')) {
alert('Deleting');
}
});
}); |
import Usuario from 'api/Usuario'
const localStorage = window.localStorage
export const getUsuario = (username) => Usuario.getUser(username)
export const getRepositorios = (username) => Usuario.getRepositorios(username)
export const saveAnotacao = (username, anotacao) => {
localStorage.setItem(username, anotacao)
... |
var http = require('http');
module.exports = function(port, mapping) {
var handler = function(request, response) {
var request_index = request.method + " " + request.url;
var mapped = mapping[request_index];
// Allow for multiple subsequent requests
if (Array.isArray(mapped)) {
// Will loop bac... |
import axios from "axios";
const commonConstant = require('../../../../common/common.constant');
import AccountService from './AccountService';
export const fetchAccounts = () => {
return (dispatch, getState) => {
const url = commonConstant.ENDPOINT.ACCOUNT
dispatch({type: 'FETCH_ACCOUNTS'});
axi... |
var mongoose = require('mongoose'),
Schema = mongoose.Schema;
var GameServerSchema = new Schema({
gpath: {
type:String,
required: true,
unique: true
},
playercount: {
type:Number,
default: 0
}
});
mongoose.model('GameServer', GameServerSchema);
|
const { client: loaders } = require("./loaders");
const { client: plugins } = require("./plugins");
module.exports = (storybookBaseConfig) => {
storybookBaseConfig.plugins = [...storybookBaseConfig.plugins, ...plugins];
storybookBaseConfig.module.rules = [
...storybookBaseConfig.module.rules,
...loaders,
... |
!function(){"use strict";function n(n,r){for(var t=[],u=0,e=n.length;e>u;u++)t.push(r.call(n,n[u],u));return t}function r(n,r){var t=[];for(var u in n)t.push(r.call(n,n[u],u));return t}function t(t){var u=i(t)?n:r;return function(n){return u(t,n)}}function u(n){var r=t(n);return function(t){return null==t?n:r(t)}}funct... |
import Point from './Point';
export default class CubicBezier {
constructor(p0, p1, p2, p3, samples = 100) {
this.p0 = p0 || new Point(0, 0);
this.p1 = p1 || new Point(0, 0);
this.p2 = p2 || new Point(1, 1);
this.p3 = p3 || new Point(1, 1);
this.samples = samples;
this.calculateLength();
}
... |
// Copyright (C) 2016 Goom Inc. All rights reserved.
import React, { PropTypes } from 'react';
import i18n from 'commons/utils/i18n';
export default React.createClass({
propTypes: {
cmsData: PropTypes.object,
closePopup: PropTypes.func,
},
render() {
const { cmsData, closePopup } = this.props;
... |
"use strict";
import _ from "./lib/helpers";
import Err from "./classes/Error";
import social from "./lib/services";
class Socsharing {
// static constants
static get ATTR_SERVICES() {
return "data-socsharing-list";
}
static get ATTR_POPUP() {
return "data-socsharing-popup";
}
sta... |
'use strict';
module.exports = function(grunt) {
var crosswalkVersion = '8.37.189.14';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json')
});
require('load-grunt-tasks')(grunt);
grunt.registerTask('bower-install', 'install bower components', function() {
var done = this.async();
var ... |
var assert = require('assert');
var Callbacks = require('./');
describe('Callbacks', function() {
it('is cool', function() {
assert(true);
});
});
|
export default function stringifyParams(params, mapParamsNames = {}, paramsTypes = {}) {
return Object.keys(params)
.map((rawParamName) => {
const paramName = mapParamsNames[rawParamName] || rawParamName;
const paramValue = params[rawParamName];
if (paramsTypes[paramName]) {
if (typeof ... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View
} from 'react-native';
class PointLook extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
... |
var db = require('../database');
var crypt = require('../crypt');
var mail_send = require('../mail');
//creating user group
function creating(req, res, next) {
//author data
var author = res.user_status.id;
var room = res.user_status.room;
var author_group = +res.user_status.group;
//group data
... |
'use strict';
var React = require('react');
var ReactNative = require('react-native');
var PropTypes = require('prop-types');
var createReactClass = require('create-react-class');
var {
StyleSheet,
Image
} = ReactNative;
var CustomMarker = createReactClass({
propTypes: {
pressed: PropTypes.bool,
},
re... |
/* Task Description */
/*
Create a function constructor for Person. Each Person must have:
* properties `firstname`, `lastname` and `age`
* firstname and lastname must always be strings between 3 and 20 characters, containing only Latin letters
* age must always be a number in the range 0 150
* the setter of ... |
version https://git-lfs.github.com/spec/v1
oid sha256:37df7c7d8b3b99a5c9c5994c69efd68c2ec77ce894df74abae9859bdd6956a25
size 1142
|
System.register(['@angular/core'], function(exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwn... |
var newItem = document.getElementById("new_item");
var htmlList = document.getElementById("list");
var nameList = document.getElementById("name_list");
var title = document.getElementById("title");
var deleteItem = document.getElementById("delete_item");
var updateItem = document.getElementById("update_item");
var list... |
'use strict';
var util = require('util');
function InvalidStateError(message) {
this.name = this.constructor.name;
this.message = message !== undefined ? message : 'An operation was called on an object on which it is not allowed or at a time when it is not allowed. Also occurs if a request is made on a source... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _index = require('../../lastDayOfYear/index.js');
var _index2 = _interopRequireDefault(_index);
var _index3 = require('../_lib/convertToFP/index.js');
var _index4 = _interopRequireDefault(_index3);
function _interopRequireDefault(o... |
/*
File: AppleAnimator.js
Abstract: Standard Apple class for a timed animation task; included in this
widget under an "AppleClasses" directory for compatibility with Mac OS X
10.4.0-10.4.2. On Mac OS X 10.4.3 and later, Dashboard will first check
in /System/Library/WidgetResources when loading script references t... |
/**
* Copyright 2014 Telerik AD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
'use strict';
module.exports = function(cb) {
var svn = require('svn-interface');
var clc = require('cli-color');
// How many revisions the list should be limited to.
// This should be handled in smarter way than just hardcoding.
// XXX: Maybe something like https://github.com/michalbe/svnode/issues/43 ?
v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.