text
stringlengths
3
1.05M
require('isomorphic-fetch'); const dotenv = require('dotenv'); const Koa = require('koa'); const next = require('next'); const { default: createShopifyAuth } = require('@shopify/koa-shopify-auth'); const { verifyRequest } = require('@shopify/koa-shopify-auth'); const { default: Shopify, ApiVersion } = require('@shopify...
module.exports = { plugins: [ { resolve: `gatsby-theme-gine-blog`, options: { configTable: 'https://www.notion.so/happy0101/c25e538627e342cc9d91bd3f4be9e27e?v=5eba2e73e33e4e37b18dfc803544c1e2' } }, { resolve: `gatsby-source-notion-database`, options...
# # @lc app=leetcode id=937 lang=python3 # # [937] Reorder Data in Log Files # # https://leetcode.com/problems/reorder-data-in-log-files/description/ # # algorithms # Easy (54.14%) # Likes: 287 # Dislikes: 853 # Total Accepted: 52.4K # Total Submissions: 96.8K # Testcase Example: '["dig1 8 1 5 1","let1 art can",...
import {speech} from './tts'; import {strings} from './strings'; import {KeyboardInput} from './input.js'; import {KeyEvent} from './keycodes.js'; export class Buffer { constructor() { this.items=[]; this.cursor=0; this.input=new KeyboardInput(); this.input.init(); this.input.justPressedEventCallback=((key)...
/* jqPlot 1.0.8r1250 | (c) 2009-2013 Chris Leonello | jplot.com jsDate | (c) 2010-2013 Chris Leonello */ (function (a) { a.jqplot.CanvasTextRenderer = function (b) { this.fontStyle = "normal"; this.fontVariant = "normal"; this.fontWeight = "normal"; this.fontSize = "10px"; ...
/** * Where utility functions are * @namespace Util */ Util = { //enums FEATURETYPE: { point: 0, lineString: 1, polygon: 2, multiPolygon: 3, }, /** * What is the best latLng point for a GeoJSON feature? * @memberof Util * @method getLatLngFro...
(function() { // mnemonics is populated as required by getLanguage var mnemonics = { "english": new Mnemonic("english") }; var mnemonic = mnemonics["english"]; var seed = null; var bip32RootKey = null; var bip32ExtendedKey = null; var network = bitcoinjs.bitcoin.networks.bitcoin; var ad...
// @flow import * as React from 'react' import {Section, Label, SettingsGroup, Button} from './styled' import {Toggle} from '../components/Toggle' import {VersionSelector} from '../components/VersionSelector' import { typeHoverToggle, typeHoverToggleChange, flowToggle, flowToggleChange, tsToggle, tsToggleC...
import requests import urllib base_url = "https://api.hunter.io/v2/" def send_request(url, query_args, extractor): results = [] try: response = requests.get(url, params=query_args) data = response.json() results.extend(extractor(data)) except Exception as e: # import pdb;...
Vue.component('snake', { data: function () { return { lives: 3, showComponent: true, setInterval: null, direction: 'left', startTimeInterval: 120, score: 0, snake: { shakeLength: 3, body: [thi...
/* eslint-disable import/prefer-default-export */ import needle from 'needle'; import * as caching from './caching.js'; import datetime from '../datetime/index.js'; import log from '../log.js'; const CHROME_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0....
import React from 'react'; import logo from './logo.svg'; import './styles.css'; const Logo = () => { return ( <div className="logoContainer"> <img src={logo} className="logo" alt="logo" /> <div className="logoTitle">Rengorum</div> </div> ); }; export default Logo;
# Generated by Django 2.2.8 on 2020-04-21 15:22 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('implant', '0003_auto_20200421_1711'), ] operations = [ migrations.RemoveField( model_name='historic...
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from 'vue' import App from './App' import router from './router' import './lib/mui/dist/css/mui.min.css' Vue.config.productionTip = false /* eslint-disable no-new */ v...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon May 18 17:54:14 2020 # Tout d'abord demandez la génération d'une API_KEY (une clé) dans votre compte SketchEngine : # https://www.sketchengine.eu/documentation/api-documentation/#toggle-id-1 (Authentification) # Pour plus d'infos sur les méthodes disp...
# Copyright (c) 2011 Google Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list of conditions and the ...
// @flow const ClassicSelect = { styleOverrides: { icon: { color: 'var(--yoroi-comp-menu-icon)', right: '15px', }, }, defaultProps: { notched: false, }, }; const ModernSelect = { styleOverrides: { icon: { color: 'var(--yoroi-comp-menu-icon)', right: '15px', }, },...
__report = {"info":{"file":"/Users/flunette/dev/dsc-report/design-storage-client/src/components/ToolkitFormImage.js","fileShort":"components/ToolkitFormImage.js","fileSafe":"components_ToolkitFormImage_js","link":"files/components_ToolkitFormImage_js/index.html"},"complexity":{"methodAggregate":{"cyclomatic":4,"cycloma...
########################################################################## # Copyright 2016-2017 Intel Corporation # # 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/li...
var express = require('express'); var router = express.Router(); /* GET search page. */ router.get('/', function(req, res, next) { res.render('index', { title: 'Search' }); }); /* GET url_feeder page. */ router.get('/url_feeder', function(req, res, next) { res.render('url_feeder', { title: 'URL Feeder' }); }); /...
var callbackArguments = []; var argument1 = true; var argument2 = ["%","PG[E","(:","N!+V","A","`","Q<mmFh"]; var argument3 = 1.2915361572360492e+308; var base_0 = ["!","V","9","a","X","$e4","n "] var r_0= undefined try { r_0 = base_0.filter(argument1,argument2,argument3) } catch(e) { r_0= "Error" } function seria...
// import * as wasm from "hello-wasm-pack"; // wasm.greet(); // import { // Universe // } from "wasm-gamo-of-life"; // // const pre = document.getElementById("game-of-life-canvas"); // const universe = Universe.new(); // // function renderLoop() { // pre.textContent = universe.render(); // universe.tick();...
// 测试链地址: http://120.79.187.5:8689/v1 // test:"http://192.168.52.130:8689/v1" module.exports = { node_config:{ base_url:"http://120.79.187.5:8689/v1" }, keystore_pwd:'DZS113155' } // public_key: 04be15872a2e4d9c9c3b5b78007c1a794ba39cfa601fcbbece4f7b92901bd4e7d8d5b7299a1b42e1e837f9655047e343fa330af...
// Copyright IBM Corp. 2016. All Rights Reserved. // Node module: microgateway // US Government Users Restricted Rights - Use, duplication or disclosure // restricted by GSA ADP Schedule Contract with IBM Corp. var logger = require('apiconnect-cli-logger/logger.js') .child({ loc: 'microgateway:datastore:server...
var searchData= [ ['lsquic_5flogger_5ftimestamp_5fstyle',['lsquic_logger_timestamp_style',['../lsquic_8h.html#ac4584806627d352797a2e0cfae2e6235',1,'lsquic.h']]], ['lsquic_5fversion',['lsquic_version',['../lsquic_8h.html#a2633ae9ee8d564f4c499f6eb0913d4db',1,'lsquic.h']]] ];
var searchData= [ ['default_5fmax_5ffee',['DEFAULT_MAX_FEE',['../df/d1d/f__nano__crypto__util_8h.html#aceea65d700e3fdf01ccfe93e911e922d',1,'f_nano_crypto_util.h']]], ['derive_5fxpriv_5fxpub_5fdyn_5fout_5fbase58',['DERIVE_XPRIV_XPUB_DYN_OUT_BASE58',['../d0/da6/f__bitcoin_8h.html#a3a71e8f0b1818a242e51a65da0d2c52a',1,...
# test asynchat from test import support from test.support import socket_helper from test.support import threading_helper import errno import socket import sys import threading import time import unittest import unittest.mock import warnings with warnings.catch_warnings(): warnings.simplefilter('ignore', Depreca...
// Components import './components.js'; // Routes import './routes.js'; // import './dialogFlow.js'; //Meteor chatbot import './chatbot-meteor/index.js' //Apollo chatbot import './chatbot-apollo/index.js' // const dialogflow = require('dialogflow'); // const config = require('../config/keys'); // const { ApolloSer...
'use strict'; /** @namespace DevKit */ var DevKit; (function (DevKit) { 'use strict'; DevKit.FormBookableResourceCategoryAssn_Information = function(executionContext, defaultWebResourceName) { var formContext = null; if (executionContext !== undefined) { if (executionContext.getFormContext === undefined) { ...
var actividad_misionera = new BASE_JS('actividad_misionera', 'actividad_misionera'); var divisiones = new BASE_JS('divisiones', 'divisiones'); var paises = new BASE_JS('paises', 'paises'); var uniones = new BASE_JS('uniones', 'uniones'); var misiones = new BASE_JS('misiones', 'misiones'); var distritos_misioneros = new...
from nintendo.nex import kerberos, streams as streams_nex from anynet import udp, tls, websocket, util, \ scheduler, crypto, streams, queue import contextlib import hashlib import struct import random import socket import anyio import zlib import hmac import time import logging logger = logging.getLogger(__name__) ...
# -*- coding: utf-8 -*- # # GoFlow documentation build configuration file, created by # sphinx-quickstart on Sun Jul 13 06:04:29 2008. # # This file is execfile()d with the current directory set to its containing dir. # # The contents of this file are pickled, so don't put values in the namespace # that aren't pickleab...
const assertRevert = require('./helpers/assertRevert').assertRevert; const fromAscii = require('./helpers/ascii').fromAscii; const toAscii = require('./helpers/ascii').toAscii; var Storage = artifacts.require('Storage.sol'); contract('Storage', function(accounts) { const writer = 5; const keyOne = web3.utils.toHe...
import { expect } from 'chai'; import extractUrlsFromMarkdown from './../src/extractUrlsFromMarkdown'; describe('extractUrlsFromMarkdown()', () => { it('extracts URLs from image definition', () => { expect(extractUrlsFromMarkdown('![Image description](http://gajus.com)')).to.deep.equal(['http://gajus....
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.loadConfig = void 0; const debugFactory = require("debug"); const path = require("path"); const _merge = require("lodash.merge"); // Use vendored and patched nconf without yargs and with our custom TRUE/FALSE logic in env.ts file const...
/** * * CloudinaryLoaderComponent * */ import React from 'react'; import Dropzone from 'react-dropzone'; import request from 'superagent'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import ErrorBar from '../ErrorBar'; const CLC = styled.div` border-radius: 10px; input { ...
# Generated by Django 3.2.7 on 2021-10-18 21:08 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('www', '0008_auto_20211004_2033'), ] operations = [ migrations.CreateModel( name='MOTD', fields=[ ('i...
# 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, distribute, sublicense, and/or # sell co...
import { Component } from 'react' import PropTypes from 'prop-types' import interact from 'interactjs' import moment from 'moment' import { _get, deepObjectCompare } from '../utility/generic' import { composeEvents } from '../utility/events' import { defaultItemRenderer } from './defaultItemRenderer' import { ...
# Copyright (c) 2013 OpenStack, LLC. # # 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 agreed to in wr...
/* * 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 React from "react"; import ReactDOM from "react-dom"; import "./index.css"; import App from "./App"; import 'semantic-ui-css/semantic.min.css'; import reportWebVitals from "./reportWebVitals"; ReactDOM.render( <React.StrictMode> <App /> </React.StrictMode>, document.getElementById("root") ...
import time from exchangelib.errors import ErrorInvalidSubscription from exchangelib.folders import Inbox from exchangelib.items import Message from exchangelib.properties import StatusEvent, CreatedEvent, ModifiedEvent, DeletedEvent from .test_basics import BaseItemTest from ..common import get_random_string class...
import argparse import json import os from logging import INFO, basicConfig, getLogger import pandas as pd import requests from auth_token import get_auth_token from authors import get_authors from bibtex import get_bibtexs logger = getLogger(__name__) LOG_FMT = "{asctime} | {levelname:<5s} | {name} | {message}" basi...
/** * Module dependencies. */ var url = require('url') , qs = require('querystring') /** * Helpers method * * @param {String} name * @return {Function} * @api public */ function helpers (name) { return function (req, res, next) { res.locals.appName = name || 'App' res.locals.t...
module.exports = function(hljs) { return { contains: [ { className: 'meta', begin: /^([\w.-]+|\s*#_)=>/, starts: { end: /$/, subLanguage: 'clojure' } } ] } };
from core.himesis import Himesis import uuid class HBasicStateNoOutgoing2ProcDef(Himesis): def __init__(self): """ Creates the himesis graph representing the DSLTrans rule BasicStateNoOutgoing2ProcDef. """ # Flag this instance as compiled now self.is_compiled = Tr...
/* Code from https://www.formget.com/how-to-design-sidebar-sliding-contact-form-with-javascript/ */ /* ------------------------------------------------------------ Function to activate form button to open the slider. ------------------------------------------------------------ */ function open_panel() { slideIt(); v...
from functools import wraps from operator import xor from typing import List, Union, Callable, TypeVar, cast, Optional from . import constants def as_csv(l, sep=','): """Returns items in iterable ls as comma-separated string""" return sep.join(format(x) for x in l) MessageBuilderMethodT = TypeVar('MessageB...
import '@testing-library/jest-dom'; window.HTMLMediaElement.prototype.play = () => { /* do nothing */ };
module.exports = { plugins: [ require('autoprefixer')({ "browserslist": [ "> 1%", "last 2 versions" ] }) ] };
"use strict"; /** * Created by GROOT on 3/27 0027. */ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.config...
// import models const Product = require('./Product'); const Category = require('./Category'); const Tag = require('./Tag'); const ProductTag = require('./ProductTag'); // Products belongsTo Category Product.belongsTo(Category); // Categories have many Products Category.hasMany(Product); // Products belongToMany Tags...
var redis = require('redis'); var code = require('./code'); var client = redis.createClient(); var codes = code.getCode(20); client.rpush('codes', codes, function (err, res) { if(err){ console.error(err); return; } console.log(res); client.quit(); });
import React, { Component } from 'react' import ReactDOM from 'react-dom' import { BrowserRouter, Route, Switch } from 'react-router-dom' import LoginLayout from './layouts/LoginLayout'; class App extends Component { render () { return ( <BrowserRouter> <div> <LoginLayout /> </div...
export const ListingComponent = { templateUrl: 'chpl.listing/listing.html', bindings: { listing: '<', }, controller: class ListingComponent { constructor ($analytics, $localStorage, $log, $q, $state, $stateParams, $uibModal, DateUtil, authService, networkService, utilService) { 'ngInject'; t...
const { join, relative, resolve, sep } = require("path"); const webpack = require("webpack"); const nsWebpack = require("nativescript-dev-webpack"); const nativescriptTarget = require("nativescript-dev-webpack/nativescript-target"); const { nsReplaceBootstrap } = require("nativescript-dev-webpack/transformers/ns-repla...
function whetherEven(number){ if(number == 0){ return true; } if(number == 1){ return false } return whetherEven(number % 2 ) }
import { exec } from 'child_process'; import query from './psqlQuery'; import parseContainerFormat from './parseContainerFormat'; import { filterOneProperty, listOfVolumeProperties } from './volumeHistoryHelper'; import store from '../../renderer/store'; import { makeArrayOfObjects } from './processLogHelper'; /** * ...
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.15/esri/copyright.txt and http://www.arcgis.com/apps/webappbuilder/copyright.txt for details. //>>built define({"widgets/TimeSlider/nls/strings":{_widgetLabel:"Slajder vremena",enableTips:"Kliknite da biste...
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import sldStyle from './he_sld.scss'; class Slider extends Component { constructor(){ super(); this.state = ({ active: false, sliderLeft: 0, width: 0, value: 0 })...
#!/usr/bin/env python3 import sys import os import argparse import random import torch.cuda import torch.distributed import torch.multiprocessing from retinanet import infer, train, utils from retinanet.model import Model from retinanet._C import Engine def parse(args): parser = argparse.ArgumentParser(descripti...
""" lambdata - a collection of data science helper functions for lambda school """ import setuptools REQUIRED = [ "numpy", "pandas" ] with open("README.md", "r") as fh: LONG_DESCRIPTION = fh.read() setuptools.setup( name="lambdata-hakujouryu", version = "0.1.22", author = "H...
const ajv = require('../ajv'); const callButton = require('../../messenger/buttons/callButton'); describe('Buttons: call button', () => { let validate; beforeEach(() => { validate = ajv.compile(callButton); }); test('Valid message with phone number', () => { const givenMessage = {...
import OpcodeLabels from './opcode-labels.js' const isUndefined = (a) => typeof a === 'undefined' /** * Convert monitors from VM format to what the GUI needs to render. * - Convert opcode to a label and a category * @param {string} block.id - The id of the monitor block * @param {string} block.spriteName - Presen...
import React from "react"; import { connect } from 'dva'; import { Form, Input, Select, Button, Row, Col, Menu, Dropdown, Icon } from 'antd'; import { TableComponent, } from '../../components/common'; import commonStyles from "./CommonStyle.less"; import styles from "./AdminRoleStyle.less"; @connect(state => ({ ad...
class VnicToNetworkMapper(object): def __init__(self, quali_name_generator): self.quali_name_generator = quali_name_generator def map_request_to_vnics(self, requests, vnics, existing_network, default_network, reserved_networks): """ gets the requests for connecting netwoks and maps it t...
import { moduleForComponent, test } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; moduleForComponent('masonry-grid', 'Integration | Component | masonry grid', { integration: true }); test('it renders', function(assert) { // Set any properties with this.set('myProperty', 'value'); // Handle ...
function toggNav() { if (document.getElementById("mySidebar").style.width == "450px"){ document.getElementById("mySidebar").style.width = "0"; document.getElementById("main").style.marginLeft= "0"; } else{ document.getElementById("mySidebar").style.width = "450px"; document.getEle...
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") def gha_create_release_test_dependencies(): maybe( http_archive, name = "cgrindel_bazel_starlib", sha256 = "5b36e7f11bf0c1d52480f1b022430611b402b5424979f280f13...
/** * Copyright 2012-2021, Plotly, Inc. * All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ 'use strict'; var c = require('./constants'); var d3 = require('@plotly/d3'); var tinycolor = require('tinycolor2'); var Color...
"""create lock table Revision ID: af18f0b83286 Revises: 719dd2aacc9a Create Date: 2021-05-18 18:33:10.622364 """ from alembic import op # revision identifiers, used by Alembic. from yatai.db.stores.lock import Lock revision = "af18f0b83286" down_revision = "719dd2aacc9a" branch_labels = None depends_on = None def...
from collections import OrderedDict import os import socket import sys import time import click from . import server_backends from .middleware import ReverseProxied from .util import honcho_parse_env try: import importlib except ImportError: click.echo('You do not have importlib installed. Please install a '...
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular-devkit/build-angular'], plugins: [ require('karma-jasmine'), requir...
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.4.0 build: nightly */ YUI.add("json-stringify",function(b){var j=(b.config.win||{}).JSON,N=b.Lang,p=N.isFunction,I=N.isObject,v=N.isArray,k=Object.prototype.toString,C=(k.c...
const { EVENTS } = require('../../utils/constants'); const { compare } = require('../../utils/compare'); const triggersFunc = { [EVENTS.DEVICE.NEW_STATE]: (event, trigger) => { // we check that we are talking about the same event if (event.device_feature !== trigger.device_feature) { return false; ...
export default class Auth{ constructor(roles){ this.roles = roles; } title(){ return this.roles.map(role => role.title) } permissions(){ return this.roles.map(role => role.permissions) } can($permision){ let ret = ''; if (this.isAdmin()){ ...
# coding=utf-8 # -------------------------------------------------------------------------- # 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 ...
loadOnce("$Settings"); (function(){ window.$SettingValidator = class $SettingValidator{ static registerValidationType(name, func, requiredValueType){ //register new validation type this.validationTypes[name] = { func: func } if(requiredValueType) this.vali...
describe("generated parser", function() { function vary(names, block) { var values = { trackLineAndColumn: [false, true], cache: [false, true] }; function varyStep(names, options) { var clonedOptions = {}, key, name, i; if (names.length === 0) { /...
//给内置的Date对象新增方法Format Date.prototype.Format = function (fmt) { let o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 ...
// Copyright 2013 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of ...
module.exports = function(dbType) { if(dbType == 'mongodb'){ return { cookieSecret: 'myblog', db: 'db', host: 'localhost', port: 27017 }; }else if(dbType == 'mysql'){ return { cookieSecret: 'TomandJerry', host: 'lo...
import pandas as pd import matplotlib.pyplot as plt import regX #Der einzulesende Text, als exel df = pd.read_excel (r'C:\Studium\1.Semester_DS\Challenge Krankenkassenprämie\insurance.xlsx') result= regX.regX.calc(df) print("Funktion = m:",result[0],"und b:",result[1])
import React, { Component } from 'react'; import { SafeAreaView, StyleSheet, ScrollView, View, Text, Dimensions, Button, TouchableOpacity, } from 'react-native'; import { OT, OTSession, OTPublisher, OTSubscriber, OTSubscriberView, } from 'opentok-react-native'; import * as credentials from '....
import { createStore, applyMiddleware, compose } from "redux"; import thunk from "redux-thunk"; import rootReducer from "../reducers/rootReducer"; import electronMiddleware from "../middleware/electron"; import buildGameMiddleware from "../middleware/buildGame"; import musicMiddleware from "../middleware/music"; import...
from airflow.utils.trigger_rule import TriggerRule from airflow.providers.google.cloud.operators.dataproc import ( DataprocCreateClusterOperator, DataprocDeleteClusterOperator) from debussy_concert.core.motif.motif_base import PClusterMotifMixin class DataprocClusterHandlerMixin: def delete_dataproc_cluster(...
name = "graftpress_cli"
const fs = require('fs'); const mime = require('mime'); const rimraf = require('rimraf'); const resolve = require('path').resolve; const { ActionTypes, DEBUG_MODE, PROJECT_DIR } = require('../constants'); const { send } = require('./responses'); const { checkPath, onError } = require('./utils'); const readDir = (srcPa...
"use strict";var _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(h,i,n,a){function l(t,e){this.settings=null,this.options=h.extend({},l.Defaults,e),...
const { Router } = require('express'); const liveService = require('../../services/liveService'); const { ErrorHandler } = require('../../utils/error'); const auth = require('../middlewares/auth'); const route = Router(); module.exports = (router) => { router.use('/lives', route); route.get('/', async (req, res,...
const axios = require('axios') const link = 'https://arugaz.herokuapp.com' const fileyt = 'https://raw.githubusercontent.com/bintoro68/ujicoba/main/20201202_064739.jpg' const eroryt = 'https://raw.githubusercontent.com/bintoro68/ujicoba/main/20201202_065053.jpg' const cerpen = async () => new Promise((resolve, reject)...
from app import create_app,db from flask_script import Manager,Server from flask_migrate import Migrate, MigrateCommand from app.models import User, Pitches, Comments app = create_app('production') manager = Manager(app) manager.add_command('server',Server) @manager.command def test(): ''' run the unit tes...
// # Fixture Utils // Standalone file which can be required to help with advanced operations on the fixtures.json file const _ = require('lodash'); const Promise = require('bluebird'); const logging = require('@tryghost/logging'); const models = require('../../../models'); const baseUtils = require('../../../models/ba...
"""2-Sum Problem Package""" import bisect def two_sum(numbers, delta=10000): """2-Sum Problem in [-delta, delta]""" numbers.sort() two_sums = set() for x in numbers: # two-sum complement can only be in range [-delta -x, delta -x] lower = bisect.bisect_left(numbers, -delta - x) ...
var title = document.title; var circleField = document.querySelector('#circle'); circleField.innerHTML = '<div class="c100 p0 big orange">' + ' <span>0%</span>' + '<div class="slice">' + ' <div class="bar"></div>' + ' <div class="fill"></div>' + '</div>' + '</div>'; var circleField = document.querySele...
import logging import coloredlogs coloredlogs.install() class Logger: """ Logger can be used to log data in a standardized fashion """ @staticmethod def log_info(text) -> None: logging.info(text) @staticmethod def log_warning(text) -> None: logging.warning(text) @s...
module.exports = { siteMetadata: { title: `Wulpers Studio - UI/UX for digital projects`, author: { name: `Claudio Quiroz`, summary: `Ingeniero industrial y desarrollador frontend`, }, description: `We are a digital studio capable of transforming an idea into a mindblowing project.`, si...
'use strict'; module.exports = require('./components/ripple/Ripple.js');
import { useEffect } from 'react'; import { useDispatch } from 'react-redux'; import useInventoryWritePermissions from '../hooks/useInventoryWritePermissions'; import { ACTION_TYPES } from '../constants'; const PermissionLoader = () => { const { isLoading, hasAccess } = useInventoryWritePermissions(); const d...