code stringlengths 2 1.05M |
|---|
// import React from 'react';
// import { shallow } from 'enzyme';
// import { MapContainer } from '../index';
describe('<MapContainer />', () => {
it('Expect to have unit tests specified', () => {
expect(true).toEqual(false);
});
});
|
//>>built
define("dojo/nls/tr/colors",{aliceblue:"alice mavisi",antiquewhite:"antik beyaz",aqua:"deniz mavisi",aquamarine:"akuamarin",azure:"azur mavisi",beige:"bej",bisque:"bisk\u00fcvi",black:"siyah",blanchedalmond:"soluk badem",blue:"mavi",blueviolet:"mavi-mor",brown:"kahverengi",burlywood:"sar\u0131ms\u0131 kahvere... |
var w2ui = w2ui || {};
var w2obj = w2obj || {}; // expose object to be able to overwrite default functions
/************************************************
* Library: Web 2.0 UI for jQuery
* - Following objects are defines
* - w2ui - object that will contain all widgets
* - w2obj ... |
'use strict'
module.exports = function (app) {
/**
* route handler for /users/history.
*/
app.use(function *(next) {
yield* next
if (this.path === '/users/history' && this.method === 'GET') this.body = 'somehistory'
})
}
|
module.exports = function(grunt) {
grunt.initConfig({
watch : {
scripts : {
files : [ "js/**" ],
tasks : [ "js" ],
options : {
spawn : false
}
}
},
qunit: {
options: {
... |
/**
* Rate Component Demo for tingle
* @author quanyun
*
* Copyright 2014-2015, Tingle Team, Alinw.
* All rights reserved.
*/
require('tingle-context');
window.FastClick && FastClick.attach(document.body);
var Demo = require('./RateDemo');
React.render(<Demo/>, document.getElementById('TingleDemo'));
|
import Ember from 'ember';
var MdInputContainer = Ember.Component.extend({
tagName: 'md-input-container',
attributeBindings: ['style', 'md-no-float'],
classNameBindings: ['isFocused:md-input-focused',
'hasValue:md-input-has-value',
'isInvalid:md-input-invalid'],
isFocused: false,
... |
/* eslint no-console:0 */
/**
* This module contains general functions that can be used for building
* different kinds of domTree nodes in a consistent manner.
*/
const domTree = require("./domTree");
const fontMetrics = require("./fontMetrics");
const symbols = require("./symbols");
const utils = require("./utils"... |
'use strict';
Object.defineProperty(exports, '__esModule', {
value: true
});
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }
var _child_process = require('child_process');
var _bluebird = require('bluebird');
var _bluebird2 = _interopRequireDefault(_bluebird);
f... |
"use strict";
let datafire = require('datafire');
let openapi = require('./openapi.json');
module.exports = datafire.Integration.fromOpenAPI(openapi, "figshare"); |
export default class Immutable {
constructor() {
this.isMutable = false
}
mutable() {
return Object.assign({__proto__: Object.getPrototypeOf(this)}, this, {isMutable: true})
}
immutable() {
return Object.freeze(Object.assign({__proto__: Object.getPrototypeOf(this)}, this, {... |
'use strict';
// Production specific configuration
// =================================
module.exports = {
// Server IP
ip: process.env.OPENSHIFT_NODEJS_IP ||
process.env.IP ||
undefined,
// Server port
port: process.env.OPENSHIFT_NODEJS_PORT ||
process.env.PORT |... |
/**
* @fileoverview Check the number of arguments to QUnit's assertion functions.
* @author Kevin Partington
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const rule ... |
var dest = './public';
var src = './src';
var imagesPath = '/images';
var stylesPath = '/css';
module.exports = {
browserSync: {
server: {
// Serve up our build folder
baseDir: dest
}
},
paths: {
src: src,
scripts: src + '/js',
dest: dest,
images: imagesPath,
styles: style... |
/*
* Created by whincwu on 2017/10/28
*/
import React, {Component} from 'react'
import PropTypes from 'prop-types'
export default class Tab extends Component {
static PropTypes = {
label: PropTypes.string,
value: PropTypes.string,
children: PropTypes.arrayOf(PropTypes.element)
}
render () {
re... |
/**
* Sources loader.
*
* Largely inspired by basket.js.
* Store ressources in localStorage if available.
*
*/
(function(window, document) {
'use strict';
var head = document.head || document.getElementsByTagName('head')[0],
storagePrefix = 'source_',
timeout = 5000;
/**
* Fetch url from ... |
self.__precacheManifest = [
{
"revision": "229c360febb4351a89df",
"url": "/static/js/runtime~main.229c360f.js"
},
{
"revision": "b4900d2c8b4092a83233",
"url": "/static/js/main.b4900d2c.chunk.js"
},
{
"revision": "fdc14860ef189d4e0200",
"url": "/static/js/1.fdc14860.chunk.js"
},
{
... |
'use strict';
var defer = require('node-promise').defer;
var DB_NAME = 'motif';
module.exports = {
connection: undefined,
dbhost: undefined,
dbport: undefined,
init: function(connection, dbhost, dbport) {
this.connection = connection;
this.dbhost = dbhost;
this.dbport = dbport;
},
getAllMotifs... |
/**
*
* Simple component
*
* @author skh
*
**/
import React, {
View,
Text,
StyleSheet
} from 'react-native';
export default class CustomView extends React.Component{
render() {
return (
<View style={styles.container}>
<Text style={styles.content}>{this.props.title}</Text>
</View>
... |
define([
'marionette',
'hbs!templates/index'
],
function(Marionette, template) {
console.log(Marionette);
$('body').html(template());
}); |
/**
* @author: @AngularClass
*/
const helpers = require('./helpers');
const webpackMerge = require('webpack-merge'); // used to merge webpack configs
const webpackMergeDll = webpackMerge.strategy({plugins: 'replace'});
const commonConfig = require('./webpack.common.js'); // the settings that are common to prod and d... |
// Generated by CoffeeScript 1.4.0
var app, connect, port, server, sharejs, sharejsOpts;
connect = require('connect');
sharejs = require('share').server;
sharejsOpts = {
browserChannel: {
cors: "*"
},
db: "none"
};
app = connect();
app.use(connect['static'](__dirname + "/../static"));
server = sharejs.a... |
//Version 1.0
/*!
* Chart.js
* http://chartjs.org/
* Version: 1.0.2
*
* Copyright 2015 Nick Downie
* Released under the MIT license
* https://github.com/nnnick/Chart.js/blob/master/LICENSE.md
*/
(function(){
"use strict";
//Declare root variable - window in the browser, global on the server
var root = th... |
8.0.0-beta16:0dd5e8c41f77f9f2d2ff3716e466b66c590f72afcb779da904ac0b57c846f225
8.0.0-rc1:0dd5e8c41f77f9f2d2ff3716e466b66c590f72afcb779da904ac0b57c846f225
8.0.0-rc2:0dd5e8c41f77f9f2d2ff3716e466b66c590f72afcb779da904ac0b57c846f225
8.0.0-rc3:0dd5e8c41f77f9f2d2ff3716e466b66c590f72afcb779da904ac0b57c846f225
8.0.0-rc4:0dd5e8c... |
(function (window) {
if (!window.document) return;
var document = window.document;
//https://github.com/inexorabletash/polyfill/blob/master/web.js
if (!document.querySelectorAll) {
document.querySelectorAll = function (selectors) {
var style = document.createElement('style'), elements = [], ele... |
import React from 'react';
import {
RouterContext
} from 'react-router';
import {
renderToString
} from 'react-dom/server';
import {
Provider
} from 'react-redux';
import configureStore from '../../client/store/configuerStore';
const store = configureStore();
export default async (ctx, next, renderProps) => {
... |
/*
* Simplecrawler
* https://github.com/cgiffard/node-simplecrawler
*
* Copyright (c) 2011-2015, Christopher Giffard
*
*/
var Crawler = require("./crawler.js"),
uri = require("urijs");
/*
Public: Convenience function for really quick, simple crawls. It generates
a new crawler, parses the URL pr... |
'use strict';
export function Deferred() {
this.resolve = null;
this.reject = null;
this.promise = new Promise(function (resolve, reject) {
this.resolve = resolve;
this.reject = reject;
}.bind(this));
Object.freeze(this);
}; |
import { test, moduleFor } from 'ember-qunit';
moduleFor('serializer:transaction', 'TransactionSerializer', {
// Specify the other units that are required for this test.
// needs: ['serializer:foo']
});
// Replace this with your real tests.
test('it exists', function() {
var serializer = this.subject();
ok(se... |
/**
* Copyright 2012-2020, Plotly, Inc.
* All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
'use strict';
var glPlot3d = require('gl-plot3d');
var createCamera = glPlot3d.createCamera;
var createPlot = glPlot3d.create... |
'use strict';
/* Services */
// Demonstrate how to register services
// In this case it is a simple value service.
angular.module('myApp.services', [])
.value('version', '0.1')
.value('categoryList', ["Food", "Fuel", "Grocery", "Entertainment"])
.factory('expService', ['$q', function($q) {
var prefix = 'ex... |
/**
* SyntaxHighlighter
* http://alexgorbatchev.com/SyntaxHighlighter
*
* SyntaxHighlighter is donationware. If you are using it, please donate.
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html
*
* @version
* 3.0.83 (July 02 2010)
*
* @copyright
* Copyright (C) 2004-2010 Alex Gorbatchev.
*
* @lice... |
var assert = require('assert')
module.exports = Olivaw
function Olivaw (opts) {
assert.equal(typeof opts, 'object', 'olivaw: opts should be type Object')
var neighbourhoods = [ '111', '110', '101', '100', '011', '010', '001', '000' ]
// need some automata accessible variables
var automata = null
var rule ... |
/*
* JSON APIs
*
*/
var data = [{
id: 1,
title: 'Hello World',
content: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.'
},{
id: 2,
title: 'Damn It',
content: 'Sed egestas, ante et vulp... |
import axios from 'axios';
/**
* Validates TAF input in two steps:
* 1) Check for fallback values
* 2) Server side validation
* @param {object} tafAsObject The TAF JSON to validate
* @return {object} A report of the validation
*/
const TafValidator = (BACKEND_SERVER_URL, tafAsObject, inputParsingReport) => {
r... |
import { Meteor } from 'meteor/meteor';
import { Tracker } from 'meteor/tracker';
import { ReactiveVar } from 'meteor/reactive-var';
import { FlowRouter } from 'meteor/kadira:flow-router';
import { Session } from 'meteor/session';
import { Template } from 'meteor/templating';
import { TAPi18n } from 'meteor/rocketchat:... |
import 'react-native';
import flatten from 'flat';
import React from 'react';
import renderer from 'react-test-renderer';
import ErrorMessage from '../../src/components/ErrorMessage';
test('renders ErrorMessage component', () => {
const onCloseSpy = jest.fn();
const message = 'This is a very dangerous sample erro... |
'use strict';
var fs = require('fs');
var postcss = require('postcss');
var test = require('tape');
var simpleMixin = require('..');
function fixturePath(name) {
return 'test/fixtures/' + name + '.css';
}
function fixture(name) {
return fs.readFileSync(fixturePath(name), 'utf8').trim();
}
function compareFixtur... |
var test = require('tape-catch')
var mt = require('../index')
test('.h5() should prefix existing text with #', function (t) {
var text = 'text'
var header = mt.h5(text)
t.equal(header, '##### text')
t.end()
})
test('.h5() should remove ##### prefix from header text', function (t) {
var text = '##### text'
... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _ScopesPlugin = require('./scopes/ScopesPlugin');
var _ScopesPlugin2 = _interopRequireDefault(_ScopesPlugin);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.defa... |
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var uuid = require('node-uuid');
var APIKeyPairSchema = new Schema({
_creator: {
type: Schema.Types.ObjectId,
ref: 'User'
},
keyId: {
type: String,
required: true,
default: uuid.v4()
},
keySec... |
import * as UTILS from './globals';
const world = new WHS.World({
...UTILS.$world,
softbody: true,
gravity: {
y: -9.8,
},
camera: {
far: 10000,
position: [0, 30, 90]
}
});
const arm = new WHS.Box({ // Rigidbody (green).
geometry: {
width: 80,
height: 6,
depth: 6
},
mass: 0... |
var tty = require('tty');
module.exports = function () {
var opts = {
seperator : '*',
in : process.stdin,
out : process.stdout,
cb : function () {}
};
for (var i = 0; i < arguments.length; i++) {
var arg = arguments[i];
switch (typeof arg) {
... |
var request = require("request");
var base_url = "http://localhost:3000/"
var app = require('../app/app.js');
var server;
describe("Hello world spec", function(){
describe("GET /", function(){
beforeEach(function() {
server = app.listen(3000, function() {
});
});
afterEach(function() {
server... |
class search_gathertrx_1 {
constructor() {
}
// System.Runtime.Remoting.ObjRef CreateObjRef(type requestedType)
CreateObjRef() {
}
// bool Equals(System.Object obj)
Equals() {
}
// int GetHashCode()
GetHashCode() {
}
// System.Object GetLifetimeService()
GetLif... |
/**
* Created by IrianLaptop on 2/5/2017.
*/
import React from 'react';
import VideoListItem from "./video_list_item";
const VideoList = (props) =>{
const videoItems = props.videos.map((video) => {
return <VideoListItem video={video} key ={video.etag} onVideoSelect={props.onVideoSelect}/>
});
r... |
// @flow
import * as React from 'react'
import VisibilityOffIcon from '@material-ui/icons/VisibilityOff'
import Popover from '@material-ui/core/Popover'
import List from '@material-ui/core/List'
import ListItem from '@material-ui/core/ListItem'
import ListItemText from '@material-ui/core/ListItemText'
import ListItemSe... |
define(function(require, exports, module) {
var name = "./other";
require(name); // not me
require(['./fuzz']); // not me
require('./foo', function () {}); // not me
name.require('./baz'); // not me
require('./norm-plugin!one/load');
require('./norm-plugin!one/more/load');
return require('./compile-dep... |
/**
* This code has been borrowed from https://gist.github.com/1376157 and his creator is alessioalex in Github
*/
(function(){
var DomReady = window.DomReady = {};
// Everything that has to do with properly supporting our document ready event. Brought over from the most awesome jQuery.
var userAgent = navigato... |
import 'whatwg-fetch'
import riot from 'riot'
import './app.tag'
import './menu-item.tag'
riot.mount('app')
// Reload every hour to get updates remotely
const aHour = 1000 * 60 * 60
window.setTimeout(() => window.reload(), aHour)
|
// Regular expression that matches all symbols in the Thai block as per Unicode v4.0.1:
/[\u0E00-\u0E7F]/; |
import path from 'path';
import fs from 'fs';
import url from 'url';
import _ from 'lodash';
import { promisify } from 'util';
import helpers from './index';
import getYArgs from '../core/yargs';
import importHelper from './import-helper';
const args = getYArgs().argv;
const api = {
config: undefined,
rawConfig: ... |
import React, { Component } from 'react';
import Choices from '../form-elements/form-choices';
import InputField from '../form-elements/form-input';
import Button from '../form-elements/form-button';
import WPAPI from '../../tools/wpapi';
import '../../css/components/forms/form-base.css';
class PositionForm extends C... |
window.requestAnimFrame = (function(){
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ||
function( callback ){
window.setTimeout(callback, 1000 / 60);
};
... |
var Octal = function (octal) {
this.octal = octal;
};
Octal.prototype.toDecimal = function () {
var result = 0;
for (var i = 0; i < this.octal.length; i++) {
if (this.octal[i] >= '0' && this.octal[i] <= '7') {
result += this.octal[i] * Math.pow(8, this.octal.length - (i + 1));
} else {
return... |
import connectivityTypes from '../../../modules/ConnectivityManager/connectivityTypes';
export default {
[connectivityTypes.webphoneUnavailable]: "Téléphone Web non disponible",
[connectivityTypes.offline]: "Hors ligne",
[connectivityTypes.voipOnly]: "VoIP seulement",
[connectivityTypes.survival]: "Mode limité"... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs = require("fs");
const ts = require("typescript");
const glob = require("glob");
const path = require("path");
const denodeify = require("denodeify");
const readFile = denodeify(fs.readFile);
const globSearch = denodeify(glob);
/**
*... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
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 ("v... |
define( function() {
return [
function( domGraph ) {
var graphinstance = new Graph( domGraph );
graphinstance.getXAxis().forceMin( 0 );
graphinstance.getXAxis().forceMax( 50 );
graphinstance.getYAxis().forceMin( 0 );
graphinstance.getYAxis().forceMax( 50 );
g... |
var searchData=
[
['ray_20tracing_20implementation_20utilities',['Ray Tracing Implementation Utilities',['../group__g1.html',1,'']]]
];
|
version https://git-lfs.github.com/spec/v1
oid sha256:966a91b30c6c6214723b215c65525b81fe62140585300662a14e2fb3a6f1977d
size 243180
|
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
{
"file": "plugins/org.apache.cordova.contacts/www/contacts.js",
"id": "org.apache.cordova.contacts.contacts",
"clobbers": [
"navigator.contacts"
]
},
{
"file": "... |
import {Transform} from 'stream';
export default class Transcriber extends Transform {
} |
import { EventEmitter } from 'events';
import ActionTypes from '../constants/ActionTypes';
import Dispatcher from '../dispatcher/AppDispatcher';
import EngineConnect from '../utils/EngineConnect';
const APP_CHANGE_EVENT = 'app_change';
const initialData = {
display_match: undefined,
bots: [],
matches... |
eval = 42;
|
"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... |
var required = '<span style="color:red;font-weight:bold" data-qtip="Required">*</span>';
Ext.define('App.form.RegisterBuyer',{
extend : 'Ext.form.Panel',
// extend : 'Ext.panel.Panel',
alias: 'widget.formAddOrder',
title: 'Inner Tabs',
xtype: 'form',
id: 'innerTabsForm',
collapsible: true,
... |
/* global $ */
(function () {
'use strict';
const SHORTCUT_TIMEOUT = 700;
function appendGlobalTweetButton() {
const tweetBtn = $('<a role=\'button\' href=\'#\' class=\'js-tooltip js-dynamic-tooltip\' data-placement=\'bottom\'>');
tweetBtn.append($('<span class=\'Icon Icon--tweet Icon--large\'>'));
... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
$(document).ready(function(){
var base_url = $('body').find('#base_url').val();
$("#customer-data").dataTable({
... |
const moduleNameToVarRecorderName = new Map();
export function getScopeIdForModule(moduleName) {
// console.log("[babel-plugin-var-recorder] getScopeIdForModule", moduleName);
if(!moduleNameToVarRecorderName.has(moduleName)) {
moduleNameToVarRecorderName.set(moduleName,
(moduleName || "undefined").repl... |
/*jslint browser: true, nomen: true, white: true */
/*!
* responsiveCarousel
* A responsive carousel that works in desktop browsers, ipad, iphone, and even
* most Androids. It uses css3 animations with a jquery animation fallback for
* greater speed. The code was optimized to minimize page reflows to further
* e... |
/**
* 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.
*
*
* @providesModule RelayConnectionTransform
* @format
*/
'use strict';
var _extends3 = _interopRequireDefault(require('babel-runti... |
'use strict';
var React = require('react');
var _ = require('underscore');
module.exports = React.createClass({
render: function render() {
var shouldExpand = this.props.shouldExpand;
var expandLabel = this.props.expandLabel;
if(!shouldExpand){
return <tr/>;
}
return (
<tr classNam... |
var express = require('express');
var router = express.Router();
const User = require('../lib/model');
/* GET users listing. */
router.get('/', function(req, res, next) {
User.find(function (err, users) {
res.send(users);
})
});
module.exports = router;
|
// Regular expression that matches all symbols in the Yijing Hexagram Symbols block as per Unicode v9.0.0:
/[\u4DC0-\u4DFF]/; |
'use strict';
app = angular.module('rcCart.directives', []);
app.directive('rcAddToCart', function($http) {
return {
restrict: 'A', // Must be a attributeon a html tag
template: '<strong class="redirect-timeout-ticker">{{timer}}</strong>',
scope: {
toState: '@... |
import {
BufferAttribute,
BufferGeometry,
Matrix4,
Vector3,
Vector4
} from "../../../build/three.module.js";
/**
* Tessellates the famous Utah teapot database by Martin Newell into triangles.
*
* Parameters: size = 50, segments = 10, bottom = true, lid = true, body = true,
* fitLid = false, blinn = true
*
... |
(function($) {
function fixTitle($ele) {
if ($ele.attr('title') || typeof($ele.attr('original-title')) != 'string') {
$ele.attr('original-title', $ele.attr('title') || '').removeAttr('title');
}
}
$.fn.tipsy = function(options) {
options = $.extend({}, $.fn.tipsy.de... |
(function () {
'use strict'
window.GOVUK = window.GOVUK || {}
function AdminSpeechesForm (options) {
GOVUK.Proxifier.proxifyAllMethods(this)
this.$el = $(options.el)
this.speechTypeLabels = options.speech_type_label_data
this.$speechTypeSelect = $('select#edition_speech_type_id', this.$el)
t... |
/*
* Globalize Culture sr-Cyrl-RS
*
* http://github.com/jquery/globalize
*
* Copyright Software Freedom Conservancy, Inc.
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* This file was generated by the Globalize Culture Generator
* Translation: bugs found in this file n... |
if (!RedactorPlugins) var RedactorPlugins = {};
RedactorPlugins.counter = function () {
return {
init: function () {
if (!this.opts.counterCallback) return;
this.$editor.on('keyup.redactor-limiter', $.proxy(function (e) {
var words = 0, characters = 0, spaces = 0;
... |
const merge = require ( 'webpack-merge' )
const parts = require ( './parts' )
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' )
const AddAssetHtmlPlugin = require ( 'add-asset-html-webpack-plugin' )
/**
* This is shared by vendor, dev and prod
*/
module.exports = merge
( [ parts.loaders
, { resolve:
... |
import {Scene, Block} from '../../src';
describe('renderer', () => {
const container = document.getElementById('stage');
const scene = new Scene({
container,
width: 300,
height: 300,
// contextType: '2d',
// displayRatio: 2,
});
test('renderer', () => {
const layer = scene.layer();
... |
var core = require("../level2/core").dom.level2.core;
/*
valuetype DOMString sequence<unsigned short>;
typedef unsigned long long DOMTimeStamp;
typedef any DOMUserData;
typedef Object DOMObject;
*/
// ExceptionCode
core.VALIDATION_ERR = 16;
core.TYPE_MISMATCH_ERR = 17;... |
var mongoose = require('mongoose'),
postSchema = mongoose.Schema({
title: String,
urlTitle: String,
content: String,
categoryId: {
type: Number,
default: 0
},
date: {
type: Date,
default: Date.now
},
draft: Boolean,
tags: [String]
});
postSchema.methods.p... |
/**
* Module dependencies.
*/
var _ = require('@sailshq/lodash');
// NOTE:
// Since controllers load blueprint actions by default anyways, this route syntax handler
// can be replaced with `{action: 'find'}, {action: 'create'}, ...` etc.
/**
* Expose route parser.
* @type {Function}
*/
module.exports = funct... |
angular.module('bootstrap-tagsinput', [])
.directive('bootstrapTagsinput', [function() {
function getItemProperty(scope, property) {
if (!property)
return undefined;
if (angular.isFunction(scope.$parent[property]))
return scope.$parent[property];
return function(item) {
return item[pr... |
function removeQuestion(e){
$removableDiv = $(e.currentTarget).closest('.question');
if ($removableDiv.is('.question-group *') && $removableDiv.siblings('.question').length < 1){
if (confirm('Are you sure you want to delete this group of questions?'))
$removableDiv.closest('.question-gr... |
var dns = require("dns"); // include the DNS module
dns.resolve4("google.com", function (err, addresses) {
if (err) {
throw err; // if there was any error
}
console.log("addresses: " + JSON.stringify(addresses));// ip address
// Do a reverse lookup
addresses.forEach(function (a)... |
// @flow
import type { Node } from 'react';
type Item = {
key: string,
value: Node,
};
type Props = {
items: Array<?Item>,
};
/**
* Renders a list of key/value info pairs, e.g.:
* Location <strong>Oslo</strong>
* Time <strong>Yesterday</strong>
*/
function InfoList({ items }: Props) {
return (
<ul>
... |
var searchData=
[
['max_5frank',['MAX_RANK',['../class_h5_t_l_1_1_d_space.html#aaff3fd7254edf581676b4d0a5740b80e',1,'H5TL::DSpace']]]
];
|
import firebase from 'firebase';
import swal from 'sweetalert';
export const FETCH_FRIENDS_START = 'FETCH_FRIENDS_START';
export const FETCH_FRIENDS_SUCCESS = 'FETCH_FRIENDS_SUCCESS';
export const FETCH_FRIENDS_FAILURE = 'FETCH_FRIENDS_FAILURE';
export const FETCH_LISTS_START = 'FETCH_LISTS_START';
export const FETCH... |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See https://js.arcgis.com/4.8/esri/copyright.txt for details.
//>>built
define([],function(){if(!b)var b=1E-6;if(!c)var c="undefined"!==typeof Float32Array?Float32Array:Array;if(!d)var d=Math.random;var a={GLMAT_EPSILON:b,GLMAT_ARRAY_TY... |
define([
'backbone'
], function(){
var TodoFilter = Backbone.Model.extend({
defaults: {
state: ''
},
isHidden: function(completed) {
var state = this.get('state');
return (// hidden cases only
(!completed && state === 'completed') ||
(complete... |
/* global View, $new, $state, $url, $loop, $background, $i18n, $config */
function App() {
this.View = $state.View = new View();
this.HTMLElement = document.body;
this.HTMLElement.appendChild(this.View.HTMLElement);
$url.init();
$background();
$loop.start();
$i18n.init($loop);
$config.init($i18n, $back... |
class EventEmitter {
constructor() {
this._listeners = {};
}
listeners(eventName) {
return this._listeners[eventName] ? this._listeners[eventName].slice() : [];
}
emit(eventName, data) {
//ensure we are using a real pixi event
if (!data || data.__isEventObject !== true) {
data = new PIXI.Event(this, e... |
import Rx from 'rxjs';
import CounterModel from 'states/counter/counter.model';
import JsonPlaceholderModel from 'states/jsonPlaceholder/jsonPlaceholder.model';
export default Rx.Observable.combineLatest(
CounterModel.subject,
JsonPlaceholderModel.subject,
function (
CounterState,
JsonPlaceholderState
... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
/* Perf – OvertureJS Example App
It is based on the comparison app from:
https://www.codementor.io/reactjs/tutorial/reactjs-vs-angular-js-performance-comparison-knockout
© 2015 Fastmail Pty Ltd. MIT Licensed.
*/
/*global O */
"use strict";
var el = O.Element.create;
/* A factory function to create t... |
import client from 'kolibri.client';
import urls from 'kolibri.urls';
import { currentLanguage, createTranslator } from 'kolibri.utils.i18n';
import { Presets, permissionPresets } from '../constants';
import { FacilityImportResource } from '../api';
const SetupStrings = createTranslator('SetupStrings', {
personalFac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.