text
stringlengths
3
1.05M
# -*- coding: utf-8 -*- # license = http://opensource.org/licenses/MIT import requests import netaddr import json # INFOBLOX v1.2.1 # TODO: full list of fields for other object types # TODO: change schema to include extra information such as searchable fields # https://INFOBLOXURL/wapidoc/index.html#objects OBJECT_T...
describe('my orders', () => { const customer = { firstName: 'Charlie', lastName: 'Bucket', email: 'charlie.bucket+ci@commercetools.com', password: 'p@ssword', }; const orderDraft1 = { orderNumber: '1234', paymentState: 'Pending', shipmentState: 'Shipped', }; const orderDraft2 = { ...
const pify = require('pify'); const fs = pify(require('fs')); const readline = require('readline'); const googleAuth = require('google-auth-library'); const pifyNoErr = (fn) => (...args) => new Promise((resolve) => fn(...args, resolve)); const SCOPES = ['https://www.googleapis.com/auth/spreadsheets']; const tPath = '...
var path = require('path'); var express = require('express'); var app = express(); app.use(express.static(path.join(__dirname, 'dist'))); app.set('port', process.env.PORT || 8080); var server = app.listen(app.get('port'), function() { console.log('listening on port ', server.address().port); });
/** * Document : layout.js * Author : redstar * Description: Core script to handle the entire theme and core functions * **/ var Layout = function () { var layoutImgPath = 'img/'; var layoutCssPath = 'css/'; var resBreakpointMd = App.getResponsiveBreakpoint('md'); var ajaxContentSucces...
const jestConfig = require('./jest.config'); module.exports = { ...jestConfig, testMatch: ['**/*.spec.ts'] };
import nodeResolve from 'rollup-plugin-node-resolve'; import babel from 'rollup-plugin-babel'; import memory from 'rollup-plugin-memory'; const license = require('rollup-plugin-license'); const pkg = require('../package.json'); const licensePlugin = license({ banner: " omix v" + pkg.version + " http://omijs.org\r\nO...
/** * ==================================================================================================== * Name : Nabvar Script * File : Navbar.js * Version : 0.0.1 * ==================================================================================================== */ // Require import {Div, Button, ...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from . import __version__ as app_version app_name = "rent_sa" app_title = "Rent SA" app_publisher = "GreyCube Technologies" app_description = "Rent features" app_icon = "octicon octicon-home-fill" app_color = "brown" app_email = "admin@greycube.in" app_li...
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{283:function(A,e,t){"use strict";t.r(e);var a=t(0),r=t.n(a),n=t(274),i=t(276),o=t(4),c=t(54),d=t(1),m=t(294),l=t(275),f=d.default.div.withConfig({displayName:"page-sidebar-content__LatestPosts",componentId:"fwrclt-0"})(["display:grid;grid-template-columns:1fr;gri...
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ import { ViewStrings } from '../../strings'; const { Timefilter: strings } = ...
import CryptoJS from 'crypto-js' const KP = { key: '1234567812345678', // 秘钥 16*n: iv: '1234567812345678' // 偏移量 } function getAesString (data, key, iv) { // 加密 key = CryptoJS.enc.Utf8.parse(key) // alert(key); iv = CryptoJS.enc.Utf8.parse(iv) let encrypted = CryptoJS.AES.encrypt(data, key, { i...
const express = require('express'); const helmet = require("helmet"); const cors = require('cors'); const cookieParser= require("cookie-parser") const registerRouter = require('./users/registerRouter'); const loginRouter = require('./users/loginRouter'); const restrict = require('./middleware/restricted'); const us...
########################################################################## # If not stated otherwise in this file or this component's Licenses.txt # file the following copyright and licenses apply: # # Copyright 2018 RDK Management # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use th...
// @flow // @see https://developers.google.com/apps-script/reference/jdbc/jdbc-callable-statement interface gas$JdbcCallableStatement { addBatch(): void; addBatch(sql: string): void; cancel(): void; clearBatch(): void; clearParameters(): void; clearWarnings(): void; close(): void; execute(): boolean; ...
import os import sys import subprocess if sys.version_info.major < 3: import urllib as urllibrary else: import urllib.request as urllibrary from setuptools import setup, find_packages, Extension from Cython.Build import cythonize import numpy from UpdateOrbitFiles import updateOrbitFiles # Utility functi...
import { View, Text } from 'react-native'; import { StyleSheet } from 'react-native'; import Icon from 'react-native-vector-icons/Feather'; import { colors0, colors1 } from './ComponentStyles'; import utils from '../services/WEUtils'; const styles = StyleSheet.create({ cards: { flex: 1, flexDirection: 'row',...
/* Copyright (c) 2018 Francois Veux. 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 to use, copy, modify, merge, publish, dist...
import os import cv2 import numpy as np import pandas as pd import argparse from tqdm import tqdm from pathlib import Path from wide_resnet import WideResNet from keras.utils.data_utils import get_file from utils import load_data def get_args(): parser = argparse.ArgumentParser(description="This script evaluate...
import MonitoringServer from '../src/server/monitoring.server'; const monitoringServer = new MonitoringServer() monitoringServer.start()
const { prettyNum, prettyUsd, processMoon, } = require("../utils/utils.js"); // Crypto Price template exports.priceTemplate = (symbol, quote, name, rank) => { const { price, percent_change_24h: change24h, } = quote; return ` ${name}, CMC Rank.${rank}, ${symbol.toUpperCase()}/USD ${change24h < 0...
const {$$} = require('protractor'); function Blog() { this.articleTitles = $$('div > h2'); this.getArticleTitleByIdx = function(idx) { return this.articleTitles.get(idx).getText(); } } module.exports = new Blog();
# Given the mapping a = 1, b = 2, ... z = 26, and an encoded message, count the # number of ways it can be decoded. # For example, the message '111' would give 3, since it could be decoded as # 'aaa', 'ka', and 'ak'. # You can assume that the messages are decodable. For example, '001' is not # allowed. ALPHA...
/** * Copyright 2016 Telerik AD * ...
/** * @license * Copyright 2015 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 */ CLASS({ pack...
var cooking = require('cooking') var path = require('path') var config = require('../../build/config') cooking.set({ entry: { index: path.join(__dirname, 'index.js') }, dist: path.join(__dirname, 'lib'), template: false, format: 'umd', moduleName: 'ElSwitch', extends: ['vue2'], alias: config.alias,...
import React from "react"; export default function Css({ css }) { return <style dangerouslySetInnerHTML={{ __html: css }} />; }
"""empty message Revision ID: cf6c5b9c87d2 Revises: 1eaba328ce8e Create Date: 2020-06-12 11:27:07.958168 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'cf6c5b9c87d2' down_revision = '1eaba328ce8e' branch_labels = None depends_on = None def upgrade(): # ...
# Generated by Django 3.0.8 on 2020-07-27 00:57 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('authentication', '0006_auto_20200707_0201'), ] operations = [ migrations.AddField( model_name='workspace', name='bea...
const server = require('./api/server') const PORT = process.env.PORT || 3000 server.listen(PORT, () => { console.log(`server listening on port ${PORT}`) })
/*eslint-env mocha */ 'use strict'; describe('fixture', function () { it('require', function () { true.should.equal(true); }); });
import { UPDATE_CART} from './types'; import persistentCart from '../../persistentCart'; export const updateCart = (cartProducts) => dispatch => { let productQuantity = cartProducts.reduce( (sum, p) => { sum += p.quantity; return sum; }, 0); let totalPrice = cartProducts.reduce((sum, p) => { sum +...
import sys sys.path.append('../') import argparse from datasets.quora import QuoraQuestionsPairDataset from datasets.snli import SNLIDataset from datasets.ppdb import PPDBDataset import vars parser = argparse.ArgumentParser(description='This script is responsible for downloading ' ...
var annotate = require('annotate'); var is = require('is-js'); function zfill(amount, str) { var pad = ''; str += ''; while(pad.length < amount - str.length) pad += '0'; return pad + str; } module.exports = annotate('zfill', 'Fills `string` beginning with the given `amount...
import subprocess from warnings import warn import os DEBUG_MODE = False DEFAULT_ENV = os.environ.copy() class CalledProcessError(subprocess.CalledProcessError): def __str__(self): # Improve error msg with stdout and stderr def as_str(txt): if isinstance(txt, bytes): ...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * Yarn purchase order Schema */ var YarnPurchaseOrderSchema = new Schema({ orderNo: { type: Number, default: '', required: 'Please fill order number', trim: false }, styleNo: { type: Number,...
import React from 'react'; import PropTypes from 'prop-types'; import { Helmet } from 'react-helmet'; import { graphql } from 'gatsby'; import styled from 'styled-components'; import Layout from '../components/shared/Layout'; import EventsBanner from '../components/events/EventsBanner'; // eslint-disable-next-line impo...
/** * The copyright in this software is being made available under the BSD License, * included below. This software may be subject to other third party and contributor * rights, including patent rights, and no such rights are granted under this license. * * Copyright (c) 2013, Dash Industry Forum. * All rights re...
const helpers = require('../utils/helpers'); describe('Get blocks', () => { it('getBlock', (done) => { const mc = helpers.mc(); mc.world.getBlock(99999, 99999, 99999) .then(blockId => { expect(blockId).not.toBeNull(); expect(blockId).toEqual(0); }) .then(() => mc.close()) ...
/** * Allow the user to use shortcuts * @constructor */ function ShortcutHandler() { const keyCurrentlyPressed = []; // Special code-to-name mapping const keyMap = {"17":"CTRL"}; const listeners = []; /** * Return true if the key is pressed * @param name * @returns {boolean} */ function isKe...
#!/usr/bin/env python3 # Copyright (c) 2014-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the walletupgrade functionality. - 1) start one gamefragd node from an pre-HD wallet wallet.dat f...
(window.webpackJsonp=window.webpackJsonp||[]).push([[321],{693:function(t,s,a){"use strict";a.r(s);var n=a(42),e=Object(n.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"tls-libressl-example"}},[a("a",{staticCl...
# -------------- #Importing header files import pandas as pd import numpy as np import matplotlib.pyplot as plt #Path of the file path #Code starts here data = pd.read_csv(path) data.rename(columns={'Total' : 'Total_Medals'}, inplace=True) data.head(10) # -------------- #Code starts here data['Bet...
/* * Copyright © 2016-2017 The Thingsboard 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 applicabl...
/** * Created by PanJiaChen on 16/11/18. */ /** * Parse the time to string * @param {(Object|string|number)} time * @param {string} cFormat * @returns {string | null} */ export function parseTime(time, cFormat) { if (arguments.length === 0 || !time) { return null } const format = cFormat || '{y}-{m}-{...
import { Asset } from "./Asset.js"; import { AssetManager } from "./AssetManager.js"; function succeedingLoader(path, success, failure, progress) { success(new Asset( function () { return 1; }, 0 )); } test('successful get', () => { const am = new AssetManager(); a...
import fileinput, json, sys, logging, datetime, multiprocessing, Queue, urllib, requests, time from classes.hijack import * from classes.event import * from classes.origin import * from classes.prefix import * from classes.fields import * from netaddr import IPNetwork def bootstrap(): logging.info('Bootstrap\t Cre...
describe('User Preferences', () => { describe('Analytics and Improvement Program', () => { beforeEach(() => { cy.route2('GET', '/api/user/stats').as('getUserStats') cy.selectProviderNone() cy.visit('/userpreference') cy.get('.MuiFormLabel-root').should('have.text', 'Analytics and Improve...
var a00230 = [ [ "base", "a00230.html#a1cf25f35fa0cf3699933f625a9d06d3c", null ], [ "MemberSignature", "a00230.html#a76352572d9e4297acf6ae790056268a7", null ], [ "_TessMemberResultCallback_4_5", "a00230.html#adfea8b225a831cac86ef4f1fa7ebfb6e", null ], [ "Run", "a00230.html#a632ac4bb87c738f247a1fc0f65729...
export * from './input-text';
// THIS FILE IS AUTO GENERATED import { GenIcon } from '../lib'; export function GiDoubleDiaphragm (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M254.727 19.027c-1.302.008-2.603.028-3.903.057C171.402 20.884 94.76 62.85 52.18 136.602c-64.884 112.384-26.305 2...
function orbitalPeriod(arr) { const GM = 398600.4418; const earthRadius = 6367.4447; for(let i = 0; i < arr.length; i++){ let r = earthRadius + arr[i].avgAlt; let T = 2*Math.PI*Math.sqrt(Math.pow(r, 3)/GM); arr[i].orbitalPeriod = Math.round(T); delete arr[i].avgAlt; } return arr; } orbitalPe...
var callbackArguments = []; var argument1 = function (field) { callbackArguments.push(arguments) if (file.indexOf(field.jsFunctionName) < 0 && fieldIgnores.indexOf(field.jsFunctionName < 0)) { fieldsResult.push(field.jsFunctionName); } }; var argument2 = null; var argument3 = function (name) { ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{145:function(e,t,a){"use strict";a.r(t);var n=a(6),r=a.n(n),l=a(0),i=a.n(l),c=(a(165),a(150)),o=function(){var e;return i.a.createElement("div",{className:"hero is-large",id:"contactHero"},i.a.createElement("div",{className:"container",id:"contactContainer"},i.a....
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Mar 28 10:03:39 2022 @author: yanbing_wang """ # 1. Insert ground truth trajectories to ground_truth_trajectories collection # -- make ID temporary index # -- leave fragment_ids blank # 2. Insert raw trajectories to raw_trajectories collection # -- a ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2021/8/7 14:43 # @Author : Li Xiao # @File : AE_run.py import pandas as pd import numpy as np import argparse from tqdm import tqdm import autoencoder_model import torch import torch.utils.data as Data def setup_seed(seed): torch.manual_s...
import sys import torch import mir_eval import numpy as np from asteroid.data.avspeech_dataset import AVSpeechDataset def snr(pred_signal: torch.Tensor, true_signal: torch.Tensor) -> torch.FloatTensor: """ Calculate the Signal-to-Noise Ratio from two signals Args: pred_signal ...
"use strict"; module.exports = function (builder) { return builder.vars({ aString: builder.literal("abc"), aNumber: builder.literal(123), aBoolean: builder.literal(false), anObject: builder.literal({ foo: "bar", dynamic: builder.expression("data.name") ...
process.env.NODE_ENV = 'test';
"""Handles genomes (individuals in the population).""" from __future__ import division, print_function from itertools import count from random import choice, random, shuffle import sys from neatfast.activations import ActivationFunctionSet from neatfast.aggregations import AggregationFunctionSet from neatfast.confi...
/*! * Dashmix - v3.0.0 * @author pixelcave - https://pixelcave.com * Copyright (c) 2020 */ !function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{...
import os import sys import gym import eplus_env import warnings warnings.filterwarnings("ignore", category=UserWarning) import argparse import numpy as np import pandas as pd import copy import pickle import pdb import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.data as data impo...
import update from 'immutability-helper'; const ReactDataGrid = require('react-data-grid'); const React = require('react'); const { Editors, Formatters } = require('react-data-grid-addons'); const { AutoComplete: AutoCompleteEditor, DropDownEditor } = Editors; const { DropDownFormatter } = Formatters; // options for ...
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import memoize from 'memoize-one'; import GridTable from './GridTable'; import TableHeaderRow from './TableHeaderRow'; import TableRow from './TableRow'; import TableHeaderCell from './TableHeaderCell'; import TableCell from '....
import { all } from 'redux-saga/effects'; import { watchGetCharacters, watchGetCharacter, watchAddFavouriteCharacter, watchDeleteFavouriteCharacter, } from './characters'; import { watchGetCurrentUser, watchLoginUser } from './user'; const sagas = function* () { yield all([ watchGetCurrentUser(), wat...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
import template from './sw-extension-my-extensions-listing-controls.html.twig'; import './sw-extension-my-extensions-listing-controls.scss'; Shopware.Component.register('sw-extension-my-extensions-listing-controls', { template, data() { return { filterByActiveState: false, sele...
(function(apiUrl) { var uuid = null; var user_logged = null; function getMe() { return fetch(apiUrl + "/me") .then(function(response) { return response.json(); }) .then(function(user) { const $username = document.getElementById("current-user-username"); const $avatar...
var prefix1 = "/oa/work"; $(function () { load(); }); function load() { load1(); load2() } function load1() { $('#exampleTable') .bootstrapTable( { method: 'get', // 服务器数据的请求方式 get or post url: prefix1 + "/listTodoWork", // 服务器数据的加载地址 /...
import React from 'react' import { configure, shallow, mount } from 'enzyme' import renderer from 'react-test-renderer' import Slider from '../Rangeslider' import Adapter from '@wojtekmaj/enzyme-adapter-react-17' configure({ adapter: new Adapter() }) describe('Rangeslider specs', () => { it('should render properly'...
const Employee = require("./Employee"); class Engineer extends Employee { constructor (name, id, email, github) { super(name, id, email); this.github = github; } getRole(){ return "Engineer"; } getGithub(){ return this.github; } } module.exports = Engineer;
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _pure = require('recompose/pure'); var _pure2 = _interopRequireDefault(_pure); var _SvgIcon = require('material-ui/SvgIcon'); var _SvgIcon2 = _interopReq...
# 2020 CCC PROBLEM J3'S SOLUTION: # receiving input. N = int(input()) # creating an array to store the coordinates. colour_drops = [] # creating a for-loop to iterate for 'N' for i in range (N): # creating an object. drop = {} # receiving input regarding the coordinates. drop_input =...
import { expect } from 'chai'; import cheerio from 'cheerio'; import { loadFixture } from './test-utils.js'; import srcsetParse from 'srcset-parse'; // This package isn't real ESM, so have to coerce it const matchSrcset = srcsetParse.default; // Asset bundling describe('Assets', () => { let fixture; before(async...
class Employee { constructor() { this._workDays = []; this._salary = 0; } setName(name) { this._name = name; } getName() { return this._name; } setWorkDayS(workDays) { this._workDays = workDays; } getWorkDays() { return this._workDays; ...
var searchData= [ ['queue_992',['Queue',['../structjs_sub_options.html#aaf4b620d112a31f51a20389c5405805d',1,'jsSubOptions']]] ];
console.log(require('test-os-linux/package.json'));
// Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- info: > The production ExpressionStatement : [lookahead \notin {{, function}] Expression; is evaluated as follows: 1. Evaluate Expression. 2. Call GetValue(Result(1)). ...
/** * Select an option of a select element * @param {String} selectionType Type of method to select by (name, value or * text) * @param {String} selectionValue Value to select by * @param {String} selector Element selector */ export default (selectionType, se...
import { connect } from "react-redux"; import { selectImageAnnotationByUser } from "../../../actions"; import SVGScaledAnnotatedImage from "../SVGScaledAnnotatedImage"; import { ANNOTATION_DRAGLINE_WIDTH, ANNOTATION_LINE_WIDTH, OPTION_LABEL_SHOW_HOVER, OPTION_LABEL_SHOW_ALWAYS, DEFAULT_ANNOTATION_COLOR } from...
import React, { PureComponent, Fragment } from 'react'; import { connect } from 'dva'; import moment from 'moment'; import { Row, Col, Card, Form, Input, Select, Icon, Button, Dropdown, Menu, InputNumber, DatePicker, Modal, message, Badge, Divider, Steps, Radio, Checkbox, } from 'a...
""" Tests for contentstore/views/user.py. """ import json from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-user from cms.djangoapps.contentstore.tests.utils import CourseTestCase from cms.djangoapps.contentstore.utils import reverse_course_url from common.djangoapps.student...
# Copyright (C) 2016 Fan Long, Martin Rianrd and MIT CSAIL # Prophet # # This file is part of Prophet. # # Prophet 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 version 3 of the License, or # (at y...
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; var Icon = require('../Icon-1083255b.js'); var React = require...
/* jslint node: true */ 'use strict'; var cfg = require('../../../config.json'); // 质量换算半径 exports.massToRadius = function (mass) { return 4 + Math.sqrt(mass) * 6; }; // 重构Math.log函数 exports.log = (function () { var log = Math.log; return function (n, base) { //base为底数,n为真数,返回log(base)n的值 re...
import functools import torch.nn as nn from modules import SharedMLP, PVConv, PointNetSAModule, PointNetAModule, PointNetFPModule, PTConv __all__ = ['create_mlp_components', 'create_pointnet_components', 'create_pointnet2_sa_components', 'create_pointnet2_fp_modules'] def _linear_bn_relu(in_channels, out...
import React from "react"; import { Link } from "react-router-dom"; const Room = (props) => { const { _id, title, img1, des, type, price } = props.data; return ( <div className="col-md-4"> <div className="main-services"> <img src={img1} className="width-100" alt="pic" /> <h3> ...
const webpack = require('webpack'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); module.exports = { mode: 'pro...
(function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports", "jest-useragent-mock"], fac...
'use strict'; require('../setup'); import utils from 'web3-utils'; import Contracts from '../../src/artifacts/Contracts'; import encodeCall from '../../src/helpers/encodeCall'; import assertRevert from '../../src/test/helpers/assertRevert'; import shouldBehaveLikeOwnable from '../../src/test/behaviors/Ownable'; const...
console.log("执行了checkout.js"); Stripe.setPublishableKey('pk_test_h7ZrNphsJD6i9aUzKk5yp14a'); var $form = $('#checkout-form'); $form.submit(function(event) { $('#change-error').addClass('hidden'); $form.find('button').prop('disabled', true); Stripe.card.createToken({ number: $('#card-number').val()...
""" A binary tree is perfect if all the internal nodes have 2 children and all the leaves are at the same level """ class Node: def __init__(self, val): self.val = val self.left = None self.right = None # Returns depth of leftmost leaf def find_depth(root): d = 0 while root: ...
// THIS FILE IS AUTO GENERATED import { GenIcon } from '../lib'; export function GiFountain (props) { return GenIcon({"tag":"svg","attr":{"viewBox":"0 0 512 512"},"child":[{"tag":"path","attr":{"d":"M288.875 16.594c-23.342 22.17-40.225 48.12-50.5 77.906-9.354-18.433-21.854-35.043-37.438-49.844 9.606 23.365 16.495 48....
var mongoose = require("./mongo"); var schemaMailing = new mongoose.Schema({ email: [{ type: String }] }); var Mailing = mongoose.model("Mailing", schemaMailing); module.exports = Mailing;
''' This code implements a simple drive effect controling the amount of drive and gain. All the ajducements will be made purely from playing with fft of the incoming signal. ** Cliping the incoming data which are 16 bit ints in a certain value will have the same effect as a traditional analog effect pedal ...
console.error('console.error'); console.log('console.log'); console.warn('console.warn');
import { alpha } from '@mui/material'; import { makeStyles } from '@mui/styles'; const styles = makeStyles(theme => ({ gotchiWLineWrapper: { display: 'flex', alignItems: 'center', margin: '35px 0 4px', position: 'relative', '&:hover > div:not(:hover)': { opacity:...
#!/usr/bin/env python3 import argparse import logging import os import re import sys from playstore.playstore import Playstore # Logging configuration. logger = logging.getLogger(__name__) logging.basicConfig( format="%(asctime)s> [%(levelname)s][%(name)s][%(funcName)s()] %(message)s", datefmt="%d/%m/%Y %H:%...
client.on('interactionCreate', async interaction => { if (!interaction.isCommand()) return; if (interaction.commandName === 'ping') { await interaction.reply('Pong!'); } });
// Number milliseconds to wait for CSS resources to load. const numMillisecondsWait = 50; // We use requestAnimationFrame() calls to force the user agent to paint and give enough // time for FCP to show up in the performance timeline. Hence, set |numFramesWaiting| to // 3 and use that constant whenever the test needs ...