text
stringlengths
2
1.04M
const util = require('util') , AbstractLevelDOWN = require('abstract-leveldown').AbstractLevelDOWN , binding = require('bindings')('leveldown').leveldown , ChainedBatch = require('./chained-batch') , Iterator = require('./iterator') function LevelDOWN (location) ...
'use strict'; // Declare app level module which depends on views, and components angular.module('recycleTracker', [ 'ngRoute', 'ngResource' ]);
import React from 'react'; import './StoryReel.scss'; import Story from './Story/Story'; import { useStateValue } from '../../../context/StateProvider'; function StoryReel() { const [{ user }, reducer] = useStateValue(); return ( <div className="storyReel"> <Story image="https://scontent.facc5-...
const Comment = require('../models/comment'), ObjectId = require('mongoose').Types.ObjectId; module.exports = class CommentController { async list(req, res){ try{ const comments = await Comment.findById(req.params.commentId) return res.status(200).send(comments) }catch(...
/* YUI 3.9.0pr1 (build 202) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */ if (typeof _yuitest_coverage == "undefined"){ _yuitest_coverage = {}; _yuitest_coverline = function(src, line){ var coverage = _yuitest_coverage[src]; if (!coverage.lines[line]){ coverage.calledL...
import Link from '@/components/Link' import PageTitle from '@/components/PageTitle' import SectionContainer from '@/components/SectionContainer' import { BlogSEO } from '@/components/SEO' import siteMetadata from '@/data/siteMetadata' import formatDate from '@/lib/utils/formatDate' import Comments from '@/components/co...
import { resetLoginForm } from "./loginForm.js"; import { getMyBooks, clearBooks } from "./myBooks.js"; //synchronous action creators export const setCurrentUser = user => { return { type: "SET_CURRENT_USER", user }; }; export const clearCurrentUser = () => { return { type: "CLEAR_CURRENT_USER" };...
/** @type {<T>(target: T, source: any) => T} */ export const define = (target, source) => Object.defineProperties(target, Object.getOwnPropertyDescriptors(source))
/*! * 推荐案例 * @url http://localhost:8000/v2/article/case_recommend?id=1 */
(function() { define(['oraculum', 'oraculum/libs', 'oraculum/mixins/evented-method'], function(Oraculum) { 'use strict'; var _; _ = Oraculum.get('underscore'); /* DisposeRemoved.CollectionMixin ============================== Automatically `dispose` a `Model` that has been removed from a `...
import map from 'lodash/map'; class IpLoadBalancerTaskService { constructor($q, $translate, OvhApiIpLoadBalancing, CucServiceHelper) { this.$q = $q; this.$translate = $translate; this.IpLoadBalancing = OvhApiIpLoadBalancing; this.CucServiceHelper = CucServiceHelper; } getTasks(serviceName) { ...
/* eslint-disable flowtype/require-valid-file-annotation */ import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import MobileStepper from 'material-ui/MobileStepper'; import Paper from 'material-ui/Paper'; import Typography from 'material-ui/Typography'; con...
/** * @author Toru Nagashima * @copyright 2017 Toru Nagashima. All rights reserved. * See LICENSE file in root directory for full license. */ 'use strict' // ------------------------------------------------------------------------------ // Requirements // -----------------------------------------------------------...
/** * 执行n此cb,并且将结果返回成数组 * @param {(i:number)=>any} cb 回调 * @param {number} n 执行次数 */ function repeat(cb, n) { const res = []; for (let i = 0; i < n; i++) { res.push(cb(i)); } return res; } module.exports = { repeat };
!function (document, window, $) { "use strict"; $('#form1').validate({ rules: { username: { minlength: 3, maxlength: 20, required: true }, email: { email: true, required: true ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = tslib_1.__importStar(require("react")); var StyledIconBase_1 = require("../../StyledIconBase"); exports.Rocket = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentCol...
var util = require('../../../utils/util.js'); // 获取全局应用程序实例对象 var app = getApp(); // 创建页面实例对象 Page({ /** * 页面名称 */ name: "place", /** * 页面的初始数据 */ data: { swiperCurrent: 0, indicatorDots: true, autoplay: true, interval: 3000, duration: 800, circular: true, bar: {}, ...
/** * @author 龙喜<xiaolong.lxl@alibaba-inc.com> * @description app.js,生产环境请添加 Cluster https://nodejs.org/api/cluster.html#cluster_cluster */ 'use strict'; const Koa = require('koa'); const koaStatic = require('koa-static'); const app = new Koa(); const router = require('./router'); const session = require('koa-sess...
process.stdin.pipe(process.stdout); process.on('exit', () => { const args = process.argv.slice(2); console.error(args.join(' ')); });
const dotenv = require('dotenv').config(); const path = require('path'); const express = require('express'); const { ParseServer } = require('parse-server'); const databaseUri = process.env.DATABASE_URI || process.env.MONGODB_URI; if (!databaseUri) { console.log('DATABASE_URI not specified, falling back to localhos...
define(["lib/jquery/validate/jquery.validate.min"], function () { jQuery.validator.methods.phone = function (value, element) { return this.optional(element) || /^(1[3578][0-9]{9}|(\d{3,4}-)\d{7,8}(-\d{1,4})?)$/.test(value); }; jQuery.validator.methods.mobile = function (value, element) { re...
var retrial = require('./') retrial(5, finickyFunction, 1, 2, 3, function (err, r1, r2, r3) { if (err) return console.error(err) // 'unlucky' if we're unlucky ;) console.log(r1, r2, r3) // 2, 6, 12 }) function finickyFunction (arg1, arg2, arg3, cb) { if (Math.random() < 0.2) return cb(null, arg1 * 2, arg2 * 3,...
// @flow strict import { Tabs as GestaltTabs } from 'gestalt'; export default function TabsSizeRenamed() { const tabs = [ { href: "https://pinterest.com", text: "Boards for You", indicator: "dot" }, { href: "https://pinterest.com", text: "Pins for You" }, { href: "https://pinterest.com", text: "1" }, ...
/* */ require('../../modules/es7.regexp.escape'); module.exports = require('../../modules/$.core').RegExp.escape;
// More information about teh configuration file can be found here // https://webdriver.io/docs/configurationfile.html exports.config = { // ==================== // Runner Configuration // ==================== runner: 'local', // ================== // Specify Test Files // ================== specs: ['./...
const nestedStuff = require("./nestedPath4Path0"); exports = nestedStuff;
//初始化界面,菜单配置路径是【/frs/yufreejs?js=/yujs/crrs/collection/addSingle.js】 var tyData = null; var isLoadTabb_2 = false; var isLoadTabb_3 = false; function AfterInit(){ tyData = jso_OpenPars2.tyData; JSPFree.createTabb("d1",["基本信息","授信信息","业务明细"],[80,80,80]); JSPFree.createBillCard("d1_1","/biapp-crrs/freexml/crrs/ent/crr...
self.onmessage = function(msg) { if (msg.data.proxy) self.proxy = msg.data.proxy; awaitProxyInit(self.proxy).then((proxy) => { var keys = ['opacity', 'scrollTop', 'scrollLeft']; var values = {}; for (var i = 0; i < keys.length; i++) { values[keys[i]] = proxy[keys[i]]; } values.transfo...
import React, { Component } from 'react'; import { string, func } from 'prop-types'; import { FormattedMessage, intlShape, injectIntl } from '../../util/reactIntl'; import classNames from 'classnames'; import { lazyLoadWithDimensions } from '../../util/contextHelpers'; import { LINE_ITEM_DAY, LINE_ITEM_NIGHT, propTypes...
const executors = require('../src/executors'); const satisfier = require('../src/satisfier'); jest.mock('../src/executors', () => ({ terraform: jest.fn().mockReturnValue(Promise.resolve()), })); let stack, task; beforeEach(() => { stack = { id: 'stack-123' }; task = { name: 'sample-task', ...
/****************************************************************************** Copyright (c) 2012, Google Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must ...
/**************************************************************************** * * This is free and unencumbered software released into the public domain. * * Anyone is free to copy, modify, publish, use, compile, sell, or * distribute this software, either in source code form or as a compiled * binary, for any pu...
require('./main'); require('./renderCollection');
const path = require("path"); const assert = require("assert"); const Config = require("@youbox/config"); const compile = require("../index"); describe("vyper compiler", function() { this.timeout(10000); const defaultSettings = { contracts_directory: path.join(__dirname, "./sources/"), quiet: true, al...
'use strict'; module.exports = function(sequelize, DataTypes) { var User = sequelize.define('User', { firebase_key: DataTypes.STRING }, { classMethods: { associate: function(models) { User.hasMany(models.List); User.hasMany(models.Item); } } }); return User; };
import { graphql } from 'gatsby' import { StaticImage } from 'gatsby-plugin-image' import Layout from '../components/Layout' import React from 'react' import RecipesList from '../components/RecipesList' import SiteSeo from '../components/SiteSeo' /* Setup about page */ const About = ({ data: { allContentfulRecip...
export const formatSeconds = (time) => { const minutes = ~~(time / 60); const seconds = ~~time % 60; let returnString = "" + minutes + ":" + (seconds < 10 ? "0" : "") + seconds; return returnString; }; export const setDarkMode = (isDarkMode) => { const root = document.documentElement; if (isD...
/* global AppWindow, Card, MocksHelper, CardsHelper */ 'use strict'; require('/shared/js/tagged.js'); requireApp('system/test/unit/mock_app_window.js'); var mocksForCard = new MocksHelper([ 'AppWindow' ]).init(); suite('system/Card', function() { function makeApp(config) { var appWindow = new AppWindow({ ...
Prism.languages.clike = { 'comment': [ { pattern: /(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/, lookbehind: true }, { pattern: /(^|[^\\:])\/\/.*/, lookbehind: true, greedy: true } ], 'string': { pattern: /(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/, greedy: true }, 'class-name': { pattern: /(...
function AjaxFactory($url, $data, $func) { return $.ajax({ url: $url, type: 'post', data: $data, success: $func }) }
var C = (function () { function C() { } C.prototype.P = function (ii, j, k) { for(var i = 0; i < arguments.length; i++) { } }; return C; })(); var c = new C(); c.P(1, 2, 3);
window.RequireJS = window.RequireJS || {}; RequireJS.requirejs = RequireJS.requirejs || window.requirejs; RequireJS.require = RequireJS.require || window.require; RequireJS.define = RequireJS.define || window.define; window.require = undefined; window.define = undefined; window.requirejs = undefined;
/** * Given a number, replace this number with * the sum of its digits until we get to a one digit number. * * @param {Number} n * @return {Number} * * @example * For 100, the result should be 1 (1 + 0 + 0 = 1) * For 91, the result should be 1 (9 + 1 = 10, 1 + 0 = 1) * */ function getSumOfDigits(num) { // ...
import WeappSimpleStorage from './weapp-simple-storage.js'; import TtlPlugin from './plugin/ttl-plugin.js'; WeappSimpleStorage.installPlugin(TtlPlugin); export default WeappSimpleStorage;
import React, { Component, Fragment } from 'react' import PropTypes from 'prop-types' import Validators from '../Utils/Validators' import ValidationPopup from '../ValidationPopup/ValidationPopup' import TextField from 'material-ui/TextField' class PasswordInput extends Component { constructor (props, context) { ...
/* @flow */ export const getSet = (keyName?: string) => { const key = Symbol(keyName); return [ (instance: Object): any => instance[key], (instance: Object, value: any): any => (instance[key] = value), ]; };
/*! * jQuery Mobile 1.4.1 * Git HEAD hash: 18c1e32bfc4e0e92756dedc105d799131607f5bb <> Date: Wed Feb 12 2014 22:15:20 UTC * http://jquerymobile.com * * Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors * Released under the MIT license. * http://jquery.org/license * */ (function ( root, doc, factory ...
'user strict'; // Напиши функцию calculateTotalPrice(allProdcuts, productName), которая получает массив объектов и имя продукта (значение свойства name). // Возвращает общую стоимость продукта (цена * количество). // Вызовы функции для проверки работоспособности твоей реализации. const products = [ { name: 'Радар'...
import { request, config } from 'utils' const { api } = config const { city_user } = api export async function query (params) { return request({ url: city_user, method: 'get', data: params, }) } export async function create (params) { return request({ url: city_user.replace('/:id', ''), met...
var searchData= [ ['xtext_394',['xText',['../class_gui_tab_close_button.html#ac2b798bbb9a9073c74bcd653640efe8a',1,'GuiTabCloseButton']]] ];
describe('Container', function() { beforeEach(function() { draw.clear() }) describe('rect()', function() { it('should increase children by 1', function() { var initial = draw.children().length draw.rect(100,100) expect(draw.children().length).toBe(initial + 1) }) it('should c...
pbjsChunk([8],{ /***/ 580: /***/ (function(module, exports, __webpack_require__) { module.exports = __webpack_require__(581); /***/ }), /***/ 581: /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony...
console.log( (function (b) { return b + "ING"; var b; })("PASS") );
// import important parts of sequelize library const { Model, DataTypes } = require("sequelize"); // import our database connection from config.js const sequelize = require("../config/connection"); // Initialize Product model (table) by extending off Sequelize's Model class class Product extends Model {} // set up f...
import { connect } from 'react-redux' import { IntlProvider } from 'react-intl' function defaultSelector(state) { const intl = state.get('intl'); return { key: intl.locale, ...intl } } const mapStateToProps = (state, { intlSelector = defaultSelector }) => intlSelector(state) export default connect(ma...
/** * Copyright 2018 Goldman Sachs. * 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 agreed to in writ...
const moment = require("moment"); moment.locale("pt-br"); require("moment-timezone"); const Categoria = require("../models/produto/Categoria"); const Subcategoria = require("../models/produto/Subcategoria"); const Usuario = require("../models/usuario/registro/Usuario"); const UsuarioFisico = require("../models/usuario...
const fs = require("fs-extra"); const copyfiles = require("copyfiles"); fs.removeSync("publish"); console.log("** Cleared publish folder **"); function copy(src, dest, options) { return { src, dest, options }; } const toCopy = [ copy("css/*.css", "publish"), copy("package.json...
'use strict'; var path = require('path'); var assert = require('assert'); var mockery = require('mockery'); describe('The path resolution method', function() { var resolve = require('../lib/resolve.js'); var originalReqMainFilename = require.main.filename; // Make sure env variable isn't set for tests if (proces...
//# sourceMappingURL=i18n-zh-CN-json.4b43fdbf.chunk.js.map
module.exports={A:{A:{"2":"J C G VB","132":"B A","388":"E"},B:{"132":"D Y g H L"},C:{"1":"0 1 3 4 5 y u t","16":"TB z RB QB","132":"J C G E B A D Y g H L M N O P Q R S T U V W X v Z a b c d e f K h i j k l m n o p q r s x","388":"F I"},D:{"1":"0 1 3 4 5 9 i j k l m n o p q r s x y u t FB BB UB CB DB","16":"F I J C G E ...
import { spawn } from 'cross-spawn'; import serve from 'rollup-plugin-serve'; import html from '@rollup/plugin-html'; import pkg from '../package.json'; import { INPUT_PATH, OUTPUT_PATH, DEV_SERVER, mergeEntryConfig } from './utils'; const { E2E_ENV } = process.env; export default [ mergeEntryConfig({ input: !E...
function getURLQueryStringParameterByName(name) { name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), results = regex.exec(location.search); return results === null ? null : decodeURIComponent(results[1].replace(/\+/g, " ")); } /* used f...
load("0d8683db8b3792521a65ad1edba9cf82.js"); load("dada5190587903f93a3604016a6099ce.js"); load("53234245c682115e8e9d606e8a018647.js"); load("0afa33476e37a2be7fe5999ed35d4073.js"); /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2...
var constants = require('../constants'); var tempIRSensor_lib = require('jsupm_otp538u'); var groveSensor = require('jsupm_grove'); // https://github.com/intel-iot-devkit/upm/issues/450 var voltageFixIndex = 0.45; function Temperature() { var that = this; var ambientPort = constants.portOffset + constants.temp...
// This is CodeMirror (http://codemirror.net), a code editor // implemented in JavaScript on top of the browser's DOM. // // You can find some technical background for some of the code below // at http://marijnhaverbeke.nl/blog/#cm-internals . (function(mod) { if (typeof exports == "object" && typeof module ...
import peerDepsExternal from "rollup-plugin-peer-deps-external"; import commonjs from "@rollup/plugin-commonjs"; import typescript from "rollup-plugin-typescript2"; import sass from "rollup-plugin-sass"; import copy from "rollup-plugin-copy"; export default { input: ["src/index.ts", "src/TestComponent/index.ts"], ...
var assert = require('assert'); gt.module('using assert module'); gt.test('equality', function () { assert.equal (4, 4); assert.strictEqual (4 > 2, true); }); gt.test('passing notEqual', function () { assert.notEqual (4, 2); assert.notStrictEqual (1, true); }); gt.test('CRASH: passing notEqual'...
import React from 'react'; import classes from './NavigationItems.css'; import NavigationItem from './NavigationItem/NavigationItem'; const navigationItems = (props) => ( <ul className={classes.NavigationItems}> <NavigationItem link="/" exact>Burger Builder</NavigationItem> <NavigationItem link="/...
const { ObjectId } = require('mongodb'); const sanitizeHtml = require('sanitize-html'); const assert = require('assert'); const { format, getUnixTime, fromUnixTime } = require('date-fns'); const db = require('../../drivers/db-client'); const validateFeedback = require('../validation/feedback'); const sendEmail = requi...
import actions from "./actions"; const initState = { tab_id:1, basic:{}, status:'incomplete' }; export default (state = initState, action) => { switch (action.type) { case actions.ADD_BASIC: return { ...state, basic: action.payload, }; case actions.ADD_BASIC_SUCCESS_RESU...
import React, { useState, useMemo } from 'react'; import Icon from 'react-native-vector-icons/MaterialIcons'; import { format } from 'date-fns'; import pt from 'date-fns/locale/pt'; import { DatePickerIOS } from 'react-native'; import { Container, DateButton, DateText, Picker } from './styles'; export default functio...
import { __assign } from "tslib"; import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export var Google = React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg", }; return (React.createEleme...
class Errors { /** * Create a new Errors instance. */ constructor() { this.errors = {} } /** * Determine if an errors exists for the given field. * * @param {string} field */ has(field) { return this.errors.hasOwnProperty(field) } /** * De...
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
import * as React from 'react'; import { assert } from 'chai'; import { createMount, getClasses, findOutermostIntrinsic } from '@material-ui/core/test-utils'; import describeConformance from '../test-utils/describeConformance'; import KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft'; import KeyboardArro...
var routingService = function(){ function makeNavGraph(graph){ var temp={}; for(var i=0;i<graph.length;i++){ temp[(graph[i].id+"")]=graph[i].adj; } return temp; } function getNode(graph,id){ for(var i=0;i<graph.length;i++){ if(""+graph[i].id===""+id) return graph[i]; } console.log("node no...
const argsAliases = require('../boilerplate/argsAliases') function resolveCommandAlias(string) { if (typeof string != 'string' || string.length < 1) throw new Error('Must supply a non-empty string as the command name') while (argsAliases.hasOwnProperty(string)) { string = argsAliases[string] } return s...
/** * Photography Show Route * @type {exports} */ import {Route} from 'backbone-routing'; import Radio from 'backbone.radio'; import View from './view'; import storage from '../storage'; let routerChannel = Radio.channel('router'); export default Route.extend({ initialize(options = {}) { this.container = o...
import baseAssignValue from './.internal/baseAssignValue.js' import reduce from './reduce.js' /** Used to check objects for own properties. */ const hasOwnProperty = Object.prototype.hasOwnProperty /** * Creates an object composed of keys generated from the results of running * each element of `collection` thru `it...
// Crée par Joachim Zadi le 16/03/2022 à 14:52. Version 1.0 // ======================================================== // class Personne { // // Les proprietres // prenom; // age; // conjoint; // // constructor(prenom, age) { // } // } // let personne = new Personne(); // // personne.age = 53...
'use strict'; const path = require('path'); const fs = require('fs'); const url = require('url'); //应用目录 const appDirectory = fs.realpathSync(process.cwd()); const resolveApp = relativePath => path.resolve(appDirectory, relativePath); const resolveOwn = relativePath => path.resolve(__dirname, '..', relativePath); co...
import React, { Component } from 'react' export default class Test extends Component { props: { text: string; link: string; } render() { return <span> <a href={this.props.link}>{this.props.text}</a> </span> } }
import styled from "styled-components"; import { Link as ReachRouterLink } from "react-router-dom"; export const Container = styled.section` display: flex; flex-direction: column; min-height: 660px; background-color: rgba(0, 0, 0, 0.75); border-radius: 5px; box-sizing: border-box; width: 100%; margin: ...
// window._ = require('lodash'); window.Popper = require('popper.js').default; /** * We'll load jQuery and the Bootstrap jQuery plugin which provides support * for JavaScript based Bootstrap features such as modals and tabs. This * code may be modified to fit the specific needs of your application. */ try { w...
export const AxisBottom = ({ xScale, innerHeight, tickFormat }) => xScale.ticks().map(tickValue => ( <g className="tick" key={tickValue} transform={`translate(${xScale(tickValue)},0)`} > <line y2={innerHeight} /> <text style={{ textAnchor: 'middle' }} dy="1em" y={innerHeight + 4}...
// @flow import { Trans } from '@lingui/macro'; import * as React from 'react'; import TextField from 'material-ui/TextField'; import Checkbox from 'material-ui/Checkbox'; import { Line, Column } from '../../UI/Grid'; import ResourceSelectorWithThumbnail from '../../ResourcesList/ResourceSelectorWithThumbnail'; import...
import React from 'react'; import { StyleSheet, View, Dimensions, KeyboardAvoidingView, ScrollView, AsyncStorage } from 'react-native'; import { Block, theme, Button } from 'galio-framework'; import Icon from '../../components/Icon'; import Input from '../../components/Input'; import argonTheme from '...
import event from '../../unit/event' import {rank} from '../../unit/4399api.js' const down = store => { store.commit('key_ranking', true) if (store.state.lock) { return } event.down({ key: 'k', once: true, callback: () => { } }) } const up = store => { store.commit('key_ranking', fal...
/* * * 处理template上面的参数 * * 功能虽简单,但挺费时费力的…… * * ps:费了老鼻子劲了 * */ const t = require('@babel/types') const generate = require('@babel/generator').default const traverse = require('@babel/traverse').default const JavascriptParser = require('../js/JavascriptParser') const clone = require('clone') const utils = requi...
import { comparePhrases, PhraseMap, stringToPhrase } from './Phrases'; test('stringToPhrase', () => { expect(stringToPhrase()).toBeUndefined(); expect(stringToPhrase('Abc')).toEqual(['Abc']); expect(stringToPhrase('Abc Def')).toEqual(['Abc', 'Def']); expect(stringToPhrase(' Abc Def')).toEqual(['...
const path = require('path'); const child_process = require('child_process'); const fs = require('fs'); /************************************************************* * py process *************************************************************/ const PY_MAC_DIST_FOLDER = '../../../app.asar.unpacked/daemon'; const PY_...
import common from './common'; import node from './node'; import umd from './umd'; import web from './web'; export default { common, node, umd, web };
/* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */ function myFunction() { var x = document.getElementById("myTopnav"); (x.className === "topnav") { x.className += " responsive"; } else { x.className = "topnav"; } } $(document).ready(function() { ...
import React from 'react' import { Link, graphql, StaticQuery } from "gatsby" export default () => ( <StaticQuery query={query} render={data => ( <div class="main-nav-wrapper"> <div class="scroll-wrapper"> <svg class="svg-inline--fa fa-bars fa-w-14 rm-menu-icon" aria-hid...
var dice = function (spec){ var that; that = { value: spec.value, dicesize: spec.dicesize, color: spec.color, dotcolor: spec.dotcolor, rollable: spec.rollable, clickable: spec.clickable, roll: function(){ if (that.rollable ){ that.value = Math.floor((Math.random() * 6) + 1); } } }; ...
var createGetFormSyncErrors = function createGetFormSyncErrors(_ref) { var getIn = _ref.getIn; return function (form, getFormState) { return function (state) { var nonNullGetFormState = getFormState || function (state) { return getIn(state, 'form'); }; return getIn(nonNullGetFormState(...
/*! tableSorter 2.8+ widgets - updated 5/8/2013 * * Column Styles * Column Filters * Column Resizing * Sticky Header * UI Theme (generalized) * Save Sort * ["zebra", "uitheme", "stickyHeaders", "filter", "columns"] */ /*jshint browser:true, jquery:true, unused:false, loopfunc:true */ /*global jQuery: false, lo...
var fs = require('fs'), path = require('path'), _ = require('../../lib/alloy/underscore')._, U = require('../../utils'), CU = require('./compilerUtils'), optimizer = require('./optimizer'), grammar = require('../../grammar/tss'), logger = require('../../logger'), BuildLog = require('./BuildLog'), CONST = requi...
/*! * Copyright (c) @crzyj * * Released under the MIT license: * https://opensource.org/licenses/MIT */ var Class = require("@frontgear/lang/Class"); var Event = require("./Event"); module.exports = Class("@frontgear/events/MEventTarget", function(MEventTarget) { // Public Properties this.isEventTarget = tru...