text stringlengths 3 1.05M |
|---|
'use strict';
/** Search with Github */
export const skillSearchGithub = {
name: 'github',
help: 'github|gh [term] - search github with [term]',
requirements: {
addons: ['search'],
},
rule: /(^github |^gh )(.*)/i,
action: function(robot, msg) {
const url = 'https://github.com/search?utf8=%E2%9C%93&... |
function solve(param) {
let mapToObj = (string) => {
let [fruit, quantity] = string.split(' => ');
quantity = Number(quantity);
return {fruit, quantity};
};
return param.map(e => mapToObj(e)).reduce((diff, resultElement, index) => {
let currObj = diff.filter(e => e.fruit ===... |
//# sourceMappingURL=/build/es2019/interfaces/panner-node.js.map |
import sys
from os import path
from setuptools import find_packages, setup
import versioneer
min_version = (3, 6)
if sys.version_info < min_version:
error = """
recordits does not support Python {0}.{1}.
Python {2}.{3} and above is required. Check your Python version like so:
python3 --version
This may be due... |
import sys
import yaml
resource = sys.argv[1]
manifest_path = "/data/manifest-expanded/chart.yaml"
with open(manifest_path, "r", encoding="utf-8") as stream:
content = stream.read()
Deployment = 'Deployment'
Job = 'Job'
Prometheus = 'Prometheus'
ServiceAccount = 'ServiceAccount'
for d in yaml.safe_load_all(con... |
const pathFn = require("./utils");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = {
rules: [
{
test: /\.js|jsx|ts|tsx/,
exclude: /node_modules/,
use: [
{
loader: "babel-loader",
options: {
presets: ["@babel/preset-typesc... |
const discord = require("discord.js");
module.exports = {
name: "kick",
run: async (client, message, args) => {
const config = require("../configs/config.json");
const channel = client.channels.cache.get(config.log_channel);
const member = message.mentions.members.first();
if(!... |
import React from 'react';
import { StyledIcon } from '../StyledIcon';
export const Vmware = props => (
<StyledIcon viewBox='0 0 24 24' a11yTitle='Vmware' {...props}>
<path fill='#879AC3' fillRule='evenodd' d='M5.574 0c-.959 0-1.728.754-1.728 1.68v5.744H1.728C.77 7.424 0 8.18 0 9.104v12.438c0 .926.77 1.68 1.728... |
import { defineComponent, computed, openBlock, createBlock, renderSlot, isVNode, ref, watch, createVNode, createTextVNode } from 'vue';
import { isFragment, PatchFlags, isValidElementNode } from '../utils/vnode';
import { isNumber, isString, isArray } from '../utils/util';
import { isValidComponentSize } from '../utils... |
/**
* Sorted Set class.
* Inherits from Set.
*
* @author Vivan <vivangkumar>
* @copyright Vivan, 2014.
*/
var Set = require('./Set.js');
var Collection = require('./Collection.js');
/**
* Constructor for Set.
* Creates a new Set.
*/
function SortedSet() {
Set.apply(this, arguments);
}
SortedSe... |
from selenium_ui.base_page import BasePage
from selenium_ui.confluence.pages.selectors import UrlManager, LoginPageLocators, AllUpdatesLocators, PopupLocators,\
PageLocators, DashboardLocators, TopPanelLocators, EditorLocators, LogoutLocators
class Login(BasePage):
page_url = LoginPageLocators.login_page_url... |
import React, { Component } from 'react';
import {
AppRegistry,
Dimensions,
Image,
ScrollView,
StyleSheet,
Text,
TouchableOpacity,
View,
} from 'react-native';
import Lightbox from 'react-native-lightbox';
import Carousel from 'react-native-looped-carousel';
const WINDOW_WIDTH = Dimensions.get('window... |
#!/usr/local/bin/python
# coding: utf-8
import sys
import warnings
import traceback
try:
unicode()
except NameError:
unicode = None
def str_e(e):
with warnings.catch_warnings():
warnings.simplefilter("ignore")
message = getattr(e, "message", None)
if not (message and unicode):
... |
import pandas as pd
import json
file = "well_log_data.txt"
with open(file, 'r') as f:
j_data = json.load(f)
for i, item in enumerate(j_data):
if i == 0:
p_data = pd.DataFrame(item)
else:
p_data = p_data.append(pd.DataFrame(item), sort=True)
|
'use strict';
module.exports = function() {
return {
*bar(ctx) {
console.log(ctx);
},
* bar1(ctx) {
console.log(ctx);
},
aa: function*(ctx) {
console.log(ctx);
}
};
};
|
/**
* Object.defineProperty Sham For IE
* @version 3.1.0
* @author Ambit Tsai <ambit_tsai@qq.com>
* @license Apache-2.0
* @see {@link https://github.com/ambit-tsai/object-defineproperty-ie}
*/
(function (window, Object) {
// Constant variables
var UNDEFINED; // => undefined
var DEFINE_PROPERTY = 'def... |
Search.setIndex({docnames:["autodoc/modules","autodoc/projekt","autodoc/projekt.config","autodoc/projekt.rllib_wrapper","index","rst/administrative","rst/api","rst/baselines","rst/devguide","rst/game_wiki","rst/ideology","rst/neural_mmo.forge.blade.core.config","rst/neural_mmo.forge.blade.io.action.static","rst/neural_... |
# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD
# SPDX-License-Identifier: CC0-1.0
import pytest
from pytest_embedded import Dut
@pytest.mark.esp32s3
@pytest.mark.generic
def test_ir_nec_example(dut: Dut) -> None:
dut.expect_exact('example: Initialize EN + DIR GPIO')
dut.expect_exact(... |
import errno
import logging
import queue
import sys
import warnings
from http.client import HTTPResponse as _HttplibHTTPResponse
from socket import timeout as SocketTimeout
from types import TracebackType
from typing import TYPE_CHECKING, Any, Mapping, Optional, Type, TypeVar, Union, overload
from ._request_methods im... |
const express = require('express')
const router=express.Router();
const HomeController=require('../controllers/home');
router.get('/',HomeController.home);
module.exports=router; |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2017 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(["jquery.sap.global", "./library", "./MessageItem"],
function(jQuery, library, MessageItem) {
"use strict";
/**
... |
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import classnames from 'classnames';
import isString from 'lodash/isString';
import isArray from 'lodash/isArray';
import rule from 'rockey/rule';
import look from './look';
import createElement from './utils/createEleme... |
(this.webpackJsonpclient=this.webpackJsonpclient||[]).push([[0],{14:function(e,t,a){},16:function(e,t,a){},20:function(e,t,a){e.exports=a(33)},25:function(e,t,a){},26:function(e,t,a){},30:function(e,t,a){},33:function(e,t,a){"use strict";a.r(t);var i=a(0),s=a.n(i),r=a(17),n=a.n(r),l=(a(25),a(2)),o=a(3),c=a(5),d=a(4),m=... |
import Cmd, { isCmd, executeCmd } from '../src/cmd';
function actionCreator1(val) {
return { type: 'TYPE1', val };
}
function actionCreator2(val) {
return { type: 'TYPE2', val };
}
describe('Cmds', () => {
let dispatch, getState, sideEffect;
beforeEach(() => {
dispatch = jest.fn();
getState = jest.fn... |
/*!
* Copyright 2022 The AI Flow Authors
*
* 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 a... |
from datetime import datetime
import logging
import os
from .rest_session import *
from .api.organizations import Organizations
from .api.networks import Networks
from .api.devices import Devices
from .api.appliance import Appliance
from .api.camera import Camera
from .api.cellularGateway import CellularGateway
from .... |
import React, { Fragment } from 'react'
import { mount } from 'enzyme'
import sinon, { fake, spy } from 'sinon'
import simulant from 'simulant'
import Grid from '../index'
/* eslint-env jest */
describe('Grid', () => {
describe('Row&Col.PropTypes', () => {
it('gutter', () => {
const Row = Grid.Row
con... |
import json
import os
import re
import base64
import io
import aiohttp
import discord
from redbot.core import checks, data_manager, commands
from redbot.core.utils.chat_formatting import inline, box, pagify
R_MESSAGE_LINK = r"https://discordapp.com/channels/(\d+)/(\d+)/(\d+)"
R_ATTATCH_LINK = r"https://cdn.discordapp... |
app.component("mixDatabaseEdm", {
templateUrl:
"/mix-app/views/app-portal/pages/mix-database/components/edm/view.html",
controller: [
"$rootScope",
function ($rootScope) {
var ctrl = this;
ctrl.localizeSettings = $rootScope.globalSettings;
},
],
bindings: {
model: "=",
},
});
|
/*
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'embedbase', 'zh-cn', {
pathName: '媒体对象',
title: '嵌入媒体',
button: '插入媒体',
unsupportedUrlGiven: '不支持指定的 URL',
unsupportedUrl: '嵌... |
const bitcoinjs = require('ravenassetjs-lib');
const Dashcore = require('@dashevo/dashcore-lib');
const payments = bitcoinjs.payments;
const isP2MS = isPaymentFactory(payments.p2ms);
const isP2PK = isPaymentFactory(payments.p2pk);
const isP2PKH = isPaymentFactory(payments.p2pkh);
const isP2WPKH = isPaymentFactory(payme... |
module.exports = function(__, lab, cliEntryFile, exec, fs, path) {
lab.experiment('and with the demo command', function() {
lab.test('will create the example folder', function(done) {
exec(cliEntryFile + ' demo', function(error, stdout, stderr) {
fs.isDirectoryAsync(__dirname + '/../demo/example-ou... |
function A(input) {
let res = 0;
const set = new Set();
input.split('\n').forEach(line => {
if (line) {
const parts = line.split(' ').map(pair => pair.split(':'));
for (const [a] of parts) {
set.add(a);
}
} else {
if (set.size == 8 || set.size == 7 && !set.has(`cid`)) {
... |
'use strict';
const path = require('path');
/** @type {import("webpack").Configuration} */
const config = {
target: 'node',
entry: './src/extension.ts',
output: {
devtoolModuleFilenameTemplate: '../[resource-path]',
filename: 'extension.js',
libraryTarget: 'commonjs2',
path: path.resolve(__dirna... |
import Adapter from '../adapter.js';
import adapterManager from '../adapterManager.js';
import { config } from '../config.js';
import { createBid } from '../bidfactory.js';
import { userSync } from '../userSync.js';
import { nativeBidIsValid } from '../native.js';
import { isValidVideoBid } from '../video.js';
import C... |
//dependencies
var express = require("express");
var router = express.Router();
var moment = require('moment');
//JWT
var authCtrl = require("../controllers/authCtrl.js");
var middleware = require("../controllers/middleware.js");
var utils = require("../controllers/utils.js");
var Mensaje = require("../models/mensaje"... |
"""
WSGI config for FezComicServerPython project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault(... |
const EventEmitter = require('events');
const { expect } = require('chai');
const Device = require('../../../lib/device');
const StateManager = require('../../../lib/state');
const event = new EventEmitter();
describe('Device.getBySelector', () => {
it('should return device', () => {
const stateManager = new St... |
import os
import gdal
def raster_value(path):
file = os.path.basename(path)
file_format = file.split('.')[-1]
file_name = file.split('.')[0]
if file_format == 'tif':
gtif = gdal.Open(path)
srcband = gtif.GetRasterBand(1)
srcband.ComputeStatistics(0)
N = srcband.GetMaxim... |
/* API(s) */
import Fuse from 'fuse.js'
import opensubtitle from './opensubtitle'
/**
* Getsub Search API
*
* @param {Object} File object containing our file path and name
* @param {String} Search language filter
* @return {Object} Resulted search object (with subtitles list and origin names)
*/
export const sea... |
/*
* Kendo UI v2015.1.408 (http://www.telerik.com/kendo-ui)
* Copyright 2015 Telerik AD. All rights reserved.
*
* Kendo UI commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-complete
* If you do not own a commercial license, this file shall be governed by the trial licen... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon( /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("path", {
d: "M7 17v5h10v-5H7z"
}), /*#__PURE__*/React.createElement("path", {
fillOpacity: ".3",
d: "M17 4h-3V2h-4v2H... |
const fs = require('fs')
const axios = require('axios')
const chalk = require('chalk')
const {
resolve,
request
} = require('./util.js')
function get(fundCode, pageIndex = 1, pageSize = 20) {
return request({
method: 'get',
baseURL: 'http://api.fund.eastmoney.com',
url: '/f10/lsjz',
params: {
... |
import { connect } from 'react-redux'
import { toggleShortener } from '../actions'
import ShortenerList from '../components/ShortenerList'
import { VisibilityFilters } from '../actions'
const getVisibleShorteners = (shorteners, filter) => {
switch (filter) {
case VisibilityFilters.SHOW_ALL:
return shortene... |
import React from 'react';
import { StaticQuery, graphql } from 'gatsby';
import SvgImage from './SvgImage';
function Footer() {
return (
<StaticQuery
query={graphql`
query {
FooterLogo: file(
relativePath: { eq: "round-seal-white.svg"... |
export * from './components';
export * from './layouts';
import * as directives from './directives';
import * as filters from './filters';
import * as utils from './utils';
export { directives, filters, utils };
export { install } from 'vusion-utils';
|
from pathlib import Path
from stat import S_IREAD, S_IWRITE
class FilePermissions:
'''
Helper class for restricting the permissions for certain files to read and write access
for the current user only.
'''
def __init__( self ):
pass
def restrict_access( self, file ):
... |
/**
* @license Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
/**
* This file was added automatically by CKEditor builder.
* You may re-use it at any time to build CKEditor again.
*
* If you would like to bu... |
module.exports = {"default": require("core-js/library/fn/array/from"), __esModule: true}; |
var teste = 'teste TypeScript';
function Soma(x, y) {
return x + y;
}
var pi = 3.14;
var Matematica = /** @class */ (function () {
function Matematica() {
}
Matematica.prototype.Somar = function (x, y) {
return x + y;
};
Matematica.prototype.SomarDataDias = fu... |
import React from "react";
import PropTypes from "prop-types";
const SvgComponent = ({ size, width, height, ...otherProps }) => {
if (size !== height) {
width = width * (size / height);
height = height * (size / height);
}
return (
<svg
width={width}
height={height}
size={size}
... |
import numpy as np
import matplotlib.pyplot as plt
from quat import Quat
from sys import exit
def ori_matrix(phi1,Phi,phi2,passive=True):
'''
Returns (passive) orientation matrix, as a np.matrix from
3 euler angles (in degrees).
'''
phi1=np.radians(phi1)
Phi=np.radians(Phi)
phi2=np.... |
var a = 0;
var sponge = [];
function setup() {
createCanvas(400, 400, WEBGL);
// An array of Box objects
// Star with one
var b = new Box(0, 0, 0, 200);
sponge.push(b);
}
function mousePressed() {
// Generate the next set of boxes
var next = [];
for (var i = 0; i < sponge.length; i++... |
"use strict";
const { version } = require("../package.json");
const core = require("./main/core.js");
const { getSupportInfo } = require("./main/support.js");
const getFileInfo = require("./common/get-file-info.js");
const sharedUtil = require("./common/util-shared.js");
const plugins = require("./common/load-plugins... |
from faker import Faker
import random
######## This script is only for educational purpose ########
######## use it on your own RISK ########
######## I'm not responsible for any loss or damage ########
######## caused to you using this script ########
start_url = 'https://www.opencccapply.net/gateway/apply?cccMisCod... |
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2017 John Dewey
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
# deal in the Software without restriction, including without limitation the
# rights t... |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import axios from 'axios';
import { Link } from 'react-router-dom';
import './Login.css';
class ContactForm extends Component {
constructor(props) {
super(props);
this.state = {
name: '',
email: '',
ph... |
import test from 'ava'
import TreeManager from '..'
test('should select the same node if it is selected and then deselected right again', t => {
const tree = [{ id: 'nodeA' }, { id: 'nodeB' }, { id: 'nodeC' }]
const manager = new TreeManager({ data: tree, mode: 'simpleSelect' })
// first select a node
manage... |
# -*- coding: utf-8 -*-
""" turtle-example-suite:
tdemo_nim.py
Play nim against the computer. The player
who takes the last stick is the winner.
Implements the model-view-controller
design pattern.
"""
import turtle
import random
import time
SCREENWIDTH = 640
SCREENHEIGHT = 480
... |
'use strict';
module.exports = function (grunt) {
return {
options: {
singleQuotes: true
},
module: {
files: {
'<%= paths.tmp %>/concat/js/app.min.js': '<%= paths.tmp %>/concat/js/app.min.js'
}
}
};
};
|
import { css } from '@emotion/react';
export const baseStyles = css`
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Poppins:300,400,500,600&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-b... |
import Post from '../models/Post.js'
export const updatePost = async (req, res) => {
const post = await Post.findById(req.params.id);
post.title = req.body.title;
post.detail = req.body.detail;
await post.save();
res.redirect(`/post/${post._id}`);
};
export const deletePost = async(req,res) => {
await P... |
/*
* Copyright (c) Codiad & Andr3as, distributed
* as-is and without warranty under the MIT License.
* See http://opensource.org/licenses/MIT for more information.
* This information must remain intact.
*/
(function(global, $){
var codiad = global.codiad,
scripts = document.getElementsByTagName(... |
/*global DateTimeShortcuts, SelectFilter*/
/**
* Django admin inlines
*
* Based on jQuery Formset 1.1
* @author Stanislaus Madueke (stan DOT madueke AT gmail DOT com)
* @requires jQuery 1.2.6 or later
*
* Copyright (c) 2009, Stanislaus Madueke
* All rights reserved.
*
* Spiced up with Code from Zain Memon's G... |
var gulp = require('gulp');
var nunjucksRender = require('gulp-nunjucks-render');
var cssnano = require('gulp-cssnano');
var htmlmin = require('gulp-htmlmin');
var minify = require('gulp-minify');
var compass = require('gulp-compass');
var browserSync = require('browser-sync').create();
var ghPages = require('gulp-gh-p... |
const express = require('express');
const app = express();
const dbconnect = require('./config/connection');
const routes = require('./routes/api');
const path = require('path');
app.use(express.static('public'))
app.use('/api',routes);
const PORT = process.env.PORT || 3001
app.get('/', (req, res) => {
res.sendF... |
/*global require console setTimeout process Buffer */
var PORT = 6379;
var HOST = '127.0.0.1';
var redis = require("./index"),
client = redis.createClient(PORT, HOST),
client2 = redis.createClient(PORT, HOST),
client3 = redis.createClient(PORT, HOST),
bclient = redis.createClient(PORT, HOST, { return_b... |
import { getMaxProfitFromGivenPriceIndex } from "../index";
const testCases = [
{
input: [
{ time: "0915", price: "34.98" },
{ time: "1045", price: "36.13" },
{ time: "1230", price: "37.01" },
{ time: "1400", price: "35.98" },
{ time: "1530", price: "33.56" }
],
expected: 2.... |
"use strict";(self.webpackChunkCnblogs_Theme_SimpleMemory=self.webpackChunkCnblogs_Theme_SimpleMemory||[]).push([[4751],{9616:function(e,s,l){l.r(s)}}]); |
'use strict';
/**
* Module dependencies.
*/
var passport = require('passport'),
GoogleStrategy = require('passport-google-oauth').OAuth2Strategy,
config = require('../config'),
users = require('../../app/users/controllers/users.server.controller');
module.exports = function() {
// Use google strategy
passport.... |
/**
* OpenAPI Petstore
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* OpenAPI spec version: 1.0.0
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* htt... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
... |
import initStoryshots from '@storybook/addon-storyshots'
import { imageSnapshot } from '@storybook/addon-storyshots-puppeteer'
import { viewports } from './viewports'
console.warn = () => {
// addon-storyshots throws a bunch of warnings if we try
// to call initStoryshots more than once per test run (but otherwise... |
// Copyright 2018-2021 Polyaxon, Inc.
//
// 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 agre... |
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
import torchvision
import torchvision.transforms as transforms
import numpy as np
from .misc import *
__all__ = ['make_image', 'show_batch', 'show_mask', 'show_mask_single']
# functions to show an image
def make_image(img, mean=(0,0,0), ... |
export default WebSocketJson;
/**
* @constructor
* @description
* Data source which connects to a websocket server, parses a JSON object out of websocket frames, and calls data
* handlers with the parsed object. This source can also respond to each frame received with a static value, allowing
* servers to ra... |
"use strict";
import { connect } from "react-redux";
import {
setVisibilityFileName
} from "../actions/visibilityFileNameActions";
import ImageView from "../components/ImageView";
const mapStateToProps = (state) => {
return {
main: state.page.main,
sub: state.page.sub,
direction: state.direction
};... |
""" LitGL package initialization file.
Author:
- 2020-2021 Nicola Creati
- 2020-2021 Roberto Vidmar
Copyright:
2020-2021 Nicola Creati <ncreati@inogs.it>
2020-2021 Roberto Vidmar <rvidmar@inogs.it>
License:
MIT/X11 License (see
:download:`license.txt <../... |
const kafka = require('../../libs/kafka-utils'),
{
ServiceBase,
initDefaultOptions,
initDefaultResources,
resolveEnvVariables
} = require('../../libs/service-base'),
{
addMongodbOptions,
initMongoClient
} = require('../../libs/mongo-utils'),
mongo = re... |
import React, { lazy } from "react";
import BunpkgSuspense from "./BunpkgSuspense";
const Emoji = lazy(() => import("./Emoji"));
const InternalLink = lazy(() => import("./InternalLink"));
const AppHeader = () => (
<header className="app-header">
<h1>
<BunpkgSuspense>
<InternalLink href="https://ww... |
const ora = require('ora')
const Table = require('cli-table2')
const Benchmark = require('benchmark')
const fastMemoize = require('../src')
const benchmarkResults = []
//
// View
//
const spinner = ora('Running benchmark')
function showResults (benchmarkResults) {
const table = new Table({head: ['NAME', 'OPS/SEC'... |
import Head from 'next/head'
import Image from 'next/image'
import styles from '../styles/Home.module.css'
export default function Home() {
return (
<div className={styles.container}>
<Head>
<title>Create Next App</title>Will
<meta name="description" content="Generated by create next app" /... |
import createSvgIcon from './utils/createSvgIcon.js';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon( /*#__PURE__*/_jsx("path", {
d: "m18 8 4 4-4 4-1.41-1.41L18.17 13H13v-2h5.17l-1.59-1.59L18 8zM7 1.01 17 1c1.1 0 2 .9 2 2v4h-2V6H7v12h10v-1h2v4c0 1.1-.9 2-2 2H7c-1.1 0-2-.9-2-2V3c0-1.1.9-... |
import React from 'react';
import { connect } from 'react-redux';
import * as StatusBarSC from '../styledComponents/StatusBarStyledComponents';
import {
getFormattedFileSize,
getFormattedFilePath
} from './helpers/StatusBarHelper';
class StatusBar extends React.Component {
render() {
return (
<StatusBa... |
import Unit from "./Unit";
export default class Enemy extends Unit {
constructor(scene, x, y, texture, frame, type, hp, damage) {
super(scene, x, y, texture, frame, type, hp, damage);
}
} |
let mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel applica... |
! function(document, window, $) {
"use strict";
var Site = window.Site;
$(function($) {
}), jsGrid.setDefaults({
tableClass: "jsgrid-table table table-striped table-hover"
}), jsGrid.setDefaults("text", {
_createTextBox: function() {
retur... |
export const SELECT_DATE = 'SELECT_DATE';
export const SET_DEFAULT_DATE = 'SET_DEFAULT_DATE';
export function selectDate(date) {
return {
type: SELECT_DATE,
date,
};
}
export function setDefaultDate(date) {
return {
type: SET_DEFAULT_DATE,
date,
};
}
|
import Vue from 'vue'
import Lightbox from './components/lightbox/Lightbox.vue'
Vue.config.devtools = true
new Vue({
el: '#app',
components: {
Lightbox
}
})
|
(function (require, module) {
'use strict';
var
gulp = require('gulp'),
sources = require('./list.js')
;
module.exports = function () {
this.getPaths = function () {
return sources;
};
this.stream = function () {
return gulp.src(sources);
... |
/*! jQuery UI - v1.8.22 - 2012-07-24
* https://github.com/jquery/jquery-ui
* Includes: jquery.ui.draggable.js
* Copyright (c) 2012 AUTHORS.txt; Licensed MIT, GPL */
(function(a,b){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containme... |
import { stat } from 'fs';
import moment from 'moment';
const oddsForBet = {
1: event => event.odds[0].mlHome,
2: event => event.odds[0].mlAway,
3: event => event.odds[0].mlDraw,
4: event => event.odds[1].spreadHome,
5: event => event.odds[1].spreadAway,
6: event => event.odds[2].totalsOver,
7: event => ... |
"""Task 5: Show difference between a thick/thin airfoil using XFOIL."""
from matplotlib import pyplot as plt
from numfoil.legacy.panel.thick import Solver, ThickPanelledAirfoil
def get_data(Naca="0012", alpha=0):
foil = ThickPanelledAirfoil(Naca=Naca, n_panels=100)
# foil.panels.plt()
solver = Solver(fo... |
//静态资源地址
//设置js资源地址
export async function jsLocation(ctx, next) {
ctx.state.commonsJs = webpackIsomorphicTools.assets().javascript.commons
await next()
} |
/* Modernizr 2.0.6 (Custom Build) | MIT & BSD
* Build: http://www.modernizr.com/download/#-rgba-touch-iepp-respond-mq-cssclasses-addtest-teststyles-prefixes-load
*/
;window.Modernizr=function(a,b,c){function A(a,b){return!!~(""+a).indexOf(b)}function z(a,b){return typeof a===b}function y(a,b){return x(n.join(a+";")+(... |
const path = require(`path`)
const { pathify } = require(`../utils`)
const QUERY_TAGS = `
query AllTags {
allTag {
edges {
node {
id
name
slug
posts {
id
fields {
slug
url
}
}
... |
var path = require('path')
module.exports = function isMarkdown (file) {
var ext = path.extname(file)
return ext === '.md' || ext === '.markdown'
}
|
import React from 'react';
import Prizetype from '../../components/pages/Prizetype';
export default {
path: '/prizetype',
action() {
return <Prizetype />;
},
};
|
import { prefixKey, storage } from "./common";
/**
* Saves the received value associated with the specified key.
* If it is applied consecutive times to the same key, its value is the latest assigned
* @param {string} key
* @param {string} value
*/
export function set(key, value) {
if (!storage) {
return;
... |
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms))
const asyncValidate = (values /*, dispatch */) => {
return sleep(1000).then(() => {
// simulate server latency
if (['foo@foo.com', 'bar@bar.com'].includes(values.email)) {
// eslint-disable-next-line no-throw-literal
throw { emai... |