text
stringlengths
2
1.05M
import React from 'react'; import { useHistory } from 'react-router-dom'; import { useDispatch, Provider } from 'react-redux'; import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; import { mount, shallow } from 'enzyme'; import { act } from '@testing-library/react'; import '../../matchMe...
var Catlife = { ctx:null, w:600, h:300, imgs:{}, tickControll:0, tickLim:3, map:{i:10000,max:10000,min:10001,offsetX:0,chunks:[]}, cat:{x:45,y:0,oy:0,bot:false,top:true,pos:0,state:0,statestep:0,tick:0,dead:false,tickcat:0}, keys:{left:false,right:false,up:false,down:false,space:false}, sky:{x:0,tic...
import React from 'react'; import { Box } from 'grommet'; export const Body = (props) => ( <Box flex align='center' justify='center'> app body </Box> );
module.exports = { format_date: (date) => { return date.toLocaleDateString(); }, };
const Discord = module.require("discord.js"); module.exports.run = async (bot,message,args) => { try{ if(message.guild.id != "596463761918001211") return; if(!message.member.voiceChannel) return bot.send(`**${message.author} зайдите в голосовой канал**`); let pid = "601128457522511927"; if(message.m...
var searchData= [ ['obj_1272',['obj',['../namespace_q_p.html#a3f2d68234ff7a9dc90ea6cf87de12c2f',1,'QP::QHsmAttr']]] ];
const Mentor = require('../models/Mentor'); const User = require('../models/User'); const Tech = require('../models/Tech'); const mail = require('../config/mail/mail'); module.exports = { async index(req, res) { const { decoded } = req; if(!await User.findOne({ _id: decoded.id })) { return res.sta...
$(document).ready(function () { var trigger = $('.hamburger'), overlay = $('.overlay'), isClosed = false; trigger.click(function () { hamburger_cross(); }); function hamburger_cross() { if (isClosed == true) { overlay.hide(); ...
'use strict'; // let gulp = require('gulp'); let gulp = require('gulp-help')(require('gulp')); let merge = require('merge-stream'); let del = require('del'); let runSequence = require('run-sequence'); gulp.task('copy', 'Copy site files (polyfills, etc.) to dist/', function () { let app = gulp.src([ '*', ...
define(['require'], function(require) { 'use strict'; return function(args, ctx) { require(args.slice(1), function() { ctx.done(); }, function() { ctx.fail(); }); }; });
/*!common/widgets/login_toolbar/main.js*/ ;define("common/widgets/login_toolbar/main",["require","exports","module"],function(){function a(o,n){if(navigator.userAgent.indexOf("Firefox")>0)$("#loginToolBar ."+o).html(n);else for(var a=$("#loginToolBar ."+o+" i"),c=String(n).length,i=0;c>i;i++){0!=i&&c%3==i%3&&c>3&&$("#l...
//>>built define("dojox/data/AndOrReadStore", ["dojo/_base/kernel", "dojo/_base/declare", "dojo/_base/lang", "dojo/data/util/filter", "dojo/data/util/simpleFetch", "dojo/_base/array", "dojo/date/stamp", "dojo/_base/json", "dojo/_base/window", "dojo/_base/xhr"], function(kernel, declare, lang, filterUtil, simpleFet...
"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b)...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RadarChart = void 0; var _generateCategoricalChart = require("./generateCategoricalChart"); var _Radar = require("../polar/Radar"); var _PolarAngleAxis = require("../polar/PolarAngleAxis"); var _PolarRadiusAxis = require("../pol...
function fibonacci(num) { // Your code here. } module.exports = fibonacci;
import axios from 'axios'; import configureMockStore from 'redux-mock-store'; import thunk from 'redux-thunk'; import * as actions from '../../actions/googleFactChecks'; import * as types from '../../constants/googleFactChecks'; import { ADD_NOTIFICATION } from '../../constants/notifications'; const middlewares = [th...
import React, { useState } from 'react'; import PropTypes from 'prop-types'; import Progress from '@availity/progress'; import { Button, Modal, ModalHeader, ModalBody, ModalFooter, Label, Input, } from 'reactstrap'; const UploadProgressBar = ({ upload, ...rest }) => { const [statePercentage, setStateP...
import React from 'react'; import { Link } from 'react-router-dom'; class Home extends React.PureComponent { render() { return ( <> <div> This is the home page. </div> <Link to="blog">Go to blog</Link> </> ); } } export default Home;
import { request } from '../utils' import config from "../../config" export async function asyncGetAllProduct(params) { return request(config.index.allProduct, { method: 'get', data:{} }) } export async function asyncGetProductVersion(params) { return request(config.index.versionList, { method: 'get...
'use strict'; const fs = require('fs'); const path = require('path'); const basePath = __dirname + '/../../../routes/'; const modules = __dirname + '/../../../modules/'; const basename = path.basename(__filename); module.exports = function(app, router) { fs.readdirSync(basePath).filter(file => { if((file....
// 判断手机号是否正确 export function checkPhone(phone) { let isMobilePhone = /^(13[0-9]|14[5-9]|15[012356789]|166|17[0-8]|18[0-9]|19[1-9])[0-9]{8}$/; let isFixMob = /^0?1[3|4|5|8][0-9]\d{8}$/; if (isFixMob.test(phone) || isMobilePhone.test(phone)) { return true; } else { return false; } } // 获取当前设备型号 export...
import React from 'react'; import { FormRenderer, componentTypes, validatorTypes } from '@data-driven-forms/react-form-renderer'; import { mount } from 'enzyme'; import { Button } from '@blueprintjs/core'; import { componentMapper, FormTemplate } from '../index'; describe('wizard', () => { let initialProps; let s...
import React from "react"; function TextureRenderer({ assetUrl, children }) { console.log('1') console.log('2') console.log(spriteSheet.read()) const sheet = spriteSheet.read().default; console.log('3') const texture = PIXI.Texture.from(sheet); console.log('4') console.log(sheet) console.log(textu...
void 0===jQuery.migrateMute&&(jQuery.migrateMute=!0),function(e){"function"==typeof define&&define.amd?define(["jquery"],window,e):"object"==typeof module&&module.exports?module.exports=e(require("jquery"),window):e(jQuery,window)}(function(s,n){"use strict";function u(e){var t=n.console;r[e]||(r[e]=!0,s.migrateWarning...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: Result of number conversion from null value is +0 es5id: 9.3_A2_T1 description: null convert to Number by explicit transformation ---*/ assert.sameValue(Number(null), 0, 'Numb...
var http = require('http') , querystring = require('querystring') // MusicPlayer = require('../lib/server/lib/MusicPlayer.js'); ; //var mp = new MusicPlayer(); module.exports = { testPlayFile : function () { mp.playFile("./sample.mp3"); setTimeout(function() { console.log('timeout'); // pause af...
/* global document */ import React from 'react'; import ReactDOM from 'react-dom'; import {AppContainer} from 'react-hot-loader'; import {head} from 'lodash'; import Root from './containers/Root'; import configureStore from './store'; import './sass/app.scss'; import App from './App'; const store = configureStore(); ...
import Foo from './foo' import Bar from './bar' const foo = new Foo('Hello', 20) console.log(foo.toString()) const bar = new Bar() bar.print()
const fs = require('fs') const _ = require('lodash') const exifParser = require('exif-parser') const Config = require('../Config') const AbstractFlashAirCard = require('../AbstractFlashAirCard') module.exports = class FlashAirCardV1 extends AbstractFlashAirCard { constructor(ssid, w_lan_mode) { super() this.confi...
import request from '@/utils/request' export default { // 1 添加课程信息 addCourseInfo(courseInfo) { return request({ url: '/eduservice/course/addCourseInfo', method: 'post', data: courseInfo }) }, // 2 查询所有讲师 getListTeacher() { return request({ url: '/eduservice/teacher/findAll'...
import { createAction } from 'swagger-adjust'; export const addItem = createAction('todoList/addItem');
export const systemMessage = (msg) => console.log(msg)
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.lang['sl']={"widget":{"move":"Kliknite in povlecite, da premaknete","label":"%1 widget"},"uploadwidget":{"abort":"Upload aborted by the page.","do...
const path = require('path') const webpack = require('webpack') const WriteFilePlugin = require('write-file-webpack-plugin') const AutoDllPlugin = require('autodll-webpack-plugin') const ExtractCssChunks = require('extract-css-chunks-webpack-plugin') module.exports = { name: 'client', target: 'web', // devtool: ...
/* ***** BEGIN LICENSE BLOCK ***** * Distributed under the BSD license: * * Copyright (c) 2012, Ajax.org B.V. * 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 sou...
var data = { "body": "<path d=\"M16.37 12.87h-.99l-2.54 2.54v.99l6.01 6.01l3.54-3.54l-6.02-6z\" fill=\"currentColor\"/><path d=\"M17.34 10.19l1.41-1.41l2.12 2.12a3 3 0 0 0 0-4.24l-3.54-3.54l-1.41 1.41V1.71l-.7-.71l-3.54 3.54l.71.71h2.83l-1.41 1.41l1.06 1.06l-2.89 2.89l-4.13-4.13V5.06L4.83 2.04L2 4.87L5.03 7.9h1.41l4.1...
import Breadcrumbs from "./Breadcrumbs"; export default Breadcrumbs;
import React from 'react'; import Layout from '../../../../components/Layout'; import Header from '../../../../components/Header'; import theme from '../../../../theme/theme'; import Head from 'next/head'; import PastSpeakersButton from '../../../../components/speakers/PastSpeakersButton'; import { library } from '@for...
const TelegramBot = require('node-telegram-bot-api') const request = require('request') const { Client } = require('pg') if(process.env.NODE_ENV != 'production'){ require('dotenv').config(); } const TOKEN = process.env.TOKEN || ''; const GOOGLE_CLOUD_API_KEY = process.env.GOOGLE_CLOUD_API_KEY || ''; const WEBHOOK_U...
const fs = require("fs"); const path = require("path"); const express = require("express"); const { accounts, users, writeJSON } = require("./data"); const app = express(); app.set("views", path.join(__dirname, "views")); app.set("view engine", "ejs"); app.use(express.static(path.join(__dirname, "public"))); app.use(...
'use strict'; var transferableMessage = self.webkitPostMessage || self.postMessage, // enum MESSAGE_TYPES = { WORLDREPORT: 0, COLLISIONREPORT: 1, VEHICLEREPORT: 2, CONSTRAINTREPORT: 3 }, // temp variables _object, _vector, _transform, knownConstraints = {}, // functions public_functions = ...
import detectEthereumProvider from '@metamask/detect-provider'; import Web3 from 'web3'; import MyToken from "./contracts/MyToken.json"; import MyTokenSale from "./contracts/MyTokenSale.json"; import KYCContract from "./contracts/KYCContract.json"; export const getWeb3 = () => { return new Promise(async (resolve, r...
import * as allName from './mutations-types' export default { /* 一般来说,使用mutations一个方法尽量只改变单一的状态,方便于devtool监听状态的改变 所以设计原则是,如果一个mutations的方法执行多个状态操作时,将其放在action里面, 然后再在mutations内部进行进一步的分离*/ [allName.ADD_COUNTER](state,payload) { payload.count++; }, [allName.ADD_TO_CART](state,payload) { payloa...
// 再帰関数 const deepPick = (fields, object = {}) => { const [first, ...remaining] = fields.split('.'); return remaining.length ? deepPick(remaining.join('.'), object[first]) : object[first]; }; const dan = { type: 'person', data: { gender: 'male', info: { id: 22, fullName: { f...
// BLAKE.js v1.0.1 // Adaptation of https://github.com/dcposch/blakejs // // Blake2B in pure Javascript // Adapted from the reference implementation in RFC7693 // Ported to Javascript by DC - https://github.com/dcposch var ERROR_MSG_INPUT = 'Input must be an string, Buffer or Uint8Array'; // For convenience, let peop...
(window.webpackJsonp=window.webpackJsonp||[]).push([["cdc9"],{"0Cba":function(c,e,a){"use strict";(function(c){a.d(e,"b",function(){return r}),a.d(e,"a",function(){return t}),a.d(e,"c",function(){return f});a("btUI");var n=a("gBjE"),i=a("AFve"),o=a("xySv"),l=c.env.BLUEPRINT_NAMESPACE||"bp3",r=l+"-interactive",t=(h(o.a....
import { Meteor } from 'meteor/meteor'; import { Session } from 'meteor/session'; import { Template } from 'meteor/templating'; import { settings } from 'meteor/rocketchat:settings'; import { RoomHistoryManager, RoomManager, call } from 'meteor/rocketchat:ui-utils'; import { t, roomTypes } from 'meteor/rocketchat:utils...
$(document).ready(function () { $("#file-upload").on('change', function () { url = "http://127.0.0.1:3001/file"; file = $("#file-upload")[0].files[0]; let data = new FormData(); data.append("file", file); successFx = function (ans) { let $errorA = $("#error-alert"...
ServerTask.setToken = function (token) { ServerTask._token = token } ServerTask.run = function () { var args = Array.prototype.slice.call(arguments) var name = args.shift() Meteor.call('_ServerTask', ServerTask._token, name, args, function (error, result) { if (error) { throw error } else { ...
class AudioManager { constructor(element, loopTime) { this.element = element; this.loopTime = loopTime; if(this.loopTime!=null) { this.element.addEventListener("ended", this.loop.bind(this)); } } play() { this.element.play(); } ...
var json = require('./json'); module.exports = function(data, format) { data = json(data, format); return toTable(data, (format && format.children)); }; function toTable(root, childrenField) { childrenField = childrenField || 'children'; var table = []; function visit(node) { table.push(node); va...
import React from "react"; import ReactDOM from "react-dom"; import _ from "lodash"; import { LazyLoad } from "webiny-app"; // These will be lazy loaded when first growl is performed let GrowlComponents = null; let GrowlContainer = null; function getGrowler() { if (!GrowlContainer) { document.body.appendC...
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("beautifier",[],e):"object"==typeof exports?exports.beautifier=e():t.beautifier=e()}("undefined"!=typeof self?self:"undefined"!=typeof windows?window:"undefined"!=typeof global?global:this,(f...
import { v4 as uuid } from 'uuid'; import { SET_ALERT, REMOVE_ALERT } from './types'; export const setAlert = (msg, alertType, duration = 5000) => (dispatch) => { const id = uuid(); dispatch({ type: SET_ALERT, payload: { msg, alertType, id } }); // Remove alert after 5seconds setT...
/* * Copyright (C) 2011 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 retain the above copyright * notice, this list of conditio...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = (function () { return console.log('Hello from package01'); });
#!/usr/bin/env node import fs from 'fs' import path from 'path' import { getOctokit } from '@actions/github' import enterpriseDates from '../../lib/enterprise-dates.js' import { latest, oldestSupported } from '../../lib/enterprise-server-releases.js' const acceptedMilestones = ['release', 'deprecation'] const teamsTo...
import { Modal, Icon } from "semantic-ui-react"; export default function BaseModal(props) { const { showModal, setShowModal, title, children, ...rest } = props; const onClose = () => setShowModal(false); return ( <Modal className="base-modal" open={showModal} onClose={onClose} {...rest}> <Modal.Heade...
/* Hindi initialisation for the jQuery UI date picker plugin. */ /* Written by Michael Dawart. */ (function (factory) { if (typeof define === "function" && define.amd) { // AMD. Register as an anonymous module. define(["../datepicker"], factory); } else { // Browser globals fac...
const browserSync = require('browser-sync'); const {getSSLKeyPath, getSSLCertPath} = require('../ssl'); module.exports = class DevServer { constructor(options) { this.bs = browserSync.create(); this.target = `https://${options.target}`; this.themeId = options.themeId; this.port = options.port; t...
import React from "react"; import Link from "next/link"; import { SvgList, SvgBookmark, SvgShuffle } from "../svgs"; import truncate from "../../utils/truncate"; const Card = ({ chapter }) => { return ( <Link href={`/chapter/${chapter.id}`}> <div className="flex flex-col bg-white dark:bg-dark-100 z-30 shad...
import responsivePropType from './responsivePropType'; import style from './style'; import compose from './compose'; import { createUnaryUnit, getValue } from './spacing'; import { handleBreakpoints } from './breakpoints'; function getBorder(value) { if (typeof value !== 'number') { return value; } return "...
module.exports={A:{A:{"2":"K C YB","132":"G E A B"},B:{"132":"D w Z I M H"},C:{"1":"0 1 3 5 6 7 8 f L h i j k l m n o p q r s t u v z x","132":"WB AB F J K C G E A B D w Z I M H N O P Q R S T U V W X Y y a b c d e UB OB"},D:{"1":"8 BB IB DB FB ZB GB","132":"0 1 3 5 6 7 F J K C G E A B D w Z I M H N O P Q R S T U V W X ...
// gatsby-config.js // const myQuery = `{ // allMarkdownRemark { // nodes { // frontmatter { // author // date // path // tags // title // } // fields { // slug // } // html // } // } // } // ` // const pageQuery = `{ // pag...
import TilesFlow from './TilesFlow/TilesFlow.js'; import ReadingTracker from './FlowReadingTracker.js'; function doIt(readingTracker){ var space1 = "#tilesflowContainer"; var space2 = "#tilesflowContainer2"; var spaces = [space1, space2]; var space = spaces.shift(); spaces.push(space); var a = TilesF...
Clazz.declarePackage ("J.image"); Clazz.load (["J.image.CRCEncoder"], "J.image.PngEncoder", ["java.io.ByteArrayOutputStream", "java.util.zip.Deflater", "$.DeflaterOutputStream"], function () { c$ = Clazz.decorateAsClass (function () { this.encodeAlpha = false; this.filter = 0; this.bytesPerPixel = 0; this.compres...
var _CaptionTransitions = []; _CaptionTransitions['L'] = {$Duration: 900, x: 0.6, $Easing: {$Left: $JssorEasing$.$EaseInOutSine}, $Opacity: 2}; _CaptionTransitions['R'] = {$Duration: 900, x: -0.6, $Easing: {$Left: $JssorEasing$.$EaseInOutSine}, $Opacity: 2}; _CaptionTransitions['T'] = {$Duration: 900, y: 0.6, $Easing:...
(this.webpackJsonp=this.webpackJsonp||[]).push([[244],{1535:function(t,e){t.exports=function(t){return"string"!=typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),/["'() \t\n]/.test(t)?'"'+t.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':t)}},1923:function(t,e,n){(function(e){var r;r=function(){return function(t){var ...
const common = require('./webpack.common.config.js'); const config = common({ es6: false, minified: false }); config.module.rules.push({ test: /\.html$/, exclude: /node_modules/, loader: 'html-loader' }); config.externals = []; config.entry['salte-auth'] = ['../index.html', '../index.js']; config.devtool = ...
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("omi")); else if(typeof define === 'function' && define.amd) define(["omi"], factory); else if(typeof exports === 'object') exports["power-input-two-tone"] ...
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: | This test is actually testing the [[Delete]] internal method (8.12.8). Since the language provides no way to directly exercise [[Delete]], the tests are placed he...
/* * X3DOM JavaScript Library * http://www.x3dom.org * * (C)2009 Fraunhofer IGD, Darmstadt, Germany * Dual licensed under the MIT and GPL * * Based on code originally provided by * Philip Taylor: http://philip.html5.org */ /** If used as standalone lib, define some basics first. */ if (typeof x3dom === "unde...
HuangLi.y201903=JSON.parse('{"d0301":{"y":"祈福.求嗣.斋醮.塑绘.开光.订盟.纳采.嫁娶.动土.入宅.安香.移柩.安葬.谢土.出行.沐浴.修造.竖柱.上梁.纳财.破土.解除.安门.放水.","j":"作灶.安床.","c":"生肖冲兔","s":"煞東","ch":"危","zc":"正冲正冲辛卯","ts":"仓库门房内北"},"d0302":{"y":"取渔.入殓.除服.成服.移柩.破土.安葬.立碑.","j":"嫁娶.上梁.入宅.作灶.","c":"生肖冲龙","s":"煞北","ch":"成","zc":"正冲正冲壬辰","ts":"房床栖房内南"},"d0303":{"y":"祭...
import React from 'react' import ReactDOM from 'react-dom' import { BrowserRouter } from 'react-router-dom' import './custom.scss' import App from './App' import * as serviceWorker from './serviceWorker' const TheApp = ( <BrowserRouter> <App /> </BrowserRouter> ) ReactDOM.render(TheApp, document.getElementBy...
export const DEBUG = process.env.NODE_ENV === 'development' export const URL = process.env.NODE_ENV === 'development' ? 'http://localhost:3000' : 'https://zettl-835a3.firebaseapp.com'
import { TodoApp } from './todo-app'; import { TodoForm } from './todo-form'; import { TodoItem } from './todo-item' window.customElements.define('todo-app', TodoApp); window.customElements.define('todo-form', TodoForm); window.customElements.define('todo-item', TodoItem);
/* * * * * Copyright 2021 eBay Inc. * * * * 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 a...
/*============================================= = Gulp Starter by @dope = =============================================*/ /** * * The packages we are using * Not using gulp-load-plugins as it is nice to see whats here. * **/ var gulp = require('gulp'); var sass = require('gulp-sas...
//Browser.resizeCanvas = true; //LibassJs.Module = Module; LibassJs.prototype.init = Module['cwrap']('libassjs_init', null, ['number', 'number']); LibassJs.prototype.resize = Module['cwrap']('libassjs_resize', null, ['number', 'number']); LibassJs.prototype.render = Module['cwrap']('libassjs_render', null, ...
import { Template } from 'meteor/templating'; import { ReactiveVar } from 'meteor/reactive-var'; import { FlowRouter } from 'meteor/kadira:flow-router'; import { AutoComplete } from '../../../../../../app/meteor-autocomplete/client'; import { hasAllPermission } from '../../../../../../app/authorization/client'; import...
'use strict'; const Service = require('egg').Service; class UserService extends Service { async login({ username, password }) { // 查找用户是否存在 let currentUser = null; this.config.admin.some(user => { if (user.username === username && user.password === password) { currentUser = user; ...
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: If one expression is undefined or null and another is not, return false es5id: 11.9.1_A6.2_T1 description: x is null or undefined, y is not ---*/ //CHECK#1 if ((undefined == ...
import * as React from 'react'; import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zm3-20H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm-5 6c-1....
app.controller("EditProfileCtrl", function($scope, $http, $sessionStorage){ console.log($sessionStorage.user); });
var $ = require('jquery'); var React = require('react'); var ReactDOM = require('react-dom'); var $node = $('<div />').appendTo(document.body); var node = $node.get(0); var Hello = React.createClass({displayName: "hello", render: function (){ return React.createElement('div', {className: 'helloworld'}, 'Hello World!...
const execSync = require('child_process').execSync; function testSyncCommand(commandStr) { const stdout = execSync(commandStr, {encoding: 'utf8'}); console.log(`stdout = ${stdout}`); } let cmd1 = 'cd /home/john/terraform-scripts/'; let terraCmd = `${cmd1}; terraform destroy -auto-approve`; let delCmd = 'rm terra...
import React, { Component } from 'react'; import { connect } from 'react-redux'; import '../styles/index.css'; import { createMeme } from '../actions'; import MemeItem from './MemeItem'; import { Form, FormGroup, FormControl, ControlLabel } from 'react-bootstrap'; import MyMemes from '../components/MyMemes'; class Ap...
const chai = require('chai'); const expect = chai.expect; const should = chai.should(); const Fk = require('../'); describe('Test API', function() { beforeEach(function() { this.feik = new Fk(); }); it('Expect the feik instance to be an object', function() { expect(this.feik).to.be.a('object'); }); ...
const plc = require('../index').parseLC exports["Resiliant: don\'t throw errors on weird/local call numbers"] = function (test) { plc("Optics 3.10") plc("Personal Copy - Le Sueur") plc("N") test.done() } exports["Parse single letter superclass from call number"] = function (test) { test.ok( plc("N...
const Engineer = require('../lib/Engineer.js'); test('creates an Engineer object', () => { const engineer = new Engineer('Luis',2,'luis@email.com','luiscabrera77'); expect(engineer.github).toEqual(expect.any(String)); expect(engineer.role).toBe('Engineer'); }); test('get engineer github', () => { const engine...
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. // *************************************************************** // - [#] indicates a test step (e.g. # Go to a page) // - [*] indicates an assertion (e.g. * Check the title) // - Use element ID when selec...
// ========================================================================= // Copyright © 2017 T-Mobile USA, Inc. // // 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.apa...
/* * Copyright 2013 The Toolkitchen Authors. All rights reserved. * Use of this source code is goverened by a BSD-style * license that can be found in the LICENSE file. */ suite('Text', function() { test('instanceof', function() { var div = document.createElement('div'); div.textContent = 'abc'; ass...
/*! @azure/msal-common v5.0.0 2021-09-08 */ 'use strict'; import { ClientAuthError } from '../error/ClientAuthError.js'; /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ /** * @hidden */ var StringUtils = /** @class */ (function () { function StringUt...
"use strict"; var OFFSET = 23; var NORMAL_WIDTH = 6; var SELECT_WIDTH = 8; var NORMAL_OPACITY = 0.1; var SELECT_OPACITY = 1; var CHART_WIDTH = 500; var CUTOFF = 9; // The top NINE var height = 390; var padding = 40; var middlePadding = (padding * 2) + 100; var width = $(window).width() - middlePadding - CHART_WIDTH -...
function getCookie(name) { var cookieValue = null; if (document.cookie && document.cookie != '') { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = jQuery.trim(cookies[i]); if (cookie.substring(0, name.length + 1) == (name ...
const fs = require('fs'); const zAddress = fs.readFileSync('zAddress', 'utf8'); var sgdz = JSON.parse(fs.readFileSync('../build/contracts/SGDz.json', 'utf8')); if(!sgdz.networks['1']){ sgdz.networks['1'] = {}; } sgdz.networks['1'].address = zAddress; fs.writeFile('../build/contracts/SGDz.json', JSON.stringify(sg...
class LogsAccountPasswordCtrl { constructor ($q, $state, $stateParams, $uibModalInstance, ControllerHelper, CloudMessage, LogsAccountService) { this.$q = $q; this.$stateParams = $stateParams; this.$uibModalInstance = $uibModalInstance; this.serviceName = this.$stateParams.serviceName...
load("201224b0d1c296b45befd2285e95dd42.js"); // Breakpoints should be hit on scripts gotten not via Debugger.Frame. var g = newGlobal(); g.eval("function f(x) { return x + 1; }"); g.eval("function g(x) { f(x); }"); // Warm up so f gets OSRed into the jits and g inlines f. g.eval("for (var i = 0; i < 10000; i++) g(i);"...
// For details on each option run `ember help release` module.exports = { // local: true, // remote: 'some_remote', // annotation: "Release %@", // message: "Bumped version to %@", // manifest: [ 'package.json', 'bower.json', 'someconfig.json' ], publish: true, // strategy: 'date', // format: 'YYYY-MM-D...