code stringlengths 2 1.05M |
|---|
import * as colors from '../../constants/colors.js';
import store from '../../store/index.js';
import { AR } from '../../constants/languages.js';
import mapbox from '../../constants/mapbox.js';
import layers from '../../constants/layers.js';
import sources from '../../constants/sources.js';
import keys from '../../cons... |
'use strict';
/**
* Module dependencies.
*/
var _ = require('lodash');
exports.render = function(req, res) {
res.render('index', {
user: JSON.stringify(req.user)
});
};
|
/**
* Token route
*/
'use strict';
var locator = require('node-service-locator');
var express = require('express');
var validator = require('validator');
var moment = require('moment-timezone');
var Table = require('dynamic-table').table();
var PgAdapter = require('dynamic-table').pgAdapter();
var ValidatorService ... |
'use strict';
const jwt = require('jsonwebtoken');
const User = require('../models/user');
const password = process.env.JWT_PASSWORD || 'asoetuh!{}l+oestnuhouoe13AOUeothaus';
exports.createToken = function (user) {
return jwt.sign({ id: user._id, email: user.email, scope: user.scope }, password, {
algorithm: '... |
!function(a){a(document).ready(function(){b.navigation(),b.scrollToAnchor()});var b={navigation:function(){var b=a("#site-wrapper"),c="show-nav",d=function(){b.toggleClass(c)};a(".toggle-nav").click(function(){d()}),a(document).keyup(function(a){27==a.keyCode&&d()})},scrollToAnchor:function(){a("#scroll-down").click(fu... |
<!DOCTYPE html>
<head>
<title>PyntCloud</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<style>
body {{
color: #050505;
font-family: Monospace;
font-size: 13px;
text-align: center;
background-color: #f... |
var checkout_url = base_url + 'checkout/';
function hide_card_details()
{
var pay_type = $("input[name=pay_type]:checked").val();
if(pay_type=="paypal")
{
$(".err_cc_name").text('');
$(".err_cc_number").text('');
$(".err_cc_ccd").text('');
$(".err_exp_date").text('');
$("input[name='cc... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zM8.88 7.82L11 9.94 9.94 11 8.88 9.94 7.82 11 6.76 9.94l2.12-2.12zM12 17.5c-2.33 0-4.31-1.46-5.11-3.5h10.22c-.8 2.04-2.78 3.5-5... |
define(["application-configuration"],function(app) {
function chatController($rootScope, $scope,$compile, $routeParams, $location, $localStorage,api){
$scope.user = api.current_user();
$scope.userActions = [1,2,3,4,5,6,7,8,9,10];
$scope.onlineUsers = [1,2,3,4,5,6,7... |
System.register(["TinyDecorations"], function (exports_1, context_1) {
"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;
... |
'use strict';
// Setting up route
angular.module('cars').config(['$stateProvider',
function ($stateProvider) {
// Articles state routing
$stateProvider
.state('cars', {
abstract: true,
url: '/cars',
template: '<ui-view/>'
})
.state('cars.list', {
url: '',
... |
window.addEventListener("load", Ready);
function Ready(){
if(window.File && window.FileReader){ //These are the relevant HTML5 objects that we are going to use
document.getElementById('uploadButton').addEventListener('click', StartUpload);
document.getElementById('fileInput').addEventListener('change'... |
var auth = require('auth');
var Command = require('streamhub-sdk/ui/command');
var hasFooterButtons = require('streamhub-sdk/content/views/mixins/footer-buttons-mixin');
var HubButton = require('streamhub-sdk/ui/hub-button');
var HubLikeButton = require('streamhub-sdk/ui/hub-like-button');
var i18n = require('streamhu... |
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('/sw.js').then(function (registration) {
// Registration was successful
console.log('ServiceWorker registration successful with scope: ', registration.scope);
},... |
V.registerTrigger("", function(handle, index, parentHandle) {
var textHandle = handle.childNodes[0],
textHandleId = textHandle.id,
key = textHandle.node.data,
trigger;
// console.log("getData:",key)
if (parentHandle.type !== "handle") { //as textHandle
if ($.isString(key)) { // single String
trigger = { /... |
var AnsiFSM,
__hasProp = {}.hasOwnProperty;
(typeof exports !== "undefined" && exports !== null ? exports : window).AnsiFSM = AnsiFSM = (function() {
AnsiFSM.prototype.states = {
plain: {
"\u001b": ["esc_seen"],
"\r": ["plain", "cr"],
"\n": ["plain", "nl"],
"\u0008": ["plain", "bs"],
... |
import { readOnly } from '@ember/object/computed';
import Mixin from '@ember/object/mixin';
import moment from 'moment';
/**
* Simple mixin to share a bunch of the properties between the `input-date` & `input-iso8601` components.
*/
export default Mixin.create({
/**
* Assign an action that will be triggered aft... |
'use strict'
const path = require('path')
const webpack = require('webpack')
const providePlugin = new webpack.ProvidePlugin({
'jQuery': 'jquery',
'$': 'jquery',
'window.jQuery': 'jquery'
})
module.exports = {
'context': path.join(__dirname, '.'),
'resolve': {
'root': [
path.join(__dirname, '.')
... |
var JSLINT = require("./lib/jslint").JSLINT,
print = require("sys").print,
src = require("fs").readFileSync("download/matrix.js", "utf8");
JSLINT(src, { evil: true, forin: true, maxerr: 100 });
// All of the following are known issues that we think are 'ok'
// (in contradiction with JSLint) more information here:
/... |
function onlyNumber(){
/*
* 05/19/2014
* Kevin Anaya
* www.anaya@gmail.com
*/
// Variable para almacenar array de inputs
inputs = [];
/* Teclas permitidas
*
* En el rango funcKey hasta nine tiene las teclas que usaremos en el if:
* backspace, tab, enter, shift, ctrl, alt, pause/break,
* capslock, escape,... |
'use strict';
module.exports = {
app: {
title: '蜗牛冒险',
description: '蜗牛冒险岛官网',
keywords: '冒险岛,蜗牛,怀旧冒险,游戏,80后',
googleAnalyticsTrackingID: process.env.GOOGLE_ANALYTICS_TRACKING_ID || 'GOOGLE_ANALYTICS_TRACKING_ID'
},
db: {
promise: global.Promise
},
port: process.env.PORT || 3300,
host: ... |
import { module, test } from "qunit";
import { setupRenderingTest } from "ember-qunit";
import { buildResolver } from "test-utils";
import { triggerKeyDownEvent } from "event-utils";
import { render, click, focus } from "@ember/test-helpers";
import hbs from "htmlbars-inline-precompile";
import RadioButtonsComponent f... |
import React from 'react';
import PropTypes from 'prop-types';
import { POSITION_TOP, POSITION_RIGHT, POSITION_BOTTOM, POSITION_LEFT } from '../constants';
import RandomUID from "../utils/RandomUID";
var prefixID = 'react-svg-pan-zoom_border_gradient';
function BorderGradient(_ref) {
var direction = _ref.direction,... |
/**
* requestAnimationFrame
*/
window.requestAnimationFrame = (function(){
return window.requestAnimationFrame ||
window.webkitRequestAnimationFrame ||
window.mozRequestAnimationFrame ||
window.oRequestAnimationFrame ||
window.msRequestAnimationFrame ... |
module.exports = {
purge: [
'./**/*.html.tera',
'../content/**/*.md'
],
theme: {
extend: {},
},
variants: {},
plugins: [],
}
|
version https://git-lfs.github.com/spec/v1
oid sha256:6f9bc384ce6942215d73b95984a9406979d8f679c1152ecfe36a3f0536341d98
size 167
|
import React from 'react';
import PropTypes from 'prop-types';
import styles from '../styles/itemDetailTabs.scss';
const activeStyle = { filter: 'none', opacity: 1 };
const inactiveStyle = { filter: 'grayscale(100%)', opacity: 0.4 };
const ItemDetailTabs = ({ isCancelOrderPlus, onToggleOrderTab, activeOrderTab... |
var logger = require('../util/logger')(__filename),
request = require('request'),
async = require('async'),
geo = require('../util/geo'),
util = require('../util/util');
var BASE_URL_CALENDAR = 'https://www.googleapis.com/calendar/v3/';
function calendars(user, done) {
util.doCall('GET', BASE_URL_CALENDAR... |
export const db = process.env.MONGOHQ_URL || process.env.MONGODB_URI || 'mongodb://localhost/EDocs';
export default {
db
};
|
import '../../../images/profile.jpg';
import * as actions from '../../../actions/HeaderActions';
import { APP_NAME, LABEL_BOOKS, LABEL_LIBRARY, LABEL_SETTINGS } from '../../../labels/';
import FontAwesome from 'react-fontawesome';
import { HeaderControls } from './HeaderControls';
import Nav from 'react-bootstrap/li... |
const Task = require('data.task');
const fs = require('fs');
// readFile : String -> Task e String
exports.readFile = fileName =>
new Task((reject, resolve) =>
fs.readFile(fileName, 'utf-8', (err, contents) =>
err ? reject(err) : resolve(contents))
);
// writeFile : String -> ... |
(function (factory) {
if (typeof module === 'object' && typeof module.exports === 'object') {
var v = factory(require, exports);
if (v !== undefined) {
module.exports = v;
}
} else if (typeof define === 'function' && define.amd) {
define(['require', 'exports'], factory);
}
})(function (re... |
var geometry = require("../src/index");
var expect = require("chai").expect;
describe("Polygon", function(){
describe("new Polygon", function(){
it("creates point object", function(){
var poly = new geometry.Polygon([]);
expect(poly instanceof geometry.IShape).to.equal(true);
... |
// -------------------------------------------------------------------------- //
// ------------------------------ Allow/deny -------------------------------- //
// -------------------------------------------------------------------------- //
/**
* Wether or not the broadcast is allowed
* @param {Object} data Data o... |
search_result['1577']=["topic_00000000000003CA_events--.html","tlece_PostVacancyStageQuestion Events",""]; |
import { INITIAL_STATE } from './index';
import { INCREASE_GENERATION } from '../actions/index';
import { CLEAR_GENERATION } from '../actions/index';
export default function(state = INITIAL_STATE.generation, action) {
switch(action.type) {
case INCREASE_GENERATION:
return state + 1;
case CLEAR_GENERATI... |
function setFaq(lang) {
var faqText = $(".faq-text-"+lang.toLowerCase());
var faqDisplay = $(".faq-text.lang-"+lang.toLowerCase());
faqText.children().find("b").each(function() {
var question = $(this).text()
var answer = $(this).parent().next().text();
if (answer.length > 5) ... |
var Backbone = require('backbone');
var CommentModel = require('../model/comment');
module.exports = Backbone.Collection.extend({
model: CommentModel,
url: function(){
return "http://blogmv-api.appspot.com/api/articles/"+this.article.id+"/comments/"
},
initialize: function(models, options){
this.article = op... |
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import rootReducer from './reducers'
import 'bootstrap/dist/css/bootstrap.min.css'
import App from './components/App.jsx'
const store = createStore(
rootReducer,
window.__REDUX_DEVT... |
'use strict';
// Articles controller
angular.module('core').controller('MinController', ['$scope', 'Authentication','$location',
function ($scope, Authentication,$location) {
$scope.authentication = Authentication;
// $location.hash('top');
//Dummy data...
$scope.ministries = [
... |
module.exports = {
extends: 'airbnb',
rules: {
'import/no-extraneous-dependencies': 'off',
},
};
|
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by CodeZu.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//--------------------------... |
var path = require('path');
var express = require('express');
var app = express();
var PORT = process.env.PORT || 4541
var webpackDevMiddleware = require('webpack-dev-middleware');
var webpackHotMiddleware = require('webpack-hot-middleware');
var webpack = require('webpack');
var config = require('./webpack.config-dev... |
if (sessionStorage.FontsLoaded) {
document.documentElement.className += ' fonts-loaded';
} |
var Flags = {
stateChange: 'statechange',
systemReady: 'systemready',
loadSystem: 'loadsystem',
updateComponentInfo: 'updatecomponentinfo'
}
|
const util = require('util');
var EventEmitter = require('events').EventEmitter;
var debug = require('debug')('state');
var StateManager = function(initial) {
EventEmitter.call(this);
var _state = null;
this.set = (new_state) => {
debug("state_change", _state, new_state);
this.emit("state_change", _state, n... |
var mongoose = require('mongoose');
var thing;
var thingSchema = mongoose.Schema({
thing_id: String,
owner: String,
name: String,
created: { type: Date, default: Date.now },
config: mongoose.Schema.Types.Mixed,
status: mongoose.Schema.Types.Mixed
});
thing = module.exports = mongoose.model('thing', thingSchema... |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _ramda = require('ramda');
var getDomain = (0, _ramda.pipe)((0, _ramda.split)('@'), _ramda.last);
exports.default = getDomain;
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4u... |
import gravity from "lib/loaders/gravity"
import Artwork from "./artwork"
import { GraphQLList, GraphQLString } from "graphql"
const Artworks = {
type: new GraphQLList(Artwork.type),
description: "A list of Artworks",
args: {
ids: {
type: new GraphQLList(GraphQLString),
},
},
resolve: (root, op... |
'use strict';
exports.keys = 'test key';
exports.cookies = {
sameSite: 'lax',
};
|
/*
* Copyright (c) 2012-2014 André Bargull
* Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms.
*
* <https://github.com/anba/es6draft>
*/
const {
assertDataProperty
} = Assert;
// 15.11.1.1: "message" property no longer non-enumerable
// https://bugs.ecmascript.org/show_bug.cgi?id... |
/*
* 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.
*/
angular.module('eappApp').component('otiprixStep', {
templateUrl: 'templates/components/otiprixStep.html',
controller : ... |
/*global define*/
define(
['marionette','vent','tpl!templates/wizard.tmpl','models/Wizard'],
function (Marionette, vent, tmpl, Wizard) {
'use strict';
return Marionette.ItemView.extend({
template: tmpl,
className: 'tr-container container',
events: {
'click .mongo-toggle' : 'toggle... |
/* The MIT License
Copyright (c) 2008 Genome Research Ltd (GRL).
2010 Broad Institute
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... |
/*
Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'pastetext', 'id', {
button: 'Tempel sebagai teks polos',
pasteNotification: 'Press %1 to paste. Your browser doesn‘t supp... |
var dbus_8c =
[
[ "mux_get_socket_path", "dbus_8c.html#ad5fe4fea41ad5ccc75d8799c6b6c96e2", null ]
]; |
module.exports = {
ERROR: {
INTERNAL: 'INTERNAL_ERROR'
},
HTTP_METHOD: {
POST: 'POST',
GET: 'GET',
PUT: 'PUT'
}
};
|
"use strict";
const CONTENTS_URL = "data/adventures.json";
let adventures;
window.onload = function load () {
BookUtil.renderArea = $(`#pagecontent`);
BookUtil.renderArea.append(EntryRenderer.utils.getBorderTr());
if (window.location.hash.length) BookUtil.renderArea.append(`<tr><td colspan="6" class="initial-mes... |
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4, maxerr: 50 */
/*global define, brackets */
define(function (require, exports, module) {
"use strict";
var EditorManager = brackets.getModule("editor/EditorManager");
var Lines = require("lines"),
Paragraphs = require("par... |
'use strict';
/**
* Module dependencies.
*/
var errorHandler = require('./errors.server.controller'),
db = require('../../config/sequelize'),
_ = require('lodash');
/**
* Create a product
*/
exports.create = function(req, res) {
// Init Variables
var product = db.Product.build(req.body);
req.body.status = '... |
var VisaApp = angular.module('VisaApp', ['ngRoute'])
.config(['$routeProvider', function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'app/views/first.html'
})
.when('/aloitus', {
... |
/*
Project: angular-gantt v1.2.7 - Gantt chart component for AngularJS
Authors: Marco Schweighauser, Rémi Alvergnat
License: MIT
Homepage: https://www.angular-gantt.com
Github: https://github.com/angular-gantt/angular-gantt.git
*/
(function(){
'use strict';
angular.module('gantt', ['gantt.templates', 'angularMo... |
search_result['4075']=["topic_00000000000009C9_events--.html","TemplatesResponseDto Events",""]; |
var express = require("express");
var router = express.Router();
//var imageController = require("../controllers/imagecontroller");
var path = require("path");
var fs = require("fs");
var processorsWithAdminInterfaces = [];
/* GET home page. */
router.get('/processors', function(req, res) {
var output = {id: req.pa... |
/**
* This package transforms an indented string into a Javascript array,
* where nodes are arrays and items are strings.
*
* @license <https://spdx.org/licenses/MIT.html> The MIT License
* @contributor Eliakim Zacarias <https://github.com/ezaca>
*/
var Options = require ('./Options')
var Node, Leaf
{
let I... |
/**
* Bootstrap Altair instances based on a config
*/
require(['altair/Altair',
'require',
'altair/cartridges/Foundry',
'altair/facades/mixin',
'altair/facades/home',
'altair/plugins/node!debug',
'altair/plugins/node!path',
'altair/plugins/node!fs',
'altair/plugins/node!module',
'a... |
import React from 'react'
import Liform from 'liform-react'
const schema={
'properties': {
'email': {
'title':'E-mail',
'type':'string',
'widget':'email',
'format':'email'
}
},
'required':[ 'email' ]
}
const Example = (props) => (
<Liform... |
define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var DocCommentHighlightRules = ... |
/*
* Copyright 2013 Lauren Sperber
* https://github.com/lauren/lauren-sperber-dot-com/blob/master/LICENSE
*/$(document).ready(function(){(function(){$(".navbar").scrollspy({}),$(".nav li a").click(function(){var e=$(this),t=e.attr("href"),n=$(t).offset().top,r=100,i=n-r;$(window).width()<767&&(i=n),$("html, body").anim... |
// ==UserScript==
// @name Brolink Embed
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description enter something useful
// @match http://localhost:3000/*
// @copyright 2012+, You
// ==/UserScript==
var src = document.createElement("script");
src.src = "http://127.0.0.1:9001/js/sock... |
(function () {
'use strict';
angular
.module('password.recovery')
.config(configureRecoveryRoutes);
function configureRecoveryRoutes($routeProvider) {
$routeProvider
.when('/recovery-method/add', buildConfig('email'))
.when('/recovery-method/add-phone', buildConfig(... |
(function () {
'use strict';
var controllerId = 'invitations';
angular.module('app').controller(controllerId, ['$interval', '$route', '$rootScope', '$scope', '$location', 'common', 'datacontext', 'backendHubProxy', 'userService', invitations]);
function invitations($interval, $route, $rootScope, $scop... |
export function a() {
return "ok";
}
export function test() {
function file1_js_a() {
return "fail";
}
return a();
}
|
/*jslint indent: 2*/
/*global require: true, module: true*/
module.exports = require('require-directory')(module);
|
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* This file was added automatically by CKEditor builder.
* You may re-use it at any time to build CKEditor again.
*
* If you would like to bu... |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
(function(global) {
glo... |
'use strict';
(function(module) {
try {
module = angular.module('tink.modal');
} catch (e) {
module = angular.module('tink.modal', []);
}
module.provider('$modal', function() {
var defaults = this.defaults = {
element: null,
backdrop: false,
keyboard: true
};
var openInsta... |
(function ($, window) {
/**
* Enable thumbnail support for Swiper
* @param swiper (pass swiper element)
* @param settings (pass custom options)
*/
window.swiperThumbs = function (swiper, settings) {
/**
* Loop over swiper instances
*/
$(swiper).each(functi... |
/*
* grunt-premailer
* https://github.com/dwightjack/grunt-premailer
*
* Copyright (c) 2013-2016 Marco Solazzi
* Licensed under the MIT license.
*/
'use strict';
module.exports = function gruntPremailer(grunt) {
var dargs = require('dargs'),
path = require('path'),
fs = require('fs'),
... |
define('ajax_setup', function (require) {
var store = require('store');
(function setAjax () {
$.ajaxPrefilter(function (options, originalOptions, jqXHR) {
var dfd = $.Deferred();
jqXHR.done(function (data) {
var dataCheck = options.dataCheck;
if ($.isFunction(dataCheck) && !dataChec... |
version https://git-lfs.github.com/spec/v1
oid sha256:e7732647edc9eb434fd21cba0638455b5231d4c7d976c91e71f5d1fa8c4c0661
size 2336
|
$(document).ready(function(){
$("input[type='checkbox'],input[type='radio']")
.parent()
.prepend("<svg class='lcars-svg'><rect class='lcars-control'></rect></svg>");
$(".lcars-select-label").click(function(){
$(this).children("select").focus();
});
$(".lcars-accordion-heading")
.append(" <span cla... |
'use strict';
module.exports = {
main: {
src: 'app/scripts/**/*.js',
options: {
config: '.jscsrc',
requireCurlyBraces: [ 'if' ]
}
},
test: {
src: 'test/**/*.js',
options: {
config: 'test/.jscsrc',
requireCurlyBraces: [ 'if' ]
}
}
};
|
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import TodoList from './TodoList'
import FetchError from './FetchError'
import { connect } from '../lib/react-redux'
import * as actions from '../actions'
import { withRouter } from 'react-router-dom'
import { getVisibleTodos, getIsFetching, ge... |
'use strict';
const _ = require('lodash');
const httpConst = require('http-const');
const utils = require('./utils');
const InvalidMessageError = require('./invalid-message-error');
const boundaryRegexp = /boundary=-+\w+/im;
const paramRegexp = /Content-Disposition:\s*form-da... |
/* jshint node: true */
// Database controllers and configurations
module.exports = {
url: 'mongodb://localhost/' + 'chat_njs_db'
};
|
(function () {
'use strict';
angular
.module('porttare.directives')
.directive('showError', showError);
function showError() {
var directive = {
restrict: 'EA',
templateUrl: 'templates/directives/show-error/show-error.html',
controller: ShowErrorController,
scope: {
a... |
import styled from 'styled-components'
import Divider from 'material-ui/Divider'
import { Tabs, Tab } from 'material-ui/Tabs'
import { Login, Register, Connect } from '~/components/auth'
import { centered } from '~/components/elements/styles'
const AuthPanel = styled.div`
${centered()}
width: 400px;
max-width: ... |
var Topogo = require("topogo").Topogo;
var River = require("da_river").River;
var table = "";
var m = module.exports = {};
m.migrate = function (dir, r) {
if (dir === 'down') {
Topogo.run('DROP TABLE IF EXISTS ' + table + ';', [], r);
} else {
var sql = 'CREATE TABLE IF NOT EXISTS ' + table + "... |
// Generated by CoffeeScript 1.6.1
(function() {
var ColorScheme,
__slice = [].slice,
__hasProp = {}.hasOwnProperty;
ColorScheme = (function() {
var clone, typeIsArray, word, _i, _len, _ref;
typeIsArray = Array.isArray || function(value) {
return {}.toString.call(value) === '[object Array]';... |
describe('@get', function () {
//Using assert method
it('should return a 200 OK status code for PostID 1', function (done) {
utils.httpGET('/posts/1', {})
.set('content-type', 'application/json; charset=utf-8')
.expect(function (res) {
const response = res.body;
... |
/*
Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
(function(){CKEDITOR.plugins.add("selectall",{lang:"af,ar,az,bg,bn,bs,ca,cs,cy,da,de,de-ch,el,en,en-au,en-ca,en-gb,eo,es,es-mx,et,eu,fa,fi,fo,fr,fr-ca,gl,gu... |
/**
* @license Highstock JS v8.1.0 (2020-05-05)
* @module highcharts/indicators/indicators
* @requires highcharts
* @requires highcharts/modules/stock
*
* Indicator series type for Highstock
*
* (c) 2010-2019 Pawel Fus, Sebastian Bochan
*
* License: www.highcharts.com/license
*/
'use strict';
import '../../i... |
//
// http://24ways.org/2013/grunt-is-not-weird-and-hard/
//
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
connect: {
test: {
options: {
port: 8612,
hostname: 'localhost'
}
},
keepalive: {
options: ... |
import {EntityManager} from '../src/aurelia-orm';
import {Container} from 'aurelia-dependency-injection';
import {WithResource} from './resources/entity/with-resource';
import {WithCustomRepository} from './resources/entity/with-custom-repository';
import {SimpleCustom} from './resources/repository/simple-custom';
impo... |
"use strict"
var QM = (function(QM){
function ActiveGameData(campaign){
this.campaign = campaign;
this.activeLevel = 0;
this.activeMapSprites = [];
this.activeTeam = 0;
this.activeCreature = 0;
this.activeCreatureSprites = {};
this.activeMap = new QM.API.Map(this.campaign.levels[this.activeLevel].mapD... |
define({main:{"be-BY":{identity:{version:{_cldrVersion:"24",_number:"$Revision: 9061 $"},generation:{_date:"$Date: 2013-07-20 12:27:45 -0500 (Sat, 20 Jul 2013) $"},language:"be",territory:"BY"},dates:{calendars:{gregorian:{months:{format:{abbreviated:{1:"сту",2:"лют",3:"сак",4:"кра",5:"мая",6:"чэр",7:"ліп",8:"жні",9:"в... |
//UUID/Guid Generator
//http://frugalcoder.us/post/2012/01/13/javascript-guid-uuid-generator.aspx
// use: UUID.create() or UUID.createSequential()
// convenience: UUID.empty, UUID.tryParse(string)
(function(w){
// From http://baagoe.com/en/RandomMusings/javascript/
// Johannes Baagøe <baagoe@baagoe.com>, 2010
f... |
'use strict';
/**
* Module dependencies
*/
var fs = require('fs');
var utils = require('lazy-cache')(require);
var fn = require;
require = utils;
/**
* Lazily required module dependencies
*/
require('async-each', 'each');
require('bluebird', 'Promise');
require('extend-shallow', 'extend');
require('file-content... |
import Vue from 'vue';
import VueResource from 'vue-resource';
Vue.use(VueResource);
export default class PipelineService {
constructor(endpoint) {
this.pipeline = Vue.resource(endpoint);
}
getPipeline() {
return this.pipeline.get();
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.