text
stringlengths
3
1.05M
import logging import sys # Importing color module try: from colorama import Fore, Style, init init() except ImportError: print("[-]Import Error. Please install colorama Module. \n>pip install colorama") sys.exit(0) """ Default Logging Levels CRITICAL = 50 ERROR = 40 WARNING = 30 INFO = 20 DEBUG = 10...
"""Normalization preprocessor. Subtracts mean and divides by standard deviation. Author: Mengye Ren (mren@cs.toronto.edu) """ from __future__ import (absolute_import, division, print_function, unicode_literals) import numpy as np import tensorflow as tf from fewshot.data.preprocessors.preproce...
'use strict'; module.exports = { db: { uri: 'mongodb://localhost/secudev-test', options: { user: '', pass: '' } }, port: 3001, log: { // Can specify one of 'combined', 'common', 'dev', 'short', 'tiny' format: 'dev', // Stream defaults to process.stdout // Uncomment to enable logging to a log on...
import { request } from '@/utils/request' import cgForm from '@/utils/cgForm' export default { methods: { useMixinMethodsFirst () { return true }, getActionParams(action, options, id) { if(action=='deleteType'){ request({ url: this.baseUrl+'/action/deleteType', ...
import * as React from "react"; function SvgHourglassOutlined(props) { return ( <svg width={24} height={24} fill="none" xmlns="http://www.w3.org/2000/svg" {...props} > <path d="M19 5.5V4h1V1H4v3h1v1.5c0 2.95 1.83 5.47 4.41 6.5A7.002 7.002 0 005 18.5V20H4v3h16v-3h-1...
import React, { forwardRef } from 'react'; import PropTypes from 'prop-types'; const Tide = forwardRef(function Tide({ color = 'currentColor', size = 24, title = 'Tide', ...others }, ref) { return ( <svg xmlns="http://www.w3.org/2000/svg" width={size} height={size} fill={color} view...
'use strict'; hexo.extend.helper.register('hexo_env', function(type) { return this.env[type]; }); hexo.extend.helper.register('next_env', function(type) { var env = require('../package.json'); return env[type]; }); hexo.extend.helper.register('item_active', function(path, className) { var canonical = this.pa...
Package.describe({ name: 'onokumus:metismenu', version: '3.0.4', summary: 'A jQuery menu plugin', git: 'https://github.com/onokumus/metisMenu', documentation: 'README.md' }); Package.onUse(function(api) { api.use(['jquery@1.11.4']); api.addFiles([ "dist/metisMenu.css", "dist/metisMenu.js" ], 'c...
var db = require('lowdb')('db.json'); var companies = db('companies'); var schema = require('validate'); module.exports = { create: function(req, res) { var errors = validate(req.body); if (errors.length) return res.json(errors); companies.push(req.body); return res.json(req.body); }, list: fu...
# Copyright 2017 Google Inc. 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 required by applicable law or a...
/* eslint no-underscore-dangle: 0 */ import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import PropField from './PropField'; export default class propForm extends React.Component { makeChangeHandler(name, type) { return value => { const { onFieldChange } = ...
/* * Copyright (c) 2012 - present Adobe Systems Incorporated. All rights reserved. * * 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 * ...
var callbackArguments = []; var base_0 = [242] var r_0= undefined try { r_0 = base_0.reduce() } catch(e) { r_0= "Error" } function serialize(array){ return array.map(function(a){ if (a === null || a == undefined) return a; var name = a.constructor.name; if (name==='Object' || name=='Boolean'|| name=='Array'||name...
const mongoose = require('mongoose'); const viewerSchema = new mongoose.Schema({ id: { type: Number, required: true, unique: false }, name: { type: String, required: true, unique: false }, created_at: Date, updated_at: Date }); viewerSchema.pre('save', function(next) { let currentDate = new Date()...
const serv = requiered("serv"), path = requiere("path"), app = server(), puerto = process.env.PORT || 3000; gix.get('/', (a , b ) => { let c = a.header("user-agent"); b.send("root:// + c); }); gix.get('/plant ' , (a ,b) => { let d= path.join(_dirname, "index.html"); b.sendFile(d); }); g...
#!/usr/bin/env node /* Terminal Kit Copyright (c) 2009 - 2021 Cédric Ronvel The MIT License (MIT) 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 lim...
ace.define("ace/theme/solarized_dark",["require","exports","module","ace/lib/dom"], function(require, exports, module) { exports.isDark = true; exports.cssClass = "ace-solarized-dark"; exports.cssText = ".ace-solarized-dark .ace_gutter {\ background: #01313f;\ color: #d0edf7\ }\ .ace-solarized-dark .ace_print-margin ...
const { PLAYER_1, PLAYER_2 } = require("../constants/gameConstants"); const Tram = require('tram-one') const Board = require('../elements/board/board'); const RevealButton = require('../elements/reveal-button/reveal-button'); const Winner = require('../elements/winner/winner') const html = Tram.html({ 'app-header': r...
let crypto = require('crypto') global.crypto = { getRandomValues (array) { for (let i = 0; i < array.length; i++) { array[i] = Math.floor(Math.random() * 256) } return array } } let { urlAlphabet } = require('..') let browser = require('../async/index.browser.js') let node = require('../async/in...
#!/usr/bin/env python3 import numpy as np def overlap(shadowlist, path_coords): ''' Overlap calculator to get the percent shadow. ''' path_lat, path_long = [x[0] for x in path_coords], [x[1] for x in path_coords] path_bounds = (min(path_lat), min(path_long), max(path_lat), max(path_long)) delt...
import { createSelector } from 'reselect'; import { initialState } from './reducer'; const selectUserInput = state => state.userinput || initialState; const makeSelectInput = () => createSelector( selectUserInput, inputState => inputState.currentString, ); const makeInputSelectError = () => createSelec...
goog.module('plugin.ogc.query.FilterIDModifier'); goog.module.declareLegacyNamespace(); const googString = goog.require('goog.string'); const ParamModifier = goog.require('os.net.ParamModifier'); const ModifierConstants = goog.require('os.ogc.filter.ModifierConstants'); /** * Modifier for adding WFS relation filter...
import React, { useContext, useMemo } from "react"; import { chakra, Stack, Spinner } from "@chakra-ui/react"; import { useSubscription, usePresignedURL } from "../core/hooks"; import CheckboxGrouped from "./CheckboxGrouped"; import UIContext from "../core/providers/UIProvider/context"; import { DASHBOARD_CONFIGURE_S...
// pages/my/my.js const api = require('../../utils/api.js'); const common = require('../../utils/common.js'); var useWechatImg = false; //区分头像是使用微信头像还是图片偶像 const hostname = 'http://localhost/postcard'; var noHeadImg = true; Page({ /** * 页面的初始数据 */ data: { imgSrc : '../../images/headImg.png' ...
from __future__ import (absolute_import, division, print_function) __metaclass__ = type from ansible.plugins.action import ActionBase try: from ansible_collections.ansible.utils.plugins.module_utils.common.argspec_validate import ( AnsibleArgSpecValidator, ) except ImportError: ANSIBLE_UTILS_IS_INST...
// Импортируем jQuery //= ../../../node_modules/jquery/dist/jquery.js // Импортируем Popper //= ../../../node_modules/popper.js/dist/umd/popper.js // Импортируем необходимые js-файлы Bootstrap 4 //= ../../../node_modules/bootstrap/js/dist/util.js //= ../../../node_modules/bootstrap/js/dist/alert.js //= ../../../node_...
'use strict'; const i18next = require('i18next'); const FilesystemBackend = require('i18next-node-fs-backend'); const alexia = require('../..'); const app = alexia.createApp(); // Initialize i18next internationalization i18next .use(FilesystemBackend) .init({ // debug: true, lng: 'en', fallbackLng: 'e...
#!/usr/bin/env python """ An example of using the backend """ import sys from pathlib import Path import numpy as np from matplotlib_backend_qtquick.backend_qtquick import ( NavigationToolbar2QtQuick) from matplotlib_backend_qtquick.backend_qtquickagg import ( FigureCanvasQtQuickAgg) from matplotlib_backend_qt...
var path = require('path') var express = require('express') var webpack = require('webpack') var config = require('../config') var opn = require('opn') var proxyMiddleware = require('http-proxy-middleware') var webpackConfig = process.env.NODE_ENV === 'testing' ? require('./webpack.prod.conf') : require('./webpack....
import {KEY, isModifierKey, isSelectKey, isVerticalMovementKey} from '../keyboard.js'; // Protects against multiple key events firing in a row without disallowing holding down the key const KEY_REPEAT_DELAY = 150; // Amount of time to wait results to load before showing the loading screen const LOADING_SCREEN_THRESHO...
module.exports = { name: 'server', initialize(application, container) { return container.lookup('service:server', null, { instantiate: false }) .then((Server) => { application.server = Server.create({ allowHTTP: application.config.allowHTTP, ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Compare different norm and SE schemes for TiramisuNet, weighted, dr 0.2.""" import os import numpy as np import seaborn as sns import pandas as pd import matplotlib.pyplot as plt from load_tfevents import func_load_event # %% Set input parameters # Set path to log di...
# Copyright 1999-2021 Alibaba Group Holding Ltd. # # 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...
const { test } = require('tap'); const boa = require('../../'); test('the `syscolor` module', t => { const colorsys = boa.import('colorsys'); const { len, min, max } = boa.builtins(); { const v = colorsys.rgb_to_hsv(0.2, 0.8, 0.4); console.log(v); t.ok(len(v) === 3); t.ok(min(v) === 0.388888888...
// backpack.config.js module.exports = { webpack: (config, options, webpack) => { // Perform customizations to config // Important: return the modified config config.entry = { index: './server/index.ts' } config.resolve = { extensions: [".ts", ".js", ".json"] } config.module....
const axios = require('axios').default const postSnakeReport = async (data): Promise<any> => { const response = await axios({ url: '/snake_report/', method: 'post', data, }) return response } export default postSnakeReport
var MediaLibraryCategoryPanel = function(title, category, query){ PanelTools.setupDom(this); this.category = category; var mainTitle = document.createElement('div'); mainTitle.innerHTML = title; this.dom.titleText.appendChild(mainTitle); Router.route(this, [ 'ready', 'requestMusicPanel', ]); ...
'use strict'; var common = require('../common'); var assert = require('assert'); var path = require('path'); var Buffer = require('buffer').Buffer; var fs = require('fs'); common.refreshTmpDir(); var fn = path.join(common.tmpDir, 'write-string-coerce.txt'); var data = true; var expected = data + ''; fs.open(fn, 'w',...
const init = require('./init'); const nvtree = require("ndtreejs").ndcls; const nao = require("not-and-or") const cond_util = require('./cond') const cmmn = require('./cmmn') ///// function instance_to_history(instance) { let history = JSON.stringify(instance) if(history.state === 'rejected') { his...
from django import template register = template.Library() @register.filter def previous(some_list, current_index): """ This function returns the previous element of the list using the current index if it exists. Otherwise returns an empty string. """ try: some_list = list(some_list) ...
password="pbkdf2(1000,20,sha512)$b4fdaef446b7cc45$f9feb64973b31398b13a3e429d096c85f10e5f5d"
# coding: utf-8 # # Copyright 2017 The Oppia 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 requi...
# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.4 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. """ This module defines internals of BLPAPI-Py and the following classes: - CorrelationId: a key to track requests a...
// this programming code purpose is for take-off, landing, and avoiding the collision // created by: Muhamad Rausyan Fikri - Tokyo Tech 'use strict'; var SerialPort = require('serialport'); // var five = require("johnny-five"); var keypress = require('keypress'); var RollingSpider = require("rolling-spider"); keypre...
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # See license.txt import frappe, os import unittest, email test_records = frappe.get_test_records('Email Account') from frappe.core.doctype.communication.email import make from frappe.desk.form.load import get_attachments from frappe.utils.file_man...
import Discrete from '../spaces/Discrete'; import { deepCopy, step } from '../util'; const emptyBoard = () => [ 0,0,0, 0,0,0, 0,0,0]; const lines = [ [0, 1, 2],// horizontal [3, 4, 5],// horizontal [6, 7, 8],// horizontal [0, 3, 6],// vertical [1, 4, 7],// vertical [2, 5, 8],// vertical [0, 4, 8],...
var searchData= [ ['q',['Q',['../classlarcfm_1_1_tangent_line.html#a9ca5304292d530e04255231c5732649f',1,'larcfm::TangentLine']]], ['quad',['Quad',['../classlarcfm_1_1_quad.html#a406bbd76babcdea6a0912483631f24c3',1,'larcfm::Quad::Quad()'],['../classlarcfm_1_1_quad.html#a38c1001d218d7ae2056c3c8c08eb4c84',1,'larcfm::Q...
/* eslint-disable camelcase */ import { mount as enzymeMount } from 'enzyme'; import { Provider } from 'react-redux'; import { act } from 'react-dom/test-utils'; import * as ReactRouterDOM from 'react-router-dom'; import configureStore from 'redux-mock-store'; import InventoryTable, { calculatePagination } from './Inv...
"""Group multiple equalizers together to act on all simultaneously.""" from .equalizer import EqualizerBase class EqualizerGroup(EqualizerBase): """ Group multiple equalizers together to act on all simultaneously. """ def __init__(self, equalizers): """ :param equalizers: List of Equa...
import { mount } from '@vue/test-utils' import AppButton from '@/components/atoms/AppButton.vue' describe('AppButton', () => { test('is handle click event ', () => { const wrapper = mount(AppButton) jest.spyOn(wrapper.vm, 'callback') wrapper.find('button').trigger('click') expect(wrapper.vm.callback)...
// export default (sequelize, DataTypes) => { // const User = sequelize.define('User', { // username: { // type:DataTypes.STRING, // unique: true // }, // password: DataTypes.TEXT, // }, // ); // User.associate = (models) => { // }; // return User; // }; con...
export const TOGGLE_MODAL = "TOGGLE_MODAL"; export const toggleModal = modal => ({ type: TOGGLE_MODAL, modal });
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = (intervals) => intervals.reduce((acc, interval) => { const { from } = interval; const [day, time] = [from.format('YYYY-MM-DD'), from.format('HH:mm')]; return Object.assign({}, acc, { [day]: [...new Set((acc[day] |...
(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){var n={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},r={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.lang("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_ي...
# coding:utf-8 import tensorflow as tf import numpy as np x_data = np.random.rand(100).astype(np.float32) y_data = x_data*0.1 + 0.3 # create tensorflow structure Weights = tf.Variable(tf.random_uniform([1],-1.0,1.0)) biases = tf.Variable(tf.zeros(1)) y = Weights * x_data + biases loss = tf.reduce_mean(tf.square(...
!(function(e, t) { "object" == typeof exports && "undefined" != typeof module ? (module.exports = t()) : "function" == typeof define && define.amd ? define(t) : (e.moment = t()); })(this, function() { "use strict"; function e() { return Yt.apply(null, arguments); } function t(e) { retu...
# Copyright 2021 Variscite LTD # SPDX-License-Identifier: BSD-3-Clause from pyvar.ml.engines.armnn import ArmNNInterpreter from pyvar.ml.utils.framerate import Framerate from pyvar.ml.utils.label import Label from pyvar.ml.utils.overlay import Overlay from pyvar.ml.utils.resizer import Resizer from pyvar.ml.utils.retr...
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-04-14 00:17 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('userapp', '0005_auto_20170331_0855'), ('chatapp', '...
/* Using MCP3008 10-bit A/D Converter Chip * * VDD and Vref are connected to Raspberry Pi 3.3 V * Channel 0 (pin 1) will be used for analog input voltage using single-ended mode * Since Vref is set to 3.3 V, max. analog input voltage * should not be greater than 3.3 V * * Read the MCP3008 datasheet how to co...
/** * @license Apache-2.0 * * Copyright (c) 2020 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...
'use strict'; module.exports = function (silent) { var winston = require('winston'); winston.emitErrs = true; var logger = new winston.Logger({ transports: [ new winston.transports.Console({ level: 'debug', handleExceptions: true, json: false, colorize: true }) ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('Organizer', '0005_student_semesteraccepted'), ] operations = [ migrations.AlterField( model_name='student', ...
import pygame, math, random from pygame.math import Vector2 as V2 import thorpy def refresh(): pos = pygame.mouse.get_pos() e_ship.set_center(pos) #ship follows mouse # process smoke smokegen1.kill_old_elements() smokegen2.kill_old_elements() pressed = pygame.mouse.get_pressed() if pressed[...
export { default as Tools } from "./Tools";
import unittest from nemex.similarities import JaccardSimilarity class TestJaccardSimilarity(unittest.TestCase): def setUp(self) -> None: self.sim = JaccardSimilarity() return None def test_OST(self): self.assertEqual(1, self.sim.find_tau_min_overlap(1, 1, 0.2)) self.assertE...
from distutils.version import StrictVersion __all__ = ['VERSION'] VERSION = StrictVersion('0.18')
import { every } from 'lodash/fp' const VALID_TYPES = new Set([ 'string', 'number', 'bool', 'option', ]) const validSetting = ({ type, options }) => { // General validation of settings if (!type || !VALID_TYPES.has(type)) return false // Type-specific validations if (type === 'option') return Array.i...
export default function(){ const token = localStorage.getItem('blogToken'); if(token){ const baseUri = token.split('.')[1]; const base64 = baseUri.replace('-','+').replace('_','/'); const payload = JSON.parse(window.atob(base64)); return { isAuthenticated: true, ...
const tf = require('@tensorflow/tfjs-node-gpu') const data = require('./data') const model = require('./model') const run = async ({ epochs, batchSize }) => { await data.loadData() const {images: trainImages, labels: trainLabels} = data.getTrainData() model.summary() const validationSplit = 0.15; await mod...
import unittest from tests.config import cfg from pycubool import io class TestMatrixDuplicate(unittest.TestCase): def setUp(self) -> None: matrices, self.total = cfg.get_test_cases("dup", 2) self.input_matrices_0, self.result_matrices = matrices[0], matrices[1] def test_duplicate(self): ...
import html from '/db/widget/core/html.js'; // import ReactDOM from '/db/widget/dep/react-dom.js'; // import Root from '/db/widget/component/root.js'; import ReactDOMServer from 'https://dev.jspm.io/react-dom/server'; function Root() { return html` <h1>plug n play</h1> `; } const rendered = ReactDOMServer.ren...
# Copyright (c) 2021, NVIDIA CORPORATION. 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 required by applic...
from app import create_app app = create_app(config_name="development") @app.route("/") def index(): return "<p>Find the app documentation <a href='https://jemostoremanager.docs.apiary.io/'>here</a></p>" if __name__ == "__main__": app.run()
# XXX - would be nice to be able pipe these through formatters from talon import Context, Module mod = Module() mod.list("abbreviation", desc="Common abbreviation") abbreviations = { "address": "addr", "administrator": "admin", "administrators": "admins", "advance": "adv", "advanced": "adv", ...
# -*- coding: utf-8 -*- # Copyright (c) 2020, ossphin and Contributors # See license.txt from __future__ import unicode_literals # import frappe import unittest class TestPSOF(unittest.TestCase): pass
class UnexpectedParameter extends Error {} class S3 { constructor(config) { this.config = config this.cache = {} } _log(message) { if( this.config.debug ) { console.log(message) } } _mergeParams(params) { return Object.assign({}, this.config.params, params) } _checkPath(param...
#!/usr/sbin/python3 # # pv_analysis.py # Return the total energy generated over a certain time def total_energy(data, **kwargs): if 'hdr' in kwargs: hdr = kwargs['hdr'] else: headings = ['ac power', 'total_ac_power'] for heading in headings: if heading in data: ...
const fs = require('fs-extra'); const path = require('path'); const config = JSON.parse(fs.readFileSync(path.join(__dirname, '../config.json')).toString()); const aws = require('aws-sdk'); const s3 = new aws.S3({ endpoint: config.aws.endpoint, accessKeyId: config.aws.accessKeyId, secretAccessKey: config.aw...
import { Component, Element, Event, Method, Prop, State, Watch, h } from '@stencil/core'; import { focusVisible } from '../../utilities/focus-visible'; import { clamp } from '../../utilities/math'; /** * @since 2.0 * @status stable * * @part base - The component's base wrapper. */ export class Rating { ...
(function () { angular .module('app.pages.home', ['ngRoute']) .config(['$routeProvider', function($routeProvider) { $routeProvider.when('/home', { templateUrl: 'app/pages/home/home.tpl.html', }) }]) })()
const url = 'https://social-v1-app.herokuapp.com'; // const url = 'http://localhost:5000'; export default url;
const FACE={FRONT:1,BACK:2,RIGHT:4,LEFT:8,TOP:16,BOTTOM:32} const VERTEX={FRONT:[7,5,1,3],BACK:[2,0,4,6],RIGHT:[6,4,5,7],LEFT:[3,1,0,2],TOP:[2,6,7,3],BOTTOM:[0,1,5,4]} const OFFSET=[{x:0,y:0,z:0},{x:0,y:0,z:1},{x:0,y:1,z:0},{x:0,y:1,z:1},{x:1,y:0,z:0},{x:1,y:0,z:1},{x:1,y:1,z:0},{x:1,y:1,z:1}];function Node(x,y,z,typ...
# coding: utf-8 import numpy as np import pandas as pd ################################################## # メイン ################################################## if __name__ == '__main__': dates = pd.date_range('20130101', periods=6) df = pd.DataFrame(np.random.randn(6, 4), index=dates, columns=list('AB...
import isPlainObject from "../other/isPlainObject"; /** * @description * @export * @param {*} reducer 处理函数 * @param {*} preloadedState 默认值,优先级高于 reducer 中的 * @param {*} enhancer 中间件 * @returns {*} */ export function createStore(reducer, preloadedState, enhancer) { // 如果第二个参数没有传 preloadedState,而是直接传 function ...
# Copyright 2021 The TensorFlow 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 required by applica...
import React from "react"; import Container from "@material-ui/core/Container"; import TextField from "@material-ui/core/TextField"; import Button from "@material-ui/core/Button"; export const WorkAddress = ({ formData, setForm, navigation }) => { const { address, city, state, zip } = formData; return ( <Conta...
/** * @license Hyphenopoly 4.10.0 - client side hyphenation for webbrowsers * ©2021 Mathias Nater, Güttingen (mathiasnater at gmail dot com) * https://github.com/mnater/Hyphenopoly * * Released under the MIT license * http://mnater.github.io/Hyphenopoly/LICENSE */ /* globals Hyphenopoly:readonly */ ((w, o) => ...
let words = [ 'hangman', 'simple', 'programming', 'cookie', 'developer' ]; function game() { let searchWord = words[Math.floor(Math.random() * words.length)].split(''); // let searchWord = words[2].split(''); let inputWord = '_ '.repeat(searchWord.length); let err = ''; let repeat = true; let lives = 6; wh...
#first in first out class Queue: def __init__(self): self.items = [] def enqueue(self, item): return self.items.insert(0, item) #takes an item and insert that item into the 0th index of the list #the runtime is O(n), or linear time def dequeue(self): if s...
const { Command } = require('discord.js-commando'); const fetch = require('node-fetch'); const { MessageEmbed } = require('discord.js'); const { botname, botimage } = require('../../config'); module.exports = class hentaiCommand extends Command { constructor(client) { super(client, { name: 'th...
window.VaadinSelectSuites = [ 'select-test.html', 'renderer.html', 'scrollable-viewport-test.html', 'animations-test.html' ];
import { createElement } from '../helpers/domHelper'; export function createFighterPreview(fighter, position) { const positionClassName = position === 'right' ? 'fighter-preview___right' : 'fighter-preview___left'; const fighterElement = createElement({ tagName: 'div', className: `fighter-preview___root ${...
import random as rnd from PIL import Image, ImageColor, ImageFont, ImageDraw, ImageFilter def generate( text, font, text_color, font_size, orientation, space_width, character_spacing, fit, word_split, stroke_width=0, stroke_fill="#282828", ): if orientation == 0: ...
init(); async function init() { if (location.search.split("=")[1] === undefined) { const workout = await API.getLastWorkout(); console.log("workout"); console.log(workout); if (workout) { location.search = "?id=" + workout._id; console.log("TEST in if workout"); } else { documen...
import styled from "styled-components"; export const HeaderContainer = styled.header` display: flex; align-items: center; justify-content: center; padding: 3.5rem 5rem; width: 100%; background-color: ${(p) => p.theme.colors.background}; filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25)); @media ...
import React from 'react' import PropTypes from 'prop-types' import { css, keyframes } from 'emotion' export function IconFork (props) { const {className = '', iconTitle = 'Fork', width = 14, height = 14, fill = '#000'} = props return ( <svg xmlns='http://www.w3.org/2000/svg' className={className} width={widt...
from django.contrib import admin from .models import GarbageSellModel # Register your models here. admin.site.register(GarbageSellModel)
/* * JavaScript Load Image 1.10.0 * https://github.com/blueimp/JavaScript-Load-Image * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT license: * http://www.opensource.org/licenses/MIT */ /*jslint nomen: true */ /*global define, window, document, URL, webkitURL, Blob, File,...
import parseUnit from 'parse-unit' import { h } from 'preact' import enumerateDevices from 'enumerate-devices' export const functionalSwitch = (key, hash) => (hash[key] || (()=>null))() export const getCSSValue = (expectedUnit, cssUnit) => { const [value, resUnit] = parseUnit(cssUnit) if (resUnit !== expectedUnit...
var searchData= [ ['next',['next',['../classdedge.html#ab45c4e6fb767694b6bfcc20a6883630c',1,'dedge::next()'],['../classdface.html#a6f99b54afadf9f647d6d6d418c2cb2ae',1,'dface::next()']]], ['num_5fedges',['num_edges',['../classdedges.html#a79e3d68b1af70c34fcda6552302afe3a',1,'dedges']]] ];