text stringlengths 2 1.04M |
|---|
import { getTrackDetail, scrobble, getMP3 } from '@/api/track';
import shuffle from 'lodash/shuffle';
import { Howler, Howl } from 'howler';
import { cacheTrackSource, getTrackSource } from '@/utils/db';
import { getAlbum } from '@/api/album';
import { getPlaylistDetail } from '@/api/playlist';
import { getArtist } fro... |
"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... |
import baseURL from '$lib/utils/baseURL';
/**
* params {obj} object
* {
* url,
* method,
* enctype,
* input: {
* key: value,
* ...
* }
* }
*/
export function downloadExecl (params) {
let url = baseURL() + params.url;
let method = params.method || 'post';
let enctype = 'application/... |
async function SetFlask(element, endpoint, method='GET', body=null, headers={}) {
const requestOptions = {
method: method,
headers: headers
}
if (body !== null) {
requestOptions['body'] = JSON.stringify(body);
}
let result = null;
const request = await fetch(endpoint, req... |
'use strict';
const event = require('../event.js');
event.on('pickup', (payload)=>{
console.log(`DRIVER picked up ${payload.orderId}`)
setTimeout(()=>{
event.emit('in transit',payload);
},1000)
setTimeout(()=>{
event.emit('delivered',payload)
console.log(`DRIVER delivered ${pa... |
import React from "react";
import { Container } from "./Home.styled";
import Header from "../components/header/Header";
import Info from "./info/Info";
export default function Home() {
return (
<Container>
<Header />
<Info />
</Container>
);
} |
RPCClient = require('./lib');
Bluebird = require('bluebird')
class PromisifyModule {
constructor(options) {
const client = new RPCClient(options);
for (let method in client.apiCalls) {
let promise = Bluebird.promisify(client[method]);
client[method] = promise;
c... |
import React from 'react'
import Icon from 'react-icon-base'
const MdPermCameraMic = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m23.4 21.6v-6.6q0-1.3-1.1-2.3t-2.3-1.1-2.3 1.1-1.1 2.3v6.6q0 1.4 1.1 2.4t2.3 1 2.3-1 1.1-2.4z m10-13.2q1.3 0 2.3 0.9t0.9 2.3v20q0 1.4-0.9 2.4t-2.3 1h-11.8v-3.5q3... |
'use strict';
import React from 'react';
import {
Text,
View,
TouchableOpacity,
Animated,
StyleSheet,
Dimensions,
TouchableWithoutFeedback,
Image,
WebView,
Platform,
Button,
} from 'react-native';
const {height, width} = Dimensions.get('window');
var backImg = require('./rg_... |
'use strict';
var _ = require('lodash');
var BufferUtil = require('./util/buffer');
var JSUtil = require('./util/js');
var networks = [];
var networkMaps = {};
/**
* A network is merely a map containing values that correspond to version
* numbers for each bitcoin network. Currently only supporting "livenet"
* (a.k... |
const httpStatus = require('http-status');
const pick = require('../utils/pick');
const catchAsync = require('../utils/catchAsync');
const { sinhvienService } = require('../services');
const createSinhvien = catchAsync(async (req, res) => {
const sinhvien = await sinhvienService.createSinhvien(req.body);
res.statu... |
import React from "react";
import "./Header.css";
export function Header() {
return <div className="about-area">
<div className="container">
<div className="row">
<div className="col-lg-4">
<div className="about-img">
<img src="./pics/profile720.jpg" alt="Profile Picture"/... |
const BaseParser = {
init(ctx) {
},
toFormValue(value, ctx) {
return value
},
toValue(formValue, ctx) {
return formValue;
},
mounted(ctx) {
},
render(children, ctx) {
return ctx.$render.defaultRender(ctx, children);
},
preview(children, ctx) {
... |
var redis = require('ioredis');
var namespace = "resque_test";
exports.specHelper = {
BusPrototype: require(__dirname + "/../index.js").bus,
RiderPrototype: require(__dirname + "/../index.js").rider,
namespace: namespace,
timeout: 500,
connectionDetails: {
package: 'ioredis',
host: "127.0.0.1",... |
import CanvasController from "./canvas-controller";
import { palette } from "../color";
import { renderWave, normaliseWave, getWaveFunction, getWave } from "../wave-things";
import { slurp, clamp, posMod, divideInterval } from "../util";
import { renderLabel } from "./render-label";
import { baseFrequency } from "../sy... |
// 不允许存在自环和平行边的图
class Graph {
constructor(V, edges = []) {
this.V = V;
this.E = 0;
this._adj = [];
for (let i = 0; i < V; i++) {
this._adj[i] = [];
}
for (const [startV, endV] of edges) {
this.addEdge(startV, endV);
}
}
adj(v) {
return this._adj[v];
}
addEdge(sta... |
/**
* Hydrogen Atom API
* The Hydrogen Atom API
*
* OpenAPI spec version: 1.7.0
* Contact: info@hydrogenplatform.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
*
* Swagger Codegen version: 2.2.3
*
* Do not edit the class... |
const path = require('path');
const SRC_DIR = path.join(__dirname, '/client/src');
const DIST_DIR = path.join(__dirname, '/client/dist');
module.exports = {
entry: `${SRC_DIR}/index.jsx`,
output: {
filename: 'bundle.js',
path: DIST_DIR,
},
module: {
rules: [
{
test: /\.(jsx|js)$/,
... |
import child_process from "child_process";
import tempy from "tempy";
import util from "util";
const TIMEOUT = 1000 * 60;
const exec = util.promisify(child_process.exec);
test(
"generate production k8s manifests",
async () => {
const dir = tempy.directory();
console.log("dir", dir);
const env = {
... |
import { GET_ALL_USERS } from "./types";
import { GET_ALL_USERS_ARRAY } from "./types";
import _ from "lodash";
export default function(state = [], action) {
switch (action.type) {
case GET_ALL_USERS:
const result = _.mapKeys(action.payload.data, "_id");
return result;
case GET_ALL_USERS_ARRAY:... |
const GoogleFontsPlugin = require('@beyonk/google-fonts-webpack-plugin');
module.exports = {
chainWebpack: config => config.resolve.symlinks(false),
// transpileDependencies: [
// // 'node_modules/quill'
// /\/node_modules\/quill\//
// ]
pluginOptions: {
webpackBundleAnalyzer: {
openAnalyzer: false,
}... |
var url = require('url')
, http = require('http')
, querystring = require('querystring')
exports.authURI = function(scope,clientId,redirectURI){
return "https://accounts.google.com/o/oauth2/auth?redirect_uri="+encodeURIComponent(redirectURI)+"&response_type=code&client_id="+encodeURIComponent(clientId)+"&approval_pro... |
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import Tab from './Tab'
class Tabs extends Component {
static propTypes = {
children: PropTypes.instanceOf(Array).isRequired
}
constructor(props) {
super(props)
this.state = {
activeTab: this.props.children[0].props.la... |
var parse = require('url').parse
module.exports = function (string) {
// user/repo#version
var m = /^([\w-.]+)\/([\w-.]+)((?:#|@).+)?$/.exec(string)
if (m) return format(m)
string = string.replace('//www.', '//')
// normalize git@ and https:git@ urls
string = string.replace(/^git@/, 'https://')
string =... |
const knex = require('../../db');
const getAll = () => knex
.select([
knex.raw('features.id as "featureId"'),
knex.raw('features.name as "featureName"'),
knex.raw('plans_features.quantity as "featureQuantity"'),
knex.raw('plans.id as "planId"'),
knex.raw('plans.name as "planName"'),
])
.from(... |
import { createWithHandlers } from '../common/reducer'
import { TYPES } from './actions'
const initialState = {
transs: [],
isCreateSuccess: false
}
function createReset(state, action) {
return {
...state,
isCreateSuccess: false
}
}
function createSuccess(state, action) {
return {
...state,
... |
(function () {
var defs = {}; // id -> {dependencies, definition, instance (possibly undefined)}
// Used when there is no 'main' module.
// The name is probably (hopefully) unique so minification removes for releases.
var register_3795 = function (id) {
var module = dem(id);
var fragments = id.split('.');
var t... |
import React from 'react';
import BookSearch from '../BookSearch';
import renderer from 'react-test-renderer';
import { BrowserRouter } from 'react-router-dom';
test('will render BookSearch', () => {
const onUpdateBook = jest.fn();
const books = [];
const component = renderer.create(
<BrowserRoute... |
/* ncapratings.js */
var app = {
API_BASE_URL: 'https://one.nhtsa.gov/webapi/api/SafetyRatings',
API_BASE_PARAMS: 'format=json',
API_JSONP_CALLBACK: 'callback',
selectedManufacturer: '',
initialize: function() {
app.displayModelYears();
},
displayModelYears: function() {
$... |
var profile = (function() {
var _state = 'init';
var initialize = function() {
console.log('profile initializing state ' + _state);
hide_profile_button();
switch (_state) {
case 'init':
$('#fb-login')
.show().text('Sign In')
.off('click').on('click', function() {
... |
import React, { Component } from "react";
import { Typography } from "@material-ui/core";
import { Tabs, Tab } from "react-bootstrap";
import ResourceCard from "./ResourceCard.js";
import "./ResourceTabs.css";
class ResourceTabs extends Component {
constructor(props) {
super(props);
}
render() {
if (thi... |
/**
* Module dependencies.
*/
const express = require('express');
const compression = require('compression');
const session = require('express-session');
const bodyParser = require('body-parser');
const logger = require('morgan');
const chalk = require('chalk');
const errorHandler = require('errorhandler');
const lus... |
var searchData=
[
['theta',['Theta',['../struct_solar_liner_1_1_complex_number_1_1_complex.html#a1cfc2066453f861b4a04ba69a2f1ad39',1,'SolarLiner::ComplexNumber::Complex']]],
['topoint',['ToPoint',['../struct_solar_liner_1_1_complex_number_1_1_complex.html#aba9e4abced63f3f804858034dff8fe23',1,'SolarLiner::ComplexNum... |
'use strict';
/*
* Database loader
*/
'use-strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _utils = require('../utils');
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { ... |
import RpcClient from '../rpc/client.js'
import TestData from '../serializers/test-data.js'
import { testDataSerializer } from '../serializers/index.js'
var worker = new window.Worker('dist/server.js')
var rpcClient = window.rpcClient = new RpcClient({ worker })
function end (result) {
console.profileEnd()
conso... |
/*! ------------------------------------------------------------------------
// jTypes
// ------------------------------------------------------------------------
//
// Copyright 2014 Gaulinsoft Corporation
//
// Licensed under the Apache License, Version 2.0 ... |
/**
* Shopware 5
* Copyright (c) shopware AG
*
* According to our dual licensing model, this program can be used either
* under the terms of the GNU Affero General Public License, version 3,
* or under a proprietary license.
*
* The texts of the GNU Affero General Public License with an additional
* permission... |
'use strict';
// ---------------------------------------------------------------------------
const Exchange = require ('./base/Exchange');
const { AddressPending, AuthenticationError, ExchangeError, NotSupported, PermissionDenied, ArgumentsRequired } = require ('./base/errors');
// --------------------------------... |
import { FuzzyTerm } from './FuzzyTerm.js';
/**
* Base class for representing more complex fuzzy terms based on the
* composite design pattern.
*
* @author {@link https://github.com/Mugen87|Mugen87}
* @augments FuzzyTerm
*/
class FuzzyCompositeTerm extends FuzzyTerm {
/**
* Constructs a new fuzzy composite term wit... |
"use strict";
var _AppError = _interopRequireDefault(require("../../../shared/errors/AppError"));
var _FakeUsersRepository = _interopRequireDefault(require("../repositories/fakes/FakeUsersRepository"));
var _ShowProfileService = _interopRequireDefault(require("./ShowProfileService"));
function _interopRequireDefaul... |
import GrowHub from './GrowHub';
import NotificationsComponent from './NotificationsComponent';
import TestDevice from './TestDevice.jsx';
import SmartLight from './SmartLight.jsx';
import ImageComponent from './ImageComponent';
import TentacleExample from './TentacleExample';
import CameraComponent from './CameraCompo... |
// @flow
import * as React from 'react'
// TODO(mc, 2018-09-13): these aren't cards; rename
import { InformationCard } from './InformationCard'
import { ProtocolPipettesCard } from './ProtocolPipettesCard'
import { ProtocolModulesCard } from './ProtocolModulesCard'
import { ProtocolLabwareCard } from './ProtocolLabwar... |
import { Point } from '@mccarthyfinch/slate'
export const input = {
point: {
path: [0, 0],
offset: 0,
},
another: {
path: [0, 1],
offset: 0,
},
}
export const test = ({ point, another }) => {
return Point.compare(point, another)
}
export const output = -1 |
// JavaScript Document
mw.require('forms.js');
// mw.require('tools.js');
mw.backup_import = {
upload: function(src) {
data = {}
data.src=src;
$.post(mw.settings.api_url+'Microweber/Utils/BackupV2/upload', data ,
function(msg) {
mw.reload_module('admin/backup_v2/manage');
mw.notification.msg(msg, 5... |
var qiniu = require('qiniu');
var config = require('../configs/config');
var CDN = 'http://h1.ioliu.cn/bing/';
// access_key and secret_key
qiniu.conf.ACCESS_KEY = process.env.qiniu_access_key;
qiniu.conf.SECRET_KEY = process.env.qiniu_secret_key;
var encryptKey = process.env.qiniu_encrypt_key
// 上传的空间
var bucket = 'i... |
/*
* jQuery UI Sortable 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Sortables
*
* Depends:
* jquery.ui.core.js
* jquery.ui.mouse.js
* jquery.ui.widget.js
*/
(function( $... |
/**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
/* eslint-disable no-console */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = tslib_1.__importStar(require("react"));
var StyledIconBase_1 = require("../../StyledIconBase");
exports.RemoveCircle = React.forwardRef(function (props, ref) {
var attrs = {
"fill": "curr... |
import React,{useState} from "react";
import {Bar} from 'react-chartjs-2';
import {Form} from 'react-bootstrap'
export default function GrowthInput(props) {
const [value, setValue] = useState("");
const [rate, setRate] = useState("");
const [data, setData] = useState("");
function submitData(){
const grow... |
ace.define("ace/theme/clouds_midnight",[], function(require, exports, module) {
exports.isDark = true;
exports.cssClass = "ace-clouds-midnight";
exports.cssText = ".ace-clouds-midnight .ace_gutter {\
background: #232323;\
color: #929292\
}\
.ace-clouds-midnight .ace_print-margin {\
width: 1px;\
background: #232323\
}\... |
import { Meteor } from 'meteor/meteor';
import Web3 from 'web3';
import abi from 'human-standard-token-abi';
import { BigNumber } from 'bignumber.js';
import { Session } from 'meteor/session';
import { token } from '/lib/token';
const Fortmatic = require('fortmatic');
const numeral = require('numeral');
/**
* @summa... |
var validator = require('./')
var validate = validator({
type: 'object',
properties: {
hello: {
required: true,
type: 'string'
}
}
})
console.log('should be valid', validate({hello: 'world'}))
console.log('should not be valid', validate({}))
// get the last error message by checking validat... |
namespace("Keyboard")
// =====================================================================================================================
// Key codes copied from closure-library
// https://code.google.com/p/closure-library/source/browse/closure/goog/events/keycodes.js
// ----------------------------------------... |
var x, E, M;
!function(E) {
E[E.A = 0] = "A";
}(E || (E = {})), E.A, (M || (M = {})).foo = 1, M = x; |
import React from 'react'
import {BreadCrumbs, PageHeading} from 'template/layout'
export default class Example extends React.Component {
render() {
return(
<div className="page-content">
<BreadCrumbs childs={[
{name: 'Dashboard', url: '/'},
{name: 'Example page... |
/**
* Allows for interception of the request and response of an API call.
*/
export default class ApiCallHandler{
constructor(){
if (this.constructor === ApiCallHandler) {
throw new Error('Cannot instantiate ApiCallHandler directly.');
}
}
async invoke(request, next){
... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.4.3_A2_T1;
* @section: 11.4.3;
* @assertion: Operator "typeof" uses GetValue;
* @description: Either Type(x) is not Reference or GetBase(x) is not null;
*/
//CHECK#1
if ... |
// Copyright 2009 the Sputnik authors. All rights reserved.
/**
* The "length" property of the "toLocaleDateString" is 0
*
* @path ch15/15.9/15.9.5/15.9.5.6/S15.9.5.6_A2_T1.js
* @description The "length" property of the "toLocaleDateString" is 0
*/
if(Date.prototype.toLocaleDateString.hasOwnProperty("length") !=... |
import '../styles/header.styl';
import React from 'react';
import Menu from './menu'
class Header extends React.Component {
constructor() {
super();
this.state = {};
this.state.showMenu = false;
this.state.exiting = false;
this.state.noAnimation = false;
}
showMenu(e) {
e.preventDefault();... |
// Setup empty JS object to act as endpoint for all routes
projectData = {
tempData:[]
};
// Require Express to run server and routes
const express = require('express');
// Start up an instance of app
const app = express();
/* Dependencies */
const bodyParser = require('body-parser')
/* Middleware*/
//Here we a... |
define([
'underscore',
'backbone',
'models/project/ResourceModel'
], function(_, Backbone, resourceModel){
var ResourceCollection = Backbone.Collection.extend({
model : resourceModel,
url : function() {
return "project/" + this.projectId+"/resources/"+this.path;
},
initialize : function(data) {
t... |
import babel from 'rollup-plugin-babel'
import VuePlugin from 'rollup-plugin-vue'
export default {
input: 'src/priority-plus-navigation.vue',
output: {
name: 'PriorityPlusNavigation',
file: 'priority-plus-navigation.js',
dir: 'dist',
format: 'es'
},
plugins: [
VuePlugin(),
babel({
... |
function base64decode(str) {
var c1, c2, c3, c4;
var i, len, out;
var base64DecodeChars = new Array(
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1,... |
import { ref } from 'vue'
export default function useToggle() {
const value = ref(false)
return [value, () => value.value = !value.value]
} |
'use strict';
const assert = require('assert');
const mm = require('..');
const { isMatch, makeRe } = mm;
describe('braces', () => {
it('should handle extglobs in braces', () => {
let fixtures = ['a', 'b', 'c', 'd', 'ab', 'ac', 'ad', 'bc', 'cb', 'bc,d', 'c,db', 'c,d', 'd)', '(b|c', '*(b|c', 'b|c', 'b|cc', 'cb|c... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import {addSingletonGetter} from 'chrome://resources/js/cr.m.js';
/**
* @fileoverview
* Browser Proxy for Parental Controls functions.
*/
/** @inte... |
/*!
* YieldFarming
* Boilerplate for a Static website using EJS and SASS
* https://yieldfarming.info
* @author Jongseung Lim -- https://yieldfarming.info
* Copyright 2021. MIT Licensed.
*/
/*!
* YieldFarming
* Boilerplate for a Static website using EJS and SASS
* https://yieldfarming.info
* @author Jongseung Lim -- ht... |
const Sequelize = require("sequelize");
const db = require("../config/DBConfig");
const ProductRatings = db.define("ProductRatings", {
year: {
type: Sequelize.INTEGER,
},
jan: {
type: Sequelize.FLOAT,
defaultValue: 0,
},
feb: {
type: Sequelize.FLOAT,
defaultValue: 0,
... |
const defaultState = {
currentModalWindow: null,
pageWidth: 600,
pageHeight: 800,
modalWidth: 600,
modalHeight: 800,
isLoading: true,
initScrollOffset: null, // null means no offset is saved.
headerHeight: 80,
modalPadding: 16,
largeHeaderHeight: 80, // Should match the css value.
medHeaderHeigh... |
import { Observable } from '../../Observable';
import { combineLatest as combineLatestStatic } from '../../observable/combineLatest';
Observable.combineLatest = combineLatestStatic; |
import { fromJS } from 'immutable'
import { OPEN_MODAL, CLOSE_MODAL } from '../actions-types'
const initialState = fromJS({
visibility: false,
media: null
})
function modal(state = initialState, action) {
switch(action.type) {
case OPEN_MODAL:
return state.merge(
{
visibility: true,
... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: |
The Date.prototype.setUTCMilliseconds property "length" has { ReadOnly, !
DontDelete, DontEnum } attributes
esid: sec-date.prototype.setutcmilliseconds
es5id: 15.9.5... |
import { Router } from 'express';
import { ussd } from '../controllers/v1/ussd.controller';
const ussdRoutes = Router();
ussdRoutes
.post(
'/send',
ussd
).get(
'/send',
ussd
);
export default ussdRoutes; |
export default {
ZERO: 'zero',
ONE: 'one',
TWO: 'two',
FEW: 'few',
MANY: 'many',
OTHER: 'other',
}; |
var namespaceEnergyPlus_1_1DataTimings =
[
[ "timings", "structEnergyPlus_1_1DataTimings_1_1timings.html", "structEnergyPlus_1_1DataTimings_1_1timings" ]
]; |
/*! jQuery v1.7.1 jquery.com | jquery.org/license */
// ---> http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js |
var express = require("express");
var router = new express.Router();
var deviceMakeController = require("../controllers/device_make");
router.get("/", deviceMakeController.deviceMakeList);
router.get("/:_id", deviceMakeController.deviceMakeDetail);
router.post("/", deviceMakeController.deviceMakeCreate);
router.delete(... |
const path = require('path');
module.exports = {
root: true, // So parent files don't get applied
globals: {
preval: false, // Used in the documentation
},
env: {
es6: true,
browser: true,
node: true,
},
extends: ['plugin:import/recommended', 'airbnb', 'prettier', 'prettier/react'],
parse... |
deepmacDetailCallback("388ab7000000/24",[{"d":"2012-04-14","t":"add","a":"3F Daiwa Shibaura Bldg\n1-12-3 Shibaura Minato-ku\nTokyo 105-0023\n","c":"JAPAN","o":"Panasonic Telecom Co.,Ltd"},{"d":"2012-11-29","t":"change","a":"3F Daiwa Shibaura Bldg\n1-12-3 Shibaura Minato-ku\nTokyo 105-0023\n","c":"JAPAN","o":"ITC Netw... |
import React, { Component } from 'react';
import { Nav, Navbar, NavDropdown} from "react-bootstrap";
class DefaultNav extends Component{
selectHandler = (e) => {
alert(e)
}
render() {
return(
<div>
<Navbar bg="dark" variant="dark" expand="lg">
... |
/**
* Created by Jacky.Gao on 2017-02-07.
*/
import {alert} from '../MsgBox.js';
import {setDirty} from '../Utils.js';
export default class BuildinDatasourceSelectDialog{
constructor(datasources){
this.datasources=datasources;
this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true... |
import path from 'path';
import webpack from 'webpack';
import AssetsPlugin from 'assets-webpack-plugin';
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
import pkg from '../package.json';
const isDebug = !process.argv.includes('--release');
const isVerbose = process.argv.includes('--verbose');
const i... |
import React, { useState, useEffect, useRef } from "react"
import GatbyImage from "gatsby-image"
import { navigate } from "gatsby"
import styles from "../../css/card.module.css"
import { FaAngleDoubleRight } from "react-icons/fa"
const Card = ({ item }) => {
const [width, setWidth] = useState(0)
const [height, se... |
var callbackArguments = [];
var argument1 = function() {
callbackArguments.push(arguments)
return -23.487985821101766; };
var argument2 = 7.819151230564371e+307;
var argument3 = function() {
callbackArguments.push(arguments)
return undefined; };
var argument4 = [-100];
var argument5 = true;
var argument6 = functi... |
import { Component } from 'react'
import Layout from '../../components/EditLayout.js'
import Card from '../../components/Card.js'
import gql from 'graphql-tag'
import { Query } from 'react-apollo'
import Link from 'next/link'
import withData from '../../lib/withData'
import '../../styles/app.scss'
const query = gql`
... |
// -*- mode: java; c-basic-offset: 2; -*-
// Copyright 2012 Massachusetts Institute of Technology. All rights reserved.
/**
* @license
* @fileoverview Visual blocks editor for MIT App Inventor
* Initialize the blocks editor workspace.
*
* @author mckinney@mit.edu (Andrew F. McKinney)
* @author sharon@google.com ... |
$('#myTab a').click(function (e) {
e.preventDefault()
$(this).tab('show')
})
/*from new york theme */
// Disable Google Maps scrolling
// See http://stackoverflow.com/a/25904582/1607849
// Disable scroll zooming and bind back the click event
var onMapMouseleaveHandler = function (eve... |
var breadcrumbs=[['-1',"",""],['2',"VitNX3 Documentation","topic_00000000000016E1.html"],['789',"VitNX3.Functions.Win32 Namespace","topic_00000000000000C6.html"],['790',"Constants Class","topic_00000000000001C1.html"],['1979',"ResultWin32 Class","topic_00000000000001F4.html"],['1982',"Fields","topic_00000000000001F4_va... |
var express = require('express');
var router = express.Router();
var path = require("path");
/* GET users listing. */
router.get('/', function(req, res, next) {
res.sendFile(path.join(__dirname+'/../drop/'));
});
module.exports = router; |
export default {
stateSelectData(state, value) {
state.stateSelectData = value
},
} |
exports.ids = ["react-syntax-highlighter_languages_highlight_pf"];
exports.modules = {
/***/ "./node_modules/react-syntax-highlighter/node_modules/highlight.js/lib/languages/pf.js":
/*!*********************************************************************************************!*\
!*** ./node_modules/react-syntax-hi... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ListObjectsCommand = void 0;
const models_0_1 = require("../models/models_0");
const Aws_restXml_1 = require("../protocols/Aws_restXml");
const middleware_bucket_endpoint_1 = require("@aws-sdk/middleware-bucket-endpoint");
const middle... |
THREE.ArMarkerMulti = function(options){
// call parent constructor
THREE.ArMarker.call( this );
// handle options
options = options || {}
this.options = {}
this.options.smoothingEnabled = options.smoothingEnabled !== undefined ? options.smoothingEnabled : true
this.options.smoothingFactor = options.smoothingFac... |
import React from "react";
import Developer from "./components/Developer.js";
function App() {
return (
<div>
<header>
<h1>Ma première app React</h1>
</header>
<h2>Développeurs :</h2>
<Developer />
</div>
);
}
export default App; |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/ |
import React, { memo, useState, useEffect, useRef } from 'react';
import { useDispatch, useSelector, shallowEqual } from 'react-redux';
import ProgressBar from '../../components/progress-bar';
import { message } from 'antd';
import {
changeSequenceAction,
changeCurrentLyricIndexAction,
changeCurrentIndex... |
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[16],{
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/components/dropdown/dropdown.vue?vue&type=script&lang=js&":
/*!***********************************************************************************... |
/**
* Supported keybindings:
*
* Motion:
* h, j, k, l
* gj, gk
* e, E, w, W, b, B, ge, gE
* f<character>, F<character>, t<character>, T<character>
* $, ^, 0, -, +, _
* gg, G
* %
* '<character>, `<character>
*
* Operator:
* d, y, c
* dd, yy, cc
* g~, g~g~
* >, <, >>, <<
*
*... |
import { __extends } from "tslib";
import ApplyResponsiveLabel from '../../../util/responsive/apply/label';
import { get } from '@antv/util';
var ApplyResponsiveLineLabel = /** @class */ (function (_super) {
__extends(ApplyResponsiveLineLabel, _super);
function ApplyResponsiveLineLabel() {
return _super... |
import React, {Component, PropTypes} from "react"
import {connect} from "react-redux"
import {Link} from "react-router"
import {fetchEnvironmentClusters, clearEnvironmentClusters} from "../../actionCreators/environment"
import Select from 'react-select'
import { Spinner } from "../common";
class EnvironmentClusters ex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.