code
stringlengths
2
1.05M
'use strict'; module.exports = { secure: { ssl: true, privateKey: './config/sslcerts/key.pem', certificate: './config/sslcerts/cert.pem' }, port: process.env.PORT || 8443, db: { uri: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI || 'mongodb://' + (process.env.DB_1_PORT_27017_TCP_ADDR || '...
import Ember from 'ember'; import { purecloudEnvironmentTld } from '../utils/purecloud-environment'; import platformClient from 'platformClient'; export default Ember.Route.extend({ purecloud: Ember.inject.service(), accountManager: Ember.inject.service(), analyticsService: Ember.inject.service(), init() { this...
/* * Copyright (c) 2013, Andres Rodriguez. All rights reserved. */ var assert = require('assert-plus'); var Client = require('../lib/client'); var config = require('./config.json'); var lol; var summonerId = 5908; exports.setUp = function (callback) { lol = new Client(config); callback(); }; exports.testGameBy...
import React from 'react' import { ButtonFontSetting, ButtonFontStyleSetting, ButtonColorThemeSetting, ButtonLangSetting, } from './ButtonSetting' import { Popup } from 'shared' SettingOption.propTypes = { setting: React.PropTypes.object.isRequ...
import React, { Component } from 'react'; import ImagesLoaded from '../../src/index'; const Image = ({ src, style }) => { return <img style={style} src={src} />; }; export default class FullPackage extends Component { state = { images: [ { src: 'http://via.placeholder.com/200x200' }, ...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2016 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ // Provides control sap.ui.layout.form.FormLayout. sap.ui.define(['jquery.sap.global', 'sap/ui/core/Control', './Form', 'sap/ui/layou...
function Trees(from_x, to_x, from_y, to_y, min_height) { this.positions_1 = []; this.positions_2 = []; this.positions_3 = []; this.initBuffers = function() { for(var i = 0; i < 10; i++) { var yLimits = field.getYPositionFromX(points,from_x + (to_x-from_x)/20.0 + i * (to_x-from_x)/10.0); ...
const chars = { '\n': '\\n', '\\': '\\' }; const name = 'safe'; export default function SafeHelper(config, logger) { const _logger = logger.child({helper: name}); return { name, cb: (string) => { _logger.debug('Executing template safe helper.', {string}); if (string) { return string...
import test from 'ava' import React from 'react' import { shallow, mount } from 'enzyme' import toJson from 'enzyme-to-json' import TreeManager from '../tree-manager' import Tree from './index' test.skip('renders tree nodes when search mode is on', t => { const tree = [ { label: 'item1', value: 'valu...
/** * 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. * * @flow */ import type {AnyNativeEvent} from 'legacy-events/PluginModuleType'; import type {Fiber} from 'react-reconciler/src/Rea...
import React from 'react' import SelectDatabase from '../containers/SelectDatabase' import './App.css' const App = () => ( <div className='couchDashboardApp'> <h1>Couch Dashboard</h1> <SelectDatabase /> </div> ) export default App
var _ = require('underscore'); var string = require('underscore.string'); module.exports = exports = { /** * @param {string} source * @return {string | null} */ basic: function(source) { return string.trim(source || '') || null; }, baseOrder: function(source) { if (!sourc...
/*! * Native JavaScript for Bootstrap Collapse v4.0.5 (https://thednp.github.io/bootstrap.native/) * Copyright 2015-2021 © dnp_theme * Licensed under MIT (https://github.com/thednp/bootstrap.native/blob/master/LICENSE) */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'un...
'use strict'; const _ = require('lodash'); module.exports = function($ql){ /** * @name $left * @memberOf String * @isfunction * @mysql true * * @summary Specifies the `LEFT()` function. * * @param {Property} identifier Specifies original column, table, ... name. * @param {String} alias Specifie...
function HistogramPlot(plotModel, histogramSpec, experiment) { this.renderPlot = function () { var height = plotModel.height; var width = plotModel.width; var xRightPadding = 65; var yBottomPadding = 10; var yTopPadding = 30; var yHeight = height - yTopPadding; ...
'use strict'; const validator = require('email-validator'); const validators = { v: { required: true, // termPattern: /^v$/, description: 'Protocol version', validate(term, value) { if (value !== 'DMARC1') { throw new Error(`Invalid DMARC version: '${value}'`); } } }, fo: { // termPattern: /^...
/*jshint esversion:6 */ const request = require('request-promise-native'); var mysql = require('promise-mysql'); var sql_config = require('../../sql_config'); var db = mysql.createPool(sql_config.db); function estimate(config) { /*{ route: 160, is_reverse: true, from: 8, to: 7, ...
function md5_file (str_filename) { // From: http://phpjs.org/functions // + original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) // + input by: Brett Zamir (http://brett-zamir.me) // + bugfixed by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) // - depends on: file_get_contents ...
/* jshint node: true */ module.exports = function(environment) { var ENV = { modulePrefix: 'dummy', environment: environment, baseURL: '/', locationType: 'auto', EmberENV: { FEATURES: { // Here you can enable experimental features on an ember canary build // e.g. 'with-contr...
// Generated by CoffeeScript 1.4.0 (function() { window.drawing = function() { var b1, b2, b3, b4, b5, b6, d; d = new Drawing({ id: "canvas" }); b1 = d.block({ o: [180, 150], label: "This is a multi-line label" }); b2 = d.block({ o: [400, 150], label: "<b>html la...
var app = angular.module('myApp', []); // We define a factory the socket service is instantiated only once, and // thus act as a singleton for the scope of the application app.factory('socket', function ($rootScope) { var socket = io.connect('http://localhost:5000/'); return { on: function (eventName, callback...
import CSSClassnames from './CSSClassnames'; const CLASS_ROOT = CSSClassnames.APP; export function announcePageLoaded (title) { announce(`${title} page was loaded`); } export function announce (message, mode = 'assertive') { const announcer = document.querySelector(`.${CLASS_ROOT}__announcer`); announcer.setAt...
require('babel-polyfill'); require('babel-register'); require('./telegram.js');
var DataSource = require('../libs/datasource'); var moment = require('moment'); moment.locale('zh-TW'); module.exports = function(robot) { var types; var source = new DataSource(); function first(res, match) { var date = moment(match[1], 'YYYY/MM/DD'); if (date.isValid()) { var username = res.enve...
var express = require('express'); var app = express(); var Ractive = require('ractive'); var fs = require('fs'); var rr = require('ractive-render'); app.engine('html', rr.renderFile); app.use(express.static(__dirname + '/')); process.on('uncaughtException', function (err) { console.error("[Inside 'uncaughtException...
define(function (require, exports, module) { 'use strict'; function getSpanVal(td, name) { return parseInt(td.getAttribute(name) || 1, 10); } /*global tinymce:true */ return function(editor) { /** * Fixed caret movement around tables on WebKit. */ function moveWebKitSelection() { function eventH...
// Inspired by // http://fluxible.io/tutorials/routing.html // https://github.com/yahoo/flux-examples/tree/master/react-router require('babel/register'); var express = require('express'); var expressState = require('express-state'); var debug = require('debug')('Server'); var React = require('react'); var Router = req...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var utils_1 = require("./utils"); var sequence_1 = require("./sequences/sequence"); exports.Sequence = sequence_1.default; var sequencer_1 = require("./sequences/sequencer"); exports.Sequencer = sequencer_1.default; var levels = { disabled...
//define all the functions to refactor (either native or marked up) var funcDefs = { jquery: { default: { convert: function (node) { node[0] = 'call'; }, chainable: true }, //convert attr function to use setAttribute attr: { ...
import React from 'react'; import ScoreList from './ScoreList'; export default class ScoreCategory extends React.Component { constructor(props) { super(props); } render() { const listNodes = this.props.category.lists.map((list, listIndex) => { return ( <ScoreLis...
var searchData= [ ['main',['main',['../app_2main_8cpp.html#a0ddf1224851353fc92bfbff6f499fa97',1,'main(int argc, char *argv[]):&#160;main.cpp'],['../test_2main_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627',1,'main(int argc, char **argv):&#160;main.cpp']]], ['makerelativepathsinflagsabsolute',['MakeRelativePathsInFlag...
// @flow import { connect } from 'react-redux'; import ReplaceFilterComponent from '../Components/ReplaceFilterComponent'; import { filterUpdateSearchString, filterToggleCaseInsensitive, filterUpdateDescription, filterToggleGlobal, filterToggleMultiline, filterUpdateReplaceString, filterToggleEnabled } from '../Store/...
function bouncer(arr) { // Don't show a false ID to this bouncer. return arr.filter(function(value) { return Boolean(value); }); } bouncer([7, "ate", "", false, 9]);
import { useCookie, useFeedback } from "." import { INTERACTION_COOKIE_NAME } from "../constants" import pkgJSON from "../package.json" const useTrackEvent = () => { const { setCookie, getCookie } = useCookie() const { shouldAskForFeedback, checkForFeedback } = useFeedback() const track = async ({ eventType, org...
/** * @author Richard Davey <rich@photonstorm.com> * @copyright 2018 Photon Storm Ltd. * @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License} */ var ALIGN_CONST = require('../const'); var AlignInMap = []; AlignInMap[ALIGN_CONST.BOTTOM_CENTER] = requir...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var ClickMode_1 = require("../Enums/Modes/ClickMode"); var InteractivityDetect_1 = require("../Enums/InteractivityDetect"); var Constants_1 = require("./Constants"); var EventListeners = (function () { function EventListeners(container) { ...
import { Material } from './Material.js'; import { Color } from '../math/Color.js'; /** * @author alteredq / http://alteredqualia.com/ * * parameters = { * color: <hex>, * map: new THREE.Texture( <Image> ), * rotation: <float>, * sizeAttenuation: <bool> * } */ function SpriteMaterial( parameters ) { Ma...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Dialog = void 0; var _react = _interopRequireWildcard(require("react")); var _reactDom = _interopRequireDefault(require("react-dom")); var _propTypes = _interopRequireDefault(require("prop-types")); var _DomHandler = _interopReq...
'use strict'; module.exports = function deleteUser(request, response, next) { sails.log.verbose(__filename + ':' + __line + ' [Policy.deleteUser() called]'); const userId = request.param('id'); const myId = request.token; // Cannot delete own account if(userId == myId) { sails.log.debug("Cannot delete...
(function (line) { line.define('line.io.Storage', { abstract: true, events: ['load', 'change', 'error'], methods: { init: function () { this._nodeMap = {}; this._isReady = true; this._readyCallbacks = []; }, ...
module.exports = require('./src/StateProxy');
var Template = require('../../lib/template'); var assertHtml = require('../helper').assertHtml; describe('Code output', function() { var template; beforeEach(function() { template = new Template(require('../../lib/vm_node')); }); test('render with call', function() { assertHtml(template, [ 'p', ...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import KeyCode from '../utils/KeyCode'; import Menu from '../Menu/Menu'; import Popover from '../Popover/Popover'; import ThemeService from '../styles/ChamelThemeService'; class AutoComplete extends Component { static propTypes = { /**...
'use strict'; /** * Created by joao.lucio on 09/06/2015. */ var errorHandler = require('../errors.server.controller'), _ = require('lodash'), models = require('../../models/mssql'), customUtils = require('../../../utils/custom-utils'), User = models.User, Report = models.Report, sequelize = models.sequeli...
import { post } from 'axios'; import { getDatesToScheduleQueueFromDB, updateScheduledEvents, clearDatesToScheduleAndEventsToDeleteQueues } from '../src/controllers/userController'; import { HOST } from '../src/creds.json'; const deleteDuplicateEventsFlow = (uniqueUserId, newEvents) => getDatesToScheduleQueueFromDB(u...
'use strict'; const EventEmitter = require('events').EventEmitter; const Gpio = require('onoff').Gpio; const mutexify = require('mutexify'); const ROW_OFFSETS = [0x00, 0x40, 0x14, 0x54]; const COMMANDS = { CLEAR_DISPLAY: 0x01, HOME: 0x02, SET_CURSOR: 0x80, DISPLAY_ON: 0x04, DISPLAY_OFF: ~0x04, CURSOR_ON:...
/* This view is for displaying level selection; user will be able to choose levels in this view*/ define(function(require, exports, module) { var View = require('famous/core/View'); var Surface = require('famous/core/Surface'); var Modifier = require('famous/core/Modifier'); var Transform ...
module.exports = Request.inherits( global.autodafe.AppModule ); /** * Класс, описывающий запрос от какого-либо клиента * * Для создания экземпляра удобно пользоваться методом {@link Client.create_request} * * @constructor * @extends AppModule * @param {Object} params параметры для инициализации * @param {Clie...
var promisedMongo = require('promised-mongo'); var config = require('config'); var mongodbUri = require('mongodb-uri'); var conSettings = { hosts: [ { host:config.mongo.host || 'localhost', port: config.mongo.port || 27017 } ], database: config.mongo.database || 'tes...
var LogWindowManager = new Class({ Implements: [Events, Options], options: { container: 'body' }, active: true, reloadTimer: 0, initialize: function() { this.container = window.document.getElement(this.options.container); var self = this, menu = new Element('div', {class:'header'}).inject(this.con...
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), defaultAssets = require('./config/assets/default'), testAssets = require('./config/assets/test'), fs = require('fs'), path = require('path'); module.exports = function (grunt) { // Project Configuration grunt.initConfig({ pkg: gr...
/** * The service worker will cache resources to allow offline usage : * - GOOGLE : https://developers.google.com/web/fundamentals/primers/service-workers/#update-a-service-worker * - MOZILLA : https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API/Using_Service_Workers */ var cacheName = 'v4'; v...
'use strict'; $(function () { $('button').click(function () { console.log('click'); var from = $('#from').val(); var to = $('#to').val(); var text = $('#text').val(); // post http://37.196.106.201/sms //{"from":"The King","to":"46738413456","text":"testing"} $.ajax({ }); }); });
var _ = require('underscore'); var numhelp = require('./numhelp.js'); var hex = require('./hex.js'); var errors = require('../errors.js'); function validate(number) { if (number.length < 1 || number.match(/[^01]/)) { throw new errors.InvalidArgument('Invalid binary number: ' + number); } } function grou...
import { Selector, NoneSelector } from './selectorsBase' // ---------------------------------------------------------------------------- // Operators // ---------------------------------------------------------------------------- const none = new NoneSelector() class PrefixOperator extends Selector { constructor(rh...
import unirest from "unirest" import querystring from "querystring" import _ from "lodash" import {sleep, mapSeries} from "./misc" import config from "../config" const baseURL = "https://api.stackexchange.com/2.2/" var backoff = 0 const handleResponse = function(response) { if ("backoff" in response) backoff = res...
/*! Element Plus v2.0.4 */ (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.ElementPlusLocaleZh...
import React, {Component} from 'react'; import {NavLink} from 'react-router-dom' class Header extends Component { render() { return ( <div> <div className="hname"> <NavLink to={'/' + this.props.header.linkTo} activeClassName="test"> ...
'use strict' const Avvio = require('avvio') const http = require('http') const querystring = require('querystring') let lightMyRequest let version let versionLoaded = false const { kAvvioBoot, kChildren, kBodyLimit, kRoutePrefix, kLogLevel, kLogSerializers, kHooks, kSchemas, kValidatorCompiler, kS...
/*! Buefy v0.9.1 | MIT License | github.com/buefy/buefy */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = global || self, factory(global.Skeleton = {})); }(t...
/** @license React v0.0.0-experimental-3310209d0 * react-is.production.min.js * * 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. */ 'use strict';var b=60103,c=60106,d=60107,e=60108,f=60...
/*! UIkit 3.3.3 | http://www.getuikit.com | (c) 2014 - 2019 YOOtheme | MIT License */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) : typeof define === 'function' && define.amd ? define('uikitsortable', ['uikit-util'...
/*! * DevExtreme (dx.messages.ja.js) * Version: 21.2.5 (build 22047-0313) * Build date: Wed Feb 16 2022 * * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; ! function(root, factory) { if ("function" ...
import TeamDirectory from './src'; function Directory(id, options) { return new TeamDirectory(id, options); } if (window && typeof module !== 'undefined' && module.exports) { window.TeamDirectory = module.exports = Directory; } else if (typeof module !== 'undefined' && module.exports) { module.exports = Directo...
module.exports={A:{A:{"2":"H C G E EB","33":"A B"},B:{"33":"D p x J L N I"},C:{"1":"1 2 3 4 5 6 8 9 m n o M q r s t u v w y","2":"YB BB F K WB QB","33":"0 H C G E A B D p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l"},D:{"2":"0 1 F K H C G E A B D p x J L N I O P Q R S T U V W X Y Z b c d e f g h i j k l m n...
var sparql = require("./sparql.js"), $ = require("jquery"); var quote = function(string) { return "'" + string + "'"; }; module.exports = { createCurlString: function(yasqe, config) { var ajaxConfig = sparql.getAjaxConfig(yasqe, config); var url = ajaxConfig.url; if (ajaxConfig.url.indexOf("http") !== 0...
module.exports = function (grunt) { require('load-grunt-tasks')(grunt); grunt.initConfig({ pkg: grunt.file.readJSON('bower.json'), language: grunt.option('lang') || 'en', meta: { banner: '/*!\n * <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' + '<%= grunt.template.today("yyyy-...
/** Core script to handle the entire layout and base functions **/ var App = function() { "use strict"; // IE mode var isIE8 = false; var isIE9 = false; var isIE10 = false; var responsiveHandlers = []; var layoutColorCodes = { 'blue': '#54728c', 'red': '#e25856', 'green': '#94B86E', ...
/* workspace Javascript jQuery */ $(function() { $('#side-menu').sidebar(); }); //Loads the correct sidebar on window load, //collapses the sidebar on window resize. // Sets the min-height of #page-wrapper to window size $(function() { $(window).bind("load resize", function() { topOffset = 50; ...
/* jshint strict: true, undef: true */ /* globals length */ /* globals exports */ spec(to_default, [1,undefined], 1); spec(to_default, [2,null], 2); spec(to_default, [3,[]], []); exports.to_default = to_default; function to_default(valid) { if (length(arguments) === 2) { var v = arguments[1]; if (v === nul...
'use strict'; angular.module('loanApp.version.interpolate-filter', []) .filter('interpolate', ['version', function(version) { return function(text) { return String(text).replace(/\%VERSION\%/mg, version); }; }]);
var webpack = require('webpack'); var WebpackDevServer = require('webpack-dev-server'); var config = require('./webpack.config'); new WebpackDevServer(webpack(config), { publicPath: config.output.publicPath, hot: true, historyApiFallback: true, stats: { colors: true } }).listen(3000, 'localhost', functio...
/** * Configure array properties * @private * @this {XML3DVec3} * @param {number} index Array index */ function prop(index) { return { get : function() { return this._data[index]; }, set : function(val) { this._data[index] = val; // Value changed ...
var Db = require('mongodb').Db, MongoClient = require('mongodb').MongoClient, Server = require('mongodb').Server, ReplSetServers = require('mongodb').ReplSetServers, ObjectID = require('mongodb').ObjectID, Binary = require('mongodb').Binary, GridStore = require('mongodb').GridStore, C...
const fetch = require('node-fetch') const co = require('co') const xpath = require('xpath') const dom = require('xmldom').DOMParser const connect = require('./connectDB') const error = console.error const log = console.info let url = "http://ymj.qcpai.com/wwtstudentcard/Web/public/appupload/" co(function* (...
var Generator = {} Generator["RSA-OAEP"] = require("./algorithms/RSA-OAEP.js").generateKey; Generator["RSASSA-PKCS1-v1_5"] = require("./algorithms/RSASSA-PKCS1-v1_5.js").generateKey; Generator["ECDH"] = require("./algorithms/ECDH").generateKey; var Algorithms = require("./algorithms/index.js"); var CryptoKey = require...
// Simple module to help you remember the size and position of windows. // Can be used for more than one window, just construct many // instances of it and give each different name. 'use strict'; var app = require('app'); var jetpack = require('fs-jetpack'); module.exports = function (name, defaults) { var userDa...
// Set Options Module // ================== // Set Options // ---------- // Accepts an object to replace plugin options // properties of the plugin options object selectBoxIt.setOptions = function(newOptions, callback) { var self = this; // If the ...
'use strict'; (function () { 'use strict'; var log; if (typeof module !== 'undefined' && module.exports) { var util = require('util'); //debug log = function (obj) { // console.info(util.inspect(obj, false, null)); }; } else { log = function (obj) { // console.info(obj); ...
/* * Input Mask Core * http://github.com/RobinHerbots/jquery.inputmask * Copyright (c) 2010 - Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 0.0.0-dev */ (function(factory) { if (typeof define === "function" && define.amd) { define(["inputmask.d...
import setView from '../factories/setView' import addAssignee from '../functions/addAssignee' export default [ addAssignee, setView('assigneeSearchResult', null), setView('newAssignmentAssignee', '') ]
// # Ghost Configuration // Setup your Ghost install for various environments // Documentation can be found at http://support.ghost.org/config/ var path = require('path'), config; config = { // ### Production // When running Ghost in the wild, use the production environment // Configure your URL and m...
import config from "../../config/environment" const INVALIDATE_TOKEN_URL = "http://newers-world-oauth.qa2.tothenew.net/oauth/invalidateToken?access_token="; import Network from "../network"; import logger from "../logger" /** *this function clears the TSMS Auth cookie as soon as employee clicks on the logout button ...
const ConstraintValidator = Jymfony.Component.Validator.ConstraintValidator; const Unique = Jymfony.Component.Validator.Constraints.Unique; const UnexpectedTypeException = Jymfony.Component.Validator.Exception.UnexpectedTypeException; const UnexpectedValueException = Jymfony.Component.Validator.Exception.UnexpectedValu...
// TODO: BUG: this co implementation does not recurse properly - cause yet to be determined var co = require('co'); // WARNING: BAD CODE!! THIS IMPL IS HUGELY INEFFICIENT. It's purpose is purely // to exercise recursive behaviour for testing and evaluation purposes. var fibonacci = co(function* (n) { i...
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon")); var _jsxRuntime = require("react/jsx-runtime")...
/*! * extract-comments <https://github.com/jonschlinkert/extract-comments> * * Copyright (c) 2014 Jon Schlinkert, contributors. * Licensed under the MIT license. */ 'use strict'; // this code was inspired by https://github.com/yavorskiy/comment-parser module.exports = function (opts) { var obj = {}; obj.comm...
var identity = require('./identity'); /** * @deprecated since v0.11.0 * @func * @memberOf R * @category Function * @see R.identity */ module.exports = identity;
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Teacher Schema */ var TeacherSchema = new Schema({ name: { type: String, default: '', required: 'Please fill Teacher name', trim: true }, designation: { type: String, default: '', trim...
// Args exports.required = ['row']; // Define var regex = [ /rank from (.+) to (.+)\.$/, /deleted post "(.+)" by user .+\.$/, /changed the group status to: (.*)$/ ]; exports.func = function (args) { var row = args.row; var text = row.text(); var params = []; for (var i = 0; i < regex.length; i++) { ...
jQuery(function($) { /** $('#myTab a[data-toggle="tab"]').on('shown', function (e) { console.log(e.target.getAttribute("href")); }) */ $('#accordion2').on('hide', function (e) { $(e.target).prev().children(0).addClass('collapsed'); }) $('#accordion2').on('hidden', function (e) { $(e.target).prev().child...
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let PeopleOutline = props => <SvgIcon {...props}> <path d="M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.75 5-...
import { StackNavigator } from 'react-navigation'; import { Colors } from '../../../Themes'; // Screens import TabFourScreenOne from './views/TabFourScreenOne'; import TabFourScreenTwo from './views/TabFourScreenTwo'; const routeConfiguration = { TabFourScreenOne: { screen: TabFourScreenOne }, TabFourScreenTwo: { ...
let addEmp170 = (employees) => { employees.push( {id:170, name: 'Mason Richardson'} ) return employees; }; export {addEmp170};
// You can require javascript files here. A good place to start is by requiring your application.js. // require application // // Teabag includes some support files, but you can use anything from your own support path too. // require support/jasmine-jquery // require support/sinon // require support/your-support-file /...
// Generated by CoffeeScript 1.9.3 (function() { var $, Spine, bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; }...
var glob = require('grunt/node_modules/glob') var specs = glob.sync('test/unit/specs/**/*.js').map(function (f) { return './' + f }) module.exports = { entry: specs, output: { path: './test/unit', filename: 'specs.js' }, devtool: '#source-map' }
/** * Toggle the specified class(es). * @method toggleClass * @memberof Grindstone * @param {string} cls className * @returns {NodeList} collection * @example * $('#selector').toggleClass('example'); * $('#selector').toggleClass('one two'); */ const toggleClass = function (cls) { const classes = cls.split('...
;(function(undefined) { /** * artoo writers unit tests * ========================= * */ describe('artoo.writers', function() { describe('csv', function() { var arrays = { correct: [['Michel', 'Chenu'], ['Marion', 'La brousse']], delimiter: [['Michel', 'Chenu, the Lord'], ['Ma...
/*! Select2 4.0.2 | https://github.com/select2/select2/blob/master/LICENSE.md */ !function(){if(jQuery&&jQuery.fn&&jQuery.fn.select2&&jQuery.fn.select2.amd)var a=jQuery.fn.select2.amd;return a.define("select2/i18n/uk",[],function(){function a(a,b,c,d){return a%100>10&&15>a%100?d:a%10===1?b:a%10>1&&5>a%10?c:d}return{err...