text
stringlengths
7
3.69M
import { vector, victor } from '../src/vector'; import { point, ipoint } from '../src/point'; import debug from '../src/debug'; import { cachedValueOf, cachedFactory, operatorCalc } from '../src/operator'; // create vector by numbers const pos = vector(5, 6, 7); const dir = vector(1, 0, 0); console.log(debug`pos:${pos...
var searchData= [ ['armoury',['ARMOURY',['../class_ro_pa_sc_rules.html#ae1d3e82efce3aca085b03067d7794a37',1,'RoPaScRules']]] ];
//============================================================================== // initialisation //============================================================================== var EDITABLE_ID = "logoot"; var BEGIN_LINE_ID = LineId.getDocumentStarter().serialize(); var END_LINE_ID = LineId.getDocumentFinisher().ser...
/** * Created by 柏大树 on 2017/4/5. */ var express = require('express'); var router = express.Router(); var Zif = require('../model').Zif; router.post('/add',function(req,res){ var ifs = req.body;//InterFaces Zif.create(ifs,function(err,docs){ res.send(ifs); }) }); module.exports = router;
var searchData= [ ['free_5fcalibri11x12',['free_calibri11x12',['../group___l_c_d___f_o_n_t_s.html#ga2558862b690208d8070c551c17815539',1,'ssd1306_fonts.c']]], ['free_5fcalibri11x12_5fcyrillic',['free_calibri11x12_cyrillic',['../group___l_c_d___f_o_n_t_s.html#gacceb4a5f5023dfc2417b9196c6de8904',1,'ssd1306_fonts.c']]]...
// 使用bind() // var that; class Tab { constructor(id) { //获取元素 // that = this; this.main = document.querySelector(id); this.add = this.main.querySelector('.tabadd'); //li的父元素 this.ul = this.main.querySelector('.firstnav ul:first-child'); //选项卡的父元素 this....
import {useNavigation} from '@react-navigation/core'; import React from 'react'; import {StyleSheet, Text, TouchableOpacity, View} from 'react-native'; import BackArrowIcon from '../assets/BackArrow'; import CrossIcon from '../assets/CrossIcon'; import SearchIcon from '../assets/SearchIcon'; import StatisticsIcon from ...
const axios = require("axios"); const connection = require("../infra/db/connection"); const repository = require("../repositories/appointment"); // const moment = require("moment"); class Appointment { async add(appointment) { // const date = moment(appointment.date).format("YYYY-MM-DD HH::MM::SS"); // cons...
import React, {useRef} from "react"; const App = () => { const videoRef = useRef(null) return <div> <video ref={videoRef} width="auto" height="auto"> <source src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" type="video/mp4"/> </video> <button onClick={() =>...
/* Task Description */ /* Write a function that sums an array of numbers: numbers must be always of type Number returns `null` if the array is empty throws Error if the parameter is not passed (undefined) throws if any of the elements is not convertible to Number */ function sum(arg) { var arr = arg, fla...
import Carousel from './Carousel.svelte' export { Carousel }
import React from "react"; import "./style.css"; const Button = props => ( <button type={props.type ? props.type : "button"} className={"button" + (props.className ? " " + props.className : "")} onClick={props.click ? props.click : () => false} > {props.children} </button> ); export default Butt...
const jwt = require('jsonwebtoken'); Author =require('../models/author'); var router = module.exports = require('express').Router(); router.use(function (req, res, next) { if (req.method === 'POST' || req.method === 'PUT' || req.method === 'DELETE' ) { console.log(req.headers['token']) try { var decoded = jwt...
/******************************************************************************** * Compilation: node DecimalBinaryManipulation.js * * Purpose: This Program contains different methods to manipulate between Decimal * and Binary numbers. i.e Conversion b/w these two, swapping nibbles, etc. * * @auth...
;(function(){ "use strict"; var app = angular.module("myApp", [ //third party modules 'ui.router', //in built module dependencies 'myApp.shared', 'myApp.home' ]); //global variables var templateBaseUrl = '/templates/'; var sharedObject = { header: { templateUrl: templateBaseUrl + 'shared/sta...
Router.configure({ layoutTemplate: 'register' }); Router.route('/1',{ name: 'animal' }); Router.route('../',{ name: 'register' });
$(document).ready(function() { new WOW().init(); $(function () { $('[data-toggle="tooltip"]').tooltip() }); $('#navbarSupportedContent-332').on('show.bs.collapse', function(){ $('#navbarSupportedContent-333').collapse('hide'); }); $('#navbarSupportedContent-333').on('show.bs....
'use strict'; module.exports = { up: (queryInterface, Sequelize) => { return queryInterface.createTable('Bugs', { id: { allowNull: false, autoIncrement: true, primaryKey: true, type: Sequelize.INTEGER }, status_correction: { allowNull: false, defau...
export default { activate_form_step: 0, sim_step_data: { card_number: '', card_bar_code: '' }, check_step_data: { user_name: '', password: '', general_terms: false }, data_step_data: { address: '', city: '', country_id: '', created_at: '', email: '', email_conf...
$.get("https://async-workshops-api.herokuapp.com/people", function(peopleResponse) { peopleResponse.forEach(function(person) { $.get("https://async-workshops-api.herokuapp.com/people/" + person.id, function(personResponse) { console.log(personResponse.favouriteMusic); }); }); });
const jwt = require('jsonwebtoken'); require('dotenv').config(); const { handleResponse, handleError, } = require('../middlewares/requestHandlers'); const { save, get, update, getUserProfileData, } = require('../dbServices/user'); const { requiredFeilds, passChk, chkUserExist, ...
function newLifetime(kill_callback) { return {kill_callback: kill_callback}; }
module.exports = { JWT_SECRET: process.env.JWT_SECRET, PG_USER: process.env.PG_USER, PG_HOST: process.env.PG_HOST, PG_DATABASE: process.env.PG_DATABASE, PG_PASSWORD: process.env.PG_PASSWORD, PG_PORT: process.env.PG_PORT, };
import testFunction from "testFunction.js"; testFunction();
import React from 'react'; class Products extends React.Component { constructor(props) { super(props); this.submitHandler = this.submitHandler.bind(this); } submitHandler(inventory) { console.log(inventory) alert(inventory.inventoryType); } render() { ret...
import styled from "styled-components"; export default styled.div` z-index: 1; position: relative; border: solid 1px #fff; padding: 2vh; background: rgba(0, 0, 0, 0.5); `;
/* Variávei globais */ let {mat4, vec4, vec3, vec2} = glMatrix; let SPEED = 0.1; const COS_45 = Math.cos(Math.PI * 0.25); let ku = false, kd = false, kl = false, kr = false, pos = [0,1,0]; pos2 = [20,0.5,15]; pos3 = [5,1,5]; snake = []; parede1v = [20,2,9]; pa...
const Sequelize = require('sequelize'); module.exports = function(sequelize, DataTypes) { return sequelize.define('CoreConfigData', { config_id: { autoIncrement: true, type: DataTypes.INTEGER.UNSIGNED, allowNull: false, primaryKey: true, comment: "Config ID" }, scope: { ...
/*------------------------------------------------------------------------------- * HomeService * * Purpose : Service to get data and parse for home page and search form. Uses * calls retrieved from external APIs. * * Dependencies * -- /app/shared/external/eBayAPI.js (Category information) * -- /app/shared/exte...
export const Data = [ { topic: '', name: 'John Lee', }, { topic: '', name: 'John Lee', }, { topic: '', name: 'John Lee', }, { topic: '', name: 'John Lee', }, { topic: '', name: 'John Lee', }, { topic: '', name: 'John Lee', }, { topic: '', ...
/** * * OrdersList * * Orders.List page content scripts. Initialized from scripts.js file. * * */ class OrdersList { constructor() { // Initialization of the page plugins if (typeof Checkall !== 'undefined') { this._initCheckAll(); } else { console.error('[CS] Checkall is undefined.');...
import React, { Component } from "react"; import { Link, Redirect } from "react-router-dom"; import { connect } from "react-redux"; import { Field, reduxForm } from "redux-form"; import { register } from "../../actions/auth"; import Form from "react-bootstrap/Form"; import Button from "react-bootstrap/Button"; import A...
import { Router } from 'express' const router = Router() import * as authController from '../controllers/auth.controller' import { authJwt } from '../middlewares' router.post('/registrarse', [authJwt.verifyToken, authJwt.permisoCrearUsuario], authController.signUp) router.post('/logearse', authController.signIn) ex...
const Post = props => { return <h1>{props.title}</h1> } export const getServerSideProps = ctx => { const languages = { en: 'A blog in english', et: 'Eesti keeles blogi', } return { props: { title: languages[ctx.locale], }, } } export default Post
import axios from 'axios'; import _ from 'lodash'; import React, { useEffect, useState } from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Card from '@material-ui/core/Card'; // import CardActionArea from '@material-ui/core/CardActionArea'; import CardHeader from '@material-ui/core/CardHeader'...
// Conventions: // x > 0 is to the right // y > 0 is down var camera = { x0: 0, y0: 0, z: 32, focus: null, zoverride: 0, think: function (dt) { this.z = this.zoverride || Math.min(canvas.width, canvas.height) / (state.sun ? 26 : 18) if (this.focus) { var f = Math.min(10 * dt, 1) this.x0 += (this.fo...
import loginReducer from "./login"; import postsReducer from "./posts"; import profileReducers from "./profile"; import chatsReducer from "./chat"; import messagesReducer from "./messages"; import commentsReducer from "./comments"; import followersReducer from "./followers"; import followingsReducer from "./followings"...
import angular from 'angular'; import 'bootstrap/dist/css/bootstrap.css'; import angularMeteor from 'angular-meteor'; import template from './assetDepartment.html'; import { Departments } from '../../api/assets/departments.js'; class AssetDepartmentCtrl { constructor($scope) { $scope.viewModel(...
const selectedCardsReducer = (state = [], action) => { switch (action.type) { case 'ADD_SELECTED_CARD': return [...state, action.selectedCard]; case 'ADD_SELECTED_CARDS': return [...action.selectedCards]; case 'REMOVE_SELECTED_CARD': return state.filter(card => card.id !== action.selectedCard...
const showHeader=(headers) =>{ const tableArr= headers; const tableMain= document.getElementById("main-table"); let tableRowEle= '<tr id="table_row">'; tableArr.forEach(tableRow=>{ tableRowEle+= `<th class='${String(tableRow)}'>`+String(tableRow)+'</th>'; }); tableRowEle+= '</...
$(function () { var myChart1 = echarts.init(document.getElementById('chartOne')); var myChart2 = echarts.init(document.getElementById('chartTwo')); var option1 = { title:{ text:"设计审核进度" }, angleAxis: { type: 'category', data: ['土建专业', '机电专...
/** *NPM import */ import React from 'react'; import PropTypes from 'prop-types'; /** * Local import */ import CvBuilder from '../CvBuilder'; import ProfileBuilder from '../ProfileBuilder'; /* * Code */ const BackOffice = () => ( <div className="backoffice"> <ProfileBuilder /> <CvBuilder /> </div> ...
import React from 'react'; import './App.css'; export default class Language extends React.Component { state = { title:"", frameworks: "", content:"" } displayLanguages = (event) => { console.log(event.target.id) if (event.target.id == "one"){ this.setSt...
import React, { Fragment, useEffect, useState } from "react"; import { useParams, Link, useHistory } from "react-router-dom"; import {deleteCard, readDeck, listDecks, deleteDeck} from "../utils/api/index"; function ViewDeck() { const history = useHistory(); const {deckId} = useParams(); const [currentDec...
var counter=(function(){ var count=0 return { "like":function(){return ++count;}, "dislike":function(){return --count} } })()
/** * @author zhixin wen <[email protected]> * @version 0.0.1 * @github https://github.com/wenzhixin/side-menu * @blog http://wenzhixin.net.cn */ (function($) { 'use strict'; function SideMenu($el) { this.$el = $el; } SideMenu.prototype = { constructor: SideMenu, events: function() { if (...
// pages/txl/txl.js const app = getApp() Page({ /** * 页面的初始数据 */ data: { list: [] }, getData: function() { let _this = this; wx.showLoading({ title: '加载中...', mask: true }) wx.request({ url: `${app.globalData.serverPath}/api/archives/getClassInfoList`, method: ...
'use strict' const redis = require('redis');
import json from '@rollup/plugin-json' import resolve from '@rollup/plugin-node-resolve' import commonjs from '@rollup/plugin-commonjs' import typescript from 'rollup-plugin-typescript2' import { terser } from 'rollup-plugin-terser' import clear from 'rollup-plugin-clear' import babel from 'rollup-plugin-babel' const ...
//Copyright 2012, John Wilson, Brighton Sussex UK. Licensed under the BSD License. See licence.txt function TileMap(mapdata,tilemapResource,screenDim,tileDim) { this._posmatrix = Matrix44.Create() ; this._mapdata = mapdata ; this._resource = tilemapResource ; this._screenDim = screenDim || {width:1024,heigh...
var searchData= [ ['okienka',['okienka',['../namespaceokienka.html',1,'']]] ];
// !Levels Grid StudentCentre.grid.AttendanceLevels = function(config) { config = config || {}; Ext.applyIf(config,{ id: 'studentcentre-grid-attendance-levels' ,url: StudentCentre.config.connectorUrl ,baseParams: { action: 'mgr/attendance/scClassLevelGetList' ,sortByOrd...
import React, {Component} from 'react'; import DialogTitle from "@material-ui/core/DialogTitle"; import DialogContent from "@material-ui/core/DialogContent"; import DialogContentText from "@material-ui/core/DialogContentText"; import Button from "@material-ui/core/Button"; import DialogActions from "@material-ui/core/D...
var functions________________f________8js____8js__8js_8js = [ [ "functions________f____8js__8js_8js", "functions________________f________8js____8js__8js_8js.html#a97edd0d6ca77fccb530997207ffa4106", null ] ];
import Jumbotron from 'react-bootstrap/Jumbotron' import 'bootstrap/dist/css/bootstrap.min.css'; import './App.css'; import { GamerTag } from './components' import axios from "axios"; const options = { method: 'GET', url: 'https://call-of-duty-modern-warfare.p.rapidapi.com/warzone/javim1224/psn', headers: { ...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ function validateNames() { document.getElementById("fNameErr").style.visibility = "hidden"; document.getElementById("lNameEr...
'use strict'; angular.module('spedycjacentralaApp') .controller('TransporterInfoController', function ($scope, $state, $modal, TransporterInfo, ParseLinks) { $scope.transporterInfos = []; $scope.page = 0; $scope.loadAll = function() { TransporterInfo.query({page: $scope.p...
// import React from "react"; // import Footer from "../footer"; // const homeStyle = { // border: "2px black solid", // width: "50%", // margin: "0 auto", // marginBottom: "20px", // padding: "20px", // textAlign: "center", // borderRadius: "10px", // boxShadow: "10px 10px 10px black", // }; // expor...
import $ from 'jquery'; import paper from 'paper'; import {closePath} from './_shapes.js'; import {app, tool} from './_settings.js'; import {selectLayer} from './_layers.js'; import clearLayer from './_clear.js'; import remodal from 'remodal'; export default function shortcuts() { tool.onKeyDown = function(event) { ...
// https://js.checkio.org/station/library/ /* 20171116 SAY HI https://py.checkio.org/mission/say-history/ (NOT IN THE LIST OF JS EXERCISES) In this mission you should write a function that introduce a percone with a given parameters in attributes. Input: Two arguments. String and positive integer. Output: String. Ex...
import React, { Component } from 'react' class Project extends Component { render() { const { project } = this.props return ( <article className="pt5 w-100"> <a href={project.url} className="db f3 dark-gray lh-title underline-hover" target="_blank"> {project.title} </a> ...
/* 输入链表,从尾到头打印链表每个节点值 */ /* function ListNode(x) { this.val = x; this.next = null; }*/ function printListFromTailToHead(head) { var arr = [] while (1) { if (!head) break; arr.push(head.val) head = head.next } return arr.reverse() } // console.log(printListFromTailToHead({})) // 16ms 5212k
const { checkSchema } = require('express-validator/check'); /** * Validation for the query, param or POST body */ /****************** * AUTH ***************/ export const Auth = { // POST /api/auth/login login: { email: { // The location of the field, can be one or more of body, cookies, headers, p...
import React, { useRef, useEffect, useState } from "react"; import { Progress } from 'antd'; export default function Demo () { const [num, setNum] = useState(1); let intervalRef = useRef(); const decreaseNum = () => setNum((prev) => prev + 1); useEffect(() => { intervalRef.current = setInterval(dec...
export { default as Header } from './Header'; export { default as PersonalInfo} from './PersonalInfo'
module.exports = function( dummy, anaConfig, req, res, callback) { var CustNum = req.body.result.parameters.CustNum; var CustName = req.body.result.parameters.CustName; CustName = CustName.replace(/[^\w\s]/gi, ''); var jde_attrib = req.body.result.parameters.jde_attrib; var qString = ""; var s...
import AccountManager from '../../account-manager/index.jsx' import Contact from '../../store/contact.jsx' import React from 'react' import Timeout from '../../util/timeout.jsx' import {extend, merge} from 'lodash' import {Status} from '../../app/config' function Queue(options) { extend(this, options) } Queue.proto...
#!/usr/bin/env node /** * xloger command-line interface * use: * xloger --help to get help. * xloger start to start a daemon service. * xloger stop to stop the server. */ var pwd = __dirname , os = require('os') , fs = require("fs") , path = require('path') , program = require('commander') , jsonfile = require(...
var stdio = require('stdio'); var ops = stdio.getopt({ 'nomadip': {key: 'n', args: 1, mandatory: true, description: 'Nomad Server API IP Address'}, 'token': {key: 't', args: 1, mandatory: true, description: 'Circonus AP Token'}, 'plan': {key: 'p', args: 1, type: Boolean, description: 'Show Plan but do not...
import './App.scss'; import Register from "./pages/Register/Register" import Login from "./pages/Login/Login" import Home from "./pages/Home/Home" import NavbarComponents from "./Components/Navbar/Nav" import Footer from './pages/Footer/Footer' import ChatPage from "./pages/ChatPage/ChatPage" import { BrowserRouter a...
var express = require('express'); var app = express(); var bodyParser = require('body-parser'); var mongoose=require('mongoose'); var user = require('./user'); mongoose.connect('mongodb://localhost:27017/sensor_db'); app.use("/templates", express.static(__dirname + '/templates')); app.use(bodyParser.urlencoded({ ...
const Chance = require('chance'); const expect = require('code').expect; const presetOptions = require('../../../src/preset-options'); describe('Given the yargs `commandDir` options object for katulong presets', () => { it('should only use the right extension', () => { const expectedExtensions = 1; ...
const express = require('express'); var bodyParser = require('body-parser'); const passport = require('passport'); const cookieSession = require('cookie-session'); const passportSetup = require('./config/passport-setup'); const fileUpload = require('express-fileupload'); const {google} = require('googleapis'); const fs...
const extend = (a, b) => { return Object.assign({}, a, b); }; const getMovieRatingLevel = (rating) => { let level = ``; if ((rating >= 0) && (rating < 3)) { level = `Bad`; } if ((rating >= 3) && (rating < 5)) { level = `Normal`; } if ((rating >= 5) && (rating < 8)) { level = `Good`; } if ...
import Vue from 'vue'; import PieChart from '../components/PieChart.vue'; import BarChart from '../components/BarChart.vue'; import LineChart from '../components/LineChart.vue'; import ExportChartButton from '../components/ExportChartButton.vue'; Vue.component('vue-pie-chart', PieChart); Vue.component('vue-bar-chart',...
#!/usr/bin/env node const dispatcher = require('./../lib/dispatcher'); // Parse given arguments to map to action to manager dispatcher.parse(process.argv);
var settings = require("./settings") exports.development = { port: 3000, cookieSecret: settings.cookieSecret } exports.production = { port: 3000, cookieSecret: settings.cookieSecret }
const express = require('express'); const router = express.Router(); const mysql = require('../mysql').pool; // retorna todos os produtos router.get('/', (req, res, next) => { mysql.getConnection((error, conn) => { if (error) { return res.status(500).send({ error: error }) } co...
const path = require('path'); const webpack = require('webpack'); module.exports = { entry: { entry1: './entry1.js', entry2: './entry2.js', entry3: './entry3.js' }, output: { filename: 'bundle.[name].js', path: path.resolve(__dirname, 'dist') }, plugins: [ new webpack.optimize.CommonsC...
function twoStrings(s1, s2) { // n = |s1| m = |s2| // O(n + m) // take one string, put all these letters in a hash table, let set = new Set(); for (let letter of s1){ set.add(letter) } for (let letter of s2){ if (set.has(letter)){ return "YES"; } } return "NO"; // see if the seco...
ds.BaseEmployee.count()
import { Component } from "react"; import Footer from './Footer'; export default { title : 'component/Footer', component : Footer } export const normal = () => <Footer/>
import React, { Component } from 'react'; import i18n from './i18n'; import { translate } from 'react-i18next'; import './App.css'; // var log = require('log4js');//.getLogger('App'); // log.debug("This is in App.js"); // const fs = require('fs'); // var Log = require('log') // , log = new Log('debug', fs.creat...
import React, { useEffect, useRef } from 'react' import Scroll from '../../../../components/Scroll' import PropTypes from 'prop-types' import './index.scss' function HorizontalList(props) { const listWrapper = useRef(null) const { list, selectedItem, title } = props const { handleClick } = props useEffect(()...
export const AddFriendSchema = { id: '/AddFriendSchema', type: 'object', properties: { user_id: { type: 'number' }, friend_id: { type: 'number' } } }
import React from 'react'; import PropTypes from 'prop-types'; import CategoryConstants from '../../constants/categoryConstants'; import FilterItem from './filter-item'; /** * Handles filtering of category of products */ class CategoryFilter extends React.Component { constructor(props) { super(props); t...
const LOAD_DATA = 'views/shoppingcar/load_data' const SET_DATA = 'views/shoppingcar/set_data' const INCREMENT = 'views/shoppingcar/increment' const DECREMENT = 'views/shoppingcar/decrement' const PUT_DATA = 'views/shoppingcar/put_data' const DELETE_DATA = 'views/shoppingcar/delete_data' export { LOAD_DATA, SET...
import {pageSize, pageSizeType, description, searchConfig} from '../../globalConfig'; const controls = [ {key: 'controllerExplain', title: '所属控制层说明', type: 'text', required: true}, {key: 'controllerName', title: '所属控制层名称', type: 'text', required: true}, {key: 'controllerUrl', title: '所属控制层路径', type: 'text', requ...
import React, { useEffect, useState } from "react"; import { Button, Col, Form, Row } from "react-bootstrap"; import { useDispatch, useSelector } from "react-redux"; import { createBook, deleteBook, listBooks } from "../actions/bookActions"; import { BOOK_CREATE_RESET } from "../actions/types"; import Book from "../com...
import React from 'react' const FourOhFour = () => ( <h1 style={{ color: 'white', fontSize: '500%' }}>404</h1> ) export default FourOhFour
var searchData= [ ['tutorial_94',['Tutorial',['../start.html',1,'']]], ['type_5ferror_95',['type_error',['../classoptionpp_1_1type__error.html',1,'optionpp::type_error'],['../classoptionpp_1_1type__error.html#a76c5ed432b1abe7e75c094beb48de26e',1,'optionpp::type_error::type_error()']]] ];
//var host = "http://192.168.1.107/"; var host = "http://localhost/"; var server = "MonopolyServer/web/app_dev.php/"; var app = "MonopolyClient/public_html/"; var modulo = ""; var usuario = {id: 0, nombre: "", personaje: "", personajeNombre: "", dinero: 1000, carcel: 0}; var sala; // Chema // Variables globales... an...
'use strict'; // Load modules const axios = require('axios').default; const instance = axios.create({ baseURL: 'https://service.formitize.com/api/rest/v2/', // timeout: 1000, headers: { 'Accept': 'application/json', 'Content-Type': 'application/json', 'User-Agent':process.env.FM_COMPANY }, auth:{...
class RenderDeities { static $getRenderedDeity (deity) { return $$` ${Renderer.utils.getBorderTr()} ${Renderer.utils.getExcludedTr(deity, "deity")} ${Renderer.utils.getNameTr(deity, {suffix: deity.title ? `, ${deity.title.toTitleCase()}` : "", page: UrlUtil.PG_DEITIES})} ${RenderDeities._getDeityBody(dei...
const electron = require('electron'), { app , BrowserWindow } = electron, url = require('url'), path = require('path'); let mainWindow; app.on('ready',()=>{ mainWindow = new BrowserWindow({ width:1000, height:800 }); const startUrl = process.env.ELECTRON_START_URL || URL.format(...
let a = new WeakSet(), c = 123; // 错误 // 1.WeakSet只能存对象 a.add( c ); console.log( a.has( c ) );
export { Book } from './book.js'; export { Genre } from './models.js'; export { BookCollection, ProductCollection } from './book-collection.js'; export { Collection } from './collection.js'; export { Notepad } from './notepad.js'; export { getBookInfo } from './google-books.js'; import { Genre } from './models.js'; imp...
'use strict'; describe('Panel Self Test',function(){ it('open test page',function(){ browser.get('test/e2e/testee/panel/web/self.html') .then(function(){ browser.sleep(2000); }); }); it('显示默认标题',function(){ //标题 var i=element(by.css(".demo1 .panel-caption ...
//webpack默认配置 //module.exports: 对外暴露该文件, 使得其他文件取得访问权 module.exports = {};
//Program to draw mathematical rose patterns // Polar equation is: // r = cos(kθ) // OR can be a "pair of cartesian parametric equations" // x = cos(kθ)cos(θ) // y = cos(kθ)sin(θ) // Ref https://en.wikipedia.org/wiki/Rose_(mathematics) var denominator = 8; var numerator = 5; var sliderD; var sliderN; function setup(...