text stringlengths 2 1.04M |
|---|
var util = require('util')
var errors = {
100: 'CommonInvalidParam1',
101: 'CommonInvalidParam2',
102: 'CommonInvalidParam3',
103: 'CommonInvalidParam4',
104: 'CommonInvalidParam5',
105: 'CommonInvalidParam6',
106: 'CommonInvalidParam7',
107: 'CommonInvalidParam8',
108: 'CommonInvalidParam9',
109: ... |
const jwt = require("jsonwebtoken");
const secret = "mysecretsshhhhh";
const expiration = "2h";
module.exports = {
authMiddleware: function ({ req }) {
// allows token to be sent via req.body, req.query, or headers
let token = req.body.token || req.query.token || req.headers.authorization;
// ["Bearer", "... |
"use strict";
var tslib_1 = require("tslib");
var React = require("react");
var Chat_1 = require("./Chat");
var react_redux_1 = require("react-redux");
var ShellContainer = (function (_super) {
tslib_1.__extends(ShellContainer, _super);
function ShellContainer(props) {
return _super.call(this, props) ||... |
var path = require('path')
var webpack = require('webpack')
module.exports = {
entry: './src/main.js',
output: {
path: path.resolve(__dirname, './public'),
publicPath: '/',
filename: 'js/build.js'
},
module: {
rules: [
{
test: /\.css$/,
use: [
'vue-style-loader',
... |
/* Copyright (c) 2012-2013 LevelUP contributors
* See list at <https://github.com/rvagg/node-levelup#contributing>
* MIT +no-false-attribs License <https://github.com/rvagg/node-levelup/blob/master/LICENSE>
*/
/*
* This test unpacks a tar file, pushes that data into a
* database then compares the database data wi... |
import React from "react";
import { Provider } from "react-redux";
import "react-native-gesture-handler";
import { NavigationContainer } from "@react-navigation/native";
import { createStackNavigator } from '@react-navigation/stack';
import { configureStore, createReducer, combineReducers } from "@reduxjs/toolkit";
im... |
window.jsb = window.jsb || {};
jsb.onWindowResize = function (callBack) {
console.warn('jsb.onWindowResize not supported');
};
// 屏蔽废弃的函数
window.resize = function () {}; |
/*
const useWindowSize = () => {
const getSize = () => {
return {
width: isClient ? window.innerWidth : undefined,
height: isClient ? window.innerHeight : undefined,
}
}
const [windowSize, setWindowSize] = useState(getSize)
useEffect(() => {
if (!isClient) {
return false
}
const handleResize = ... |
// services/network/public/mojom/cors.mojom.js is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2014 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.
'use strict';
(function() {
var mojomId =... |
// Private property declaration in es6 class
class Sample {
#property;
constructor() {
this.#property = "Sample Property";
console.log(this.#property); // Output:: Sample Property
}
}
const instance = new Sample();
console.log(instance.property); // Output:: undefined
console.log(instanc... |
export default {"name":"--pf-c-wizard__description--Color","value":"#ededed","var":"var(--pf-c-wizard__description--Color)"} |
/**
* 我们有两个长度相等且不为空的整型数组 A 和 B 。
我们可以交换 A[i] 和 B[i] 的元素。注意这两个元素在各自的序列中应该处于相同的位置。
在交换过一些元素之后,数组 A 和 B 都应该是严格递增的(数组严格递增的条件仅为A[0] < A[1] < A[2] < ... < A[A.length - 1])。
给定数组 A 和 B ,请返回使得两个数组均保持严格递增状态的最小交换次数。假设给定的输入总是有效的。
示例:
输入: A = [1,3,5,4], B = [1,2,3,7]
输出: 1
解释:
交换 A[3] 和 B[3] 后,两个数组如下:
A = [1, 3, 5, 7] , B = ... |
class HtmlWebpackUltraPlugin {
constructor(options) {
this.options = Object.assign({}, options)
}
apply (compiler) {
const me = this
compiler.hooks.emit.tap('HtmlWebpackUltraPlugin', (compilation) => {
if (typeof this.options.modifier !== 'function') {
return
}
const files ... |
import React from "react";
import { documentToReactComponents } from "@contentful/rich-text-react-renderer";
import { INLINES } from "@contentful/rich-text-types";
const options = {
renderNode: {
[INLINES.HYPERLINK]: node => {
return (
<a href={node.data.uri} target="_blank" rel="noopener noreferre... |
jest.mock('fs')
jest.mock('/vue.config.js', () => ({ lintOnSave: false }), { virtual: true })
jest.mock('vue-cli-plugin-foo', () => () => {}, { virtual: true })
const fs = require('fs')
const path = require('path')
const Service = require('../lib/Service')
const mockPkg = json => {
fs.writeFileSync('/package.json',... |
module.exports = {
// Specifies the ESLint parser
parser: '@typescript-eslint/parser',
// Which files to not lint
ignorePatterns: ['webpack*', 'dist*'],
parserOptions: {
// Allows for the parsing of modern ECMAScript features
ecmaVersion: 2020,
// Allows for the use of imports
sourceType: 'm... |
/* eslint-disable no-async-promise-executor */
const { Collection } = require('discord.js');
const { sleep, validateConfig, cleanupDuplicates } = require('../baseFunctions/util');
const { readdb, insertdb, updatedb, deletedb } = require('../baseFunctions/database');
// eslint-disable-next-line no-unused-vars
async fu... |
/**
* Small utility module for compling HTML templates or pre-processed CSS.
*
* @author: [@jasonsims]('https://github.com/jasonsims')
*/
import {extname, dirname, basename} from 'path'
import cons from 'consolidate'
import P from 'bluebird'
var engineMap = {
// HTML Template engines
'html': renderDefault,
... |
export default{
props: {
input: {
type: String,
required: false,
default: ''
}
},
data() {
return {
query: ''
}
},
template: `
<div>
<FSheetsV4
id="1ZrQ_OwfitB7dvZh4LzUmanbEX6oR3kWI2YVBTkFLZfc" akey="AIzaSyB8ofd2t6YxACpaV8yJUdGjlYlV_hSoMu4" sheet="link... |
"use strict";
const userNameInput = document.getElementById('user-name');
const assessmentButton = document.getElementById('assessment');
const resultDivided = document.getElementById('result-area');
const tweetDivided = document.getElementById('tweet-area');
/**
* 指定した要素の子どもを全て削除する
* @param {HTMLElement} element HT... |
import { dispatch as d3_dispatch } from 'd3-dispatch';
import {
select as d3_select,
event as d3_event
} from 'd3-selection';
import { t } from '../../util/locale';
import {
behaviorBreathe,
behaviorHover
} from '../../behavior';
import {
osmEntity,
osmIntersection,
osmInferRestriction,
... |
// tagget templates = processar o template dentro de uma função
function tag(partes, ...valores) {
console.log(partes)
console.log(valores)
return 'Outra String'
}
const aluno = 'Gui'
const situacao = 'Aprovado'
console.log(tag`${aluno} está ${situacao}.`) |
/**
* Copyright 2016 The AMP HTML Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
'use strict'
const { initCharCheck } = require('./utility')
const argv = process.argv
const initTap = argv.some((a) => a === '--tap' || a === '-t')
const initPersist = initTap || argv.some((a) => a === '--persist' || a === '-p')
const initVerbose = !initTap && argv.some((a) => a === '--verbose' || a === '-v')
const ... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2020 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var Class = require('../../utils/Class');
var CONST = require('../const');
var File = require('../File');
var FileTypesManager = require('../Fil... |
// DO NOT EDIT! This test has been generated by tools/gentest.py.
// OffscreenCanvas test in a worker:size.attributes.idl.set.zero
// Description:Setting width/height IDL attributes to 0
// Note:
importScripts("/resources/testharness.js");
importScripts("/2dcontext/resources/canvas-tests.js");
var t = async_test("Set... |
/**
* @license Apache-2.0
*
* Copyright (c) 2021 The Stdlib 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 a... |
// https://www.javacodegeeks.com/2015/02/testing-grunt-plugin-from-grunt.html
module.exports = function (grunt) {
var loader = require("./grunt-hacks.js");
var gLoad = require('./grunt.load.this');
grunt.initConfig({
copy: {
fix: {
files: [{
src: './fixtures/style.min.css',
d... |
import React from "react";
import Component from "hyper/component";
import spotify from "spotify-node-applescript";
import SvgIcon from "../utils/svg-icon";
class PluginIcon extends Component {
render() {
return (
<SvgIcon>
<g fill="none" fillRule="evenodd">
<g fill="none" fillRule="eveno... |
const socket = io();
// document.querySelector("#nmUser").value = prompt("Ingrese su nombre");
Swal.fire("Any fool can use a computer");
(async () => {
const { value: url } = await Swal.fire({
width: 500,
padding: "3em",
color: "#716add",
background: "#fff url(/images/trees.png)",
backdrop: `
... |
const Promise = require('bluebird');
const common = require('../common');
const fs = require('fs-extra');
/**
* @NOTE: Sharp cannot operate on the same image path, that's why we have to use in & out paths.
*
* We currently can't enable compression or having more config options, because of
* https://github.com/love... |
var searchData=
[
['same_5for_5fleft_5fbits',['same_or_left_bits',['../malloc_8c.html#ace4a96b1b78fcc4d93372fb9336f899f',1,'malloc.c']]],
['sample',['Sample',['../classSample.html',1,'']]],
['sample_2ecpp',['Sample.cpp',['../Sample_8cpp.html',1,'']]],
['sample_2eh',['Sample.h',['../Sample_8h.html',1,'']]],
['... |
import c from '../utils/constants';
// import sc from './storyConstants';
import intro from './scenes/intro';
import mainMenu from './scenes/mainMenu';
import scene001 from './scenes/scene001';
import scene002 from './scenes/scene002';
import plates from '../plates';
import timing from '../utils/timing';
import hud fro... |
/*
Copyright 2018 Google LLC
Use of this source code is governed by an MIT-style
license that can be found in the LICENSE file or at
https://opensource.org/licenses/MIT.
*/
importScripts('/__WORKBOX/buildFile/workbox-sw');
importScripts('/infra/testing/comlink/sw-interface.js');
workbox.routing.registerRoute... |
const readline = require("readline");
const DELAY_MILISECOND = 1000;
async function readLines(prompt) {
return new Promise(resolve => {
let rl = readline.createInterface({
input: process.stdin,
output: process.stdout
})
rl.question(
'\n'+prompt,
function(answer) { ... |
import React, { useEffect, useState } from "react";
import Grid from "@mui/material/Grid";
import { useSelector } from "react-redux";
import DeliverablesSkeleton from "./components/DeliverablesSkeleton";
import { Stack } from "@mui/material";
import Link from "@mui/material/Link";
import { DataStore, Predicates, SortDi... |
require.config({
baseUrl: window.global_website +'assets/weengine/js/app',
paths: {
'jquery': '../lib/jquery-1.11.1.min',
'jquery.ui': '../lib/jquery-ui-1.10.3.min',
'jquery.caret': '../lib/jquery.caret',
'jquery.jplayer': '../../components/jplayer/jquery.jplayer.min',
'jquery.zclip': '../../components/zcli... |
// Reto: https://adventjs.dev/challenges/05
function daysToXmas(date) {
const xmasDate = new Date('Dec 25, 2021');
const diff = xmasDate.getTime() - date.getTime();
const daysToXmas = diff / (1000 * 60 * 60 * 24);
if (Math.floor(daysToXmas) === daysToXmas) return daysToXmas;
return Math.floor(daysToXmas +... |
/*
copyright (c) 2018 jones
http://www.apache.org/licenses/LICENSE-2.0
开源项目 https://github.com/jones2000/HQChart
jones_2000@163.com
指标基类及定制指标
*/
import {
JSCommonResource_Global_JSChartResource as g_JSChartResource,
} from './umychart.resource.wechat.js'
import { JSCommonComplier } from ".... |
/*
* Copyright (c) 2020 aureliancnx
*
* MIT LICENSE
*
* This project is part of aureliancnx.
* See https://github.com/aureliancnx/Bubulle-Norminette for further info.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Sof... |
var requireDir = require('require-dir'),
_ = require('underscore')._,
async = require("async"),
libGroups = require("./languages/libGroups"),
fs = require('graceful-fs');
var db = require("./database.js");
var fs = require('fs');
var Log = require("log");
//var log = new Log('info',fs.createWri... |
// Copyright (C) 2007-2019, GoodData(R) Corporation. All rights reserved.
import React, { Component } from 'react';
import '@gooddata/react-components/styles/css/main.css';
import GrossProfitInMonth from '../grossProfitInMonth';
import GrossProfitAllMonths from '../grossProfitAllMonths';
class App extends Component {... |
import { Template } from 'meteor/templating';
Template.registerHelper('isDefined', value => value !== undefined); |
"use strict";
define(['NccModal', 'Utils', 'TransactionType', 'handlebars', 'typeahead'], function(NccModal, Utils, TransactionType, Handlebars) {
return NccModal.extend({
});
}); |
require('./bind-for');
var diff = require('./lib/diff');
var lib = require('./lib/index');
var wrapArray = require('./lib/array').wrapArray;
// Singleton state definition.
var State = {
initialState: {},
nonBindedStateKeys: [],
handlers: {},
computeState: [function () { /* no-op */ }]
};
var STATE_UPDATE_EVEN... |
webpackHotUpdate_N_E(1,{
/***/ "./src/container/menu/menuList.tsx":
/*!*****************************************!*\
!*** ./src/container/menu/menuList.tsx ***!
\*****************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use stri... |
import clone from 'clone';
import equal from 'deep-equal';
import extend from 'extend';
import Delta, { AttributeMap } from 'quill-delta';
import { LeafBlot } from 'parchment';
import { Range } from './selection';
import CursorBlot from '../blots/cursor';
import Block, { BlockEmbed, bubbleFormats } from '../blots/block... |
/*!
* Quasar Framework v1.14.0
* (c) 2015-present Razvan Stoenescu
* Released under the MIT License.
*/ |
import React from 'react';
import Button from '@material-ui/core/Button';
import Snackbar from '@material-ui/core/Snackbar';
import MuiAlert from '@material-ui/lab/Alert';
import { makeStyles } from '@material-ui/core/styles';
function Alert(props) {
return <MuiAlert elevation={6} variant="filled" {...props} />;
}
... |
const magick = require("../build/Release/image.node");
const { promisify } = require("util");
exports.run = async (message) => {
message.channel.sendTyping();
const image = await require("../utils/imagedetect.js")(message);
if (image === undefined) return `${message.author.mention}, you need to provide an image ... |
import React, { useState, useEffect } from "react";
import { Link } from "react-router-dom";
import store from "data/store"
import axios from "axios";
import { useCookies } from 'react-cookie';
import { useForm } from "react-hook-form";
import draftToHtml from 'draftjs-to-html';
import htmlToDraft from 'html-to-draftjs... |
'use strict';
/**
* @ngdoc service
* @name troutDashApp.LinearReferenceViewModel
* @description
* # LinearReferenceViewModel
* Factory in the troutDashApp.
*/
angular.module('troutDashApp')
.factory('LinearReferenceViewModel', function () {
var StreamLineViewModel = function (lineSegment, inverseLength) {
... |
/* This file is generated by createIcons.js any changes will be lost. */
import createIcon from '../createIcon';
var MigrationIcon = createIcon({
name: 'MigrationIcon',
height: 1024,
width: 1024,
svgPath: 'M77.678 445.513c-3.657 3.657-5.486 7.973-5.486 12.8v52.809h-73.143v-55.077c0-25.161 8.923-46.665 26.99-64... |
import React from 'react'
export default class ErrorBoundary extends React.Component {
constructor(props) {
super(props);
this.state = {
hasError: false
}
}
static getDerivedStateFromError(error) {
// console.log("getDerivedStateFromError",error);
return... |
module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`,
},
plugins: [
`gatsby-plugin-react-helmet`,
`gatsby-plugin-sass`,
{
resolve: `gatsby-transformer-remark`,
options: {
plugins: [
`gatsby-remark-copy-linked-files`,
// @TODO add when fixed...
... |
import React,{useState} from 'react'
import "../../nav.css"
import axios from 'axios';
import base_url from '../api'
import { ToastContainer, toast } from 'react-toastify';
import {Link, useHistory} from "react-router-dom";
import {Button} from "react-bootstrap";
import "../../custom.css";
export default function AddE... |
const {
doc: {
builders: { group, indent, line }
}
} = require('prettier');
const printSeparatedList = require('./print-separated-list');
const indexed = (node) => (node.isIndexed ? ' indexed' : '');
const visibility = (node) =>
node.visibility && node.visibility !== 'default'
? [line, node.visibility]... |
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Icon } from './elements/global'
export default class Pagination extends Component {
static propTypes = {
gotoPage: PropTypes.func.isRequired,
page: PropTypes.number,
pageCount: PropTypes.number.isRequired,
pageResul... |
import * as symbols from '../../src/symbols.js';
import * as template from '../../src/template.js';
import ReactiveElement from '../../src/ReactiveElement.js';
class CustomPageDot extends ReactiveElement {
get [symbols.template]() {
return template.html`
<style>
:host {
background: rgb(... |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2018 Photon Storm Ltd.
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
*/
var Camera = require('../../cameras/2d/BaseCamera');
var CanvasPool = require('../../display/canvas/CanvasPool');
var ... |
(function(d){d['el']=Object.assign(d['el']||{},{a:"Image toolbar",b:"Table toolbar",c:"Έντονη",d:"Επιλέξτε κεφαλίδα",e:"Κεφαλίδα",f:"Πλάγια",g:"Λεζάντα",h:"Increase indent",i:"Decrease indent",j:"Σύνδεσμος",k:"Εικόνα πλήρης μεγέθους",l:"Side image",m:"Left aligned image",n:"Centered image",o:"Right aligned image",p:"Πε... |
/**
* @class Ext.Function
*
* A collection of useful static methods to deal with function callbacks.
* @singleton
*/
Ext.Function = (function () {
// @define Ext.lang.Function
// @define Ext.Function
// @require Ext
// @require Ext.lang.Array
var lastTime = 0,
animFrameId,
animF... |
var Collection = require('./collection');
var util = require('../util');
function property(obj, name, value) {
if (value !== null && value !== undefined) {
util.property.apply(this, arguments);
}
}
function memoizedProperty(obj, name) {
if (!obj.constructor.prototype[name]) {
util.memoizedProperty.appl... |
import React, { Component } from 'react';
import { StyleSheet, Text, View, FlatList } from 'react-native';
import PlacesItem from './PlacesItem';
export default class Places extends Component {
render() {
return (
<View style={styles.container}>
<FlatList
data={this.props.places}
keyExtractor={(it... |
/*!
* ImagesLoadedPN PACKAGED v4.1.4
* JavaScript is all like "You images are done yet or what?"
* MIT License
*/
/**
* EvEmitter v1.1.0
* Lil' event emitter
* MIT License
*/
/* jshint unused: true, undef: true, strict: true */
( function( global, factory ) {
// universal module definition
/* jshint ... |
import { h } from 'omi';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(h("path", {
d: "M7 3v9c0 .55.45 1 1 1h2v7.15c0 .51.67.69.93.25l5.19-8.9c.39-.67-.09-1.5-.86-1.5H13l2.49-6.65c.25-.65-.23-1.35-.93-1.35H8c-.55 0-1 .45-1 1z"
}), 'FlashOnRounded'); |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.removeResizeListener = exports.addResizeListener = void 0;
/* Modified from https://github.com/sdecima/javascript-detect-element-resize
* version: 0.5.3
*
* The MIT License (MIT)
*
* Copyright (c) 2013 Sebastián Décima
*
* P... |
/*
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in c... |
/*
* /MathJax/localization/bg/HTML-CSS.js
*
* Copyright (c) 2009-2018 The MathJax Consortium
*
* 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/licen... |
import { Router } from 'express'
import trooperRoutes from './trooper.js'
import createError from 'http-errors'
import jwt from 'jwt-simple'
import moment from 'moment'
import config from 'config'
const routes = new Router()
routes.get('/', (req, res) => res.send('Ola s'))
routes.post('/login', (request, response, next... |
import { useMachine } from '@xstate/react'
import { Counter, Toggle } from '../components'
import { toggleMachine } from '../machines/toggleMachine'
import { counterMachine } from '../machines/counterMachine'
const IndexPage = () => {
const [toggleCurrent, toggleSend] = useMachine(toggleMachine)
const [counterCurr... |
'use strict'
// a task must accept the build contents object
// a task must return a Promise
const task = contents => new Promise((resolve, reject) => {
// optionally, work with data added by the handmade core or previous tasks in the build
let { core } = contents
// when done working with the contents object, ... |
//储仓控件
//--------------------------------------------必须重写的原型----------------------------------------------------------------------------
//创建一个新实例
function InitKitchen1Control() {
return new Kitchen1Control();
}
function Kitchen1JsonToObj(element) {
var obj = new Kitchen1Control();
obj.ShowWay = element... |
var searchData=
[
['update_305',['update',['../classgame_1_1_grid.html#ab32fbb2e392049d6ee99b1cd144e516e',1,'game::Grid']]],
['updatebestscore_306',['updateBestScore',['../classplayer_1_1_player_model.html#a2fa2bb9dbf5ac4bd01965083296d9fda',1,'player::PlayerModel']]],
['updatecellnumber_307',['updateCellNumber',[... |
function solve(str) {
let i = 0;
let user = str[0].toString();
let count = 0;
let password = '';
for (let index = user.length - 1; index >= 0; index--) {
password += user[index];
}
while (true) {
if (str[i + 1] === password) {
console.log(`User ${user} logged in.`... |
goog.require('goog.debug.Console');
goog.require('goog.testing.PropertyReplacer');
goog.require('goog.testing.jsunit');
goog.require('ydn.async');
goog.require('ydn.db.crud.Storage');
goog.require('ydn.debug');
var reachedFinalContinuation, schema, debug_console, db, objs;
var table_name = 'st_inline';
var table_nam... |
;(function ($) {
var primary = $('#primary')
$(document)
.pjax('#page a', '#primary', { fragment: '#primary', timeout: 6000 })
.on('submit', 'form[method="get"]', function (e) {
e.preventDefault()
$.pjax.submit(e, '#primary', { fragment: '#primary', timeout: 6000 })
})
.on('pjax:send', ... |
export { default } from "./raw"; |
const fs = require('fs');
const express = require('express');
const yaml = require('js-yaml');
const nunjucks = require('nunjucks');
const argon = require('argon-parser');
const markdown = require('markdown-it')({
breaks: true
});
const slider89Data = {
docs: require('./source/data/slider89/docs.json'),
// This i... |
import React, { Component } from 'react';
import { connect } from 'dva';
import Link from 'umi/link';
import Exception from '@/components/Exception';
import GridContent from '@/components/PageHeaderWrapper/GridContent';
import { formatMessage, FormattedMessage } from 'umi/locale';
import numeral from 'numeral';
import ... |
export default "M19,15V19H5V15H19M20,13H4A1,1 0 0,0 3,14V20A1,1 0 0,0 4,21H20A1,1 0 0,0 21,20V14A1,1 0 0,0 20,13M7,18.5A1.5,1.5 0 0,1 5.5,17A1.5,1.5 0 0,1 7,15.5A1.5,1.5 0 0,1 8.5,17A1.5,1.5 0 0,1 7,18.5M19,5V9H5V5H19M20,3H4A1,1 0 0,0 3,4V10A1,1 0 0,0 4,11H20A1,1 0 0,0 21,10V4A1,1 0 0,0 20,3M7,8.5A1.5,1.5 0 0,1 5.5,7A1... |
import styled from 'styled-components'
import { motion } from 'framer-motion'
export const Container = styled.div`
width: 84%;
margin: 0 auto;
`
export const Heading = styled.p`
font-style: normal;
font-weight: 600;
font-size: 18px;
line-height: 33px;
/* identical to box height */
/* text-transform: uppercase... |
/**
* jQuery Lightbox
* Version 0.5 - 11/29/2007
* @author Warren Krewenki
*
* This package is distributed under the BSD license.
* For full license information, see LICENSE.TXT
*
* Changes by:
* @author Krzysztof Kotowicz <koto at webworkers dot pl>:
* - bugfix: multiple instances of Lightbox galleries allo... |
import Order from '../model/orderModel';
import {Op} from 'sequelize';
class DeliverieController {
async index(request, response){
const {id} = request.params;
const orderForSend = await Order.findAll({
where: {
deliveryman_id: id,
canceled_at: null,
... |
exports.default = (client, target, context, message) => {
switch (message) {
case '!social':
client.say(
target,
`/me Me encontre nas outras redes sociais 🌎 https://links.levxyca.codes`,
);
break;
case '!telegram':
client.say(
target,
`/me Fique por den... |
angular.module('forgetest').controller('EditItemController', function($scope, $routeParams, $location, flash, ItemResource , ActionResource, ItemResource) {
var self = this;
$scope.disabled = false;
$scope.$location = $location;
$scope.get = function() {
var successCallback = function(data)... |
var searchData=
[
['capacity',['Capacity',['../class_memory_pool_allocator.html#a5672e0833fda2e71ce987911397489ed',1,'MemoryPoolAllocator']]],
['clear',['clear',['../classrapidxml_1_1memory__pool.html#aad377c835fdaed1cb2cc9df194cf84e4',1,'rapidxml::memory_pool::clear()'],['../classrapidxml_1_1xml__document.html#a82... |
defineSuite([
'Scene/PointCloud3DTileContent',
'Core/Cartesian3',
'Core/Color',
'Core/ComponentDatatype',
'Core/defined',
'Core/HeadingPitchRange',
'Core/HeadingPitchRoll',
'Core/Math',
'Core/PerspectiveFrustum',
'Core/Transforms',
... |
/**
* JavaScript to handle the front-end and handle the data source from back-end. Puts the data into the chart in
* the correct format.
*/
var symbol, indicator;
$.ajax({
url:'/getJson',
async: false,
success: function(jsonData) {
var ohlc = [], volume = [];
var symbol;
// Last part of the data sen... |
//# sourceMappingURL=42.js.map?v=d2f1c2b |
module.exports = {
A: " #FF83FA",
C: " #40E0D0",
G: " #FF83FA",
R: " #FF83FA",
T: " #40E0D0",
U: " #40E0D0",
Y: " #40E0D0"
}; |
const noteModel = require("../models/noteModel");
exports.create = async (req, res, next) => {
const { title, content, color, authorId } = req.body;
try {
const note = new noteModel({
title: title,
content: content,
color: color,
authorId: authorId
});
await note.save();
res... |
const portal = require('/lib/xp/portal')
const thymeleaf = require('/lib/thymeleaf')
// Resolve the view
const view = resolve('singlecolumn.html')
exports.get = function (req) {
// Find the current component.
const component = portal.getComponent()
const {
config: {
background,
borderbottom: bo... |
'use strict';
/**@type {{[k: string]: AbilityData}} */
let BattleAbilities = {
"confidenceboost": { // Machamp line, Victini, Plusle, Florges
desc: "If an active teammate has a stat lowered, raise it's highest stat by one stage.",
shortDesc: "If an active teammate has a stat lowered, raise it's highest stat by o... |
'use strict';
const _ = require('underscore');
const changeCase = require('change-case');
class OutputPlugin {
constructor(options) {
_.extend(this, options);
}
save(data) {
throw new Error('UNIMPLEMENTED');
}
}
module.exports = OutputPlugin; |
const User = require('./user');
class Seller extends User {
}
module.exports = Seller; |
import ClubhouseController from 'clubhouse/controllers/clubhouse-controller';
import {tracked} from '@glimmer/tracking';
export default class MeTimesheetController extends ClubhouseController {
queryParams = ['year'];
@tracked year;
get isCurrentYear() {
return this.house.currentYear() == this.year;
}
} |
/** 立体柱状图
* 支持的配置:
* barWidth:number,柱状图宽度,0~1
* barGap:number,柱状图系列间隔 0~1
* stack:bool,开启堆叠模式
* countStart: function(params, api, wSize, value), 自定义柱子定位点计算函数
* label:object , 柱子顶部label
* layout:string, 设置为y时柱子会横向放置,y轴会成为名称轴,x轴为数值轴
* barMinHeight:number/function(height, seriesIndex, dataIndex),柱子最小高度,为function... |
import React, { useState, useEffect } from 'react';
import { Link } from 'react-router-dom';
import Layout from './Layout';
import { getCart } from './cartHelpers';
import Card from './Card';
import Checkout from './Checkout';
const Cart = () => {
const [items, setItems] = useState([]);
const [run, setRun] = u... |
import {useState} from "react"
export const useLocalStorage = (key,initialValue) => {
const [storedValue, setStoredValue] = useState (() => {
const item = window.localStorage.getItem(key);
return item ? JSON.parse(item) : initialValue;
});
const setValue = value => {
setSto... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.