text
stringlengths
3
1.05M
# -*- coding: utf-8 -*- import os from slack import WebClient Daren = WebClient(token=os.environ["SLACK_BOT_TOKEN"])
const crypto = require('crypto'); const request = require('request-promise-native'); const constants = require('./constants'); const current_window = require('electron').remote.getCurrentWindow(); exports.check_captcha = check_captcha; async function check_captcha() { let res = await request({ method: 'G...
import os import numpy as np from PIL import Image from typing import Any, Callable, List, Optional, Tuple, Union import torch from .vision import VisionDataset from .utils import download_url class PhotoTour(VisionDataset): """`Multi-view Stereo Correspondence <http://matthewalunbrown.com/patchdata/patchdata.h...
import mapper from 'modules/plane/mapper' import { socketMapper } from 'utils/socket' export default (io, socket) => socketMapper(socket, mapper, io)
// a leech market is "semi-realtime" and pulls out candles of a // database (which is expected to be updated regularly, like with a // realtime market running in parallel). const _ = require('lodash'); const moment = require('moment'); const util = require('../util'); const dirs = util.dirs(); const config = util.get...
/** * 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'; function _interopDefault (ex) { return (ex && (typeof ex === '...
#!/usr/bin/python import json import socket import ssl def get_certificate(host): context = ssl.create_default_context() conn = context.wrap_socket(socket.socket(socket.AF_INET), server_hostname=host) conn.connect((host, 443)) cert = conn.getpeercert() return cert hostname = input("Enter hostna...
""" Time: O(N) Space: O(N) """ class Solution(object): def majorityElement(self, nums): counter = {} for n in nums: if n not in counter: counter[n] = 0 counter[n] += 1 if counter[n]>len(nums)/2.0: return n return 0 """ Time: O(N) Space: ...
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; class Square extends React.Component { render() { return ( <button className="square" onClick={() => this.props.onClick()}> {this.props.value} </button> ); } } class Board extends React.Component { ...
from typing import List, Dict, Any, Tuple, Union, Optional from collections import namedtuple import torch import copy from ding.torch_utils import Adam, to_device from ding.rl_utils import q_nstep_td_data, q_nstep_td_error, q_nstep_td_error_with_rescale, get_nstep_return_data, \ get_train_sample from ding.model i...
module.exports = {"SeymourOne":{"normal":"SeymourOne-Regular.ttf","bold":"SeymourOne-Regular.ttf","italics":"SeymourOne-Regular.ttf","bolditalics":"SeymourOne-Regular.ttf"}};
import Icon from '@/components/Icons/Icon' Icon.register({ 'task-pause-line': { 'width': 24, 'height': 24, 'raw': `<rect x="3" y="2" fill="none" stroke-miterlimit="10" width="6" height="20" /><rect x="15" y="2" fill="none" stroke-miterlimit="10" width="6" height="20" />`, 'g': { 'stroke': 'curr...
""" https://leetcode.com/problems/matrix-diagonal-sum/ Given a square matrix mat, return the sum of the matrix diagonals. Only include the sum of all the elements on the primary diagonal and all the elements on the secondary diagonal that are not part of the primary diagonal. Example 1: Input: mat = [[1,2,3], ...
import React from 'react' import { Link, graphql } from 'gatsby' import { HelmetDatoCms } from 'gatsby-source-datocms' import Img from 'gatsby-image' import SiteNav from '../../components/navbar' import ArrowLink from '../../components/link-with-arrow' import TeamQuote from '../../components/team-quote' import CaseStud...
from django.contrib import admin from .models import Package, Stage admin.site.register(Package) admin.site.register(Stage)
""" The main pipeline logic, from where all other components are called. """ import imp import logging import atexit import os from tkp import steps from tkp.config import initialize_pipeline_config, get_database_config import tkp.db from tkp.db.image_store import store_fits from astropy.io.fits.hdu import HDUList from...
export const WSS_URL = 'wss://sp.callt.net:8082'; export const FS_DOMAIN = 'sp.callt.net'; // export const WSS_URL = 'wss://i.mailwalk.com:8082'; // export const FS_DOMAIN = 'i.mailwalk.com'; export const WEB_VISIT_EXTEN = 'webVisitor'; export const WEB_VISIT_PWD = 'abc_321_456';
import pandas as pd import numpy as np from scipy import interp from sklearn.linear_model import ElasticNetCV from sklearn.model_selection import train_test_split from sklearn.metrics import roc_curve, auc import matplotlib.pyplot as plt file1 = '../../data/FINAL_FEATURE_VECTOR_improved.csv' features_all = pd.read_csv...
import plotly.express as px dict_file = open("slowa2.txt", encoding="utf-8") dict = {} dict_stats = { 'count': 0, # number of words in the dictionary 'lengths': [0]*30, # number of words of given length 'len_max': 0, # shortest word's length 'len_min': 30, # longest word's length 'len_...
#ifndef PROCESS_H #define PROCESS_H #include "../stream/stream.h" BBString* bbGetEnv( BBString *var ); void bbSetEnv( BBString *var,BBString *val ); int bbExecFile( BBString *file ); BBStream* bbCreateProcess( BBString *cmd ); #endif
# Copyright 2018 U.C. Berkeley RISE Lab # # 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 agree...
const Base = require('./Base') const NamedAPIResource = require('./NamedAPIResource') const EncounterConditionValue = require('./EncounterConditionValue') class Encounter extends Base { constructor(client, obj) { super(client) if(this.check(obj)) { this.minLevel = obj.min_level ...
/** * @ngdoc object * @name angular.module.ng.$cacheFactory * * @description * Factory that constructs cache objects. * * * @param {string} cacheId Name or id of the newly created cache. * @param {object=} options Options object that specifies the cache behavior. Properties: * * - `{number=}` `capacity` — ...
'''Normalize image intensity for classification''' import enum import numpy as np import skimage from skimage.exposure import equalize_adapthist class NormalizeMethod(enum.Enum): '''The algorithm to use to normalize image planes''' '''Use a local adaptive histogram filter to normalize''' EQUALIZE_ADAPTHI...
""" Functions for applying functions that act on arrays to xarray's labeled data. """ import functools import itertools import operator from collections import Counter from typing import ( TYPE_CHECKING, AbstractSet, Any, Callable, Dict, Hashable, Iterable, List, Mapping, Optiona...
const Command = require('./command.js'); //const BatchList = require('../io_classes/batchList.js') const responses = require('../io_classes/responses.js'); const aliesLen = '--roll 0123'.length; const alieses = { '--roll char' : '--roll 4d6 -pick 3 -loop 6 -sum', '--roll stat' : '--roll 4d6 -pick 3 -sum', ...
db = require('../database.json') const massive = require('massive'); const mysql = require('mysql2'); module.exports = { connectDatabase() { return mysql.createConnection({ multipleStatements: true, host: db.host, database: db.name, user: db.user, password: db.password }); } ...
import time from sundry import local_time_string, utc_time_string def test_time_string(): t = time.time() lts = local_time_string(t) uts = utc_time_string(t) for ts in [lts, uts]: # basic check for a few fields assert ts[0:1] == "2" assert ts.find("-") == 4 assert ts.f...
var classSimTK_1_1Inertia__ = [ [ "Inertia_", "classSimTK_1_1Inertia__.html#aa2b329d1fc62a9c7b952d1b3c88dff71", null ], [ "Inertia_", "classSimTK_1_1Inertia__.html#a67cd5c9309fe5d443af3964bd030d2f9", null ], [ "Inertia_", "classSimTK_1_1Inertia__.html#af3e29578287d59727cfc7427d0047c88", null ], [ "Inert...
/* * Copyright 2007-8 Advanced Micro Devices, Inc. * Copyright 2008 Red Hat Inc. * * 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 * t...
# Licensed under the MIT license # http://opensource.org/licenses/mit-license.php # a backend to expose a YMAJ library via UPnP # see http://code.google.com/p/moviejukebox/ for # more info on YAMJ (Yet Another Movie Jukebox): # Copyright 2007, Frank Scholz <coherence@beebits.net> # Copyright 2009, Jean-Michel...
/* * This header is generated by classdump-dyld 1.5 * on Friday, April 30, 2021 at 11:37:09 AM Mountain Standard Time * Operating System: Version 13.5.1 (Build 17F80) * Image Source: /System/Library/PrivateFrameworks/TextInputUI...
#! /usr/bin/env python3 from tkinter import * from ConnectFour import ConnectFour class GUI: elementSize = 50 gridBorder = 3 gridColor = "#AAA" p1Color = "#4096EE" p2Color = "#FF1A00" backgroundColor = "#FFFFFF" gameOn = False def __init__(self, master): self.master = mast...
### # Copyright (c) 2002-2005, Jeremiah Fincher # Copyright (c) 2009, James McCoy # 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 copyr...
/*global $: false, kanso: true*/ /** * Widgets define the way a Field object is displayed when rendered as part of a * Form. Changing a Field's widget will be reflected in the admin app. * * @module */ /** * Module dependencies */ var sanitize = require('sanitize'), session = require('session'), _ = r...
require('dotenv').config(); const path = require('path'); const express = require('express'); const app = express(); const http = require('http').Server(app); const io = require('socket.io')(http); const axios = require('axios'); app.set('port', (process.env.PORT || 5000)); app.use('/public', express.static(path.res...
"""Test factories: they create objects for testing purposes. .. versionadded:: 7.0 """ from __future__ import generator_stop import re from sopel import bot, config, plugins, trigger from .mocks import MockIRCBackend, MockIRCServer, MockUser class BotFactory: """Factory to create bot. .. seealso:: ...
import { fs, Fs } from 'uv'; import { scandir } from "../src/fs.js" // Manually using uv directly. fs.scandir(new Fs(), ".", 0, (err, req) => { print(err, req) let iter = { next() { let entry = fs.scandirNext(req); return { done: !entry, value: entry } }, [Symbol.iterator]() { return this }...
'use strict' require('dotenv').config(); const dialogFlow = require('dialogflow'); const projectId = process.env.GCLOUD_PROJECT_ID; const googleAppCredentials = process.env.GOOGLE_APPLICATION_CREDENTIALS; const STREAM_TIMEOUT_SEC = 50; //----------------- class Conversation { constructor(original_uuid) { ...
from .ext import REST from .rest import RESTModule from .parsers import Parser, parse_params_with_parser, parse_params from .serializers import Serializer, serialize
// // LoseScene.h // word_warp // // Created by George Watson on 28/03/2020. // Copyright © 2020 George Watson. All rights reserved. // #import <SpriteKit/SpriteKit.h> #import "Button.h" #import "Settings.h" @interface LoseScene : SKScene { SKSpriteNode *title; Button *menu_btn; GameSettings *settings; } @e...
from __future__ import unicode_literals import boto3 import json import six from botocore.exceptions import ClientError from nose.tools import assert_raises from moto import mock_organizations from moto.organizations import utils from .organizations_test_utils import ( validate_organization, validate_roots, ...
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding index on 'MessageCountByMinute', fields ['date'] db.create_index('sentry_messagecountbyminute', ['d...
/** * main.js * http://www.codrops.com * * Licensed under the MIT license. * http://www.opensource.org/licenses/mit-license.php * * Copyright 2016, Codrops * http://www.codrops.com */ ;(function(window) { 'use strict'; // helper functions /** * enable/disable page scrolling. from http://stackoverflow...
$(function(){ // alert(); var base_url = $("body").data('base_url'); var token = $('#token').val(); function converToTime(time){ time = time.split(":"); return time[0] * 3600 + time[1] * 60; } function numberWithCommas(x) { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); } $('#cStar...
/* * U-boot - muldi3.c contains routines for mult and div * * Copyright (c) 2005-2007 Analog Devices Inc. * * SPDX-License-Identifier: GPL-2.0+ */ /* Generic function got from GNU gcc package, libgcc2.c */ #ifndef SI_TYPE_SIZE #define SI_TYPE_SIZE 32 #endif #define __ll_B (1L << (SI_TYPE_SIZE / 2)) #define __ll_...
from hl7parser.hl7 import HL7Delimiters, HL7Segment, HL7Message
# Copyright (c) 2021 PaddlePaddle 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 appli...
# -*- coding: utf-8 -*- """ Created on Mon Mar 2 15:14:06 2020 @author: TangYi python 3.6.8编写 """ import requests import urllib.request import imageio import os import sys import re import time import datetime imageio.plugins.ffmpeg.download() from moviepy.editor import * import threading # 本程序为不连接数据库的简易版本,用于下载一个或数...
/* * jdapimin.c * * Copyright (C) 1994-1998, Thomas G. Lane. * Modified 2009 by Guido Vollbeding. * This file is part of the Independent JPEG Group's software. * For conditions of distribution and use, see the accompanying README file. * * This file contains application interface code for the decompress...
# # 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 may n...
!function(window){"use strict";function minErr(module,ErrorConstructor){return ErrorConstructor=ErrorConstructor||Error,function(){var paramPrefix,i,SKIP_INDEXES=2,templateArgs=arguments,code=templateArgs[0],message="["+(module?module+":":"")+code+"] ",template=templateArgs[1];for(message+=template.replace(/\{\d+\}/g,f...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <arpa/inet.h> #include <sys/wait.h> #include <signal.h> #include <fcntl.h> #include <sys/stat.h> #include "master.h" // Gl...
"""(c) 2019 Liquid Instruments Pty. Ltd. """ import numpy as np import warnings warnings.filterwarnings("ignore") def calculate_risetime(amplitude_data, time_data): """ A helper function which calculates an approximation to waveform rise time. For demonstration purposes only. """ ...
import React, { useState, useEffect } from 'react' import { useHistory, useRouteMatch } from 'react-router-dom' import api from 'services/api'; import { heightInCm, weightInKg } from 'utils'; import { Container, Profile, Characteristc, Stats, Abilites, Types, } from './styles' export default () => { co...
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("a11yhelp", "es-mx", { title: "Instrucciones de accesibilidad", contents: "Contenidos de ayuda. Para cerrar este cuadro de...
#!/usr/bin/env python # coding: utf-8 # Initialize the OK tests to get started. # In[1]: from client.api.notebook import Notebook ok = Notebook('lab02.ok') _ = ok.auth(inline=True) # In[2]: import settings # **Submission**: This should be submitted in PDF format with Homework 2. # In[3]: a=5*13*31+2 b=2*...
# ----------------------------------------------------------------------------- # Copyright (c) 2014--, The Qiita Development Team. # # Distributed under the terms of the BSD 3-clause License. # # The full license is in the file LICENSE, distributed with this software. # ------------------------------------------------...
/*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
"""Define the NewtonSolver class.""" from __future__ import print_function import numpy as np from openmdao.solvers.solver import NonlinearSolver from openmdao.recorders.recording_iteration_stack import Recording from openmdao.utils.general_utils import warn_deprecation from openmdao.utils.mpi import MPI class New...
from random import choice, randint transitions = { 'airstrip': ('forest',), 'forest': ('airstrip', 'cave'), 'cave': ('forest', 'meadow'), 'meadow': ('cave',), } places = tuple(transitions.keys()) place = choice(places) alive = True while alive: print('You are at the', place) destinatio...
# coding=utf-8 # Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import re from pant...
import { getCharter, fetchSignatures } from "../../arweaveFns"; import Sign from "../../components/Sign"; import Signatures from "../../components/Signatures"; import HeadComponent from "../../components/Head"; import Button from "../../components/core/Button"; import { useAsync } from "react-async-hook"; import BarLoa...
import {ACCOUNT_SETTINGS} from './types'; import { addNewMessage } from './flashMessageAction'; import api from '../../../constants/api' export const fetchStore = (postData) => dispatch => { let body = { shopId:postData.shopId } fetch(api.more.viewStore.path, { method: 'POST', header...
import os import platform import json from json.decoder import JSONDecodeError from functools import wraps from dataclasses import dataclass, astuple, asdict @dataclass class FileEntry: path: str status: str = 'pending' digest: str = None name_new_txid: str = None name_new_nonce: str = None na...
#!/usr/bin/env python from tools.load import LoadMatrix import shogun as sg lm=LoadMatrix() traindna = lm.load_dna('../data/fm_train_dna.dat') testdna = lm.load_dna('../data/fm_test_dna.dat') parameter_list = [[traindna,testdna,4,0,False,False],[traindna,testdna,3,0,False,False]] def preprocessor_sortulongstring (fm...
//{{NO_DEPENDENCIES}} // Microsoft Developer Studio generated include file. // Used by mqupgrd.rc // // // changed for 1 to 7001 // #define IDS_OPEN_REG_KEY_ERROR 7001 #define IDS_QUERY_REG_KEY_ERROR 7002 #define IDS_OPEN_INF_ERROR 7003 #define IDS_SET_DIR_ID_ERROR 7...
/* * MapPage * * This is the first thing users see of our App, at the '/' route */ import React, { useEffect, memo } from 'react'; import { Helmet } from 'react-helmet-async'; import { useSelector } from 'react-redux'; import { useParams } from 'react-router-dom'; import { compose } from 'redux'; import { Flex, B...
(function () { 'use strict'; var app = angular.module('asv-directives', []); app.directive('fileUploader', function () { return { restrict: 'E', link: fileUploaderLink, scope: { accepts: "@accepts", postUrl: "@postUrl", ...
// This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the l...
// bundle: Pages___CatalogShared___eed372f5184d5ea57b448ca875046a77_m // files: modules/Pages/CatalogShared.js // modules/Pages/CatalogShared.js (Roblox.CatalogShared = Roblox.CatalogShared || {}), (Roblox.CatalogShared = (function () { function t(t, i, r, u) { t && r && r.length !== 0 && (r.css('cur...
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
import React from "react"; import "./Dashboard.scss"; import Header from "../../components/Header/Header"; import Sidenav from "../../components/Sidenav/Sidenav"; import A4Sheet from "../../components/A4-sheet/A4-sheet"; class Dashboard extends React.Component { constructor(props) { super(props); this.state...
/* * Copyright (C) Igor Sysoev * Copyright (C) Nginx, Inc. */ #include <ngx_config.h> #include <ngx_core.h> #include <ngx_event.h> //ngx_linux_sendfile_chain和ngx_writev_chain ngx_chain_t * ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) {//调用writev一次发送多个缓冲区,如果没有发送完毕,则返回剩下的链接结构头部. //ngx_chain_...
""" Django settings for typeidea project. Generated by 'django-admin startproject' using Django 1.11.29. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import ...
import re data = '''r Dave Martin 615-555-7164 173 Main St., Springfield RI 55924 davemartin@bogusemail.com Charles Harris 800-555-5669 969 High St., Atlantis VA 34075 charlesharris@bogusemail.com lsdkjfd ''' pattern = re.compile(r'\w+@\w+\.com') matches = pattern.finditer(data) for match in matches: print(mat...
import json from app.serializer.filters import * def get_json(): with open('data/example.json', 'r') as f: return json.loads(f.read()) def get_nda_data_by_action(nda, action_id): for item in nda: if item.get('key') == action_id: return item def get_property(nda_item, key): ...
import request from '@/utils/request' export function getList() { return request({ // url: '/table/list', url: '/node/list', method: 'get', }) }
/**************************************************************************** * boards/arm/stm32/stm32f4discovery/src/stm32_idle.c * * Copyright (C) 2012, 2015-2016 Gregory Nutt. All rights reserved. * Authors: Gregory Nutt <gnutt@nuttx.org> * Diego Sanchez <dsanchez@nx-engineering.com> * * Redist...
import React, { useEffect, useCallback, useState, useContext, createContext, useMemo, } from "react"; import Web3Modal from "web3modal"; import { ethers } from "ethers"; const context = createContext({}); const { Provider } = context; export const useEtherizer = () => { const stuff = useContext(context); ...
function loader(source) {//output.css return ( ` let style = document.createElement('style'); style.innerHTML = ${JSON.stringify(source)}; document.head.appendChild(style); ` ) } module.exports = loader;
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2018 The PIVX developers // Copyright (c) 2018 The paynay developers // Distributed under the MIT software license, see the accompanying // file COPYING or h...
MyLibrary.VERSION = "1.0"; <!--jdists encoding="base64">ok</jdists-->
module.exports = function(grunt) { /* Grunt configuration. */ grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), /* 1. Variable replacement into config.js file */ replace: { target: { options: { patterns: [ ...
import momentDefault from "moment"; import PropTypes from "prop-types"; import React, { useState, useEffect, useCallback } from "react"; import { StyleSheet, Text, TouchableOpacity, TouchableWithoutFeedback, View, Image, } from "react-native"; import Button from "./components/Button"; import Day from "./com...
import pytest from django.urls import reverse from palpod.users.models import User pytestmark = pytest.mark.django_db class TestUserAdmin: def test_changelist(self, admin_client): url = reverse("admin:users_user_changelist") response = admin_client.get(url) assert response.status_code ==...
//-------------------------------------------------------------------------------------------------- // Copyright (c) YugaByte, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy of the License at // // ht...
import React from "react"; import { View, TouchableOpacity, Text, StatusBar, AsyncStorage } from "react-native"; import { NavigationActions } from "react-navigation"; import FeatherIcon from "react-native-vector-icons/Feather"; import FontAwesomeIcon from "react-native-vector-icons/FontAwesome"; import { Dimens } from ...
import axios from 'axios'; import { baseUrl } from './../../constants'; import NodeFormData from 'form-data'; import stream from 'stream'; import {validateApiKeys, validateMetadata, validatePinataOptions} from '../../util/validators'; import { handleError } from '../../util/errorResponse'; export default function pinF...
# Copyright 2020 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: Apache-2.0 import os import os.path import sys try: import yaml except ImportError: print("Please install PyYAML") sys.exit(1) import zipfile def _read_yaml(manifest_path): with open(manifest_path) as f: try: ...
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), Schema = mongoose.Schema; /** * A Validation function for yahoo OAuth strategy properties */ var validateLocalStrategyProperty = function(property) { return ((this.provider !== 'local' && !this.updated) || property.length); }; /** ...
from __future__ import generator_stop from collections import defaultdict, namedtuple import uuid from xml.etree import cElementTree as ElementTree import datetime from django.conf import settings from django.utils.dateparse import parse_datetime from iso8601 import iso8601 from casexml.apps.case.const import CASE_A...
// Copyright 2019 The MediaPipe Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or a...
############################################################################### # # The MIT License (MIT) # # Copyright (c) Crossbar.io Technologies GmbH # # 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 ...
import axios from 'axios'; export default axios.create({ baseURL: 'https://identitytoolkit.googleapis.com/v1/accounts', headers: { 'Content-Type': 'application/json' }, });
TC.tool = TC.tool || {}; if (!TC.tool.ElevationService) { TC.syncLoadJS(TC.apiLocation + 'TC/tool/ElevationService'); } TC.tool.ElevationServiceIDENA = function (options) { const self = this; TC.tool.ElevationService.apply(self, arguments); self.url = self.options.url || '//idena.navarra.es/ogc/wps';...
function main() { let v3 = 0; do { function v4(v5,v6,v7,v8) { for (let v12 = 0; v12 < 4294967297; v12 = v12 + 2817931123) { const v13 = v12 - v12; for (let v17 = 0; v17 != 100; v17++) { const v18 = 268435456 >> v13; } } } const v23 = [28179...
# Copyright 2012 OpenStack Foundation # 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 requ...
(function () { 'use strict'; angular.module('BlurAdmin.pages.item', []) .config(routeConfig); /** @ngInject */ function routeConfig($stateProvider) { $stateProvider .state('item', { url: '/item', templateUrl: 'app/pages/item/item.html', title: 'การจัดการสินค้า', ...
import path from 'path'; const fs = require('fs'); import createSqlWasm from "sql-wasm"; // const filebuffer = fs.readFileSync(path.join(__dirname, '../src/utils/db/test.sqlite')); // (async () => { // const sql = await createSqlWasm({ wasmUrl: path.join(__dirname, "../src/utils/db/sqlite3.wasm" )}); // // ...