code stringlengths 2 1.05M |
|---|
import React from 'react';
import {connect} from 'react-redux'
import {browserHistory} from 'react-router'
import myStore from '../../AppStore'
const chooseQuote = function (quoteId) {
myStore.dispatch({
'type': 'QUOTES-SELECT'
, 'selected': quoteId
});
browserHistory.push('/information')
}... |
require('mocha');
var assert = require('assert');
var Scaffold = require('scaffold');
var isScaffold = require('./');
describe('isScaffold', function () {
it('should return false if the value is not a Scaffold:', function () {
assert(isScaffold('a') === false);
assert(isScaffold({}) === false);
assert(is... |
"use strict";
/**
* Gives us some nice debug convenience functions
*
* @namespace Debug
*/
Log = (function() {
/**
* true if info mode is on, otherwise false
*/
var INFO = true;
var enableInfo = function() {
INFO = true;
};
/**
* true if error mode is on, otherwise false
*/
var ERRO... |
import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosNutritionOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M358,233.855l0.413-0.039c-0.137-0.137-0.046-0.101-0.185-0.237L279.798,155h-0.004c-5.833-6-14.193-10.154-... |
'use strict';
var shell = require('electron').shell;
var desktop_daemon = require('electron').remote;
angular.module('update', ['ngMaterial', 'remote']).controller('downloadController', ['$scope', 'rest', function($scope, rest)
{
this.check_for_update = function()
{
rest.get_desktop_version().then(function(re... |
var common = require('../../common');
var connection = common.createConnection({port: common.fakeServerPort});
var assert = require('assert');
var closeErr;
connection.on('close', function(err) {
assert.ok(!closeErr);
closeErr = err;
});
var queryErr;
var server = common.createFakeServer();
server.listen... |
describe('view-specific options', function() {
var options
beforeEach(function() {
options = {
header: {
left: 'prev,next',
center: 'title',
right: 'month,basicWeek,basicDay,agendaWeek,agendaDay'
},
defaultView: 'month',
titleFormat: '[default]',
views: { }... |
/**
*
* @author : Mei XinLin
* @version : 1.0
*/
export function validateEmail(email) {
const reg = /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((.[a-zA-Z0-9_-]{2,3}){1,2})$/;
return reg.test(email);
}
export function validatePsd(password,secondPsd){
return password === secondPsd;
}
|
autowatch=1;
outlets=3;
// outlet 0 = jit_matrix / jit_gl_texture
// outlet 1 = movie attributes
// outlet 2 = special messages
const cachemode_static = 0;
const cachemode_auto = 1;
var cachemode = cachemode_static;
declareattribute("cachemode");
var cache_size = 0.5;
declareattribute("cache_size");
var cache_sizeauto... |
'use strict';
const _ = require('lodash');
const assert = require('assert');
const Bluebird = require('bluebird');
const __ = require('../../..');
describe('IsFulfilled', () => {
it('should provide a better readable alias', () => {
__.assertThat(__.isFulfilledWith, __.is(__.fulfilled));
});
describe('fulfille... |
Package.describe({
name: 'zurb:foundation-sites',
summary: 'Foundation 6 - The most advanced responsive front-end framework in the world.',
version: '6.3.0',
git: 'https://github.com/zurb/foundation-sites.git',
documentation: 'meteor-README.md'
});
Package.onUse(function(api) {
api.versionsFrom('1.2.1');
... |
var ischool = ischool || {}; //namespace : ischool
ischool.WindowResizeHandler = {}; //播放筆劃的物件,只負責播放筆劃
/*
在拖拉更改視窗大小的過程會一直觸發 window.resize 事件,造成效能慢,
這段程式碼偵測使用者改變視窗大小的動作已結束之後,才觸發事件。
*/
ischool.WindowResizeHandler.handle = function(afterWindowResize) {
/* 檢查 resize 是否結束了 */
var rtime = new Date(1, 1, 2000, 12,... |
'use strict';
var angular = require('angular');
angular
.module('mwl.calendar')
.constant('calendarConfig', {
allDateFormats: {
angular: {
date: {
hour: 'ha',
day: 'd MMM',
month: 'MMMM',
weekDay: 'EEEE',
time: 'HH:mm',
datetime: 'MMM d... |
import './progressDialog.html';
import './progressDialog.styl';
import './progressDialog.js';
|
describe("Time left", function() {
beforeEach(function () {
settings = new Settings();
settings.blocklist = ['www.zombo.com'];
settings.show_badge = true;
settings.time_limits = {'www.zombo.com': 10};
settings.elapsed_times = {'www.zombo.com': 6};
settings.temp_block... |
import React from 'react';
import classNames from 'classnames';
import { makeStyles, useTheme } from '@material-ui/styles';
import Drawer from '@material-ui/core/Drawer';
import AppBar from '@material-ui/core/AppBar';
import Toolbar from '@material-ui/core/Toolbar';
import CssBaseline from '@material-ui/core/CssBaselin... |
define(['exports', 'aurelia-framework', '../utils/bootstrap-options'], function (exports, _aureliaFramework, _bootstrapOptions) {
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.AubsBtnLoadingCustomAttribute = undefined;
function _initDefineProp(target,... |
import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
StatusBar,
TextInput,
ActivityIndicator,
Platform
} from 'react-native';
import { connect } from 'react-redux';
import t from 'tcomb-form-native';
const Form = t.form.Form;
import Button from '../common/Button';
import ServicesFo... |
/**
* Filters an array by the given filter function(s), may provide a function or an array or an object with filtering
* functions.
*/
module.exports = function(value, filterFunc, testValue) {
if (!Array.isArray(value)) {
return [];
} else if (!filterFunc) {
return value;
}
if (typeof filterFunc ===... |
import Router from './routers/Router';
import OctobusRouter from './routers/Octobus';
import MongoResourceRouter from './routers/MongoResourceRouter';
import { route } from './libs/decorators';
import * as mongoHelpers from './libs/mongo-helpers';
export { Router, MongoResourceRouter, route, mongoHelpers, OctobusRoute... |
'use strict'
var postcss = require('postcss')
var isCssRoot = require('is-css-root')
var cssVariable = require('css-variable')
module.exports = postcss.plugin('get-variables', function (callback) {
return function (root, postcssResult) {
var variables = {}
root.walkRules(function (rule) {
if (rule.se... |
function panel_arkud_update(KaTZPit_data){
// Variable ARKUD contient
// 1=Selecteur de Mode, 2-3=Switch Sensitivity, 4=Selecteur de Channel, 5=Volume, 6-8 Voyants
// Switch Sensotivity et UHF/VHF
if (dataread_posit(KaTZPit_data["ARKUD"],2) ==1) {$("#ARKUD-SW-Sens").attr('src','images/Switch-Metal-U3.gif')} e... |
import Ember from 'ember';
import DS from 'ember-data';
import ENV from '../config/environment';
export default DS.Model.reopenClass({
random: function(proposal_id) {
var path = "/proposals/next";
if(proposal_id) {
path += "?proposal_id=" + proposal_id;
}
return (new Ember.RSVP.Promise(function... |
import React from "react";
const MdnLink = ({ children }) =>
<a href={`https://mdn.io/${children}`}>
<code>
{children}
</code>
</a>;
export default MdnLink;
|
#!/usr/bin/env node
'use strict';
const Argv = require('yargs')
.demand('env')
.argv;
Argv.env === 'dev' && require('babel-register');
const appDir = `./${Argv.env === 'dev' ? 'app' : 'dist'}`;
const Config = require(`${appDir}/config`);
const initApp = require(`./${appDir}/init`);
Config.getConfig(Argv.env)... |
$(document).ready(function() {
if (!(navigator.userAgent.toLowerCase().indexOf('chrome') > -1)) {
$('body').html('<p id="disclaimer">We are sorry, this experiment only works under the latest version of Google Chrome</p>');
return;
}
App.run();
}); |
/**
* @author Bloody
*/
var Scene_RenderTarget_Viewport = new Class({
rootElement: null,
canvas: null,
context: null,
sceneGraph: null,
initialize : function(element, sceneGraph) {
this.rootElement = element;
this.sceneGraph = sceneGraph;
var size = element.width();
var canvas = $(document.... |
var nconf = require('nconf');
// load config from args, env vars or local.json
nconf.argv().env().file({
file: 'local.json',
dir: __dirname,
search: true
});
// defaults
nconf.defaults({
url: 'https://omgvamp-hearthstone-v1.p.mashape.com',
key: '',
sets: ['Classic', 'The Grand Tournament', 'Goblins vs Gno... |
'use strict';
var app = app || {};
(function(module) {
const generalController = {};
const f = $('form')[0];
// take the area, start, and end dates from the url to make an object for the request parameters
generalController.createFilter = function(ctx, next) {
let area = ctx.params.area.split(', ');
... |
var authController = (models, _validate, _h, jwt, co) => {
var Authenticate = (req, res) => {
_validate.validateAuthParams(req, function (err) {
co(function* () {
if (err) return res.status(400).json(err);
// Authenticate a user
// find the user
var user = yield models.User.f... |
;(function ($, window, document, undefined) {
'use strict';
var noop = function() {};
var Orbit = function(el, settings) {
// Don't reinitialize plugin
if (el.hasClass(settings.slides_container_class)) {
return this;
}
var self = this,
container,
slides_container = el,
... |
git://github.com/dmjs/dm.js.git
|
demoApp.controller('main', [ "$scope", function($scope) {
$scope.name = "test";
}]);
demoApp.controller('SimpleController', [ "$scope", function($scope) {
$scope.name = "test";
}]); |
describe('The specs from the ruby source project', function(){
var cut;
beforeEach(function(){
cut = require('../js/htmldiff');
});
it('should diff text', function(){
var diff = cut('a word is here', 'a nother word is there');
expect(diff).equal('a<ins data-operation-index="1">... |
import angular from 'angular';
import uiRouter from 'angular-ui-router';
import myProfileComponent from './my-profile.component';
let myProfileModule = angular.module('my-profile', [
uiRouter
])
.config(($stateProvider) => {
$stateProvider
.state('my-profile', {
url: '/my-profile',
template: '<my-... |
/* eslint-disable no-param-reassign, consistent-return */
import { useEffect, useRef } from "react";
export const useESCKey = ({ condition, element, listener }) =>
useEffect(() => {
if (condition) {
const handleKeyDown = (event) => {
if (event.key === "Escape") listener?.(event);
};
e... |
var hub = require('mag-hub');
var format = require('mag-format-message');
var colored = require('../');
hub.pipe(format())
.pipe(colored())
.pipe(process.stdout);
var logger = require('mag')('colored-output');
logger.info('examle of %s', 'mag-format-message');
logger.debug('mag methods:\n ', logger);
var seco... |
import Ember from 'ember';
export default Ember.Component.extend({
// filteredCollection: Ember.computed.oneWay('collection'),
// _filter(query) {
// return Ember.RSVP.resolve(this.get('collection').filter((object) => {
// return object.get('title').toLowerCase().indexOf(query.toLowerCase()) >= 0;
// ... |
'use strict';
/*global Faye: true, document: true*/
var client = new Faye.Client('http://localhost:8000');
var containerDiv = document.getElementById('containerDiv');
function zeroPadding(number, len) {
if (!len && len !== 0) {
len = 2;
}
var str = String(number);
while (str.length < len) {
... |
import { CHANGE_SHARED_TITLE } from './constants';
export function changeSharedTitle(newTitle) {
return {
type: CHANGE_SHARED_TITLE,
payload: newTitle
}
}
|
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Chart from '../components/chart';
class WeatherList extends Component {
renderWeather(cityData) {
const name = cityData.city.name;
const temps = cityData.list.map(weather => 9/5 * (weather.main.temp - 273) + 32);
cons... |
'use strict';
var config = require('./config/gulp.config');
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var $$ = $.loadUtils(['colors', 'env', 'log', 'pipeline']);
var _ = require('lodash');
require('require-dir')('./tasks');
gulp.task('default', ['dev']);
|
/*
*
* 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 ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); y... |
'use strict'
const path = require('path')
module.exports = {
environment: 'development',
db_url: 'sqlite://' + path.join(__dirname, '../', 'db.sqlite'),
port: 3000
}
|
var gulp = require('gulp');
var styleguide = require('sc5-styleguide');
var sass = require('gulp-sass');
var concat = require('gulp-concat');
var babel = require("gulp-babel");
var uglify = require("gulp-uglify");
var outputPath = 'styleguide';
gulp.task('styleguide:generate', function () {
return gulp.src('src/st... |
'use strict';
const electron = require('electron');
const menubar = require('menubar');
const electronDebug = require('electron-debug');
const electronDetach = require('electron-detach');
if (electronDetach({ requireCmdlineArg: false })) {
electronDebug();
const mb = menubar({
dir: __dirname + '/src/',
pr... |
'use strict';
// Use applicaion configuration module to register a new module
ApplicationConfiguration.registerModule('soluznodes'); |
define(function () {
return 'dependency';
});
|
import { APP_NAME, APP_URL, LANDING_PAGE_URL, SUPPORT_EMAIL, LIQUID_TOKEN, DEBT_TOKEN, DEBT_TOKEN_SHORT, CURRENCY_SIGN, VESTING_TOKEN, LIQUID_TICKER } from 'config/client_config';
/**
* see: app/locales/README.md
*/
export const ua = {
// this variables mainly used in navigation section
about: "Про проект",
explor... |
import React, { useEffect, useReducer, useCallback } from 'react'
import { ActivityIndicator, StyleSheet, Text, View } from 'react-native'
import { getList } from './api/picsum'
import { actionCreators, initialState, reducer } from './reducers/photos'
import PhotoGrid from './components/PhotoGrid'
export default func... |
/**
* 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
* @emails oncall+relay
*/
'use strict';
const RelayFeatureFlags = require('../../util/RelayFeatureFlags');
const Rela... |
/**
* Created by xreztento@vip.sina.com on 2016/12/29.
*/
define(function (require, exports, module) {
require("jquery");
require("style");
var Class = require("class");
var Element = require("./Element");
var ButtonElement = require("buttonElement");
var AlertElement = Class("AlertElement",... |
const fs = require('fs');
const path = require('path');
const data = require('./data');
const TinyColor = require('@ctrl/tinycolor').default;
data.forEach(category => {
const l = element => new TinyColor([].concat(element)[0].color).toHsl().l;
const h = element => new TinyColor([].concat(element)[0].color).toH... |
// Variables
var user,
timer,
socket,
oldname,
username,
typeTimer,
clients = [],
usersTyping = [],
nmr = 0,
dev = true,
unread = 0,
focus = true,
typing = false,
connected = false,
version = VERSION,
blop = new Audio('sounds/blop.wav');
emojione.ascii = true... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: >
The production QuantifierPrefix :: ? evaluates by returning the two
results 0 and 1
es5id: 15.10.2.7_A5_T8
description: Execute /x?ay?bz?c/.exec("abcd") and check re... |
import React from 'react';
import SingleDatePicker from 'react-dates/lib/components/SingleDatePicker';
class SingleDatePickerWrapper extends React.Component {
constructor(props) {
super(props);
this.state = {
focused: false,
date: null,
};
this.onDateChange = this.onDateChange.bind(this... |
(function(angular) {
'use strict';
angular.module('gravatarImageExample', ['bgn.GravatarImage'])
.controller('GravatarImageController', ['$scope', function($scope) {
$scope.email = 'deerawan@gmail.com';
}]);
})(window.angular); |
/**
* bearerAuth Policy
*
* Policy for authorizing API requests. The request is authenticated if the
* it contains the accessToken in header, body or as a query param.
* Unlike other strategies bearer doesn't require a session.
* Add this policy (in config/policies.js) to controller actions which are not
* acces... |
module.exports = {
db: process.env.DB_CONN_STRING || 'postgres://test@localhost:5432/test',
secretHash: 'thecakeisalie',
env: 'test'
};
|
{
'welcome':"Bienvenue sur le web en français",
'hello':"Quoi de neuf",
'paths': {
'greeting' : "/salutation"
}
} |
if(typeof exports === 'object') {
var assert = require("assert");
var alasql = require('..');
var _ = require('lodash');
} else {
__dirname = '.';
};
describe('Test 287 SET NOCOUNT OFF/ON', function() {
it('1. CREATE TABLE and FIRST INSERT',function(done){
alasql('CREATE DATABASE test287;USE test287');
... |
{
"metadata" :
{
"formatVersion" : 3.1,
"sourceFile" : "dice.obj",
"generatedBy" : "OBJConverter",
"vertices" : 8,
"faces" : 6,
"normals" : 6,
"uvs" : 22,
"materials" : 1
},
"materials": [ {
"DbgColo... |
'use strict';
/**
* @ngdoc overview
* @name knobyApp
* @description
* # knobyApp
*
* Main module of the application.
*/
angular
.module('knobyApp', [
'knoby.hammer',
'knoby.lodash',
'knoby.d3',
'ngAnimate',
'ngCookies',
'ngResource',
'ngRoute',
'ngSanitize',
'ngTouch'
])
... |
import Sequelize from 'sequelize';
import config from '../config/config';
import User from './User';
import Permissionlevel from './Permissionlevel';
import Project from './Project';
import Users_have_Projects from './Users_have_Projects';
let model = {};
let sequelize = new Sequelize(config.postgresql.connectionStr... |
import React from 'react'
export default () => <h2>I'm a Basic Literasee Component</h2>
|
import Button from './Button.js';// eslint-disable-line no-unused-vars
|
module.exports = {
"key": "pichu",
"moves": [
{
"learn_type": "tutor",
"name": "covet"
},
{
"learn_type": "machine",
"name": "wild-charge"
},
{
"learn_type": "machine",
"name": "volt-switch"
}... |
/*jslint indent:2*/
/**
* Snow main class
*/
var Snow = function(config) {
this.init(config);
this.create();
};
Snow.prototype = {
// public
start: function() {
this.render();
},
stop: function() {
// this.create();
},
// View constructor
init: function(config) {
this.config(config... |
var path = require('path');
var basic = require('../functions/basic.js');
var consoleLogger = require('../functions/basic.js').consoleLogger;
var userDB = require('../db/user_db.js');
var receivedLogger = function (module) {
var rL = require('../functions/basic.js').receivedLogger;
rL('router', module);
};
va... |
/**
* Create display state chunk type for draw render of lights projection
*/
SceneJS_ChunkFactory.createChunkType({
type:"lights",
build:function () {
this._uAmbientColor = this._uAmbientColor || [];
this._uLightColor = this._uLightColor || [];
this._uLightDir = this._uLightDir ||... |
import getViewportSize from '../../util/dom/getViewportSize';
import createPlacement from './create';
import BottomLeft from './bottom-left';
import BottomRight from './bottom-right';
import BottomCenter from './bottom-center';
import TopLeft from './top-left';
import TopRight from './top-right';
import TopCenter from... |
/*
* routes for config page
*/
var db = require('./db')
, config = require('./config');
// Get all DB entries and render the config.jade file
exports.list = function(req, res){
db.query(function(pclist){
res.render('config',{title: 'Wol', pclist: pclist});
});
};
// add one entrie from th... |
// All symbols in the Shorthand Format Controls block as per Unicode v9.0.0:
[
'\uD82F\uDCA0',
'\uD82F\uDCA1',
'\uD82F\uDCA2',
'\uD82F\uDCA3',
'\uD82F\uDCA4',
'\uD82F\uDCA5',
'\uD82F\uDCA6',
'\uD82F\uDCA7',
'\uD82F\uDCA8',
'\uD82F\uDCA9',
'\uD82F\uDCAA',
'\uD82F\uDCAB',
'\uD82F\uDCAC',
'\uD82F\uDCAD',
'\... |
/*
* Copyright 2017 Bennett Somerville
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dist... |
version https://git-lfs.github.com/spec/v1
oid sha256:bc7d1eb1b09ca463642b46225f6b96ce28401f54e6c925df216686427c74e922
size 23900
|
version https://git-lfs.github.com/spec/v1
oid sha256:26cd19b47656e784cda9f0d9d58a8b57edf007b6e9820b4a663a32cacb0a7352
size 5461
|
'use strict';
var TestHelpers = require('./test-helpers');
var Logfire = require('../lib/logfire-client');
var client, server;
client = new Logfire('http://localhost:8088');
describe('client.query', function() {
before(function() {
return TestHelpers.runServer()
.then(function (_server) {
server =... |
const findParent = (target, el={}) => target === el
? true
: !!el.parentElement && findParent(target, el.parentElement)
export default {
name: 'dropdown-menu',
props: {
options: {
type: Array,
default: () => []
},
tag: {
type: String,
... |
var tests = [];
exports.test = function(code, ast, options, pluginOptions) {
tests.push({code, ast, options, pluginOptions});
};
exports.testFail = function(code, message, options, pluginOptions) {
tests.push({code, error: message, options, pluginOptions});
};
exports.testAssert = function(code, assert, options) {... |
var canvas = document.getElementById("myCanvas");
var ctx = canvas.getContext("2d");
var particle={x:-50, y:-50, v:0, d:0};
canvas.width = canvas.parentElement.offsetWidth;
canvas.height = canvas.parentElement.offsetHeight;
var centre = {x: canvas.widt... |
import EmberRouter from '@ember/routing/router';
import config from './config/environment';
const Router = EmberRouter.extend({
location: config.locationType,
rootURL: config.rootURL
});
Router.map(function() {
this.route('people', function() {
this.route('show', { path: ":person_id" });
})
});
export de... |
// Copyright IBM Corp. 2015. All Rights Reserved.
// Node module: strong-arc-filesystem
// US Government Users Restricted Rights - Use, duplication or disclosure
// restricted by GSA ADP Schedule Contract with IBM Corp.
module.exports = function mountLoopBackExplorer(server) {
var explorer;
try {
explorer = re... |
import { entity, ignore, id, rules } from 'walas';
import { required, period, length } from 'rules';
@rules([period, start, end])
@entity
export class Task {
@id
id;
@rules(required, [length, 50])
name;
@rules(required)
start;
@rules(required)
end;
@ignore
timestamp;
}
|
const renderer = require('./renderer');
class Tree {
/**
* @param {Object} tree PostHTML tree
* @see https://github.com/posthtml/posthtml/blob/master/docs/tree.md#json
*/
constructor(tree) {
this.tree = tree;
}
toString() {
return renderer(this.tree, this.tree.options);
}
}
module.exports ... |
module.exports = { prefix: 'far', iconName: 'desktop-alt', icon: [576, 512, [], "f390", "M528 0H48C21.5 0 0 21.5 0 48v288c0 26.5 21.5 48 48 48h480c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48zM48 54c0-3.3 2.7-6 6-6h468c3.3 0 6 2.7 6 6v234H48V54zm432 434c0 13.3-10.7 24-24 24H120c-13.3 0-24-10.7-24-24s10.7-24 24-24h98.7l... |
/**
* Created by sheldon on 2016/5/18.
*/
var mongoose = require('mongoose');
var AgentSchema = require('../schemas/agent');
var Agent = mongoose.model('Agent',AgentSchema);
module.exports = Agent;
|
/**
* @fileoverview Externs for createjs
* @externs
*/
/**
* @constructor
*/
createjs.EventDispatcher = function() {};
/**
* @param {string} type
* @param {Function|Object} listener
* @param {boolean=} useCapture
* @return {Function|Object}
*/
createjs.EventDispatcher.prototype.addEventListener = function... |
// All symbols in the `Limbu` script as per Unicode v5.0.0:
[
'\u1900',
'\u1901',
'\u1902',
'\u1903',
'\u1904',
'\u1905',
'\u1906',
'\u1907',
'\u1908',
'\u1909',
'\u190A',
'\u190B',
'\u190C',
'\u190D',
'\u190E',
'\u190F',
'\u1910',
'\u1911',
'\u1912',
'\u1913',
'\u1914',
'\u1915',
'\u1916',
'\u1... |
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ["admin-nav-item", "collection-item"]
});
|
// Convert html into markdown
//
'use strict';
/* eslint-disable-next-line no-redeclare */
const $ = require('nodeca.core/lib/parser/cheequery');
class MarkdownWriter {
constructor() {
this.tag_handlers = {};
Object.assign(this.tag_handlers, {
a: this.tag_handler_anchor,
blockqu... |
/* -*- Mode: Java; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
/* globals PDFJS, expect, it, describe, Promise, combineUrl, waitsFor, runs */
'use strict';
describe('api', function() {
// TODO run with worker enabled
var... |
angular.module('app')
.config(() => (
firebase.initializeApp({
apiKey: "AIzaSyCptyoC-x5hm4Ut5Nu2a_CqHdCkH21A458",
authDomain: "flavorize-front-end-capstone.firebaseapp.com",
databaseURL: "https://flavorize-front-end-capstone.firebaseio.com",
storageBucket: "flavorize-front-end-capstone.app... |
// @flow
const ClauseActionTypes = {
// add/edit UI
ON_CLICK_ADD_CLAUSE: 'ON_CLICK_ADD_CLAUSE',
ON_CLICK_CANCEL: 'ON_CLICK_CANCEL',
ON_CLICK_DELETE_CLAUSE: 'ON_CLICK_DELETE_CLAUSE',
ON_CLICK_EDIT_CLAUSE: 'ON_CLICK_EDIT_CLAUSE',
ON_CLICK_SAVE_CLAUSE: 'ON_CLICK_SAVE_CLAUSE',
ON_... |
'use strict';
var Immutable = require('immutable');
Immutable.Iterable.noLengthWarning = true;
module.exports = {
topics: new Immutable.List(),
title: 'Word Cloud',
width: 800,
height: 300,
fontSizes: [12, 16, 20, 24, 30, 40],
random: false,
initialHighlight: true
};
|
'use strict';
/**
* A callback function that fires after the left arrow is clicked
* @callback CarouselArrows~onLeftArrowClick
*/
/**
* A callback function that fires after the right arrow is clicked
* @callback CarouselArrows~onRightArrowClick
*/
/**
* Adds functionality for carousel's left and right arrows.... |
/*
*
* Wijmo Library 0.6.1
* http://wijmo.com/
*
* Copyright(c) ComponentOne, LLC. All rights reserved.
*
* Dual licensed under the MIT or GPL Version 2 licenses.
* licensing@wijmo.com
* http://www.wijmo.com/license
*
* * Wijmo Popup widget.
*
* Depends:
* jquery.ui.core.js
* jquery.ui.widget.js
* ... |
defineClass('Consoloid.OS.Process', 'Consoloid.Base.Object',
{
__constructor: function(options)
{
this.__base($.extend({
args: [],
spawnOptions: {},
readStdout: this.__defaultStdoutCallback.bind(this),
readStderr: this.__defaultStderrCallback.bind(this),
onClose: ... |
import angular from 'angular';
import uiRouter from 'angular-ui-router';
import loginComponent from './login.component';
let loginModule = angular.module('login', [
uiRouter
])
.config($stateProvider => {
'ngInject';
$stateProvider.state('login', {
url : '/login',
template : '<login></login>'
})... |
//os analyzer
//I use the redis server to publish the os status informations.
var net = require('net');
var path = require('path');
var log4js = require("log4js");
var cjson = require('cjson');
var config = cjson.load('./config/config.json');
var snmp = require('snmp-native');
var _ = require('underscore');
var util =... |
import React from 'react';
import PropTypes from 'prop-types';
import { Checkbox } from 'office-ui-fabric-react/lib/Checkbox';
import styled from 'styled-components';
import { Label } from 'office-ui-fabric-react/lib/Label';
import { metaProp, inputProp, optionsProp } from 'utils/propTypes';
import { isEmptyChecks } f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.