text stringlengths 2 1.04M |
|---|
"use-strict";
let Instagram = require('./instagram');
Instagram = new Instagram();
Instagram.getCsrfToken().then((csrf) => {
Instagram.csrfToken = csrf;
}).then(() => {
return Instagram.auth('login', 'password').then(sessionId => {
Instagram.sessionId = sessionId
console.log('sessionId', ses... |
#!/usr/bin/env node
"use strict";
const Debug = require('debug');
const cli = require('commander');
const order = require('../../common/modules/order');
const {
NULL_ADDRESS
} = require('../../common/utils/utils');
const {
finalizeCli,
addGlobalOptions,
addWalletLoadOptions,
computeWalletLoadOptions,
c... |
import React, { Component } from 'react';
import { Col, Row, Container } from '../../components/Grid';
import { HomePageJumbo } from '../../components/HomePageJumbo';
import { StickyFooter } from '../../components/Footer/';
import Button from '@material-ui/core/Button';
import { Link } from "react-router-dom";
// Redu... |
import passport from 'passport';
import { googleStrategy } from './google';
import { vkStrategy } from './vk';
import { localStrategy, registerUser } from './local';
passport.use(googleStrategy);
passport.use(vkStrategy);
passport.use(localStrategy);
passport.serializeUser((user, done) => done(null, user));
passport.... |
const { isEmpty } = require('lodash');
const contracts = require('../utils/contracts');
const fsHandler = require('../utils/fsHandler');
const web3 = require('../utils/web3');
const http = require('http');
const fs = require('fs');
const execSync = require('child_process').execSync;
const FormData = require('form-data'... |
///////////////////////////////////////////////////////////////////////////
// Copyright © Esri. 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.ap... |
// ==========================================================================
// Fullscreen wrapper
// https://developer.mozilla.org/en-US/docs/Web/API/Fullscreen_API#prefixing
// https://webkit.org/blog/7929/designing-websites-for-iphone-x/
// ==========================================================================
... |
import React from "react";
import { Table, Row, Container, Button } from "react-bootstrap";
import { PersonX, Trash, CheckCircle } from "react-bootstrap-icons";
import AdminModal from "./AdminModal.js";
import "../styles/AdminTable.css";
export default function AdminCommentTable({
usersToComments,
commentIdToTempl... |
/**
* Insight search plugin
* @author PPOffice { @link https://github.com/ppoffice }
*/
(function ($, CONFIG) {
var $main = $('.ins-search');
var $input = $main.find('.ins-search-input');
var $wrapper = $main.find('.ins-section-wrapper');
var $container = $main.find('.ins-section-container');
$ma... |
/*
Name: UI Elements / Lightbox - Examples
Written by: Okler Themes - (http://dadebaran.ir)
Theme Version: 1.4.1
*/
(function( $ ) {
'use strict';
/*
Single Image
*/
$('.image-popup-vertical-fit').magnificPopup({
type: 'image',
closeOnContentClick: true,
mainClass: 'mfp-img-mobile',
image: {
ve... |
#!/bin/sh
':' //# https://sambal.org/?p=1014 ; exec `dirname $0`/../../node_modules/.bin/babel-node "$0" "$@"
console.log('Hello, world !')
//import { Random } from 'random-js'
import { Random } from '@offirmo/random'
console.log(Random)
const mersenne_twister_engine = Random.engines.mt19937()
//mersenne_twister_en... |
import {CalendarCreator} from "./CalendarCreator.js";
(function (){
let calendar = new CalendarCreator();
calendar.createCalendars(20, -12);
console.log(calendar);
})(); |
import { stringify } from 'qs';
import request from '@/utils/request';
import { getAuthority } from '@/utils/authority';
export async function getProducts(params) {
return request(`/api/product/list?${stringify(params)}`);
}
export async function saveProduct(params) {
return request(`/api/product/save?ref=${new Da... |
(function() {
var app = angular.module("krerum");
app.controller("AddItemController", ['$scope', '$http','growl', function($scope, $http, growl) {
console.log("AddItemController");
$scope.obj = {
categories: [],
category_id: '',
sub_categories: [],
... |
const mongoose = require('mongoose')
const { Schema } = mongoose
const AccountSchema = new Schema({
userId: {
type: Schema.Types.ObjectId,
ref: 'User'
},
accessToken: {
type: String,
required: true
},
itemId: {
type: String,
required: true
},
institutionId: {
type: String,
... |
module.exports = {
devtool:"eval-source-map",
entry: {
DateTimeSelector:'./js src/DateTimeSelector.js',
},
output: {
path: __dirname+"/js src",
filename: '[name].bundle.js',
//publicPath:"/....." 如果设置了,那么index.html里边引用的js就需要到这个文件夹下引用,如果没设,那... |
import database from '../../database/database';
import Endpoint from '../endpoint';
/**
* api list_address
*/
class _72dlrjquBORj0rhx extends Endpoint {
constructor() {
super('72dlrjquBORj0rhx');
}
/**
* returns records from table address. it returns the newest records by
* default
... |
tinyMCE.addI18n('en.table_dlg',{rules_border:"border",rules_box:"box",rules_vsides:"vsides",rules_rhs:"rhs",rules_lhs:"lhs",rules_hsides:"hsides",rules_below:"below",rules_above:"above",rules_void:"void",rules:"Rules",frame_all:"all",frame_cols:"cols",frame_rows:"rows",frame_groups:"groups",frame_none:"none",frame:"Fra... |
/**
* Copyright (C) 2006-2019 Talend Inc. - www.talend.com
*
* 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... |
"!="
//# sourceMappingURL=app-1da649affab3397c4e61.js.map |
/** @jsx jsx */
import { jsx } from '@emotion/core'
import '@testing-library/jest-dom/extend-expect'
import { render, cleanup } from '@testing-library/react'
import { css, cx } from '.'
afterEach(cleanup)
describe('#cx', () => {
it('throws with string value', () => {
expect(() => render(<div css={cx(`margin: 2p... |
import { createAppContainer, createStackNavigator } from 'react-navigation'
import Login from 'App/Containers/Login/Login'
import TabNavigator from 'App/Containers/TabNavigator/TabNavigator'
import Profile from 'App/Containers/Profile/Profile'
import ForgetPassword from 'App/Containers/ForgetPassword/ForgetPassword'
i... |
import formatPrice from '../../modules/format-price';
import './index.css';
function ValueCell({value, highlightProfit, children, noValue = '-'}) {
let className = 'center-content';
if(highlightProfit){
className = `${className} ${value > 0 ? 'craft-profit' : 'craft-loss'}`;
}
return <di... |
import React from 'react';
import { render } from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import { AppContainer } from 'react-hot-loader';
import { Provider } from 'react-redux';
import store from './store';
import App from './App';
import './app.global.css';
import './scss/index.global.scss';
r... |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'liststyle', 'de', {
bulletedTitle: 'Aufzählungslisteneigenschaften',
circle: 'Ring',
decimal: 'Dezimal (1, 2, 3, etc.)',
disc:... |
import { Paragraph } from './paragraph';
import { adjustSize } from '../../../util';
var defaultFontMetrics = {
lineHeight: 0,
descent: 0,
};
// Each text model stored in the core has a corresponding typeset.
// When a model is changed, the core calls 'update()'.
//
// Paragraphs are separated with the characte... |
/**
* @author: @AngularClass
*/
module.exports = function(config) {
var testWebpackConfig = require('./webpack.test.js')({env: 'test'});
var configuration = {
// base path that will be used to resolve all patterns (e.g. files, exclude)
basePath: '',
/*
* Frameworks to use
*
* availa... |
import React, { Component } from 'react';
class Resume extends Component {
render() {
if (this.props.data) {
var skillmessage = this.props.data.skillmessage;
var education = this.props.data.education.map(function (education) {
return <div key={education.school}><h3>{education.school}</h3>
... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var path = require("path");
var webpack = require("webpack");
const merge = require("webpack-merge").merge;
const paths = require("./p... |
/*!
* async
* https://github.com/caolan/async
*
* Copyright 2010-2014 Caolan McMahon
* Released under the MIT license
//# sourceMappingURL=minimap-plugin-generator-element-97e9c193.js.map |
/* Translators (2009 onwards):
* - Fulup
*/
/**
* @requires OpenLayers/Lang.js
*/
/**
* Namespace: OpenLayers.Lang["br"]
* Dictionary for Brezhoneg. Keys for entries are used in calls to
* <OpenLayers.Lang.translate>. Entry bodies are normal strings or
* strings formatted for use with <OpenLayers.S... |
import { Annotation, AnnotationView } from "./annotation";
import { OpenHead } from "./arrow_head";
import { ColumnDataSource } from "../sources/column_data_source";
import * as p from "../../core/properties";
import { atan2 } from "../../core/util/math";
export class ArrowView extends AnnotationView {
initialize()... |
Gordon.JSScriptWriter = function(abcfile, jsNamespace) {
this.abcfile = abcfile;
this.jsNamespace = jsNamespace;
this.reset();
};
Gordon.JSScriptWriter.prototype = {
reset: function() {
this.script = "";
this.indentAmount = 0;
},
writeClass: function(classObj) {
},
... |
webpackHotUpdate('static/development/pages/blog.js', {
/***/ './node_modules/css-loader/dist/cjs.js?!./node_modules/next/dist/compiled/postcss-loader/index.js?!./src/styles/header.module.css':
/*!**********************************************************************************************************************... |
'use strict';
/*
Converts media from a Soundcloud playlist into items.
input: none
output: none
*/
ns('Washers.SoundCloud', global);
Washers.SoundCloud.Playlist = function(config, job) {
Washers.SoundCloud.call(this, config, job);
this.name = 'SoundCloud/Playlist';
this.className = Helpers.buildClassName(... |
var Vue = require('vue');
var Icon = require('../../../src/components/icons/icon.vue');
describe('Button Spec', function() {
var vm;
beforeEach(function () {
vm = new Vue({
template: '<icon value="edit">',
replace: false,
components: {
'icon': Icon
... |
/* esr version 0.9.3 */
var esr = (function () {
'use strict';
var VERSION = "0.9.3";
var isarray = Array.isArray || function (arr) {
return Object.prototype.toString.call(arr) == '[object Array]';
};
/**
* Expose `pathToRegexp`.
*/
var pathToRegexp_1 = pathToRegexp;
var parse_1 = parse;
va... |
'use strict';
const { Segments, Joi } = require('celebrate'),
validation = require('../models/validation');
module.exports = {
getAll: {
[Segments.QUERY]: Joi.object().keys({
limit: validation.queryParam.limit,
offset: validation.queryParam.offset,
userID: validation.user.id,
type: validation.activity... |
import dateUtils from '../../../../core/utils/date';
import { getViewStartByOptions, setOptionHour } from './base';
import { getValidStartDate } from './week';
const SATURDAY_INDEX = 6;
const SUNDAY_INDEX = 0;
export const isDataOnWeekend = (date) => {
const day = date.getDay();
return day === SATURDAY_INDEX... |
import { Ingredient } from "../../alchemy/ingredients.js";
import { ING_OBJ_STORE } from "../config.js";
import {equals, equalsAnyOf, startsWith} from './query.js'
import { logger } from "../logger.js";
/**
* @typedef IngredientEntry
* @property {string} dlc the downloadable content the ingredient belongs to.
* @pro... |
/**
入驻小区
**/
(function (vc) {
var DEFAULT_PAGE = 1;
var DEFAULT_ROWS = 100;
vc.extends({
data: {
newOaWorkflowFormInfo: {
formJson: {},
conditions: {
},
flowId: ''
}
},
_initMethod: function (... |
//ConfigurableFirmData
var five = require("johnny-five");
var board = new five.Board({
port: "COM5"
});
var Stream = require('stream');
var flow_stream = new Stream();
var plotly = require('plotly')('workshop','v6w5xlbx9j');
var data = [{
x : [],
y : [],
stream : {
token : '25tm9197rz',
maxpoints : 500... |
import React, { useEffect, useState } from "react";
import Slide from "react-reveal/Slide";
import moment from "moment";
import Commits from "./GraphComponents/ChartCommits.js";
import Languages from "./GraphComponents/ChartLanguages.js";
import Time from "./GraphComponents/ChartTime.js";
import { colours } from "../A... |
!function(r){function n(r){function n(r,n,e){var i=null;if(t(n)&&(l(n),a(r),o(r),s(n),p>=2)){var u=d(n),v=0,W=f();"undefined"==typeof D[n.bars.order]&&(h(u)?D[n.bars.order]=-1*b(g,u-1,Math.floor(p/2)-1)-W:D[n.bars.order]=b(g,Math.ceil(p/2),u-2)+W+2*y),v=D[n.bars.order],i=c(e,n,v),e.points=i}return i}function t(r){retur... |
import React, {Component} from 'react';
import { DataStore } from '@aws-amplify/datastore';
import { UserInformation } from '../models';
import "survey-react/survey.css";
import * as Survey from "survey-react";
import { render, ReactDOM } from 'react-dom';
class Profile extends Component {
constructor(props){
super... |
class Execute {
constructor() {
this.execFunction = null;
}
execute(options) {
return this.execFunction('execute', options);
}
}
module.exports = Execute; |
import React from 'react';
import fetch from 'isomorphic-fetch';
import StoryCard from '../StoryCard/StoryCard';
import '../StoryCard/StoryCard.css';
import '../StoryCard/StoryFooter.css';
import '../StoryCard/StoryLink.css';
import Budget101 from '../Budget101';
import StackedArea from '../StackedAreaChart';
import Bu... |
import { Upload, Button, Icon } from 'antd';
const props = {
action: '//jsonplaceholder.typicode.com/posts/',
onChange({ file, fileList }) {
if (file.status !== 'uploading') {
console.log(file, fileList);
}
},
defaultFileList: [{
uid: 1,
name: 'xxx.png',
status: 'done',
reponse: '... |
import Backbone from 'backbone';
import { bindAll } from 'underscore';
import {
on,
off,
getElement,
getKeyChar,
isTextNode,
getElRect,
getUiClass
} from 'utils/mixins';
import FramesView from './FramesView';
const $ = Backbone.$;
let timerZoom;
export default Backbone.View.extend({
events: {
whee... |
/* eslint-env mocha */
const assert = require('assert')
const TestHelper = require('../../../../test-helper.js')
const TestStripeAccounts = require('../../../../test-stripe-accounts.js')
const DashboardTestHelper = require('@layeredapps/dashboard/test-helper.js')
describe('/account/subscriptions/confirm-subscription',... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProp... |
/*
EASY TABS 1.2 Produced and Copyright by Koller Juergen
www.kollermedia.at | www.austria-media.at
Need Help? http:/www.kollermedia.at/archive/2007/07/10/easy-tabs-12-now-with-autochange
You can use this Script for private and commercial Projects, but just leave the two credit lines, thank you.
*/
// Tabs 如(tabid1,ta... |
'use strict';
var path = require('path');
var rootPath = path.normalize(__dirname + '/../../..');
console.log(rootPath, "is");
module.exports = {
root: rootPath,
port: process.env.PORT || 3000,
mongo: {
options: {
db: {
safe: true
}
}
}
}; |
// @flow
import React, { useCallback } from 'react'
import { RecipientRequired } from '@ledgerhq/errors'
import type { Account, Transaction, TransactionStatus } from '@ledgerhq/live-common/lib/types'
import { getAccountBridge } from '@ledgerhq/live-common/lib/bridge'
import type { T } from 'types/common'
import Box fro... |
/* --- AUTOGENERATED FILE -----------------------------
* If you make changes to this file delete this comment.
* Otherwise the file may be overwritten in the future.
* --------------------------------------------------- */
const { mergeLocMatchGroups } = require('../lib/matching/utils');
const { regexMatchLocs } = re... |
var typeIcons = {
amenity: {
arts_centre: 'arg-gallery',
atm: 'marker',
bank: 'bank',
bar: 'bar',
bicycle_parking: 'bicycle_parking',
bicycle_rental: 'bicycle_rental',
bus_station: 'bus',
cafe: 'cafe',
car_wash: 'marker',
cinema: 'cinema',
clinic: 'marker',
... |
if (self.CavalryLogger) { CavalryLogger.start_js(["icl83"]); }
__d("DistanceConstants",[],(function(a,b,c,d,e,f){e.exports={KILOMETERS_PER_MILE:1.609344,MILES_PER_KILOMETER:.621371,FEET_PER_MILE:5280,METERS_PER_MILE_APPROXIMATE:1609,METERS_PER_MILE:1609.344,METERS_PER_KILOMETER:1e3,KILOMETERS_PER_METER:.001,FEET_PER_D... |
import { Vector3 } from 'three';
var titleHTML = "\
<span style='position: absolute; top: "+80+"px; left: "+55+"px; display: block;'>\
<center><h1 id=title style='color: silver; font-size: 70px; opacity: 0;'>LABYRINTH</h1></center>\
<center id=entertostart style='color: silver; position: relative; top: "+(-30)+"px; ... |
function formatDate(date, fmt) {
if (typeof date == 'string') {
return date;
}
if (!fmt) fmt = "yyyy-MM-dd hh:mm:ss";
if (!date || date == null) return null;
var o = {
'M+': date.getMonth() + 1, // 月份
'd+': date.getDate(), // 日
'h+': date.getHours(), // 小时
'm+': date.getMinutes(), // 分
's+': date.get... |
'use strict';
var _regeneratorRuntime = require('babel-runtime/regenerator')['default'];
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
var _interopRequireWildcard = require('babel-runtime/helpers/interop-require-wildcard')['default'];
var _this2 = this;
var _chai... |
// These are the different permutations of ARIA attributes to try.
var attrs = [
'aria-live="polite" aria-relevant="text additions" (default)'];
build();
var live_region_counter = 0;
addTests(
'additions',
'append img with alt text',
'<div ARIA-ATTRS></div>',
function(region) {
var img = docu... |
"use strict";
/**
* @ngdoc function
* @name digitalWorkplaceApp.component:checkboxFormElement
* @description
* # checkboxFormElement
* Component of the digitalWorkplaceApp
*
* This component creates a checkbox form element.
*
* Example usage:
*
* <checkbox-form-element
* ng-model
* id="lead.hasGas" <!... |
// Tutorial handling
function sugarizerTour(currentView, role) {
var tutorial = {};
var tour;
var launched = false;
// Init tutorial
tutorial.init = function() {
var prevString = document.webL10n.get("TutoPrev");
var nextString = document.webL10n.get("TutoNext");
var endString = document.webL10n.get("TutoE... |
'use strict';
/**
* @ngdoc service
* @name $log
* @requires $window
*
* @description
* Simple service for logging. Default implementation safely writes the message
* into the browser's console (if present).
*
* The main purpose of this service is to simplify debugging and troubleshooting.
*
* The default is... |
import React, { useContext, useEffect, useState } from 'react'
import { useHistory } from 'react-router'
import { motion, AnimatePresence } from 'framer-motion'
import { HicetnuncContext } from '../../context/HicetnuncContext'
import { Container, Padding } from '../layout'
import { Button, Primary, Secondary } from '..... |
import React, { Component } from "react";
import { inject, observer } from "mobx-react";
import glamorous from "glamorous";
import {
DetailsTableRow,
DetailsTableCell,
DetailsTableTitle
} from "components/EntityList/style";
@observer
class AmqpItem extends Component {
constructor(props) {
supe... |
#!/usr/bin/env npx jbash
set("-x");
set("-e");
const rootFolder = require("path").join(__dirname, "../");
const specFilename = `spec-v1-swagger.json`;
const swaggerConfigFilename = `config.json`;
cd(rootFolder);
exec(
`wget http://127.0.0.1:8000/swagger.json -O ./.swagger-codegen/${specFilename}`
);
// Update c... |
module.exports = (function(){
// -------------------------------------------------------------------------------------------
// Defining configuration sub-schema
// -------------------------------------------------------------------------------------------
// Configuration for REDIS connections.
var CSUB_REDI... |
function Observable() {
let observers = [];
this.sendMessage = msg => {
observers.forEach(observer => {
observer.notify(msg);
});
};
this.addObserver = observer => {
observers.push(observer);
};
}
function Observer(behavior) {
this.notify = msg => behavior(msg);
}
const observable = new Observable();
c... |
const express = require("express");
const app = express.Router();
/* Controllers */
var controllers = require('../../controllers');
/* Middleware */
var middleware = require("../../middlewares/middleware");
/* Manage People Page */
app.get("/manage_people", middleware.checkSessionElseProfile, function (req, res) {
... |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.decode = exports.defaultDecodeOptions = void 0;
const Decoder_1 = require("./Decoder");
exports.defaultDecodeOptions = {};
/**
* It decodes a MessagePack-encoded buffer.
*
* This is a synchronous decoding function. See other variant... |
const express = require('express');
const path = require('path');
const fs = require('fs');
const uuid = require('uuid');
const buildIndex = require('./buildIndex.js');
const PORT = process.env.PORT || 8080;
express()
.use("/", express.static(__dirname, {
index: "report.html"
}))
.use('/report', express.text({ ... |
(window.webpackJsonp=window.webpackJsonp||[]).push([[95],{2931:function(t,e,n){"use strict";n.r(e),n.d(e,"icon",(function(){return c}));n(11),n(2),n(7),n(8),n(5),n(9);var r=n(0),a=n.n(r);function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototy... |
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a different devtool... |
import SegmentsController from '../../src/dash/controllers/SegmentsController';
import DashConstants from '../../src/dash/constants/DashConstants';
import Debug from '../../src/core/Debug';
import Settings from '../../src/core/Settings';
import EventBus from '../../src/core/EventBus';
import Events from '../../src/core... |
import React from 'react';
import { makeStyles } from '@material-ui/core/styles';
import Popover from '@material-ui/core/Popover';
import Typography from '@material-ui/core/Typography';
import Button from '@material-ui/core/Button';
const useStyles = makeStyles(theme => ({
typography: {
padding: theme.spacing(2)... |
module.exports = {
plugins: [
require('tailwindcss')
]
}; |
!function(e){function r(r){for(var n,u,p=r[0],f=r[1],i=r[2],c=0,s=[];c<p.length;c++)u=p[c],Object.prototype.hasOwnProperty.call(o,u)&&o[u]&&s.push(o[u][0]),o[u]=0;for(n in f)Object.prototype.hasOwnProperty.call(f,n)&&(e[n]=f[n]);for(a&&a(r);s.length;)s.shift()();return l.push.apply(l,i||[]),t()}function t(){for(var e,r... |
let mongoose = require('mongoose');
mongoose.Promise = Promise;
export class StudentProvider{
constructor(model) {
if (!model)
this._model = mongoose.model('Student');
else
this._model = model;
}
getAllStudentsByPage(limit, page, filter, orderBy){
// filter... |
const path = require('path');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const CleanWebpackPlugin = require('clean-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/app.js',
plugins: [
new CleanWebpackPlugin(['dist']),
new HtmlWebp... |
import React from 'react'
import { render } from 'react-dom'
import Stars from '../src/react-stars'
const firstExample = {
size: 30,
value: 2.5,
edit: false
}
const secondExample = {
size: 50,
count: 10,
char: '',
color1: '#ff9900',
color2: '#6599ff',
onChange: newValue => {
console.log(`Exampl... |
import * as React from 'react';
import wrapIcon from '../utils/wrapIcon';
const rawSvg = (iconProps) => {
const { className, primaryFill } = iconProps;
return React.createElement("svg", { width: 10, height: 10, viewBox: "0 0 10 10", xmlns: "http://www.w3.org/2000/svg", className: className },
React.crea... |
import { combineReducers } from 'redux';
import shelfReducer from './shelf/reducer';
import cartReducer from './cart/reducer';
import totalReducer from './total/reducer';
import styleFiltersReducer from './styleFilters/reducer';
import genderFilterReducer from './genderFilter/reducer';
import sortReducer from './sort/r... |
import React, { PropTypes } from 'react';
import pubsub from 'pubsub-js'
import { Link } from 'react-router';
import AppTable from 'components/AppTable';
import AppButton from 'components/AppButton'
import InputNumberField from 'components/Form/InputNumberField'
import {resolveDataSource, publishEvents, resolveFetch,re... |
'use strict';
var path = require('path')
, test = require('tap').test
, configurator = require(path.join(__dirname, '..', '..', 'lib', 'config'))
, Agent = require(path.join(__dirname, '..', '..', 'lib', 'agent'))
;
test("Agent should send metrics to staging-collector.newrelic.com", fun... |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { selectBook } from '../actions/index';
import { bindActionCreators } from 'redux';
class BookList extends Component {
renderList() {
return this.props.books.map((book) => {
return (
<li
... |
// Generated by CoffeeScript 1.9.3
(function() {
var bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototyp... |
let t = parseInt(readline());
while(t--){
let lines = readline().split(" ");
let nums = lines.map(Number);// nums
let n = nums[0];
let sum=0,curval;
for(let i=1; i<=n; i++){
curval = nums[i];
sum += curval;
}
print(sum);
} |
import React from "react"
import { Link } from "gatsby"
import App from './App';
const ListLink = props => (
<li style={{ display: `inline-block`, marginRight: `1rem` }}>
<Link style={{ textShadow: `none`, textDecoration: `none`, color: '#00000'}} to={props.to}>{props.children}</Link>
</li>
)
export default ... |
var execSync = require('child_process').execSync;
execSync("echo '" + __filename + "' >> /tmp/file_paths");
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor ... |
import React from "react";
import InputComponent from "../../InputComponent";
import "./EditAddressModal.scss";
class EditAddressModal extends React.Component {
constructor(props) {
super(props);
this.state = {
config: {},
customerDetail: {},
};
}
componentD... |
/*****************************************************************************
* Open MCT, Copyright (c) 2014-2021, United States Government
* as represented by the Administrator of the National Aeronautics and Space
* Administration. All rights reserved.
*
* Open MCT is licensed under the Apache License, Version ... |
import React from 'react'
import Layout from '../components/layout'
// import { useStaticQuery, graphql } from "gatsby"
import '../styles/contact.css'
// import Header from '../components/header'
// import Footer from '../components/footer'
const Contact = () => {
return (
<Layout>
<div classNa... |
// https://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
env: {
"browser": true,
"es6": true,
"node": true
},
extends: [
'standard'... |
const API = 'https://randomuser.me/api/';
const getName = async () => {
const perroNameStorage=JSON.parse(sessionStorage.getItem('perrosNames'));
if (perroNameStorage.length > 0) {
return perroNameStorage;
}else{
let promesa1 = fetch(API);
let promesa2 = fetch(API);
let promesa3 = f... |
export {abstractField, validators} from 'vue-form-generator';
import {schema} from 'vue-form-generator';
export const {createDefaultObject} = schema; |
const mongoose = require('mongoose');
const Joi = require("joi");
const jwt = require("jsonwebtoken");
const config = require('config');
const userSchema = new mongoose.Schema({
name: {
type: String,
required: true,
unique: true,
minlength: 1,
maxlength: 32
},
passwo... |
const { Model, DataTypes } = require('sequelize');
const sequelize = require('../config/connection');
class ProductTag extends Model {}
ProductTag.init(
{
id: {
type: DataTypes.INTEGER,
allowNull: false,
primaryKey: true,
autoIncrement: true,
},
product_id: {
type: DataType... |
() + 42 |
require('../../style/base.less');
require('../../badge/index.less');
require('../../icon/index.less');
require('../../loading/index.less');
require('../../picker/index.less');
require('../../button/index.less');
require('../../overlay/index.less');
require('../../popup/index.less');
require('../../toast/index.less');
r... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.