text stringlengths 2 1.05M |
|---|
"use strict";
Object.defineProperty(exports, "__esModule", {value: true});
var prefix = "fas";
var iconName = "retweet";
var width = 640;
var height = 512;
var ligatures = [];
var unicode = "f079";
var svgPathData = "M629.657 343.598L528.971 444.284c-9.373 9.372-24.568 9.372-33.941 0L394.343 343.598c-9.373-9.373-9.373-... |
var game = new Phaser.Game(800, 600, Phaser.AUTO, 'game');
game.state.add('menu', menuState);
game.state.add('platform', platformState);
game.state.add('win', winState);
game.state.add('lose', loseState);
game.state.start('menu'); |
import binarySearch from '../../../algorithms/binary-search';
import BinarySearch from '../../../components/illustrations/binary-search/binary-search';
import computeBinarySearchLayout from '../../../layout/binary-search';
import computeBinarySearchFrame from '../../../frame/binary-search';
import Page from '../../page... |
/** @jsx jsx */
import { Transforms } from '@robinedman/slate'
import { jsx } from '../../..'
export const run = editor => {
Transforms.delete(editor)
}
export const input = (
<editor>
<block>
wo
<anchor />
rd
</block>
<block>
an
<focus />
other
</block>
</ed... |
/* eslint-disable */
/**
* TODO: Write custom components that address our needs to directly and deprecate these Bootstrap components.
*/
/*
* angular-ui-bootstrap
* http://angular-ui.github.io/bootstrap/
* Version: 0.12.1 - 2015-02-20
* License: MIT
*/
angular.module('ui.bootstrap', [
'ui.bootstrap.tpls',
... |
const fs = require('fs');
const path = require('path')
const {ipcMain, dialog, app} = require('electron')
let {initSql} = require('../assets/utils/sqljsUtil')
const paramFileName = 'initProjectParam.json';
let isNeedInit = false;
let db;
// 读取本地参数文件
function readMyData() {
console.log('加载initProject.js');
// 读... |
/// Copyright (c) 2012 Ecma International. All rights reserved.
/**
* @path ch15/15.4/15.4.4/15.4.4.20/15.4.4.20-2-2.js
* @description Array.prototype.filter - 'length' is own data property on an Array
*/
function testcase() {
function callbackfn(val, idx, obj) {
return obj.length === 2;
... |
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl... |
'use strict';
const test = require('tape');
const minifiers = require('./');
const charset = '@charset "utf-8";';
const utf16Encoding = '\ufeff';
const h1Long = 'h1::before,';
const h1 = 'h1:before{';
const marginOriginal = 'margin: 10px 20px 10px 20px;';
const margin = 'margin:10px 20px;';
const gradientOriginal = '... |
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).ZSchema=e()}}(function(){return function a(o,s,l){function u(t,... |
var a00279 =
[
[ "BLOB_CHOICE", "a00279.html#ac5eecc4e7e27e6f6f6defb9de1aceaf7", null ],
[ "BLOB_CHOICE", "a00279.html#a8a3ee3cbec5c8f9d8238fb60ca5bb800", null ],
[ "BLOB_CHOICE", "a00279.html#a511e25dca4c5a933bdc5f419320a3f6b", null ],
[ "~BLOB_CHOICE", "a00279.html#a9044dc95d425d627cd7ad513ddd449f7", ... |
import React, { useState } from 'react';
import { ReportService } from './service';
import * as Yup from 'yup';
import { Formik } from 'formik';
import 'bootstrap/dist/css/bootstrap.min.css';
import Select from '@material-ui/core/Select';
import MenuItem from '@material-ui/core/MenuItem';
import {
Box,
Button,
Co... |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var test = function test(msg) {
console.log(msg);
};
exports.default = test;
//# sourceMappingURL=test.js.map |
export const groupFormPlus32 = "M26 20.5v-2a1.502 1.502 0 0 0-1.5-1.5h-17A1.502 1.502 0 0 0 6 18.5v2A1.502 1.502 0 0 0 7.5 22h17a1.502 1.502 0 0 0 1.5-1.5zm-19 0v-2a.5.5 0 0 1 .5-.5h17a.5.5 0 0 1 .5.5v2a.5.5 0 0 1-.5.5h-17a.5.5 0 0 1-.5-.5zM3 11H2V9h1zm0 4H2v-2h1zm26-2h1v2h-1zM3 19H2v-2h1zm26-2h1v2h-1zM3 23H2v-2h1zm26-... |
import Homepage from '@/pages/HomePage';
import { SET_QUERY } from '@/store/mutation-types';
import render from '../../test-utils/render';
describe('Homepage', () => {
it('should render correct contents', () => {
const wrapper = render(Homepage);
expect(wrapper.find({ name: 'header-section' }).vm).toBeDefin... |
$(document).ready(function() {
$('input[name="selectedTimeslot"]').on('input', function() {
var rawInput = $(this).val();
var filteredInput = rawInput.replace( /[^\d,]/g, '' );
var appid = $(this).data('appid');
var parsed = filteredInput.split(',');
var valid = true;
$(this).val(filteredInpu... |
/**
* @file Data table stories.
* @copyright IBM Security 2019
*/
import { storiesOf } from '@storybook/react';
import { components } from '../../../.storybook';
const props = () => ({
useZebraStyles: false,
});
const readmeURL = 'https://goo.gl/dq6CEK';
/* eslint-disable global-require */
storiesOf(component... |
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
require('karma-jasmine'),
requir... |
/* Setting Vars */
let a_dir, a_col = [0, 0, 0, 255],
t_dir, t_col = [0, 0, 0, 255],
g_dir, g_col = [0, 0, 0, 255],
c_dir, c_col = [0, 0, 0, 255],
x_dir, x_col = [0, 0, 0, 255],
point_offset,
is_color_enabled = true,
in_file,
point_size = 3,
chunk_size = 4,
previous_config = {
in_file: in_file,... |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2018 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(["jquery.sap.global","sap/ui/base/Object","sap/ui/test/matchers/Interactable","sap/ui/test/matchers/Visible"],function($... |
import React from 'react'
import { isFileViewed } from './lib'
import File from './components/file'
import Folder from './components/folder'
export const createTree = ({ nodeLabel, list, href, hasComments, isDeleted, diffElement, diffStats, visibleElement, filter, hideViewed, hideFilesWithoutComments }) => {
if (hre... |
import React, { useState, useContext, useMemo } from 'react';
import { useEffect } from 'react';
import DRIVERS_DATA from './data';
import { getTransformedData } from './utils';
const initialStateContext = {
drivers: {},
rankingByRace: {},
globalRanking: {},
isTVMode: false
};
const Context = React.createConte... |
/**
*
*/
define(['jquery', 'kissy'], function($, S){
return {
width: 500,
height: 400,
height: 400,
title: '弹出层',
url: 'content.php',
param: 'a=1&b=2',
onHide: function(){
},
onCreate: function(){
}
};
}); |
// Copyright 2021 Google 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 ... |
global.firstNames = ['Abigail',
'Alexandra',
'Alison',
'Amanda',
'Amelia',
'Amy',
'Andrea',
'Angela',
'Anna',
'Anne',
'Audrey',
'Ava',
'Bella',
'Bernadette',
'Carol',
'Caroline',
'Carolyn',
'Chloe',
'Claire',
'Deirdre',
'Diana',
'Diane',
'Donna',
'Dorothy',
'Elizabeth',
'Ella',
'Emily',
'Emma',
'Faith',
'Felicity',
'F... |
/*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'table', 'sq', {
border: 'Madhësia e kornizave',
caption: 'Titull',
cell: {
menu: 'Qeli',
insertBefore: 'Shto Qeli... |
import { EMPTY_BYTES32, BIGINT_ZERO } from '../constants'
import { get } from 'svelte/store'
import { user } from '../../stores/main'
import { getAddress, encodeMethodSignature, encodeBytes32, encodeAddress, encodeUint } from '../utils'
import ethSend from '../ethSend'
export default async function withdraw(params)... |
import React, { PureComponent, Fragment } from 'react';
import PageHeaderWrapper from '../../components/PageHeaderWrapper';
import DatasetDetailsComponent from './Details/DatasetDetailsComponent';
export default class DatasetDetail extends React.PureComponent {
render() {
const datasetId = this.props.match.param... |
(function() {
var World = Matter.World,
Bodies = Matter.Bodies,
Composites = Matter.Composites,
Common = Matter.Common;
Example.mixedSolid = function(demo) {
var engine = demo.engine,
world = engine.world;
var stack = Composites.stack(50, 50, 12, 3,... |
import React from 'react'
import PropTypes from 'prop-types';
import { text } from '../../lib/settings'
import CustomProductList from './custom'
const Fragment = React.Fragment;
export default class DealProducts extends React.Component {
static propTypes = {
limit: PropTypes.number.isRequired,
settings: PropTyp... |
var path = require('path');
var webpack = require('webpack');
function resolve (dir) {
return path.join(__dirname, '..', dir)
}
module.exports = {
resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': resolve('src'),
'examples': resolve('examples')... |
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {
/******/ re... |
/*************************************************
* Copyright (c) 2015 Ansible, Inc.
*
* All Rights Reserved
*************************************************/
export default ['$scope', '$filter', 'i18n',
function ($scope, $filter, i18n) {
function isFailureState(status) {
return status =... |
import React from "react";
import "./Home.css";
import { data1, data2, data3 } from "./Data/Data";
import Product from "./Product";
import Image from "./image/1.jpg";
function Home() {
return (
<div className="home">
<div className="home_container">
<img
alt="home pic"
... |
/*!
* Bootstrap-select v1.9.3 (http://silviomoreto.github.io/bootstrap-select)
*
* Copyright 2013-2015 bootstrap-select
* Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
*/
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(a){return... |
(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(['exports', './GoogleApiComponent', './components/Marker', './components/InfoWindow', './components/HeatMap', './components/Polygon', './components/Polyline', './components/Circle', 'react', 'prop-types', 'react-dom', './lib/St... |
var React = require('react');
var SavedArticle = require('./saved-article');
var Saved = React.createClass({
handleNewArticleDelete: function(articleId) {
this.props.onArticleDelete(articleId);
},
handleNewCommentInput: function(object) {
this.props.onCommentInput(object);
},
hand... |
//Creating aliases for Cornerstone tools buttons
export function initCornerstoneToolsAliases() {
cy.get('[data-cy="stack scroll"]').as('stackScrollBtn');
cy.get('[data-cy="zoom"]').as('zoomBtn');
cy.get('[data-cy="levels"]').as('levelsBtn');
cy.get('[data-cy="pan"]').as('panBtn');
cy.get('[data-cy="length"]')... |
const request = require('supertest');
const server = require('../server.js');
it('should response with 404 Not Found when when the request is not supported by any route', (done) => {
request(server)
.get(`/${Math.random().toString(16).substring(7)}`)
.then((response) => {
expect(response.statusCode).to... |
/*!
* inputmask.js
* https://github.com/RobinHerbots/Inputmask
* Copyright (c) 2010 - 2019 Robin Herbots
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
* Version: 4.0.9
*/
(function (factory) {
if (typeof define === "function" && define.amd) {
define(["./dependencyLib... |
const { AsyncParser } = require('json2csv');
const fields = ['field1', 'field2', 'field3'];
const opts = { fields };
const transformOpts = { highWaterMark: 8192 };
const asyncParser = new AsyncParser(opts, transformOpts);
let csv = '';
asyncParser.processor
.on('data', chunk => (csv += chunk.toString()))
.on('en... |
import { SET_SEND_TYPING } from '../actions/setSendTyping';
import { SET_SEND_TYPING_INDICATOR } from '../actions/setSendTypingIndicator';
const DEFAULT_STATE = false;
export default function (state = DEFAULT_STATE, { payload, type }) {
switch (type) {
// TODO: [P3] Take this deprecation code out when releasing... |
// TODO consider replacing this with a generator such as:
// https://github.com/CVarisco/create-component-app
const fs = require('fs');
const path = require('path');
const mkdirp = require('mkdirp-promise');
const { version } = require('../lerna.json');
const componentFolderName = process.argv[2];
const componentName... |
AJS.toInit(function() {
var baseUrl = AJS.contextPath();
function populateForm() {
AJS.$.ajax({
url: baseUrl + "/rest/buglink-admin/1.0/",
dataType: "json",
success: function(config) {
AJS.$("#headerText").attr("value", config.header);
AJS.$("#regex").attr("value", config.rege... |
import chai from 'chai';
import chaiAsPromised from 'chai-as-promised';
import ADB from '../..';
import path from 'path';
import { fs, util } from 'appium-support';
import { rootDir } from '../../lib/helpers.js';
// All paths below assume tests run under /build/test/ so paths are relative from
// that directory.
cons... |
import HttpStatus from 'http-status-codes';
import cloudWatchLogs from '../services/logger/logger_messages';
import UserModel from'../models/user';
import { model as User } from '../models/user';
const TYPE = 'token';
exports.removeToken = (req, res, done) => {
const token = req.header('Authorization');
... |
const request = require('request');
const config = require('./config');
const debug = require('debug')('lookup');
const Bottleneck = require('bottleneck');
/* Create Bottleneck limiter for HTTP lookups with limits defined in config */
const limiter = new Bottleneck({
minTime: config.lookups.HTTP.minTime,
maxConcurre... |
import {
StateMachine
} from "./chunk-4X2SZKK7.js";
import {
queueMutable
} from "./chunk-3GOS4PSR.js";
import {
string
} from "./chunk-ZSQYTL5I.js";
import {
continuously,
retry,
waitFor
} from "./chunk-MLUQT4HB.js";
import {
indexOfCharCode,
omitChars,
splitByLength
} from "./chunk-OE2F6QKM.js";
imp... |
'use strict'
const Command = require('ronin').Command
module.exports = Command.extend({
desc: 'ipscend version',
options: {
},
run: () => {
const pkg = require('../../../package.json')
console.log('Version: ', pkg.version)
}
})
|
// Vendor
import Component from '@ember/component';
import {argument} from '@ember-decorators/argument';
import {type} from '@ember-decorators/argument/type';
export default class ChallengeDetails extends Component {
@argument
@type('object')
challenge;
@argument
@type('object')
league;
oldChallengeSlu... |
'use strict';
// "Root" classes (starting points)
exports.BaseClient = require('./client/BaseClient');
exports.Client = require('./client/Client');
exports.Shard = require('./sharding/Shard');
exports.ShardClientUtil = require('./sharding/ShardClientUtil');
exports.ShardingManager = require('./sharding/ShardingManager... |
import React from 'react';
import * as S from './styled';
import { socialLinks } from '@config';
import { useIsMounted } from '@hooks';
import { Icon } from '@icons';
import { Tooltip, Transition } from '@components';
const Social = () => {
const isMounted = useIsMounted();
return (
<S.SocialList>
<ul>
... |
import { axios } from '@/utils/request'
/**
* 获取table nature enum 信息 func
* @param parameter
* @returns {*}
*/
export function tableNatureEnumInfo(parameter) {
return axios({
url: '/etlTask/getTableNatureEnumInfo',
method: 'get',
params: parameter
})
}
/**
* 查询分组列表 func
* @param parameter
* @re... |
/**
* Copyright 2018 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... |
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
{
"file": "plugins/cordova-plugin-whitelist/whitelist.js",
"id": "cordova-plugin-whitelist.whitelist",
"runs": true
},
{
"file": "plugins/cordova-plugin-camera/www/CameraConstants.js... |
window.__NUXT__=(function(a,b,c,d){return {staticAssetsBase:"\u002Fstatic\u002F1597376630",layout:"default",error:b,state:{notification:{show:a,title:c,message:c},isShowSidebar:a,isSupportWebShare:a,headerTitle:"e-AlQur'an",page:"home",lastReadVerse:b,settingActiveTheme:{name:"dark",bgColor:"#071e3d",fgColor:"#fff"},se... |
function initMap(e,o,t,l){void 0===e&&(e="map"),void 0===o&&(o=40.728157),void 0===t&&(t=-74.077644),void 0===l&&(l="../images/map-marker.png");let r={lat:o,lng:t},a=document.getElementById(e);if("undefined"==typeof google)return;let n=new google.maps.Map(a,{zoom:13,scrollwheel:!1,center:r,mapTypeControl:!1,fullscreenC... |
var searchData=
[
['active_5fml_5fmodel_191',['Active_ML_Model',['../classapp_1_1_m_l___class_1_1_active___m_l___model.html',1,'app::ML_Class']]],
['al_5fencoder_192',['AL_Encoder',['../classapp_1_1_m_l___class_1_1_a_l___encoder.html',1,'app::ML_Class']]]
];
|
'use strict';
const Record = require('../schemas/Record');
const runUpdate = require('../utils/runUpdate');
const add = async data => {
return Record.create(data);
};
const update = async (id, data) => {
return runUpdate(Record, id, data);
};
const anonymize = async (clientId, ignoreId) => {
return Record.upd... |
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft Corporation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//----------------------------... |
module.exports = [
{
url: 'http://localhost:3000/#/checkboxes',
label: 'Checkbox responsive',
responsive: true,
selectors: [
'document',
'[data-backstop="checkbox-responsive"]',
],
},
// TODO: need method for focus/hovering one element but snapshotting it's parent
{
url: 'htt... |
/*
* Copyright 2012-2017 Frank Breedijk
*
* 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... |
'use strict';
// Test specific configuration
// ===========================
module.exports = {
// MongoDB connection options
mongo: {
uri: 'mongodb://localhost/paizaqa-test'
},
sequelize: {
uri: 'sqlite://',
options: {
logging: false,
storage: 'test.sqlite',
define: {
time... |
const AWS = require('aws-sdk');
const dynamoDb = new AWS.DynamoDB.DocumentClient();
module.exports.list = (event, context, callback) => {
let env = event.pathParameters.env;
let component = event.pathParameters.component;
const params = {
TableName: process.env.DYNAMODB_TABLE,
FilterExpression: 'env = :... |
'use strict';
(function() {
const loginUser = require('./login_auth');
const UserChats = require('./chat_app');
const bodyParser = require('body-parser');
const User = require('../db/schema.js');
const TockenServ = require('../service/tocken_service');
function routes(app) {
app.use(bo... |
const path = require('path')
module.exports ={
entry: path.resolve(__dirname, 'index.js'),
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
},
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader']
}
]
},
devServer: {
c... |
define(["exports","./when-229515d6"],(function(t,e){"use strict";function n(t){let e;this.name="DeveloperError",this.message=t;try{throw new Error}catch(t){e=t.stack}this.stack=e}e.defined(Object.create)&&(n.prototype=Object.create(Error.prototype),n.prototype.constructor=n),n.prototype.toString=function(){let t=`${thi... |
/**
* Created by shakamann on 1/11/2015.
*/
/*!
* jQuery blockUI plugin
* Version 2.70.0-2014.11.23
* Requires jQuery v1.7 or later
*
* Examples at: http://malsup.com/jquery/block/
* Copyright (c) 2007-2013 M. Alsup
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-licen... |
import React, { useContext } from 'react';
import { NavigationContext } from './Navigation';
const DEFAULT_OPTIONS = {
privacy: true,
optional: true,
}
export default (notes, options = DEFAULT_OPTIONS) => {
const { setPage } = useContext(NavigationContext);
const goPrivacy = () => setPage('privacy');
return... |
import {React, useState, useEffect} from 'react'
import { BrowserRouter as Router, Link, Route, Switch } from 'react-router-dom'
import NaveBar from '../components/NaveBar'
import SearchPage from './SearchPage'
import FavoritesPage from './FavoritesPage'
import FeauturedPage from './FeauturedPage'
import "../styles/F... |
import React, { Component } from "react";
import axios from "axios";
import PortfolioItem from "./portfolio-item";
export default class PortfolioContainer extends Component {
constructor() {
super();
this.state = {
pageTitle: "Welcome to my portfolio",
isLoading: false,
data: []
};
... |
/**
* Sinon.JS 1.5.0, 2012/10/19
*
* @author Christian Johansen (christian@cjohansen.no)
* @author Contributors: https://github.com/cjohansen/Sinon.JS/blob/master/AUTHORS
*
* (The BSD License)
*
* Copyright (c) 2010-2012, Christian Johansen, christian@cjohansen.no
* All rights reserved.
*
* Redistribution an... |
// https://tonicdev.com/npm/msr
var MediaStreamRecorder = require('msr');
console.log('require-msr', MediaStreamRecorder);
console.log('\n\n-------\n\n');
var recorder = new MediaStreamRecorder({});
console.log('MediaStreamRecorder', recorder);
console.log('\n\n-------\n\n');
var multiStreamRecorder = new MediaSt... |
angular.module('ovh-api-services').service('OvhApiTelephonyOvhPabxDialplanExtensionConditionTimeV6', ($resource) => $resource('/telephony/:billingAccount/ovhPabx/:serviceName/dialplan/:dialplanId/extension/:extensionId/conditionTime/:conditionId', {
billingAccount: '@billingAccount',
serviceName: '@serviceName',
... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{254:function(t,e,n){var content=n(330);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(22).default)("66a9c1c4",content,!0,{sourceMap:!1})},257:function(t,e,n){var... |
const User = require('./User');
const Notes = require('./Note');
module.exports = { User, Notes }; |
import create from "zustand";
import produce from "immer";
// 这里使用Map存储数据,Map可以保证元素的插入顺序不变,并且拥有log2n的效率
// 设计上,该hook提供了一些简便的modifier,可以根据需要模仿定制
// Map的增删机制是顺序的,添加永远在末尾,修改一定要用set,如果没有则添加,有则修改
// 修改某一元素的某一项内容,推荐用get,然后赋值,这样保证异步操作,同时该元素的其他项目保持不变,写法也很简单
// zustand在运行时会开辟一个独立的状态机,全局的hook
// create函数接收一个自动生成的set函数,set可以实现从n... |
// Generated by BUCKLESCRIPT VERSION 2.2.0, PLEASE EDIT WITH CARE
'use strict';
var Curry = require("bs-platform/lib/js/curry.js");
var Js_boolean = require("bs-platform/lib/js/js_boolean.js");
var ReasonReact = require("reason-react/lib/js/src/ReasonReact.js");
var Js_primitive = require("bs-platform/lib/js/js_primit... |
import { Model } from 'backbone';
import { result, forEach } from 'underscore';
import Frames from 'canvas/model/Frames';
export default class Page extends Model {
defaults() {
return {
frames: [],
_undo: true
};
}
initialize(props, opts = {}) {
const { config = {} } = opts;
const { ... |
import {Program} from "../../../../../webgl/Program.js";
import {RENDER_PASSES} from "../../../RENDER_PASSES.js";
import {createRTCViewMat, getPlaneRTCPos} from "../../../../../math/rtcCoords.js";
import {math} from "../../../../../math/math.js";
import {WEBGL_INFO} from "../../../../../webglInfo.js";
const tempVec3a ... |
$(document).ready(function() {
let id = $("#report-subscriber-history-table").attr('data-id');
$('#report-subscriber-history-table').DataTable( {
"bProcessing": true,
"sAjaxSource": '/report_subscriber/responseHistory/'+id,
"columnDefs": [
{
"targets": [ 2 ],
... |
var fs = require('fs'),
path = require('path'),
uaparser = require('ua-parser'),
async = require('async'),
http = require('http'),
url = require('url'),
_ = require('underscore'),
abind = require('dandy/errors').abind,
ibind = require('dandy/errors').ibind,
transformjs = require('tr... |
import { get, post } from './http'
let apiList = {
// 登录
apiLogin: p => post('index.php?c=Bizkey|BizkeyApi&m=login', p)
}
export default apiList |
import queryString from "query-string";
export const CORE_STATIC_CONTENT = "/exports/core-static-content";
// Network URL's
export const MINE = "/mines";
export const MINE_LIST = "/mines";
export const SUBSCRIPTION = (mineGuid) => `/mines/${mineGuid}/subscribe`;
export const MINE_SUBSCRIPTION = "/mines/subscribe";
ex... |
/** @jsx jsx */
import { jsx, Themed } from 'theme-ui';
import { Box, Flex } from '@theme-ui/components';
import kebabCase from 'lodash.kebabcase';
import { Link } from 'gatsby';
import Layout from './layout';
import useMinimalBlogConfig from '../hooks/use-minimal-blog-config';
import SEO from './seo';
import replaceSl... |
/* eslint-disable no-use-before-define */
const proto = exports;
const { isObject } = require('../utils/isObject');
const { isArray } = require('../utils/isArray');
proto.getBucketVersions = getBucketVersions;
proto.listObjectVersions = getBucketVersions;
async function getBucketVersions(query = {}, options = {}) {
... |
croc.Class.define('test.cmp.Test2', {
extend: croc.cmp.Widget,
members: {
click: function() {
console.log('clicked');
},
/**
* Инициализация модели виджета
* @protected
*/
_initModel: function() {
test.cmp.Test2.sup... |
/* globals Stats, dat*/
// import AMI.TrackballControl from 'base/controls/controls.trackball';
// import AMI.StackHelper from 'base/helpers/helpers.stack';
// import AMI.VolumeLoader from 'base/loaders/loaders.volume';
// standard global letiables
let controls;
let renderer;
let stats;
let scene;
let camera;
let sta... |
//////////////////////////////////////////////////////////////////////////////////////////
// ___ _ ___ //
// | | \/ | ) | | This software may be modified and distri- //
// O- |- | | - | | |- -O bute... |
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
//Allow using this built library as an AMD module
//in another project. That other project will only
//see this AMD call, not the internal modules in
//the closure below.
define('escher', factory);
... |
var baseIteratee = require('./_baseIteratee'),
basePickBy = require('./_basePickBy');
/**
* The opposite of `_.pickBy`; this method creates an object composed of
* the own and inherited enumerable properties of `object` that `predicate`
* doesn't return truthy for. The predicate is invoked with two arguments:
... |
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.ChimeePlayer=t()}(this,function(){"use strict";var commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapE... |
const nodemailer = require('nodemailer')
const pw = process.env.EMAIL_PW || require('../../secrets').pw
const ccEmail = process.env.CC_EMAIL || require('../../secrets').ccEmail
const email = 'yoshis.yodelers@gmail.com'
const sendEmail = (userEmail, order) => {
const transporter = nodemailer.createTransport({
s... |
import HeaderSearch from './HeaderSearch/HeaderSearch';
import Header from './Header/Header';
import HeaderBoard from './HeaderBoard/HeaderBoardContainer';
import HeaderUser from './HeaderUser/HeaderUserContainer';
import BoardsMenu from './BoardsMenu/BoardsMenuContainer';
import PopOver from './PopOver/PopOverContain... |
function optionChanged() {
let drop_year = d3.select('#selDataset_year').node().value;
let drop_gender = d3.select('#selDataset_gender').node().value;
// createBarbyGender(drop_year,drop_gender);
createDonut();
createBarbySexualExploit();
console.log(drop_year)
}
createBarbySexualExploit2();
createBarby... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const lib_1 = require("../../lib");
const util_1 = require("../util");
test('shows new AssumeRolePolicyDocument', () => {
// WHEN
const diff = lib_1.diffTemplate({}, util_1.template({
MyRole: util_1.role({
AssumeRol... |
// import important parts of sequelize library
const { Model, DataTypes } = require("sequelize");
// import our database connection from config.js
const sequelize = require("../config/connection");
const Category = require("./Category");
// Initialize Product model (table) by extending off Sequelize's Model class
clas... |
/**
* map manual dialog
*/
define([
'jquery',
'app/init',
'app/util',
'app/render',
'bootbox',
], function($, Init, Util, Render, bootbox) {
'use strict';
let config = {
// global dialog
dialogNavigationClass: 'pf-dialog-navigation-list', // class fo... |
if(typeof window=="undefined"){dojo.raise("attempt to use adobe svg hostenv when no window object");}
with(dojo.render){name=navigator.appName;ver=parseFloat(navigator.appVersion,10);switch(navigator.platform){case"MacOS":os.osx=true;break;case"Linux":os.linux=true;break;case"Windows":os.win=true;break;default:os.linu... |
//var wikipediaLink = "https://en.wikipedia.org/wiki/Beyonc%C3%A9";
var wikipediaLink = "https://en.wikipedia.org/wiki/Justin_Timberlake";
var contentArray = []
var myTableArray = [];
function makeArrayFromTable(){
myTableArray = [];
$("table tr").each(function() {
var arrayOfThisRow = [];
var tableData =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.