text stringlengths 2 1.04M |
|---|
var onRun = function(context) {
var ga = require("../modules/Google_Analytics");
ga("Symbol");
var zoom = require("../modules/Zoom");
var sketch = require("sketch");
var document = sketch.getSelectedDocument();
var selection = document.selectedLayers;
if (selection.length != 1) {
... |
var searchData=
[
['identifier_320',['identifier',['../structt__sd__file.html#aa97a31d578395bad79ae290fd8e7f073',1,'t_sd_file']]],
['image_321',['image',['../structt__slide__type__tag.html#a04cf83170787fdf6494940ec8310c359',1,'t_slide_type_tag::image()'],['../structt__light__button__tag.html#a556a453ff6af547feeb17f... |
'use strict'
/**
* lint 测试:主要测试直接 lint 文件
*/
const test = require('ava')
const path = require('path')
const fs = require('fs-extra')
const createTmpProjectFromCache = require('./utils/create-tmp-project-from-cache')
const run = require('./utils/run')
test.beforeEach(async t => {
const tmpDir = await createTmpPro... |
define(function (require) {
'use strict';
var modules = require('modules');
var _ = require('lodash');
require('scripts/tosca/services/tosca_service');
require('scripts/common-graph/services/router_factory_service');
require('scripts/common-graph/services/bbox_factory_service');
require('scripts/topolo... |
module.exports = {
"extends": "airbnb",
"installedESLint": true,
"plugins": [
"react",
"jsx-a11y",
"import"
],
"rules": {
"react/jsx-filename-extension": "off",
}
}; |
if (Meteor.isClient) {
var relations;
var mymain;
var add_schema = function (val, key) {
var type = val.keyType;
delete(val.keyType);
switch (type) {
case 'String':
break;
case 'Array':
mymain[key].type = [this[val._d... |
const sql = require("mssql/msnodesqlv8");
export const getAll = async (request, tableName) => {
const queryResult = await request.query(`select * from dbo.${tableName}`);
return queryResult.recordset;
}; |
/*
* jQuery Templating Plugin
* NOTE: Created for demonstration purposes.
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
*/
(function(jQuery){
// Override the DOM manipulation function
var oldManip = jQuery.fn.domManip;
jQuery.fn.extend({
render: function( data ) {
... |
// Exported mixins
// Exported utils
// Require all the components that start with 'BaseXXX.vue'
const components = require.context('./components', true, /[a-z0-9]+\.vue$/)
export function install (Vue, options = {}) {
// To extract the component name
const nameReg = /([a-z0-9]+)\./i
// Registration
compone... |
import Link from "next/link";
import fetch from "isomorphic-unfetch";
const Robots = props => {
console.log(props.robots);
return (
<div>
<h1>Robots</h1>
<Link href="index">
<button>Home</button>
</Link>
<Link href="about">
<button>About</button>
</Link>
<div... |
import React, { Component } from "react";
import { withRouter } from "react-router-dom";
import * as server from "../api/login";
import {
Layout,
Menu,
Icon,
Breadcrumb,
Badge,
Radio,
Button,
Input,
Row,
Col,
Carousel,
Dropdown,
message,
Divider,
Card,
Tag,
List,
Tabs
} from "antd";... |
var searchData=
[
['argumenthandler_2ecpp_347',['ArgumentHandler.cpp',['../_argument_handler_8cpp.html',1,'']]],
['argumenthandler_2ehpp_348',['ArgumentHandler.hpp',['../_argument_handler_8hpp.html',1,'']]],
['arrayheapextmem_2ecpp_349',['ArrayHeapExtMem.cpp',['../_array_heap_ext_mem_8cpp.html',1,'']]],
['array... |
function makeOption(text, value, title) {
/* Format an option for a select element
*/
var html = `<option value='${value || text}'`;
if (title) {
html += ` title='${title}'`;
}
html += `>${text}</option>`;
return html;
}
function makeOptionsList(elements, textFunc, valueFunc, t... |
import React, { useState, useEffect } from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import { Wcontainer, plugins } from '@alicloud/cloud-charts';
import '@alicloud/cloud-charts/plugins/WorldMap/index';
co... |
import VueRouter from 'vue-router'
import Vue from 'vue'
import Home from './pages/index'
Vue.use(VueRouter)
const routes = [{
path: '/:presentableName',
component: Home,
},{
path: '*',
component: Home,
}]
const router = new VueRouter({
scrollBehavior(to, from, savedPosition) {
if (savedPosition) {
... |
/*jshint node:true*/
var fs = require('fs');
var existsSync = require('exists-sync');
var path = require('path');
var walkSync = require('walk-sync');
var stringUtil = require('ember-cli-string-utils');
var uniq = require('lodash/array/uniq');
var SilentError = require('silent-error');
var ... |
'use strict'
var _ = require('lodash')
var ActualSubsetPart = require('./ActualSubsetPart'),
emptySubsetPart = require('./emptySubsetPart')
function SubsetPart(state) {
var validState = _.pick(state, ['name', 'value'])
return (state.value)
? ActualSubsetPart(validState)
: emptySubsetPart
}
module.exports... |
import React from 'react';
import { shallow, mount } from 'enzyme';
import TodoList from '../';
import TodoItem from '../todo-item';
describe('Todo List', () => {
it('should handle default props', () => {
const {
list,
inputValue,
onInputChange,
onItemAdd,
... |
//// [invalidSwitchBreakStatement.ts]
// break is not allowed in a switch statement
switch (12) {
case 5:
break;
}
//// [invalidSwitchBreakStatement.js]
// break is not allowed in a switch statement
switch (12) {
case 5:
break;
} |
/*********************************************************************************************************************
* Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. *
* ... |
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
})... |
module.exports = {
columns: ['the', 'cake', 'is', 'a', 'lie'],
rows: [
{name: 'foo', values: [[0.13, 0.69], [0.84, 0.49], [0.31, 0.97],
[0.75, 0.29], [0.64, 0.9]]},
{name: 'bar', values: [[0.98, 0.96], [0.13, 0.7], [0.27, 0.64],
[0.17... |
import React from 'react';
import styles from './Tile.css';
const Tile = ({ grid }) => {
let inlineStyle = {
width: `${10 * grid[0]}vw`,
height: `${10 * grid[1]}vh`
};
return (
<section className={styles.root} style={inlineStyle}>
<h2>Tile</h2>
</section>
);
};
Tile.propTypes = {
gri... |
import React from 'react';
import ReactDOM from 'react-dom';
import App from './src/js/App.js';
window.ProtoGraph = window.ProtoGraph || {};
window.ProtoGraph.Card = window.ProtoGraph.Card || {};
ProtoGraph.Card.toMaps = function () {
this.cardType = 'Map';
}
ProtoGraph.Card.toMaps.prototype.init = function (optio... |
/**
* DevExtreme (ui/grid_core/ui.grid_core.column_state_mixin.js)
* Version: 19.2.4
* Build date: Tue Nov 19 2019
*
* Copyright (c) 2012 - 2019 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
"use strict";
var _renderer = require("../../... |
import React from 'react';
export default (function (props) {
return /*#__PURE__*/React.createElement("div", null, props.name);
}); |
var searchData=
[
['up',['Up',['../d2/d5e/namespacepu_1_1ui_1_1elm.html#a8a4cf8287673049110581c138f532b90a258f49887ef8d14ac268c92b02503aaa',1,'pu::ui::elm::Up()'],['../d2/d5e/namespacepu_1_1ui_1_1elm.html#ac33e06ac84db60b2dd5b56b4a1276e92a258f49887ef8d14ac268c92b02503aaa',1,'pu::ui::elm::Up()']]]
]; |
module('lunr.tokenizer')
test("splitting simple strings into tokens", function () {
var simpleString = "this is a simple string",
tokens = lunr.tokenizer(simpleString)
deepEqual(tokens, ['this', 'is', 'a', 'simple', 'string'])
})
test('downcasing tokens', function () {
var simpleString = 'FOO BAR',
... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { t... |
(function(a,b){if('function'==typeof define&&define.amd)define(['exports'],b);else if('undefined'!=typeof exports)b(exports);else{var c={exports:{}};b(c.exports),a.track_changes=c.exports}})(this,function(a){'use strict';Object.defineProperty(a,'__esModule',{value:!0}),a.default=function(a){window.addEventListener('res... |
module.exports = {
displayName: 'mintplayer-ng-soundcloud-api',
preset: '../../jest.preset.js',
setupFilesAfterEnv: ['<rootDir>/src/test-setup.ts'],
globals: {
'ts-jest': {
tsconfig: '<rootDir>/tsconfig.spec.json',
stringifyContentPathRegex: '\\.(html|svg)$',
},
},
coverageDirectory: '..... |
import React from 'react'
import ReactDOM from 'react-dom'
import Moment from 'react-moment';
import PropTypes from 'prop-types'
import Station from './Station'
import Departure from './Departure'
class Timetable extends React.Component {
constructor(props) {
super(props)
if( JSON.stringify(props.stopname) ... |
import TestIcon from 'public/assets/icons/test-icon.svg';
import IconButton from './IconButton';
export default {
title: 'App/Buttons/IconButton',
component: IconButton,
argTypes: {},
};
const Template = args => {
return (
<IconButton {...args}>
<TestIcon />
</IconButton>
);
};
export const D... |
/**
* Amazon Elastic Compute Cloud
* <fullname>Amazon Elastic Compute Cloud</fullname> <p>Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the AWS cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications faster.... |
var searchData=
[
['redraw',['redraw',['../classdraw_n_s_1_1_a_p_i_gnu_plot3_d.html#a27a110521a511f0c75e5c867f247a3f6',1,'drawNS::APIGnuPlot3D::redraw()'],['../classdraw_n_s_1_1_draw3_d_a_p_i.html#ae88121104d2eeb8936f8dc1b68fc3bbf',1,'drawNS::Draw3DAPI::redraw()']]],
['refresh_5frate_5fms',['refresh_rate_ms',['../c... |
/*!
* Module dependencies.
*/
var events = require('events'),
http = require('http'),
localtunnel = require('localtunnel'),
middleware = require('./middleware'),
getIP = require('./getIP'),
socketServer = require('./socket-server'),
emitter = new events.EventEmitter();
/**
* Serve a PhoneGa... |
import PolicyLine from "@/components/policy/PolicyLine.vue";
import dataUtils from "@/utils/dataUtils";
export default {
components: {
PolicyLine
},
data() {
return {
dialog: false,
rules: [],
license: "",
artifact: null,
callback:... |
/***************************************************************************
* module.rpc.js
* ------------------------
* Copyleft : (c) 2007 maborak.com <maborak@maborak.com>
* Version : 0.2
*
***************************************************************************/
/****... |
import React from "react";
const SvgHome2 = props => (
<svg
id="Home2_svg__Layer_1"
data-name="Layer 1"
viewBox="0 0 669.76 544.88"
{...props}
width="1em"
height="1em"
>
<defs>
<style>
{".Home2_svg__cls-1{fill:none}.Home2_svg__cls-2{isolation:isolate}"}
</style>
... |
module.exports = { // eslint-disable-line import/no-commonjs
'env': {
'browser': true,
'es6': true,
'node': true,
},
'plugins': [
'react',
],
'extends': [
'eslint:recommended',
'plugin:import/errors',
'plugin:import/warnings',
'plugin:react/recommended',
],
'parser': 'babel... |
//= require clients/site/base
//= require clients/site/albums
//= require clients/site/guests |
SEA3D.Sphere=function(a,b,c){this.name=a;this.data=b;this.sea3d=c;this.radius=b.readFloat()};SEA3D.Sphere.prototype.type="sph";SEA3D.Box=function(a,b,c){this.name=a;this.data=b;this.sea3d=c;this.width=b.readFloat();this.height=b.readFloat();this.depth=b.readFloat()};SEA3D.Box.prototype.type="box";SEA3D.Cone=function(a,... |
var menuItems = {
"id":"addProtein",
"title" : "Add Protein",
"contexts" : ["selection"]
};
//create context menu
chrome.contextMenus.create(menuItems);
//handle context menu click event
chrome.contextMenus.onClicked.addListener(function(clickData){
//validate click
if(clickData.menuItemId === "addProtein" &... |
goog.provide('rpg_tutorial.Ator');
var hero1 = {};
hero1.rosto = 'sprites/personagemPrincipalFace.png';
hero1.frente = 'sprites/personagemPrincipal1.png';
hero1.costas = 'sprites/personagemPrincipalTras.png';
hero1.lado = 'sprites/personagemPrincipalLado.png';
hero1.anda = 'sprites/personagemPrincipalFrente.png';
var... |
$('#rating-form').on('change','[name="rating"]',function(){
$('#selected-rating').text($('[name="rating"]:checked').val());
}); |
import merge from 'webpack-merge';
export function store(object) {
return merge(object, {
namespaced: true,
});
}
export default {
store,
}; |
/// <reference types="cypress" />
const basename = '/garfish_master';
describe('whole process app render', () => {
beforeEach(() => {
Cypress.env({
garfishRunConfig: {
basename: basename,
autoRefreshApp: true, // Trigger popstate event
async beforeLoad(appInfo) {
console.... |
const { Model } = require('sequelize')
module.exports = (sequelize, DataTypes) => {
class Seed extends Model {
/**
* Helper method for defining associations.
* This method is not a part of Sequelize lifecycle.
* The `models/index` file will call this method automatically.
*/
static associ... |
window.addEventListener("keydown", playSound); |
const ipc=require('../../../node-ipc');
/***************************************\
*
* UDP Client is really a UDP server
*
* Dedicated UDP sockets on the same
* machine can not be bound to in the
* traditional client/server method
*
* Every UDP socket is it's own UDP server
* And so must have a unique port on ... |
// All symbols in the `MALAYALAM` script as per Unicode v3.2.0:
[
'\u0D02',
'\u0D03',
'\u0D05',
'\u0D06',
'\u0D07',
'\u0D08',
'\u0D09',
'\u0D0A',
'\u0D0B',
'\u0D0C',
'\u0D0E',
'\u0D0F',
'\u0D10',
'\u0D12',
'\u0D13',
'\u0D14',
'\u0D15',
'\u0D16',
'\u0D17',
'\u0D18',
'\u0D19',
'\u0D1A',
'\u0D1B',
... |
DiabloCalc.addItems([
{
id: "Unique_Ring_024_x1",
name: "Hellfire Ring",
type: "ring",
quality: "legendary",
required: {
expmul: {min: 45, max: 45},
custom: {id: "leg_hellfirering", name: "Engulf the Ground in Lava", format: "Chance on hit to engulf the ground in lava, dealing 200%% w... |
/*
* 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... |
var express = require('express'),
path = require('path'),
app = express();
app.set('port', (process.env.PORT || 8081));
app.use(express.static('public'));
app.listen(app.get('port'), function(err) {
if (err) {
console.log(err);
} else {
console.log('Running on port: ' + app.get('port')); }
}); |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = withPatchSubscriber;
var _find2 = _interopRequireDefault(require("lodash/find"));
var _get2 = _interopRequireDefault(require("lodash/get"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _react = ... |
/******/ (() => { // webpackBootstrap
var __webpack_exports__ = {};
/*!*******************************************************************!*\
!*** ../demo9/src/js/pages/crud/forms/validation/form-widgets.js ***!
\*******************************************************************/
// Class definition
var KTFormWid... |
return l=g(b),a.drawImage(b,c,d,e,f,h,i,j,k/l)},f=function(a,b){var c,d,e,f,g,h,i,j,k;if(e=!1,k=!0,d=a.document,j=d.documentElement,c=d.addEventListener?"addEventListener":"attachEvent",i=d.addEventListener?"removeEventListener":"detachEvent",h=d.addEventListener?"":"on",f=function(c){return"readystatechange"!==c.type|... |
/* Copyright 2015 Teem2 LLC. 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 writing,
software di... |
export { Home } from './Home'
export { Base } from './Base' |
import Home from './components/Home'
import Dashboard from './components/Dashboard'
import Developer from './components/Developer'
import Profile from './components/Profile'
import Users from './components/Users'
import NotFound from './components/NotFound'
export default [
{
path:'/home',
componen... |
import React from "react";
import Moment from "moment";
import momentLocalizer from "react-widgets-moment";
import DateTimePicker from "react-widgets/lib/DateTimePicker"
import "react-widgets/dist/css/react-widgets.css";
Moment.locale("en");
momentLocalizer();
const DatePicker = ({ date, setDate }) => (
<DateTimeP... |
// Just some testing for something I'm going to make in the future. - Dukemz
const fs = require('fs');
const express = require('express');
const app = express();
const http = require("http").createServer(app);
const readline = require('readline');
// const io = require("socket.io")(http);
require('dotenv').config();
... |
import React, { Component } from 'react';
import * as PropTypes from 'prop-types';
import { CrawlRecord } from '../../reducers/crawls';
export default class Control extends Component {
static propTypes = {
crawl: PropTypes.instanceOf(CrawlRecord).isRequired,
getCrawlInfo: PropTypes.func.isRequired,
start... |
'use strict';
const AWS = require('aws-sdk')
const JwtLib = require('jwt-bch-lib')
const BCHJS = require('@psf/bch-js')
const AWSPENDING = 'AWSPENDING'
const AWSCURRENT = 'AWSCURRENT'
async function getBchJsCredentials(secretsManager) {
// username and password are stored in a separate secret
const secretDat... |
var echarts = require('../../echarts');
/**
* @payload
* @property {string} parallelAxisId
* @property {Array.<Array.<number>>} intervals
*/
var actionInfo = {
type: 'axisAreaSelect',
event: 'axisAreaSelected',
update: 'updateVisual'
};
echarts.registerAction... |
import { StyleSheet, Platform } from "react-native";
import * as defaultStyle from "../style";
const commons = require("./commons");
const STYLESHEET_ID = "stylesheet.expandable.main";
export default function styleConstructor(theme = {}) {
const appStyle = { ...defaultStyle, ...theme };
return StyleSheet.create({
... |
/*! Salt.js DOM Selector Lib. By @james2doyle */
/* 简单的都没选择器 */
"use strict";
Bubble.el= function(selector, context, undefined) {
// an object containing the matching keys and native get commands
var matches = {
'#': 'getElementById',
'.': 'getElementsByClassName',
'@': 'getElementsByName',
'=': '... |
var CONFIG = {}; |
const flagToCountryMap = {
'🇦🇩': 'AD',
'🇦🇪': 'AE',
'🇦🇫': 'AF',
'🇦🇬': 'AG',
'🇦🇮': 'AI',
'🇦🇱': 'AL',
'🇦🇲': 'AM',
'🇦🇴': 'AO',
'🇦🇶': 'AQ',
'🇦🇷': 'AR',
'🇦🇸': 'AS',
'🇦🇹': 'AT',
'🇦🇺': 'AU',
'🇦🇼': 'AW',
'🇦🇽': 'AX',
'🇦🇿': 'AZ',
'🇧🇦': 'BA',
'🇧🇧': 'BB',
'🇧... |
ej.addCulture("mn-Mong", { name: "mn-Mong", englishName: "Mongolian (Traditional Mongolian)", nativeName: "ᠮᠤᠨᠭᠭᠤᠯ ᠬᠡᠯᠡ", language: "mn-Mong", numberFormat: { groupSizes: [3, 0], NaN: "ᠲᠤᠭᠠᠠ ᠪᠤᠰᠤ", negativeInfinity: "ᠰᠦᠬᠡᠷᠬᠦ ᠬᠢᠵᠠᠭᠠᠷᠭᠦᠢ ᠶᠡᠬᠡ", positiveInfinity: "ᠡᠶ᠋ᠡᠷᠬᠦ ᠬᠢᠵᠠᠭᠠᠷᠭᠦᠢ ᠶᠠᠬᠡ", percent: { pattern: ["-n%", "n%"... |
sap.ui.define([
"sap/ui/base/Object",
"sap/base/Log"
], function (BaseObject, Log) {
"use strict";
return BaseObject.extend("ui.demo.multiComponent.app.sub5component.controller.ListSelector", {
/**
* Provides a convenience API for selecting list items. All the functions will wait until the initial load of t... |
import {useState} from 'react';
import {useSelector, useDispatch} from 'react-redux';
import Card from './Card';
import Loading from '../utils/Loading';
import {setNewsData} from '../../controllers/news';
import {loading} from '../../store/actions/loading';
import {setOrgs} from '../../store/actions/organization';
fun... |
// Generated on 2017-02-01 using generator-angular 0.15.1
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
// Time how long task... |
//libs
window['jQuery'] = require('../vendor/jquery/dist/jquery.js');
require('../vendor/flexslider/jquery.flexslider.js');
require('../vendor/bootstrap/dist/js/bootstrap.js');
require('../vendor/toastr/toastr.js');
require('../vendor/angular/angular.js');
require('../vendor/angular-resource/angular-resource.js');
requ... |
// react plugin for creating charts
import ChartistGraph from "react-chartist";
// @material-ui/core
import { makeStyles } from "@material-ui/core/styles";
import Icon from "@material-ui/core/Icon";
// @material-ui/icons
import Store from "@material-ui/icons/Store";
import Warning from "@material-ui/icons/Warning";
imp... |
import * as actions from "../../actions/actionTypes";
const initialState = {
loading: false,
error: null,
email: null
};
export default (state = initialState, { type, payload }) => {
switch (type) {
case actions.CLEAR_AUTH_VERIFY_EMAIL_STATE:
return initialState;
case actions.SET_VERIFY_EMAIL_F... |
export const getResourceDisplayName = resource => {
if (!resource) return null;
return (
resource.spec.externalMetadata?.displayName ||
resource.spec.externalName ||
resource.metadata.name
);
};
/* eslint-disable no-unused-vars*/
export function clearEmptyPropertiesInObject(object) {
for (const ke... |
export const SET_AUTH = "setUser";
export const PURGE_AUTH = "logOut";
export const SET_ERROR = "setError";
export const SET_SUCURSALS = "setSucursals";
export const SET_CASHIERS = "setCashiers";
export const SET_CLIENT = "setClient";
export const RESET_CLIENT = "resetClient"; |
import { ToolkitStorage } from 'toolkit/core/common/storage';
import { getBrowser, getBrowserName } from 'toolkit/core/common/web-extensions';
const TOOLKIT_DISABLED_FEATURE_SETTING = 'DisableToolkit';
export class Popup {
_storage = new ToolkitStorage();
_browser = getBrowser();
constructor() {
const man... |
const request = require('supertest');
const app = require('../app');
describe('api', () => {
describe('"/api" routes', () => {
it('should be able to resond with 2xx', done => {
request(app)
.get('/api/ping')
.expect(200)
.expect('Content-Type', /application\/json/, done);
});
... |
'use strict';
var _Object$defineProperty = require('babel-runtime/core-js/object/define-property')['default'];
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
_Object$defineProperty(exports, '__esModule', {
value: true
});
exports['default'] = purgeNoInterfaceOb... |
//activity1
const hello = (num) => {
console.log(`Hello Code Nation ${num}`);
}
function hello5(fn) {
let array = [
"item1",
"item2",
"item3",
"item4",
"item5",
];
for (let i = 0; i < 5; i++) {
fn(array[i]);
}
}
hello5(hello);
//activity2
const n... |
import React from 'react'
import Select from 'react-select'
//import Container from '../../components/common/Container'
import Title from '../../components/common/Title';
import Card from '../../components/common/Card';
function SettingsPage(props) {
const handleNetworkChange = (event) => {
console.log(e... |
import React from 'react';
import { configure, shallow, mount, render } from 'enzyme';
import toJson from 'enzyme-to-json';
import Adapter from 'enzyme-adapter-react-16';
configure({ adapter: new Adapter() });
global.React = React;
global.shallow = shallow;
global.mount = mount;
global.render = render;
global.toJson ... |
const split = require('./code');
describe('Tests', () => {
test('the tests', () => {
expect(split('beautifully')).toEqual(['b', 'eau', 't', 'i', 'f', 'u', 'l', 'l', 'y']);
expect(split('spoonful')).toEqual(['s', 'p', 'oo', 'n', 'f', 'u', 'l']);
expect(split('swimming')).toEqual(['s', 'w', '... |
import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore, applyMiddleware, compose } from 'redux'
import ReduxThunk from 'redux-thunk'
import App from './components/app'
import reducers from './reducers'
import { FETCH_CITY } from './actions/types'
import {... |
import GameInfo from './GameInfo.js'
export default GameInfo; |
'use strict';
//Initial username
var userName =prompt('Hello, what is your name?');
console.log;('Gives us ' + userName + 'so we can personalize their experience.');
//question 1
var purpose =prompt('Are you here on purpose?');
console.log(purpose + 'returns whether' + userName + 'is here on purpose');
var purpose... |
/**
*
* @authors Chaoyang Zhu (zcy_2013@163.com)
* @date 2017-02-21 10:00:00
* @tel 15903620494
*/
//全局变量
var GLOBAL = {
url: '/cgi/',
demoFlag: false,
_user: {},
_managerType: '',
TIME : 500,
ImageNumber : 10,
AttachmentNumber : 3,
//SubTas... |
angular.module("beam.goals", [
'ui.router'
])
.config(function ($stateProvider) {
$stateProvider.state('goals', {
url: '/goals',
views: {
"main": {
controller: 'GoalsController as model',
templateUrl: 'goals/goals.tpl.html'
}
},
... |
/**
* 作者: 戴荔春
* 创建时间: 2017/06/22
* 版本: [1.0, 2017/06/22 ]
* 版权: 江苏国泰新点软件有限公司
* 描述: 页面或者项目根路径的处理相关
* 直接复用cssboot中的配置,但是需要注意内部的this指针
* 慎用 this,所以 cssboot内部都没有用 this了
*/
(function(exports) {
/**
* 得到一个项目的根路径,只适用于混合开发
* h5模式下例如:http://id:端口/项目名/
* @param {String} 项目需要读取的基本目录
* @return {Str... |
/**
* Copyright 2019 The AMP HTML Authors. 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 require... |
//Jangan Di Hapus Tapi kalo Di tambah Boleh
let fetch = require('node-fetch')
let handler = async (m, { conn }) => await conn.sendButtonLoc(m.chat, await (await fetch(thumbfoto)).buffer(), `
┌〔 Donasi • Emoney 〕
├ GoPay: 085249231619
├ Dana: 085249231619
├ Pulsa: 085249231619
└────
`.trim(), watermark, 'Menu', '.menu'... |
window.crearBaseDatos();
$(document).ready(function () {
$('#clientes').hide();
$('#ventas').hide();
$('#productos').hide();
$('#abrir_ventas').click(
function () {
$('#ventas').show('fast');
$('#clientes').hide();
$('#productos').hide();
$('#ventas_detalles'... |
const express = require('express');
const bcrypt = require('bcrypt');
const {Account} = require('../models');
const {accountSignUp, accountSignIn} = require('../validators/account');
const { getMessage } = require('../helpers/validator');
const {generateJwt,generateRefreshJwt,verifyJwt,verifyRefreshJwt,getTokenFromHead... |
export const tableOption = {
border: true,
index: true,
indexLabel: '序号',
stripe: true,
menuAlign: 'center',
editBtn: false,
delBtn: false,
align: 'center',
addBtn: false,
saveBtnTitle:'保存', // 弹出新增按钮标题
updateBtnTitle:'保存', //弹出框更新按钮标题
dialogClickModal:false, // 限制弹框点击灰色背景关闭
column: [{
lab... |
import React from 'react'
import ReactDOM from 'react-dom'
import {Provider} from 'react-redux'
import {Router} from 'react-router-dom'
import history from './history'
import store from './store'
import App from './app'
// import { createMuiTheme } from '@material-ui/core/styles';
// import MuiThemeProvider from '@mate... |
const axios = require('axios').default
const Vibrant = require('node-vibrant')
// Get multiple projects at once
module.exports.getProjects = async (project_ids) => {
const modrinthProjects = (
await axios.get(
'https://api.modrinth.com/api/v1/mods?ids=' + JSON.stringify(project_ids)
)
).data
cons... |
import {
GET_EVENT_PHOTOS,
GET_ONE_PHOTO,
EDIT_ONE_PHOTO,
ADD_PHOTO,
DELETE_PHOTO,
ERROR_PHOTO,
} from "../actionTypes";
const init = {
eventPhotos: [],
photo: null,
error: null,
};
export default function reducer(state = init, action) {
switch (action.type) {
case GET_EVENT_PHOTOS:
re... |
/*
* Copyright IBM Corp. 2015-2018
*
* 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 writing... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.