code stringlengths 2 1.05M |
|---|
require('../../stylus/components/_sliders.styl')
import { addOnceEventListener, createRange } from '../../util/helpers'
import Colorable from '../../mixins/colorable'
import Input from '../../mixins/input'
import ClickOutside from '../../directives/click-outside'
export default {
name: 'v-slider',
mixins: [Col... |
// Generated by CoffeeScript 1.3.3
(function() {
var defaultMimeTypes, fs, matchMimeType, p, routePath;
fs = require('fs');
p = require('path');
routePath = function(path, config) {
var filename, handler, stat, _fn, _i, _len, _ref, _ref1;
if (config == null) {
config = {};
}
if ((_ref =... |
/**
* Metadata Module
* @module Metadata
* @memberof smx
* @description
* Provides a flexible data layer for document's nodes.
*
* Using nested `<metadata>` nodes you can attach data to the direct parent node.
* Data can be also attached to nodes using `meta-` preffixed attributes.
*
* ### Reserved XML: `meta... |
importScripts('/poc/weather/javascripts/geometry/scale.js');
importScripts('/poc/weather/javascripts/geometry/hull.js');
importScripts('/poc/weather/javascripts/physics/constants.js');
importScripts('/poc/weather/javascripts/world/atmosphere/atmosphere.js');
(function () {
var root = this,
AtmTmp = (root.... |
const path = require('path')
const fs = require('fs-extra')
const webpack = require('webpack')
const fstream = require('fstream')
const unzip = require('unzip')
const config = require('./webpack.config.start')
const [node, filename, ...args] = process.argv
const projectRoot = fs.realpathSync(process.cwd())
const reso... |
/**
* @module ngeo.geolocation.extraModule
*/
import ngeoGeolocationDesktop from 'ngeo/geolocation/desktop.js';
import ngeoGeolocationMobile from 'ngeo/geolocation/mobile.js';
/**
* @type {!angular.Module}
*/
const exports = angular.module('ngeoGeolocationExtraModule', [
ngeoGeolocationDesktop.name,
ngeoGeoloc... |
function printTableData(data,header) {
// data must be passed as an object
if (typeof data !== "object") {
return console.error("data must be an array or table / 2d array")
}
// if header is not provided, make one
if (typeof header !== "object") {
header = ["value"]
} else if (header.length != data[0]... |
console.log('I am tips module....');
$('h1').css('fontSize', '40px');
module.exports = "I am a common module which show tips in the window..."; |
// commit 02b91c5313ff37d74a58f71775170afd360f4a1f
// File generated at :: Wed Oct 31 2012 14:34:26 GMT-0700 (PDT)
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ow... |
import React, {Component} from 'react'
import Icon from 'react-fa'
import Histogram from 'gComponents/simulations/histogram/index'
import MetricName from 'gComponents/metrics/card/name/index'
import {DistributionSummary} from 'gComponents/distributions/summary/index'
import StatTable from 'gComponents/simulations/sta... |
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../../addon/mode/simple"));
else if (typeof defi... |
(function () {
"use strict";
var http = require('http');
var express = require('express');
var Config = require('./config/config');
var MainMiddleware = require('./middleware/mainMiddleware');
var Server = function () {
console.log('Server initialization.');
return {
_server: null,
_... |
const React = require('react')
const ContactForm = require('../components/ContactForm')
const $ = require('jquery')
const ReactCSSTransitionGroup = require('react-addons-css-transition-group')
const data = require('json!../../public/data.json').images
const ContactContainer = React.createClass({
getInitialS... |
const expect = require('chai').expect;
const sinon = require('sinon');
const chance = new require('chance')();
const builder = require('./component-test');
const sandbox = sinon.sandbox.create();
const fakeEntities = sandbox.stub();
const deps = {
'entities': { encodeHTML : fakeEntities }
};
let subject = builder(d... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import hoistNonReactStatic from 'hoist-non-react-statics';
import { getComponentDisplayName } from './internal/reactUtils';
import configuration from './configuration';
import AppContainer from './AppContainer.dev';
import reactHotLoader from ... |
import React, { Component, PropTypes} from 'react';
import ReactDOM from 'react-dom';
import { reduxForm } from 'redux-form';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import LoginError from './loginError'
export const fields = ['email','password'];
export default class SignUpForm exte... |
const RuntimeException = Jymfony.Contracts.PropertyAccess.Exception.RuntimeException;
/**
* @memberOf Jymfony.Component.PropertyAccess.Exception
*/
export default class InvalidPropertyPathException extends RuntimeException {
}
|
'use strict';
angular.module('tubeGuruApp')
.controller('finishedModalCtrl', function ($scope, $modalInstance, gameEngine, gameName, $location) {
$scope.gameName = gameName;
$scope.gameEngine = gameEngine;
$scope.close = function() {
$modalInstance.close();
$location.url('/');
};
}... |
/**
* @module opcua.datamodel
*/
import { EUInformation } from "_generated_/_auto_generated_EUInformation";
import { Range } from "_generated_/_auto_generated_Range";
import { AxisScale } from "lib/data_access/schemas/AxisScale_enum";
import { AxisInformation } from "_generated_/_auto_generated_AxisInformation";
ex... |
import {assert} from 'chai';
import Cursor from 'kittik-cursor';
import sinon from 'sinon';
import Image from '../../src/Image';
const cursor = Cursor.create();
describe('Shape::Image', () => {
it('Should properly get/set image', () => {
const image = new Image(cursor);
assert.notOk(image.getImage());
... |
const tljs = require('@y21/tljs');
const { callbackify } = require('util');
tljs.initializeWasmSync();
module.exports = callbackify(tljs.parse);
|
'use strict';
var HowhapList = require('howhap-list');
require('whatwg-fetch');
var debug = false;
var headers = {
'Accept': 'application/json',
'Content-Type': 'application/json'
};
var handlers = [];
function makeJson(res) {
var debugPromise = null;
if (debug) {
debugPromise = res.text().then(function (tex... |
'use strict';
angular.module('jexpensesApp')
.config(function ($stateProvider) {
$stateProvider
.state('metrics', {
parent: 'admin',
url: '/metrics',
data: {
authorities: ['ROLE_ADMIN'],
pageTitle: 'metrics.... |
'use strict';
// Configuring the Articles module
angular.module('menusections').run(['Menus',
function(Menus) {
// Set top bar menu items
Menus.addMenuItem('topbar', 'Menu Sections', 'menusections', 'dropdown', '/menusections(/create)?');
Menus.addSubMenuItem('topbar', 'menusections', 'List Menusections', 'menu... |
/*global $*/
$(function () {
//detail 封面内容动画
$(".hover").css("transform", 'translateY(' + $('.hover ul').height() + 'px)');
$(".hover").hover(function () {
$(".hover").css("transform", 'translateY(0)');
});
$(".hover").mouseleave(function () {
$(".hover").css("transform", 'translateY... |
'use strict';
/* Filters */
angular.module('OnlineCV.filters', []).
filter('interpolate', ['version',
function (version) {
return function (text) {
return String(text).replace(/\%VERSION\%/mg, version);
};
}
]);
|
import React from 'react';
import Layout from '../../components/Layout';
import { loadDiscussion } from '../../actions/discussion';
import { scrollToResource } from '../../actions/comment';
import updateNotificationStatus from '../notificationHelper';
import DiscussionContainer from './DiscussionContainer';
import { ge... |
NEWSCHEMA('Newsletter').make(function(schema) {
schema.define('email', 'Email', true);
schema.setSave(function(error, model, options, callback, controller) {
var data = model.$clean();
data.datecreated = F.datetime;
controller && (data.ip = controller.ip);
NOSQL('newsletter').insert(data, true).where('email... |
/**
* Created by Андрей on 05.09.14.
*/
define(['backbone', 'models/post'], function(Backbone, Post) {
return Backbone.Collection.extend({
model: Post
});
});
|
/**
* Sort Colors
*
* Given an array with n objects colored red, white or blue, sort them in-place so that objects
* of the same color are adjacent, with the colors in the order red, white and blue.
*
* Here, we will use the integers 0, 1, and 2 to represent the color red, white, and blue respectively.
*
* Note... |
'use strict';
var isnumeric = require( './../lib' );
// Simulate some data...
var data = new Array( 100 ),
len = data.length,
rand;
// Every so often include a non-numeric value...
for ( var i = 0; i < len; i++ ) {
rand = Math.random()*10;
if ( rand < 0.5 ) {
rand = null;
}
data[ i ] = rand;
}
var out = isn... |
angular.module('player').directive('player', [
'$timeout'
, 'playerFactory'
, function ($timeout, playerFactory) {
'use strict';
var nop = angular.noop;
return {
restrict: 'C'
, transclude: true
, replace: true
, require: 'player'
, controller: [
'$scope'
, '$q'
, '$windo... |
/**
* Shower HTML presentation engine: github.com/shower/shower
* @copyright 2010–2013 Vadim Makeev, pepelsbey.net
* @license MIT license: github.com/shower/shower/wiki/MIT-License
*/
window.shower = window.shower || (function (window, document, undefined) {
var shower = {},
url = window.location,
... |
module.exports = join
// join := (Continuable<Continuable<T>>) => Continuable<T>
function join(source) {
return function continuable(callback) {
source(function continuation(err, next) {
if (err) {
return callback(err)
}
next(callback)
})
}
}... |
'use strict';
angular.module('randomGeneratorApp')
.config(function ($routeProvider) {
$routeProvider
.when('/login', {
templateUrl: 'app/account/login/login.html',
controller: 'LoginCtrl'
})
.when('/signup', {
templateUrl: 'app/account/signup/signup.html',
contr... |
// Karma configuration
// Generated on Sun Jan 18 2015 02:50:17 GMT-0300 (ART)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '../../',
// frameworks to use
// available frameworks: https://np... |
// TODO: fix this
function setSelectedNavigationTab(selector) {
$('.nav-item.selected').removeClass('selected');
$(selector).addClass('selected');
}
function hideModal() {
var modalSelector = Session.get('activeModal');
if (modalSelector) {
$(modalSelector).modal('hide');
Session.set('activeModal', n... |
module.exports = function (config) {
"use strict";
config.set({
frameworks: ["mocha", "chai"],
basePath: '../',
logLevel: config.LOG_INFO,
port: 9876,
files: [
'src/public/javascripts/vendor/jquery-1.9.1.min.js',
'src/public/javascripts/vendo... |
'use strict';
var sessionAlert = $("#dialog-session");
/* module def */
var sessionApp = angular.module('sessionApp', []);
var sessionAppTimeoutId;
/* contants */
//sessionApp.constant('settings', { threshold: 3000, sessionDuration: 5000 });
/* filters */
sessionApp.filter('minute', function () {
return functi... |
export default function fetchComponentData(store, components, params) {
const needs = components.reduce((prev, current) => {
if (current && current.fetchData) {
prev.push(current.fetchData);
}
return prev;
}, []);
const promises = needs.map(need => need(store.getState(), store.dispatch, params))... |
var ripple = require('ripple-lib-promise').ripple;
var Amount = ripple.Amount;
var Transaction = ripple.Transaction;
var XRP_UNIT_RIPPLE = Amount.bi_xns_unit.intValue() * 1.0;
var XRP_UNIT_HUMAN = 1 / Amount.bi_xns_unit.intValue();
var NumbertoXRP = exports.NumbertoXRP= function(num){
return Math.floor(num * XRP_... |
import PlayableCharacter from '../PlayableCharacter';
export default class Fighter extends PlayableCharacter {
constructor() {
super();
}
getBackpackSize() {
return 3;
}
getBaseHP() {
return 12;
}
getBaseMana() {
return 6;
}
getBaseSpeed() {
... |
import * as Scrivito from 'scrivito'
Scrivito.provideEditingConfig('TickListItemWidget', {
title: 'Tick List Item',
initialContent: {
statement: 'Lorem ipsum'
}
})
|
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var DeptSchema = new Schema({
_id: Number,
departmentId: Number,
departmentName: String,
locationId: Number,
managerId: Number,
createdDate: Date,
updatedDate: Date
});
module.exports = mongoose.model('Dept', De... |
// @flow
import type { OfflineMeta } from 'types/offline.types';
import type { DeleteAreaCommit, SaveAreaCommit } from 'types/areas.types';
import type { LayerType } from 'types/sharing.types';
export type VectorMapLayer = {
filter?: ?*,
paint: *,
'source-layer': string,
type: 'background' | 'fill' | 'line' |... |
const jwt = require('express-jwt');
const membersService = require('../../members');
const labs = require('../../labs');
const config = require('../../../config');
let UNO_MEMBERINO;
module.exports = {
get authenticateMembersToken() {
if (!labs.isSet('members')) {
return function (req, res, ne... |
describe('<%= name %>', function () {
var <%= name %>;
beforeEach(function () {
module('<%= appname %>');
inject(function (_ <%= name %>
_) {
<%= name %> = _ <%= name %>
_;
});
});
xit('should have tests', function () {
//expect(<%= ... |
search_result['3560']=["topic_000000000000088B.html","PdfDto.PdfUrl Property",""]; |
import hoistStatics from 'hoist-non-react-statics'
import invariant from 'invariant'
import { Component, createElement } from 'react'
import Subscription from '../utils/Subscription'
import { storeShape, subscriptionShape } from '../utils/PropTypes'
let hotReloadingVersion = 0
const dummyState = {}
function noop() {}... |
var win = Titanium.UI.currentWindow;
// Global list of sections and corresponding rss feeds
// Note: Obtained these values from http://www.mercurynews.com/rss
// TODO(agam): Determine these dynamically
var sectionFeeds = {
'Breaking News' : 'feed://feeds.mercurynews.com/mngi/rss/CustomRssServlet/568/200734.xml',
'Mo... |
Meteor.startup(() => {
if (process.env.SAML_PROVIDER !== '') {
Meteor.settings.public.SAML_PROVIDER = process.env.SAML_PROVIDER;
}
});
|
export{D as Debug}from"./Debug-a7857538.js";import"./turn-order-53298974.js";import"immer";import"./reducer-40ee59c5.js";import"flatted";import"./ai-e15e88b0.js"; |
/*! Element Plus v2.0.0 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.ElementPlusLocaleDa... |
// This is the application's entry point.
(function main() {
var router = new Router({
viewManager: new ViewManager()
});
// Route the initial URL, begin monitoring hash change events, and dispatching routes.
Backbone.history.start();
})();
|
var seriesify = require('./seriesify')
, basic = seriesify()
, named = seriesify.named()
// basic usage
basic.add(function (cb) {
cb(null, 1)
})
basic.add(function (cb) {
cb(null, 2)
})
basic.exec(function (err, results) {
console.log('basic', results)
})
// you can name things!
named.add('hello', functio... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'flash', 'lt', {
access: 'Skripto priėjimas',
accessAlways: 'Visada',
accessNever: 'Niekada',
accessSameDomain: 'Tas pats domenas',
alig... |
'use strict';
module.exports = {
db: 'mongodb://localhost/perso-viz-test',
port: 3001,
app: {
title: 'perso-viz - Test Environment'
},
facebook: {
clientID: process.env.FACEBOOK_ID || 'APP_ID',
clientSecret: process.env.FACEBOOK_SECRET || 'APP_SECRET',
callbackURL: 'http://localhost:3000/auth/facebook/cal... |
var ControllerApp = function (options){
var socket = null;
var init = function (){
initSocket();
addHandlers();
FastClick.attach(document.body);
};
var initSocket = function (){
if(socket) return; // already initialized
socket = io.connect(window.location.hostname);
// some debugging statements con... |
const prettier = require('prettier')
const fs = require('fs')
module.exports = function(data, file) {
const rs = JSON.stringify(data)
const source = prettier.format(rs, { parser: 'json' })
fs.writeFileSync(file, source, 'utf8')
}
|
import React, { Component, PropTypes } from 'react'
class SearchResultArtist extends Component {
constructor(props) {
super(props)
}
render() {
return (
<div className="result-item">
<div className="ri-div">{this.props.paginationData.map((v, k) => {
return (
<div className="ri-art-list" key={... |
const { expect } = require('chai');
const index = require('./index');
describe('Main package module', () => {
it('exposes the public API', () => {
expect(index).to.eql({
documentDefinitionsValidator: require('./validation/document-definitions-validator'),
syncFunctionLoader: require('./loading/sync-f... |
import Ember from 'ember';
export default Ember.Route.extend({
title: "Highcharts Mixin"
});
|
'use strict'
var Amqp = require('amqplib/callback_api'),
R = require('ramda');
Amqp.connect('amqp://localhost', (err, conn) => {
if (R.not(err)) {
conn.createChannel((err, ch) => {
let processArgv = R.prop('argv', process),
fromSlice = 2,
newProcessArgv = R.... |
/* global module:false */
module.exports = function(grunt) {
var port = grunt.option('port') || 1111;
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner:
'/*!\n' +
' * reveal.js <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd, HH:MM") %>)\n' +... |
"use babel";
import mysql from 'mysql';
import DataManager from './data-manager';
export default class MysqlManager extends DataManager {
constructor(url) {
super(url);
this.pool = null;
}
destroy() {
this.connection.end();
}
execute(database, query, onSuccess, onError, onQueryToken) {
var... |
var fs = require('springbokjs-utils/fs');
import Di from './Di';
export { Di };
export var directory = function(di, paths) {
if (!Array.isArray(paths)) {
paths = [ paths ];
}
return Promise.all(paths.map((path) => {
return fs.readRecursiveDirectory(path, { recursive: true }, (file) => {
... |
import 'fetch';
export function configure(aurelia) {
aurelia.use
.standardConfiguration()
.developmentLogging()
.plugin('aurelia-syntax-highlighter')
.plugin('aurelia-table')
.plugin('aurelia-bootstrap');
aurelia.start().then(() => aurelia.setRoot());
}
|
/**
* Author: Jeff Whelpley
* Date: 10/22/14
*
*
*/
module.exports = {
view: function (div, span, a) {
return div(
span(a({ href: '/blah' }, 'hello, world')),
div({ 'ng-if': 'something', 'ng-bind': 'boo' }),
div({ 'ng-if': 'another', 'ng-bind': 'yeah' })
);
... |
/*
--- Day 21: RPG Simulator 20XX ---
Little Henry Case got a new video game for Christmas. It's an RPG, and he's
stuck on a boss. He needs to know what equipment to buy at the shop. He hands
you the controller.
In this game, the player (you) and the enemy (the boss) take turns attacking.
The player always goes first... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import shallowCompare from 'react-addons-shallow-compare'
import transition from '../transition'
import { initRouter, pop } from '../actions'
class Router extends Component {
static propTypes = {
rou... |
"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... |
(function(){
angular
.module('linguine.corpora')
.controller('CorporaNewController', CorporaNewController);
function CorporaNewController($scope, $upload, $state, $http) {
$scope.corpus = {};
$scope.files = [];
$scope.onFileSelect = function ($files) {
$scope.files = $files
};
... |
L.Control.Timer = L.Control.extend({
options: {
position: "topright"
},
initialize: function(options) {
L.setOptions(this, options);
},
onAdd: function(map) {
let self = this;
let container = L.DomUtil.create("div", "bm-timer");
let display = L.DomUtil.creat... |
export default {
key: 'Bb',
suffix: 'minor',
positions: [
{
frets: '3111',
fingers: '3111',
barres: 1,
capo: true
},
{
frets: '3114',
fingers: '3114',
barres: 1,
capo: true
},
{
frets: '3564',
fingers: '1342'
},
{
frets:... |
export const ic_format_quote_outline = {"viewBox":"0 0 24 24","children":[{"name":"path","attribs":{"d":"M0 0h24v24H0V0z","fill":"none"},"children":[]},{"name":"path","attribs":{"d":"M18.62 18h-5.24l2-4H13V6h8v7.24L18.62 18zm-2-2h.76L19 12.76V8h-4v4h3.62l-2 4zm-8 2H3.38l2-4H3V6h8v7.24L8.62 18zm-2-2h.76L9 12.76V8H5v4h3.... |
// If called without --prefix, the default prefix will be used.
// To print to stderr, set '--stderr=true'
var defaultOptions = {
prefix: "prefix:",
stderr: false
};
var echoCommand = function(options) {
var string = "No string to echo was provided.";
if(options._ && options._.length > 0)
string = options.... |
import chai, { expect } from 'chai';
import { createStore } from 'redux';
import createStoreObserver from '../src/storeObserver'
describe('storeObserver', () => {
const ACTION_A = 'ACTION_A';
const ACTION_B = 'ACTION_B';
function createDefaultStore() {
return createStore((state = {}, action) => {
if (... |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import styled from 'styled-components';
import { addSection } from '../actions/sections';
import { StyledInput, StyledButton } from '../components/Styled';
@c... |
Ext.define('sisprod.store.LocationByLotTemplate', {
extend: 'Ext.data.Store',
model: 'sisprod.model.LocationModel',
require: [
'Ext.data.Store',
'sisprod.model.LocationModel'
],
pageSize: 10,
proxy:{
type: 'ajax',
api: {
rea... |
(function() {
'use strict';
angular
.module('app.steps', [
'app.core'
]);
})();
|
angular.module('app', [
'app.run',
'app.filters',
'app.services',
'app.components',
'app.directives',
'app.routes',
'app.config',
'app.partials'
]);
angular.module('app.run', []);
angular.module('app.routes', []);
angular.module('app.filters', []);
angular.module('app.services', []);
an... |
/**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
StyleSheet,
Text,
TouchableOpacity,
View,
Clipboard
} from 'react-native';
import FCM from "react-native-fcm";
import PushController from "./PushController";
import fir... |
import React from 'react'
import {FormattedMessage} from 'react-intl'
const Logout = props => {
return (
<span data-test-id="Logout">
<a data-test-id="Logout.button_logout" href="/logout" onClick={doLogout}>
<FormattedMessage id="Logout.button_logout" />
</a>
</span>
)
... |
var AudioContext = (window.AudioContext || window.webkitAudioContext || null),
audioContext = new AudioContext();
module.exports = audioContext; |
'use strict';
angular.module('myApp.comment', [])
.directive('ngComment', ['$jQueryLoader', function($jQueryLoader) {
return {
restrict: 'E',
scope: {
comments: '=',
addMessage: '&'
},
trasclude: true,
replace: true,
templateUrl: 'views/comment/comment.html',
link: functio... |
import {expect} from 'chai';
import {Map, List, fromJS} from 'immutable';
import {INITIAL_STATE, DEFAULT_LABEL} from '../src/constants';
import {select, product} from '../src/core';
describe('application logic', () => {
const stateName = 'Oregon';
const stateFIPS = '41000';
const countyName = 'Jackson C... |
/**
* This file is part of the @iconify/tools package.
*
* (c) Vjacheslav Trushkin <cyberalien@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
'use strict';
const fs = require('fs');
const SVG = require('../svg');
cons... |
const assert = require('assert').strict;
const fs = require('fs');
const path = require('path');
const webpack = require('webpack');
const BomPlugin = require('../webpack-utf8-bom');
const getWebpackConfig = (fileName, withBom) => {
return {
mode: 'development',
entry: path.resolve(__dirname, 'test.js'),
... |
var compose = require('./compose').compose;
var curry = require('../1-curry/curry').curry;
/**
* logging composable function
*/
function log(x){
console.log('logging: ', x);
return x;
}
/**
* Reverse String
*/
function reverse(s){
return s.split('').reverse().join('');
}
/**
* Capitalize first letter
*/
fun... |
/* *
*
* (c) 2010-2020 Torstein Honsi
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
'use strict';
import H from './Globals.js';
/**
* An animation configuration. Animation configurations can also be defined as
* booleans, where `... |
// Imports
import angular from 'angular';
import UserRoles from './userRoles';
/**
* @desc Module initialize.
*
* @ngInject
*/
export default angular
.module('app.core.auth.constants', [])
.constant('UserRoles', UserRoles)
.name;
|
const path = require('path');
const restExpress = require('rest-express');
const options = {
port: 7410,
enableCors: true,
enableGzip: true,
routesPath: path.join(__dirname, './routes'),
apiPrefix: '/api/v1'
};
restExpress.startServer(options)
.then(server => {
let addr = server.address();
console... |
var nodePath = require("path");
exports.check = function (marko, markoCompiler, expect, snapshot, done) {
var template = marko.load(nodePath.join(__dirname, "template.marko"));
var data = {
name: "John",
$global: {
greeting: "Greetings"
}
};
var result = template.renderSync(data);
snapshot(... |
/**
* Created by okagour on 22-07-2016.
*/
angular.module('ecart.common',[])
.constant('Api',{
ecart:'http://192.168.99.12:90/admin',
image:'http://192.168.99.12:90'
})
.directive('mediaPreview', function($log, $document) {
var directive = {
restrict: 'A',
... |
(function () {
var url = 'ws://' + window.location.host + window.location.pathname + 'ws';
var preview = document.getElementById("preview");
var conn = new WebSocket(url);
conn.onclose = function (event) {
preview.textContent = 'connection closed';
}
conn.onmessage = function (event) {
... |
/*!
* jQuery Steps v1.1.0 - 09/04/2014
* Copyright (c) 2014 Rafael Staib (http://www.jquery-steps.com)
* Licensed under MIT http://www.opensource.org/licenses/MIT
*/
;(function ($, undefined)
{
$.fn.extend({
_aria: function (name, value)
{
return this.attr("aria-" + name, value);
},
_remov... |
import {oncePerServices, missingService} from '../../../common/services'
import {VType, validateEventFactory, BaseEvent} from '../../../common/events'
export default oncePerServices(function defineEvents({bus = missingService('bus')}) {
bus.registerEvent([
{
kind: 'event',
type: 'user.new',
val... |
version https://git-lfs.github.com/spec/v1
oid sha256:fb52020a48ad69f2dcf3e24b06d7c4ba151af9d7ddc308b6450609f6da6e2676
size 2331
|
var http = require('http');
var url = require('url');
var DataStorage = require('./lib/data_storage.js')
var dataStorage = new DataStorage
this.server = http.createServer(function (req, res) {
var parsedURL = url.parse(req.url);
var send_set_response = function(err, success){
if (err) {
res.writeHead(40... |
/*
*
* UserLogin actions
*
*/
import {
DO_LOGIN_ACTION,
CHANGE_USERNAME_ACTION,
CHANGE_PASSWORD_ACTION,
LOGIN_SUCCESS_ACTION,
CHANGE_REMEMBER_ACTION,
LOGIN_ERROR_ACTION,
} from './constants';
export function makeChangeUsernameAction(username) {
return {
type: CHANGE_USERNAME_ACTION,
username... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.