code
stringlengths
2
1.05M
import BootListGroup from './BootListGroup' import BootListGroupItem from './BootListGroupItem' import BootListGroupItemHeading from './BootListGroupItemHeading' import BootListGroupItemText from './BootListGroupItemText' export { BootListGroup, BootListGroupItemText, BootListGroupItemHeading, BootListGroupItem }
var SmartObject = require('smartobject'), vboard = require('./vboard'); var so = new SmartObject(); so.init('temperature', 0, { sensorValue: { // < rid = 5700, R, Float > read: function (cb) { return vboard.fooBus.read(cb); } }, units: 'C' ...
var merge = require('webpack-merge'); var webpack = require('webpack'); var baseConfig = require('./webpack.config.umd'); module.exports = merge(baseConfig, { output: { filename: 'social-likes.min.js', }, plugins: [ new webpack.optimize.UglifyJsPlugin({ compressor: { screw_ie8: true, warnings: false,...
'use strict' const webpack = require('webpack') const webpackDevMiddleware = require('webpack-dev-middleware') const webpackHotMiddleware = require('webpack-hot-middleware') const express = require('express') const config = require('./webpack.config') const compiler = webpack(config) const app = express() const port ...
// thanks to taka @ github.com/teikmeout for heroku deployment docs const pg = require('pg-promise')({/* OPTIONAL Initialization Options */}); const config = { host: process.env.DB_HOST, port: process.env.DB_PORT, database: process.env.DB_DATABASE, user: process.env.DB_USER, password: proces...
//---------------------------------------------------------------------- // Copyright (c) 2012-2015 Raytheon BBN Technologies // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and/or hardware specification (the "Work") to // deal in the Work without restriction, incl...
/*! * Bootstrap v3.3.1 (http://getbootstrap.com) * Copyright 2011-2014 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ /*! * Generated using the Bootstrap Customizer (http://getbootstrap.com/customize/?id=a100ef809e62f80006ba) * Config saved to config.json and https:...
module.exports = (sequelize, DataTypes) => { const Role = sequelize.define('Role', { name: DataTypes.STRING, description: DataTypes.STRING }, { freezeTableName: true, classMethods: { associate(models) { Role.belongsToMany(models.StaffMember, { through: 'StaffMemberRole', ...
var nconf = require('nconf'); nconf.overrides({ 'always': 'be this value' }); nconf.env().argv(); nconf.file('config/credentials.json'); var server = require('nodebootstrap-server'); var CronJob = require('cron').CronJob; var request = require('request'); var email = require("emailjs"); var emailServer...
import { auth } from 'app/store/initialState'; import { data } from 'app/actions/actionTypes'; export default (state = auth, action = {}) => { switch (action.type) { case 'SIGNIN_PENDING': return { ...state, authInProgress: true, }; case 'SIGNIN_FULFILLED': return { ...
module.exports = [ { "_id": "000000000000000000000001", "firstName": "Ida", "lastName": "Abernathy", "alucecId": 1, "agent": "000000000000000000000001", "paidMonths": [201507, 201509, 201510], "entry": { "date": "2015-07-22T19:08:15.753Z" } }, { "_id": "000000000000000000...
/** * Tool for drawing rectangles. * * @name rectangle * @memberOf P.tools * @type {paper.Tool} */ (function(){ var rectTool = new paper.Tool(); var rectangle; rectTool.onMouseDown = function(event) { rectangle = new paper.Path.Rectangle(event.point, new paper.Size(0,0)); rectangle.fillColor = P.getAct...
'use strict'; var debug_mode = /\bclustedis\b/i.test(process.env.NODE_DEBUG); module.exports = { DEBUG: debug_mode, debug: function() { if (debug_mode) { console.log.apply(null, arguments); } }, info: function() { console.log.apply(null, arguments); },...
define(['backbone', 'config', 'jquery'], function (Backbone, Config, $) { var citizen = Backbone.Model.extend({ defaults: { UIDI: 00000, enrollment_id1: 0000, enrollment_id2: 00000, enrollment_id3: 00000, first_name: 'First Name', last_...
// flow-typed signature: fb1b56a3753adfb14a6919448e25ac61 // flow-typed version: <<STUB>>/istanbul_v^1.1.0-alpha.1/flow_v0.35.0 /** * This is an autogenerated libdef stub for: * * 'istanbul' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with ...
var searchData= [ ['rtc_5ftype',['RTC_Type',['../struct_r_t_c___type.html',1,'']]], ['rtcprescaler_5ftype',['RTCPrescaler_Type',['../struct_r_t_c_prescaler___type.html',1,'']]] ];
'use strict'; function forEach(array, action) { for (var i = 0; i < array.length; i++) action(array[i]); } /* Controllers */ angular.module('myApp.controllers', []) .controller('MainCtrl', ['$scope', '$http', function($scope, $http) { $scope.initComp = function(params) { $scope.group = {...
todoapp.config(['$stateProvider', '$urlRouterProvider', function($stateProvider, $urlRouterProvider){ $urlRouterProvider.otherwise('/home'); $stateProvider.state('home',{ url: '/home', templateUrl: 'templates/home.html', controller: 'HomeController' }).state('register',{ url: '/register', te...
/** * Copyright (C) 2020 tt.bot dev team * * This file is part of tt.bot. * * tt.bot is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any ...
import { injectReducer } from '../../store/reducers' export default (store) => ({ path: 'register', getComponent (nextState, next) { require.ensure([ './containers/RegisterContainer', './modules/register' ], (require) => { /* These modules are lazily evaluated using require hook, and w...
const path = require('path') const lr = require('webpack-livereload-plugin') module.exports = { context: path.join(__dirname, 'src'), entry: { 'background': './background.js', }, plugins: [ new lr({protocol: 'https'}) ], output: { filename: 'background.js', path: path.resolve(__dirname, 'b...
import mergeOptions from 'merge-options' import Event from './event' import Uuid from './uuid' function observeAdd(api, store) { api.on('add', event => { if (!event.cancelled) { const itemOrItems = event.result || event.payload addItems({items: [].concat(itemOrItems), store, api}) ...
define('tui/key', ['tui/event'], function(Event){ var k = Event.extend({ initialize: function(){ var self = this; k.superClass.initialize.call(this); $(document).keydown(function(e){ if(!self.filter(e)) return true; var ret = self.firing('_' + e.keyCode); if(ret === false)return false; }); ...
/** Compiled By kissy-xtemplate */ KISSY.add(function (S, require, exports, module) { /*jshint quotmark:false, loopfunc:true, indent:false, asi:true, unused:false, boss:true*/ return function (scope, S, undefined) { var buffer = "", config = this.config, engin...
/** * Copyright (c) Microsoft. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
var s = io(); s.on('color', function (color) { document.body.style.backgroundColor = color; }); var h = window.location.href; var c = document.getElementById('curl'); var l = document.getElementById('link'); c.innerHTML = 'curl -X POST -d color=#2ecc71 ' + h + 'color'; l.href = h + 'color/+2ecc71'; l.innerHTML = l.h...
function Text(params) { this.create = function() { var input = document.createElement("input"); input.setAttribute("type", "text"); input.setAttribute("class", "input-block-level"); input.onkeyup = $.proxy(shapelessCMS.currentSection.validate, shapelessCMS.currentSection); return input; }; this.isAppended ...
(function(){if(!Array.prototype.indexOf)Array.prototype.indexOf=function(obj,fromIndex){if(fromIndex==null)fromIndex=0;else if(fromIndex<0)fromIndex=Math.max(0,this.length+fromIndex);for(var i=fromIndex,j=this.length;i<j;i++)if(this[i]===obj)return i;return-1};var ttDiv=document.createElement("div");ttDiv["id"]="totalt...
/* gulpfile.js */ // Load some modules which are installed through NPM. var gulp = require('gulp'); var browserify = require('browserify'); // Bundles JS. var del = require('del'); // Deletes files. var reactify = require('reactify'); // Transforms React JSX to JS. var source = require('vinyl-source-stream'); var s...
const _ = require('lodash'); const Table = require('cli-table3'); const debug = require('debug')('strider:cli'); const client = require('strider-ecosystem-client'); const localPlugins = require('./local_plugins'); module.exports = function (pluginsPath) { const table = new Table({ chars: { mid: '', 'left-mi...
var FS = require('./../FamilySearch'), utils = require('./../utils'), maybe = utils.maybe; /** * @ngdoc function * @name discussions.types:constructor.DiscussionRef * @description * * Reference to a discussion on a person. * To create a new discussion reference, you must set $personId and discu...
'use strict'; var should = require('should'), request = require('supertest'), path = require('path'), mongoose = require('mongoose'), User = mongoose.model('User'), Main = mongoose.model('Main'), express = require(path.resolve('./config/lib/express')); /** * Globals */ var app, agent, credentials, ...
// @flow import * as React from 'react' // import { hot } from 'react-hot-loader/root' import { Provider, useDispatch } from 'react-redux' import { BrowserRouter, Route, Switch } from 'react-router-dom' import { applyMiddleware, compose, createStore } from 'redux' import logger from 'redux-logger' import rootReducer ...
(function () { var ErrorController = function ($scope, IonicLoadingExtension, $timeout, ErrorStore, PopupExtension, $cordovaClipboard, $location) { var vm = this; vm.errors = null; vm.loadErrors = function () { IonicLoadingExtension.showLoading(); $timeout(functio...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //------------------------------------------------------...
/* ** widgets.js: a small framework that can help create a Component */ // 规范优化点:1.let在块头部声明,需要作用域的地方使用{}包裹 // 2.const的慎用,若将对象或数组作为常量赋值, // 意味着在常量的词法作用域消失以前是不能被回收的 // 3. 函数声明具有块作用域 // 优化点:1.删除dom节点时,移除相关的监听; // 2.可增加{{::}},表示一次变动性; // 3.可增加一个方法,判断是否更新组件 // ...
var files = [ [ "ArrayBase.cpp", "d6/d26/ArrayBase_8cpp.html", "d6/d26/ArrayBase_8cpp" ], [ "ArrayBase.h", "d3/d32/ArrayBase_8h.html", [ [ "ArrayBase", "d2/daa/classArrayBase.html", "d2/daa/classArrayBase" ] ] ], [ "DynamicArray.cpp", "dd/d18/DynamicArray_8cpp.html", "dd/d18/DynamicArray_8cpp" ], ...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M2 7h2v7H2V7zm18 3h2v7h-2v-7zM6 2v20h12V2H6zm10 15H8V7h8v10z" /> , 'EdgesensorLowSharp');
// TODO Tinytest.add('example', function (test) { test.equal(true, true); });
'use strict'; // Setting up route angular.module('core').config(['$stateProvider', '$urlRouterProvider', '$locationProvider', function($stateProvider, $urlRouterProvider, $locationProvider) { // Home state routing $stateProvider. state('home', { url: '/', templateUrl: 'modules/core/views/home.client.view...
// All code points in the `Tai_Le` script as per Unicode v4.0.1: [ 0x1950, 0x1951, 0x1952, 0x1953, 0x1954, 0x1955, 0x1956, 0x1957, 0x1958, 0x1959, 0x195A, 0x195B, 0x195C, 0x195D, 0x195E, 0x195F, 0x1960, 0x1961, 0x1962, 0x1963, 0x1964, 0x1965, 0x1966, 0x1967, 0x1968, 0x1969, 0x196A, 0x196B, ...
var entitiesModule = angular.module("Users"); entitiesModule.controller("UserListController", function($scope, $http, RequestService) { RequestService.getUserList(onUserListSuccess, onUserListFailure); $scope.view = view; $scope.enableUser = enableUser; $scope.disableUser = disableUser; $scope.makeA...
const JSONAPIFactory = require('../../../tests/stub-middleware/node_modules/@cardstack/test-support/jsonapi-factory'); const supertest = require('supertest'); const Koa = require('koa'); const { createDefaultEnvironment, destroyDefaultEnvironment } = require('../../../tests/stub-middleware/node_modules/@cardstack/t...
var util = require('util'); var request = require('request'); var events = require('events'); var cheerio = require('cheerio'); var URI = require('uri-js'); var _ = require('lodash'); var debug; if (/\bmetainspector\b/.test(process.env.NODE_DEBUG)) { debug = function() { console.error('METAINSPECTOR %s', util.f...
describe('directive: tasklist', function () { var scope, elementWithCtrl, TasklistService; beforeEach(function () { module('mean'); module('mean.system'); module('mean.templates'); module('mean.tasklist', function ($provide) { $provide.factory('TasklistService', MockT...
import React from 'react'; import PropTypes from 'prop-types'; import { gql, graphql } from 'react-apollo'; import { channelsListQuery } from './ChannelsListWithData'; class AddChannel extends React.Component{ static propTypes = { mutate: PropTypes.func.isRequired, } constructor(props) { super(props); ...
Template.root.rendered = function() { Session.set('admin', false); };
import React from 'react'; import {shallow} from 'enzyme'; import ReactionPickerController from '../../lib/controllers/reaction-picker-controller'; import ReactionPickerView from '../../lib/views/reaction-picker-view'; import RefHolder from '../../lib/models/ref-holder'; describe('ReactionPickerController', function(...
// All code points in the `Vai` script as per Unicode v7.0.0: [ 0xA500, 0xA501, 0xA502, 0xA503, 0xA504, 0xA505, 0xA506, 0xA507, 0xA508, 0xA509, 0xA50A, 0xA50B, 0xA50C, 0xA50D, 0xA50E, 0xA50F, 0xA510, 0xA511, 0xA512, 0xA513, 0xA514, 0xA515, 0xA516, 0xA517, 0xA518, 0xA519, 0xA51A, 0xA51B, 0xA...
/** * @file ColorPicker * @author malingyang(malingyang@baidu.com) */ export default from './ColorPicker';
import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import { hbs } from 'ember-cli-htmlbars'; import { run } from '@ember/runloop'; import { render, click, triggerEvent } from '@ember/test-helpers'; import settled from '@ember/test-helpers/settled'; module('Integration | Component |...
'use strict'; const should = require('should'); const StringTemplate = require('../dist/lib/string-template'); describe('StringTemplate', () => { let string = 'The {{jumper:adjective}} {{ jumper:color }} {{jumper:animal}}'; string += ' jumped {{ preposition }} the... What ever, I\'m hungery'; const expected =...
import React, { PureComponent } from 'react' import { View, StyleSheet, TouchableWithoutFeedback, Animated, Easing, ViewPropTypes } from 'react-native' import PropTypes from 'prop-types' const styles = StyleSheet.create({ image: { flex: 1, width: null, height: null, resizeMode: 'contain' ...
'use strict' // get time string exports.getTime = function () { var now = new Date() var year = now.getFullYear() var month = now.getMonth() + 1 var day = now.getDate() return year.toString() + (month >= 10 ? month : '0' + month) + (day >= 10 ? day : '0' + day) }
var http = require('http'); var server = http.createServer(); server.on('request', function(request,response){ response.writeHead(200); response.write("Hello, this is Lyman!"); response.end(); }); // function(request, response) // { // response.writeHead(200); // response.write("Hello, this is dog"); // ...
const {dirname, resolve} = require("path"); const isLocal = s => s.trim()[0] === "."; const createPlugin = (defaultOptions = {}) => babel => { const {types: t} = babel; var componentCreatorNames = null; const addCreatorName = name => { if (!componentCreatorNames) { componentCreatorNam...
(function() { window.WinJSApp = window.WinJSApp || {}; window.WinJSApp.listClicked = WinJS.UI.eventHandler(update); function update() { var content = document.getElementById('content'); var blockSlider = (document.getElementById('blockSlider')); var blockIndex = +blockSlider.value;...
(function() { angular.module('DforD') .factory('AuthenticationService', function($http) { return{ Authenticate: function(token) { if (!token) { return false; } else{ $http.get('auth/authenticate', { headers: { "Authorization": `Bearer ${token}` ...
import React, { Component } from 'react'; import axios from 'axios'; export default class Operands extends Component { constructor(props) { super(props); this.state = { left: 0, right: 0, answer: 'Something' }; this.handleChange = this.handleChange.bind(this); this.handleSubmit...
var assert = require('assert'); var expected = require('./employee-model-results'); var Factory = require('../index'); var _ = require('lodash'); var EmployeeModel = { id: function() { return this.sequence; }, first: '', last: '', email: function() { return this.item.first.toLowerCase() + this....
function functionalCalc(numberOne, numberTwo, operator) { [numberOne, numberTwo] = [numberOne, numberTwo].map(Number) let sum = function(numberOne, numberTwo) { return numberOne + numberTwo } let subtraction = function(numberOne, numberTwo) { return numberOne - numberTwo } let mu...
'use strict'; module.exports = function($http, $rootScope, $localStorage, $timeout, sharedDataFactory, base64Factory) { // Current user object var settings = { user: {}, }; var clearUser = function() { for (var prop in settings.user) { if (settings.user.hasOwnProperty(prop)) { delete set...
(function() { 'use strict'; angular .module('falconcmsApp') .config(translationConfig); translationConfig.$inject = ['$translateProvider', 'tmhDynamicLocaleProvider']; function translationConfig($translateProvider, tmhDynamicLocaleProvider) { // Initialize angular-translate ...
var util = require('util'); var spawn = require('child_process').spawn; var path = require('path'); var http = require('http'); var config_osx = { host: "localhost", port: 1337 }; var OSXReporter = function(helper, logger, config) { var log = logger.create('reporter.osx'), lastResult; extend(config_osx...
(function() { 'use strict'; angular.module('magicColApp') .controller('CollectionViewerCtrl', function ($scope, collectionService) { $scope.cards = collectionService.list(); $scope.filterType = "no-filter"; $scope.changeFilter = changeFilter; $scope.selectedDeck = { 'name' : 'BURN BURN BURN', 'cards' : [{'nam...
// Sites query: const path = require('path'); //get global database object var db = require('../../../database/pgp_db'); var pgp = db.$config.pgp; // Helper for linking to external query files: function sql(file) { const fullPath = path.join(__dirname, file); return new pgp.QueryFile(fullPath, {minify: true}...
'use strict'; /** * Module dependencies */ var acl = require('acl'); // Using the memory backend acl = new acl(new acl.memoryBackend()); /** * Invoke Admin Permissions */ exports.invokeRolesPolicies = function () { acl.allow([{ roles: ['admin'], allows: [{ resources: '/api/users', permissio...
'use strict' const Transport = require('libp2p-tcp') const Muxer = require('libp2p-mplex') const { NOISE: Crypto } = require('@chainsafe/libp2p-noise') module.exports = { modules: { transport: [Transport], streamMuxer: [Muxer], connEncryption: [Crypto] }, config: { relay: { enabled: true, ...
// Fetch the site configuration var siteConf = require('./lib/getConfig') , i18n = require("i18n"); i18n.configure({ locales: siteConf.langs , cookie: 'lang' , directory: __dirname + '/locales/' }); process.title = siteConf.uri.replace(/http:\/\/(www)?/, ''); var airbrake; if (siteConf.airbrakeApiKey) { airb...
'use strict'; angular .module('demo', ['ngAnimate']) .directive('autoCompletePlaces', [autoCompletePlaces]) .controller('DemoController', ['$scope', demoController]);
'use strict'; var extractor = require('./extractor'); var rule = extractor.supported(document.URL); if(rule) { console.log('Hello, this is Scholar Ninja content script. Parsing', rule); var message = extractor.extract(document, rule); if(message) { var port = chrome.runtime.connect({name: 'cont...
var gulp = require('gulp'); var ftp = require('vinyl-ftp'); var gutil = require('gulp-util'); gulp.task('deploy', function() { var remotePath = '/htdocs/'; var conn = ftp.create({ host: process.env.FTP_HOST, user: process.env.FTP_USER, password: process.env.FTP_PASS, log: gutil....
/************************************************************* * * MathJax/localization/cs/TeX.js * * Copyright (c) 2009-2018 The MathJax Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy...
import React from 'react'; import './Retro.css'; import { Icon, ICONS } from '../shared'; import { CONFIG } from './config'; import { SelectedRetroPageHeader } from './SelectedRetroPageHeader/SelectedRetroPageHeader'; import { SelectedRetroNavigation } from './SelectedRetroNavigation/SelectedRetroNavigation'; import ...
function toEthSignedMessageHash (messageHex) { const messageBuffer = Buffer.from(messageHex.substring(2), 'hex'); const prefix = Buffer.from(`\u0019Ethereum Signed Message:\n${messageBuffer.length}`); return web3.utils.sha3(Buffer.concat([prefix, messageBuffer])); } /** * Create a signer between a contract and ...
const _ = require('lodash'); const Plugin = require('./plugin.js'); class Noun extends Plugin { constructor(string) { super(string); } toPlural() { if(this.current.match(/([A-Z].*ese|fish|ois|sheep|deer|pox|itis|media|measles)$/)) { } else if(this.current.match(/man$/)) { this.current = this....
/** * 等号表达式 */ define( function ( require, exports, modules ) { var kity = require( "kity" ), EqualOperator = require( "operator/binary-opr/equal" ); return kity.createClass( 'EqualExpression', { base: require( "expression/compound-exp/binary-exp/left-right" ), constructor: functi...
module.exports = function(grunt) { var beepers = { charge: '****-*-*', // shave and a haircut, two bits :D twobits: '*-**-*-*---*-*-', jaws: '**----**----**---**---**--**--**-******' }; grunt.registerTask('beep', 'It beeps.', function(what, n) { var done = this.async(); var queue = grunt....
var Utils = require('../lib/utils') describe('Utils', function() { describe('removeCommentsFromFunctionString', function() { it("removes line comments at the start of a line", function() { var functionWithLineComments = function() { // noot noot } var result = Utils.removeCommentsFromF...
class msxml2_xsltemplate_6_0 { constructor() { // IXMLDOMNode stylesheet () {get} {set by ref} this.stylesheet = undefined; } // IXSLProcessor createProcessor () createProcessor() { } } module.exports = msxml2_xsltemplate_6_0;
/** * Created by pingo on 29.12.2013. */ var fs = require('fs'), MainsData = require('../libs/MainsData'), dateUtils = require('../libs/dateUtils'), config = require('../config'); // Config var logFolder = config.powerLogger.logsFolder; var sums; var counter = 0; function addToSum(mainsData){ ...
const fa_upload = 'M1344 1472q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm256 0q0-26-19-45t-45-19-45 19-19 45 19 45 45 19 45-19 19-45zm128-224v320q0 40-28 68t-68 28h-1472q-40 0-68-28t-28-68v-320q0-40 28-68t68-28h427q21 56 70.5 92t110.5 36h256q61 0 110.5-36t70.5-92h427q40 0 68 28t28 68zm-325-648q-17 40-59 40h...
define(["../events/index"], function(Events) { "use strict"; /** * Vars * ============================================================================================ */ var exports = {}; var scope = Events.scope("keys"); var activeKeys = []; var aliases = {}; ...
'use strict'; module.exports = function (sequelize, Sequelize) { var OAuthClient = sequelize.define('oauth_client', { name : { type : Sequelize.STRING, unique : true, allowNull: false }, secret: { type : Sequelize.STRING, allowNull: false, validate : { ...
const PixivAppApi = require('pixiv-app-api'); const pixivImg = require('pixiv-img'); const pixiv = new PixivAppApi(); try{ pixiv.searchIllust('艦これ10000users入り') .then(json => { console.log(json); console.log(`downloading ${json.illusts[0].title}`); return pixivImg(json.i...
import React from 'react' import { Button } from 'shengnian-ui-react' const ButtonExampleGroupIconShorthand = () => ( <Button.Group> <Button icon='play' /> <Button icon='pause' /> <Button icon='shuffle' /> </Button.Group> ) export default ButtonExampleGroupIconShorthand
ZRF = { JUMP: 0, IF: 1, FORK: 2, FUNCTION: 3, IN_ZONE: 4, FLAG: 5, SET_FLAG: 6, POS_FLAG: 7, SET_POS_FLAG: 8, ATTR: 9, SET_ATTR: 10, PROMOTE: 11, MODE: 12, ON_BO...
// @flow // Vendor. import React from 'react'; import { Text } from 'react-native'; // Types. import type { Route } from '../../types/ui'; // Styles. import styles from './styles'; // Components. import SecondaryNavigation from '../ui/molecules/SecondaryNavigation'; // Pages. import Profile from '../ui/pages/Profi...
const env = require('./util/env') const production = !!env.production const dest = 'build' const src = 'client' const cssSource = [ 'node_modules/bootstrap/dist/css/bootstrap.css', 'node_modules/bootstrap/dist/css/bootstrap-theme.css', 'node_modules/react-select/dist/react-select.css', 'client/css/*.css' ] co...
window.onload=function(){ var content_id = $("#trafficID").val(); // alert("content_id1115555 : "+content_id); var url = "http://www.ahjt.gov.cn:9001/private/cms/index/cms_indexpv/contentTraffic?content_id="+content_id+"&callback=?"; $.getJSON(url,function(backdata){ $("#content_tr...
var {render: {React}} = require('some-libs'); React.render();
const Path = require('path'), Processor = require("../"), Entry = require("./entry"), Window = require("./window"), extend = require('extend'), logger = require('../../logger'), nools = require("nools"); class NoolsProcessor extends Processor { constructor(id,type) { super(id,type); this.i = 0; } config...
'use strict'; const Hapi = require('hapi'); const Boom = require('boom'); var mongoose = require('mongoose'); var JWT = require('jsonwebtoken'); // used to sign our content var port = 8000; //process.env.PORT; // allow port to be set var aguid = require('aguid') // https://github.com/ideaq/aguid const Bcrypt = requir...
var jpath = require('..') , expect = require('expect.js') , data = require('./example-data') var p = jpath.create("#/store/book[*][@]"); var res = p.resolve(data, function(obj, accum) { if (typeof obj.price === 'number' && obj.price < 10) accum.push(obj); return accum; }); // Expect the result to have the tw...
/********************************* * sortitem_cms * Created by keleko34 * a button used for sorting the list ********************************/ function sortitem() { /* ATTRIBUTES */ } /* PROTOTYPES */
var semtex = require('../dist/semtex.min.js'), expect = require('chai').expect; describe('v0.3', function() { it('handles single empty attributes', function() { expect(semtex.render('tag[attr]:')).to.equal('<tag attr="attr"></tag>'); }); it('handles single attributes', function() { expect(semtex.ren...
'use strict'; var fs = require('fs'); var path = require('path'); var shell = require('shelljs'); var deepExtend = require('deep-extend'); var util = require('util'); /** * The yaowst config handler * * @param {string|null} configFile * @constructor */ function Config(configFile) { if (!configFile) { confi...
module.exports = { "/": { section: [ require("../sections/landing") ] } };
(function() { 'use strict'; angular .module('app') .controller('AppCtrl', ['$scope','$location','canvas', AppCtrl]); function AppCtrl($scope,$location,canvas) { $scope.firstName=''; $scope.chapters=canvas.chapters(); $scope.selected= 'Overview'; $scope.updateSelected = updateSelected; ...
import resolver from 'appkit/tests/helpers/resolver'; function fakeServer(method, url, response) { var server = sinon.fakeServer.create(); server.respondWith(method, url, [ 200, { "Content-Type": "application/json" }, JSON.stringify(response) ]); return server; } export default fakeServer;