text stringlengths 2 1.05M |
|---|
positionForPages[103]={page:103,positions:[]}; |
const Sequelize = require('sequelize');
require('dotenv').config();
// create connection to our db
let sequelize;
if (process.env.JAWSDB_URL) {
sequelize = new Sequelize(process.env.JAWSDB_URL);
} else {
sequelize = new Sequelize(
process.env.DB_NAME,
process.env.DB_USER,
process.env.DB_PASSWORD,
... |
import React from 'react'
import Layout from '../components/Layout';
export default function error() {
return (
<Layout>
<h1>This is our error page</h1>
</Layout>
)
}
|
import React, { Component } from 'react';
import First from '../pages/First';
import Second from '../pages/Second';
import Third from '../pages/Third';
import Fourth from '../pages/Fourth';
class Playthrough extends Component {
render() {
const { plays, results, visible } = this.props;
if (!visible) return null... |
// Copyright 2010 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of ... |
import Conversation from "./conversation";
import Message from "../messages/message";
import wfc from "../client/wfc";
import ConversationType from "./conversationType";
export default class ConversationInfo {
conversation = {};
lastMessage = {};
timestamp = 0;
draft = "";
unreadCount = {};
is... |
/**
* Copyright 2022 pyke.io
* 2019-2021 Tauri Programme within The Commons Conservancy
* [https://tauri.studio/]
*
* 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 Lic... |
import React from 'react';
import PropTypes from 'prop-types';
import { compose } from 'redux';
import { connect } from 'react-redux';
import { withRouter } from 'react-router-dom';
import { injectIntl, intlShape } from 'react-intl';
import { isScrollingDisabled } from '../../ducks/UI.duck';
import config from '../../c... |
import SegmentsField from '@apps/websites/admin/components/segmentsfield'
import RulesField from '@apps/websites/admin/components/rulesfield'
import { normalizeConfig } from '../utils'
import Form from '@admin/components/form'
import * as styles from '../styles'
import PropTypes from 'prop-types'
import React from 'rea... |
const executeQuery = require("../../executeQuery");
const createSkipConditionMutation = `
mutation createSkipCondition($input: CreateSkipConditionInput!) {
createSkipCondition(input: $input) {
id
}
}`;
const createSkipCondition = async (ctx, page) => {
const input = {
pageId: page.id,
};
const resul... |
exports.handler = async function http(req) {
let html = `
<!doctype html>
<html lang=en>
<head>
<meta charset=utf-8>
<title>Hi!</title>
<link rel="stylesheet" href="https://static.begin.app/starter/default.css">
<link href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0... |
console.log("Worker.js running");
self.addEventListener('notificationclick', function(evt) {
console.log("On notification click");
console.log(evt);
evt.notification.close();
// This looks to see if the current is already open and
// focuses if it is
evt.waitUntil(self.clients.matchAll({
... |
const fs = require('fs/promises');
const path = require('path');
const process = require('process');
const filesPath = path.join(__dirname, 'files');
const filesCopyPath = path.join(__dirname, 'files-copy');
async function removeFiles(dir) {
try {
const files = await fs.readdir(dir);
for (const file of file... |
const path = require('path');
let util = require('./libs/util');
let wechat_file = path.join(__dirname,'./config/wechat.txt');
let config = {
wechat:{
appID:'wx2bda83f75086e961',
appSecret:'ee6d13d929cd0caf54316bca45809f29',
token:'xingmaxiaobao',
getAccessToken:function(){
... |
import LRU from 'lru-cache';
import { MAX_CACHED_BLOCKS, MAX_CACHED_BLOCKS_TRANSACTIONS, MAX_CACHED_TRANSACTIONS } from './constants';
import { getTxFee, getFromAddressOfTx, getTxToAddress, getTxAmount, getTxToken } from './blockUtils';
class Cacher {
initLRUCaches() {
this.blocksCache = new LRU(MAX_CACHED... |
/**
* @licstart The following is the entire license notice for the
* Javascript code in this page
*
* Copyright 2020 Mozilla Foundation
*
* 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... |
// Generated by Melange
'use strict';
var List = require("bs-platform/lib/js/list.js");
var Curry = require("bs-platform/lib/js/curry.js");
var Exceptions = require("../../Exceptions.bs.js");
var Caml_option = require("bs-platform/lib/js/caml_option.js");
var CamlListCore = require("../CamlListCore.bs.js");
var Defau... |
import reqresnext from 'reqresnext'
import Corsproxy from '../../../../main/js/servlet/corsproxy/index.js'
import url from '../../../../main/js/servlet/corsproxy/url.js'
describe('corsproxy.parse', () => {
it('parses request data', () => {
const { req } = reqresnext.default({
url: '/http://example.com',
... |
/* global define:false */
define([
'lodash',
'jquery',
'microevent',
'app/config',
'app/util'
], function(_, $, MicroEvent, Config, util) {
"use strict";
var HIGHLIGHT_COLORS = Config.get('highlight.colors');
var HIGHLIGHT_SETTINGS = Config.get('general.highlightSettings');
var HighlightWidget = function(s... |
// Generated by CoffeeScript 1.6.1
(function() {
(function($, window, document) {
var Plugin, defaults, pluginName;
pluginName = "slidesjs";
defaults = {
width: 940,
height: 600,
start: 1,
navigation: {
active: true,
effect: "slide"
},
pagination: {
... |
// 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-jasm... |
const Discord = require("discord.js")
const mongoose = require("mongoose");
const Toggle = require("../../models/toggle.js");
const config = require('../../config.json');
const message = require("../../events/message.js");
module.exports = {
name: 'image',
aliases: ["pic", "picture", "img"],
run: async (_, ... |
$(document).ready(function(){
$("form#transportation_survey").submit(function(event){
event.preventDefault();
$("#work-responses").show();
var arr = [];
$("input:radio[name=work-transportation]:checked").each(function(){
var workTransportationMode = $(this).val().toUpperCase();
arr.push(w... |
import React from "react";
import { connect } from "react-redux";
import { fetchUsers } from "../store/users"
export class AllUsers extends React.Component {
componentDidMount() {
this.props.getUsers();
}
render() {
const users = this.props.users;
return (
<div>
... |
import React from 'react';
import './Checkbox.scss';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { faCheck } from '@fortawesome/free-solid-svg-icons';
const Checkbox = ({
id, children, name, onClick,
}) => {
const checkIcon = <FontAwesomeIcon icon={faCheck} />;
return (
<div cla... |
'use strict';var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") return Reflect.decorate(decorators, target, key, desc);
switch (arguments.length) {
case 2: return decorators.reduceRight(funct... |
(()=>{return(e,n)=>{return n.toggleStyle(`\n #review_module { display: none !important; }\n `,`hide-bangumi-reviews-style`)}})(); |
var $ = require('jquery-browserify');
var _ = require('underscore');
var queue = require('queue-async');
var jsyaml = require('js-yaml');
var patch = require('../../vendor/liquid.patch');
var ModalView = require('./modal');
var marked = require('marked');
var diff = require('diff');
var Backbone = require('backbone');... |
'use strict';
class CactbotLanguageJa extends CactbotLanguage {
constructor() {
super('ja');
}
InitStrings() {
this.kEffect = Object.freeze({
BluntResistDown: '打属性耐性低下', // 0x23d, 0x335, 0x3a3
VerstoneReady: 'ヴァルストーン効果アップ', // 0x4d3
VerfireReady: 'ヴァルファイア効果アップ', // 0x4d2
... |
const { map, toArray } = require('rxjs/operators');
const { parse, program, programOutput } = require('../../operators');
module.exports = [
parse(','),
toArray(),
map((val) => ({ program: val, input: [1] })),
program(),
programOutput(),
];
|
const BLOG = {
title: 'BlueSky',
author: 'Lindi K',
email: 'rubycs@139.com',
link: 'https://lindi.vercel.app',
description: 'A simple website.',
lang: 'zh-CN',
appearance: 'auto', // ['light', 'dark', 'auto'],
font: 'sans-serif', // ['sans-serif', 'serif']
lightBackground: '#ffffff', // use hex value,... |
container = exports;
container.handle = function(req, res, pathInfo, resource) {
res.writeHead(200, {"Content-Type": "application/json; charset=utf-8"});
res.write(JSON.stringify(resource.properties.extendedComponents))
res.end();
}
|
(function($) {
$.extend($.summernote.lang, {
'ja-JP': {
font: {
bold: '太字',
italic: '斜体',
underline: '下線',
clear: 'クリア',
height: '文字高',
name: 'フォント',
strikethrough: '取り消し線',
subscript: 'Subscript',
superscript: 'Superscript',
si... |
'use strict';
exports.calculate = function(req, res) {
req.app.use(function(err, req, res, next) {
if (res.headersSent) {
return next(err);
}
res.status(400);
res.json({ error: err.message });
});
var operations = {
'add': function(a,b) { return +a + +b },//Using + operator
'... |
import React from "react"
import Layout from "../../../components/layout"
import { Link } from "gatsby"
export default () => <Layout>
<Link to={"../soil"}><h2>Soil</h2></Link>
<p><em>3. Soil Water and Air</em></p>
<p><ul>
<li>Soil water that is also called Soil Solution, is the dilute solution containing sm... |
const MenuData = [
{ label: 'Overview', icon: '/img/home.svg', href: '/' },
{ label: 'Movement', icon: '/img/movement.svg', href: '/movement' },
{ label: 'Top 100', icon: '/img/top100.svg', href: '/top' },
{ label: 'Masternode', icon: '/img/masternodes.svg', href: '/masternode' },
{ label: 'Connections', icon... |
import {
parseListAccess,
parseFieldAccess,
parseCustomAccess,
validateListAccessControl,
validateFieldAccessControl,
validateAuthAccessControl,
} from '../';
describe('Access control package tests', () => {
describe('parseListAccess', () => {
const statics = [true, false]; // type StaticAccess = boo... |
module.exports = {
"user": {
"username": "tester1@midascrowd.com",
"password": "TestTest123#",
"name": "Test User",
"bio": "A profile for a user to help run tests",
"title": "Testing Specialist",
"agency": 12,
"location": 32
},
"task": {
"title": "Testing Task",
"titleChange": ... |
import React, { Component } from 'react'
import { Link } from 'react-router-dom'
import api from '../../services/api'
import './styles.css'
export default class Main extends Component {
state = {
products: [],
productInfo: {},
page: 1
}
componentDidMount() {
this.loadProducts()
}
loadProdu... |
const faker = require("faker");
const {delay} = require('connect-api-mocker/helpers');
const permissionsDb = require('../permissions/data');
module.exports = [
delay(200),
(req, res) => {
const {name, permissions} = req.body;
if (!name || !permissions || permissions.length === 0) {
... |
export {};
//# sourceMappingURL=native-media-stream-audio-source-node.js.map |
/**
* SEO component that queries for data with
* Gatsby's useStaticQuery React hook
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from "react"
import PropTypes from "prop-types"
import { Helmet } from "react-helmet"
import { useStaticQuery, graphql } from "gatsby"
function... |
/*
@ @licstart The following is the entire license notice for the
JavaScript code in this file.
Copyright (C) 1997-2017 by Dimitri van Heesch
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either ... |
import React, {useState} from 'react';
import './App.css';
import {
AppBar,
Box,
Button,
ClickAwayListener,
Dialog,
DialogActions,
DialogTitle,
DialogContent,
Grid,
IconButton,
Slider,
Toolbar,
Typography,
Tooltip} from '@material-ui/core'
import {
Help,
Settings, } from '... |
Search.setIndex({docnames:["auto_examples/connectivity/plot_cwt_sensor_connectivity","auto_examples/connectivity/plot_mixed_source_space_connectivity","auto_examples/connectivity/plot_mne_inverse_coherence_epochs","auto_examples/connectivity/plot_mne_inverse_connectivity_spectrum","auto_examples/connectivity/plot_mne_i... |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="dns-prefetch" href="https://assets-cdn.github.com">
<link rel="dns-prefetch" href="https://avatars0.githubusercontent.com">
<link rel="dns-prefetch" href="https://avatars1.githubusercontent.com">
<link rel="dns-prefetch" href=... |
import Vue from 'vue'
import VueRouter from 'vue-router'
import {Flux, FluxVue} from 'sav-flux'
import routes from './router/index'
import storeModule from './store/index'
import Todo from './Todo.vue'
Vue.use(FluxVue)
let router = new VueRouter({routes})
let flux = new Flux({
strict: true // enable this for promise... |
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1228],{61228:e=>{e.exports=JSON.parse('{"userTypeStepTitle":"בואו נתחיל!","personalAccount":"חשבון אישי","personalAccountDescription":"הירשם עכשיו והפסק להמתין בתורים.\\n(אינו זמין)","businessAccount":"חשבון עסקי","businessAccountDescription":"ספק ללקוחותיך ... |
const init = require('./init');
const {discoverGateway} = require('node-tradfri-client')
/**
* Discover gateway,
* Authenticate,
* Store credentials
* Subscribe to events
*
* @return {Promise.<TResult>}
*/
module.exports = function() {
sails.log.info('------------------------');
sails.log.info('Setup de gla... |
import React from "react";
import AnimationRevealPage from "functions/AnimationRevealPage.js";
import tw from "twin.macro";
import styled from "styled-components"; //eslint-disable-line
import { css } from "styled-components/macro"; //eslint-disable-line
import Header from "components/headers/headerInnerPages.js";
impo... |
var class_hoard_1_1_m_v_c_1_1_export_procedure =
[
[ "ExportProcedure", "class_hoard_1_1_m_v_c_1_1_export_procedure.html#a4b351281b59fd85689d9206b4d9d536f", null ],
[ "Connect", "class_hoard_1_1_m_v_c_1_1_export_procedure.html#ad0b5980f97cc3121c42654210521d68c", null ],
[ "GetTransferData", "class_hoard_1_1... |
const mongoose = require("mongoose");
const { mongoURI } = require("../json/config.json");
mongoose.connect(mongoURI, {
// 'Vu4ll#0870
useUnifiedTopology: true,
useNewUrlParser: true
//useFindAndModify: false,
});
mongoose.connection.on("connected", () => {
console.log("[MONGO] MongoDB bağlandı!");
});
mon... |
import { createStore, applyMiddleware } from 'redux';
import rootReducer from '../reducers';
import thunk from 'redux-thunk';
export default function configureStore(initialState) {
return createStore(rootReducer, applyMiddleware(thunk), initialState);
}
|
define([
'../Core/arrayFill',
'../Core/Cartesian2',
'../Core/Cartesian4',
'../Core/Check',
'../Core/clone',
'../Core/Color',
'../Core/combine',
'../Core/ComponentDatatype',
'../Core/defaultValue',
'../Core/defined',
'../Core/defineP... |
!function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)}(function(e,n){var t,r="leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),s="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");function a(e){return 1<e&&e<5&&1!=~~(e/10... |
const React = require("react");
function DotsHorizontalIcon(props, svgRef) {
return /*#__PURE__*/React.createElement("svg", Object.assign({
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 20 20",
fill: "currentColor",
"aria-hidden": "true",
ref: svgRef
}, props), /*#__PURE__*/React.createEle... |
exports.seed = function(knex) {
// Deletes ALL existing entries
return knex('level').del().then(function() {
// Inserts seed entries
return knex('level').insert([
{
textbook: 'Super Safari 1',
description: 'SS 1',
cef_equivalent: 'Pre-A1',
pacing_guide_id: 1,
ce... |
import React from 'react'
// Import typefaces
import 'typeface-montserrat'
import 'typeface-merriweather'
import profilePic from './fcc-logo.png'
import { rhythm } from '../utils/typography'
class Bio extends React.Component {
render () {
const { author, description } = this.props
return (
<div
... |
import Http from './Http'
export default {
read (username) {
return Http.get(`users/${username}`)
},
edit (data) {
return Http.put('users', data)
},
delete (data) {
return Http.post('users', data)
},
posts (username, nextPage = null) {
if (nextPage) return Http.paginate(nextPage)
r... |
/**
* Initialize slider
*
* <div class="js-slider" data-loop="true|false" data-group="2">
* <div>
* <div class="js-scroll-wrapper">
* <div class="js-slide">1</div>
* <div class="js-slide">2</div>
* <div class="js-slide">3</div>
* <div class="js-slide">4</div>
* <div class="... |
/*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'justify', 'da', {
block: 'Lige margener',
center: 'Centreret',
left: 'Venstrestillet',
right: 'Højrestillet'
} );
|
load("bf4b12814bc95f34eeb130127d8438ab.js");
load("93fae755edd261212639eed30afa2ca4.js");
// This file was procedurally generated from the following sources:
// - src/dstr-binding/obj-ptrn-prop-obj-init.case
// - src/dstr-binding/default/cls-expr-meth-dflt.template
/*---
description: Object binding pattern with "nested... |
import React from "react";
export default {
name: "Switch",
component: () => <span style={{fontWeight: 800, fontSize: 32}}>⑂</span>,
outputs: [
{
id: "triggerOut",
title: "Trigger",
type: "Trigger",
color: "orange",
},
],
inputs: [
{
id: "trigger",
title: "Trig... |
const keys = require("../keys");
const setPendingAdminMethod = 'setPendingAdmin'
const addPoolMethod = 'addPool'
const setPointMethod = 'setPoint'
const transferOwnershipMethod = 'transferOwnership'
const setMigratorMethod = 'setMigratorMethod'
const setFeeToMethod = 'SetFeeTo'
const addProviderMethod = 'addProvider'
... |
const { MessageEmbed } = require('discord.js');
module.exports = {
successEmbed(message) {
const embed = new MessageEmbed()
.addFields({
name: 'Success',
value: message,
})
.setColor('RANDOM');
return embed;
},
errorEmbed(message) {
const embed = new Mes... |
const errors = require('restify-errors')
const jwt = require('jsonwebtoken')
const Post = require('../models/Post')
const User = require('../models/User')
const UserData = require('../models/UserData')
const bauth = require('../utility/bauth')
const utils = require('../utility/jwtutils')
const getAuthor = (id) => {
... |
import React from 'react';
import Helmet from 'react-helmet'
function Metatags(props) {
return (
<Helmet
title={props.title}
meta={[
{ name: 'title', content: props.title },
{ name: 'description', content: props.description },
{
... |
/**
* @overview datejs
* @version 1.0.0-rc3
* @author Gregory Wild-Smith <gregory@wild-smith.com>
* @copyright 2015 Gregory Wild-Smith
* @license MIT
* @homepage https://github.com/abritinthebay/datejs
*/
/*
* DateJS Culture String File
* Country Code: ar-AE
* Name: Arabic (U.A.E.)
* Format: "key" : "value... |
/*
* @Description: In User Settings Edit
* @Author: xi.guo
* @Date: 2019-08-06 11:24:02
* @LastEditTime: 2019-08-13 12:07:38
* @LastEditors: Please set LastEditors
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import cls from 'classnames';
import MessageBox from '../../../../... |
import {h} from 'dom-chef';
import select from 'select-dom';
import copyToClipboard from 'copy-text-to-clipboard';
import {groupSiblings} from '../libs/group-buttons';
export default function () {
// This selector skips binaries + markdowns with code
for (const code of select.all('.file .blob-wrapper > .highlight:no... |
module.exports = {
extends: "stylelint-config-standard",
plugins: [
"stylelint-order",
],
rules: {
"no-invalid-position-at-import-rule": null,
"no-irregular-whitespace": null,
"no-descending-specificity": null,
"order/order": [
["custom-properties", "declarations"],
{
"di... |
import { AbstractTransitionComponent } from 'vue-transition-component';
import VueTypes from 'vue-types';
import ButtonTransitionController from './ButtonTransitionController';
export default {
name: 'Button',
extends: AbstractTransitionComponent,
props: {
text: VueTypes.string,
goTo: VueTypes.any,
c... |
'use strict';
let items =[];
let divEl = document.getElementById('conrainer');
let img1 = document.getElementById('firstImg');
let img2 = document.getElementById('secondImg');
let img3 = document.getElementById('thirdImg');
let maxRounds = 25;
let rounds = 1;
let currentImg=[];
let names =[];
let votes=[];
let shows =[... |
import React from 'react';
import { Link } from "react-router-dom";
import Header from './Header';
import Footer from './Footer';
export default function Landing(props) {
return (
<div className="body">
<Header headerStyle="bg-wrap" />
<div className="section full-screen">
... |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('echarts/lib/echarts'), require('echarts/lib/component/tooltip'), require('echarts/lib/component/legend'), require('echarts-amap')) :
typeof define === 'function' && define.amd ? define(['echa... |
var browserstackApi = require("./api");
var browserstackScreenshot = require("./screenshot");
module.exports = {
createClient: browserstackApi.createClient,
createScreenshotClient: browserstackScreenshot.createClient
};
|
/*******************************************************************************
* KindEditor - WYSIWYG HTML Editor for Internet
* Copyright (C) 2006-2011 kindsoft.net
*
* @author Roddy <luolonghao@gmail.com>
* @site http://www.kindsoft.net/
* @licence http://www.kindsoft.net/license.php
*******************************... |
+function($){"use strict";function Plugin(option){return this.each(function(){var $this=$(this),data=$this.data("bs.tooltip"),options="object"==typeof option&&option;(data||"destroy"!=option)&&(data||$this.data("bs.tooltip",data=new Tooltip(this,options)),"string"==typeof option&&data[option]())})}var Tooltip=function(... |
module.exports = function(router) {
var version = 'beta/v111-0-0';
/**********
* GLOBAL VARIABLES
* MYESF (ALLOCATION STATEMENTS)
* **********/
/**********
* ADULTS - CHILD VIEW (SCHOOL & SINGLE ACADEMY)
* **********/
// Set a selection of global variables for all templates being reused
router.get('/' + ... |
const theme = require('../theme');
// Quick Picker
// https://code.visualstudio.com/docs/getstarted/theme-color-reference#_quick-picker
module.exports = {
'pickerGroup.border': theme.blackLightest,
'pickerGroup.foreground': theme.grayDarkest,
'quickInput.background': theme.blackDarkest,
'quickInput.foreground... |
import React, {Component} from 'react';
import Paper from 'material-ui/Paper';
import marked from 'marked';
import echarts from 'echarts';
class About extends Component {
componentDidMount(){
var myChart = echarts.init(document.getElementById('main'));
myChart.setOption({
title: {
text: '我的技能展... |
import React from "react"
import PropTypes from "prop-types"
import Helmet from "react-helmet"
import { StaticQuery, graphql } from "gatsby"
function SEO({ description, lang, meta, keywords, title }) {
return (
<StaticQuery
query={detailsQuery}
render={data => {
const metaDescription =
... |
import React, { useEffect, useState } from 'react';
import LikeButton from './LikeButton';
const DogSNS = () => {
const breeds = ['shiba', 'terrier', 'retriever', 'husky', 'chihuahua', 'beagle'];
const [dogs, setDogs] = useState([]);
const [breed, setBreed] = useState(breeds[0]);
const picNum = 5;
const [lik... |
webpackJsonp([36],{350:function(t,i,v){t.exports=v(413)},413:function(t,i,v){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var e=function(){var t=this,i=t.$createElement,v=t._self._c||i;return v("undefined",[v("h1",[t._v("Polyfill")]),t._v(" "),v("p",[t._v("vue-antdui使用了很多ES的最新语法进行开发,以下实例方法您可以直接在项目里使用。"... |
var m = require('mithril');
module.exports = m.trust('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="full" width="24" height="24" viewBox="0 0 24.00 24.00" enable-background="new 0 0 24.00 24.00" xml:space="preserve"><path fill="#000000" fill-opacity="1" st... |
import React from 'react';
import { createStackNavigator } from 'react-navigation-stack';
import LoginContainer from '../containers/auth/Login/LoginContainer';
import ReminderContainer from '../containers/auth/Reminder/ReminderContainer';
const AuthNavigator = createStackNavigator({
Login: {
screen: LoginConta... |
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
{
"note": "May https://vega.github.io/vega/docs/ be with you",
"$schema": "https://vega.github.io/schema/v... |
// f3a00745aef1f38d75739bbb768b6096
// https://api.themoviedb.org/3/movie/550?api_key=f3a00745aef1f38d75739bbb768b6096
// eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJmM2EwMDc0NWFlZjFmMzhkNzU3MzliYmI3NjhiNjA5NiIsInN1YiI6IjVmZjdjNDYxYmJjYWUwMDA0MGFjYjg3YSIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.5Od9umOd10OLAQicSAnVQK2q1tfmjx... |
import React, {Component} from 'react';
import {Grid, Row, Col, Panel,Image} from 'react-bootstrap';
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
import "./css/bootstrap.min.css";
import './css/style.css';
import getWeb3 from './utils/getWeb3';
import Tetris2 from './contracts/Tetris.json'; /* link to /buil... |
import { omitNil, toNumber } from '../../../common/utils';
import { PPSDK_CREDIT_CARD } from '../../payment-method-types';
export default class PpsdkPayloadMapper {
/**
* @returns {PayloadMapper}
*/
static create() {
return new PpsdkPayloadMapper();
}
/**
* @param {PaymentReques... |
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { Badge } from 'src/components/badge';
import { ListGroupItem } from 'src/components/list-group';
import { TEAMS } from 'src/data/constants';
func... |
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).c3=e()}(this,(function(){"use strict";function t(t){var e=this;e.d3=window.d3?window.d3:"undefined"!=typeof require?require("d3"):void 0,e.api=t,e.config=e.getDefaultConfig(... |
test("FormData", function() {
var FormData = H.API( window, "FormData", true );
assert( !!FormData, "FormData supported" );
});
asyncTest("FormData Send and Receive", function( async ) {
var FormData = H.API( window, "FormData", true ),
formdata, xhr;
if ( !FormData ) {
assert( false, "FormData not... |
/*
MIT License http://www.opensource.org/licenses/mit-license.php
Author Tobias Koppers @sokra
*/
"use strict";
const util = require("util");
const { ConcatSource, RawSource, ReplaceSource } = require("webpack-sources");
const Generator = require("./Generator");
/** @typedef {import("webpack-sources").Source} Sour... |
deepmacDetailCallback("30595b000000/24",[{"d":"2014-04-08","t":"add","a":"Brandstrasse 33\nSchlieren Zürich 8952\n\n","c":"SWITZERLAND","o":"streamnow AG"},{"d":"2015-08-27","t":"change","a":"Brandstrasse 33 Schlieren Zürich CH 8952","c":"CH","o":"streamnow AG"}]);
|
const fs = require("fs");
const input = fs.readFileSync(__dirname + "/../input/input_02.txt", "utf8")
.trim().split("\n").map(i => i.split("x").map(d => parseInt(d, 10)));
// Part 1
function part1() {
return input.reduce((a, c) => {
let wrap = 2 * ((c[0] * c[1]) + (c[0] * c[2]) + (c[1] * c[2]));
let slack ... |
(function($) {
var trigger = window.trigger,
_ = trigger._;
function on(type, listener, usejQuery) {
if (usejQuery){ $(document).on(type, listener); }
else if (document.addEventListener){ document.addEventListener(type, listener); }
else { on(type, listener, true); }
}
... |
const { Partner } = require("../models");
/**
* @description Get all partnets
* @route GET /api/v1/partners
*/
exports.findAll = async (req, res, next) => {
await Partner.find()
.then(data => {
res.status(200).json({
success: true,
count: data.length,
pdvs: data
});
})
... |
'use strict';
angular.module('copayApp.controllers').controller('exportController',
function($rootScope, $scope, $timeout, $log, backupService, storageService, profileService, isMobile, notification, go, gettext, gettextCatalog) {
var self = this;
self.error = null;
self.success = null;
$scope.metaD... |
// Sort an array from shortest string to longest
function lengthSort(arr) {
// Write code here...
return arr.sort(function (a, b) {
return a.length - b.length;
});
}
console.log(lengthSort(['abcde', 'abcdef', 'abc']));
// Gợi ý: độ dài của 1 string = string.length, thử chạy "abc".length |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.