text
stringlengths
3
1.05M
""" Uses the EasyStatePattern module at http://code.activestate.com/recipes/576613/. """ import EasyStatePattern as esp # The context class (also serving as the Abstract State Class in GOF discussion) class Parent(object): moodTable = esp.StateTable('mood') def __init__(self, pocketbookCash, piggybankCash)...
from run_pipeline import run_pipeline from src.type_collector import TypeCollector from src.type_builder import TypeBuilder from src.type_checker import TypeChecker from src.tset_builder import TSetBuilder from src.tsets_reducer import TSetReducer from src.tset_merger import TSetMerger from src.cool_visitor import Form...
Clazz.declarePackage ("J.appletjs"); Clazz.load (["javajs.api.JSInterface", "JU.GenericApplet"], "J.appletjs.Jmol", ["java.util.Hashtable", "JU.PT", "J.awtjs2d.Platform", "JU.Logger", "$.Parser"], function () { c$ = Clazz.decorateAsClass (function () { this.htParams = null; Clazz.instantialize (this, arguments); }, J.a...
var classtthread_1_1lock__guard = [ [ "mutex_type", "classtthread_1_1lock__guard.html#a38708e6d5096f1777dbc3af1fbff74ca", null ], [ "lock_guard", "classtthread_1_1lock__guard.html#abcd8abdf2e9bb21836dbcce4a066961c", null ], [ "lock_guard", "classtthread_1_1lock__guard.html#a0e9d6acd7c9eb96212bf3be95818f07c"...
from colormath.color_conversions import convert_color from colormath.color_objects import LCHabColor,sRGBColor import sys if len(sys.argv) < 2: print 'specify theme name' sys.exit() else: theme_name = sys.argv[1] def tohex(l,c,h): rgb = convert_color(LCHabColor(l,c,h),sRGBColor) clamp = sRGBColor(rgb.clampe...
import pytest import tensorflow as tf from fm_zoo.common import EmbedFeatures, FieldAwareEmbedFeatures, FullyConnectedNetwork, LinearModel def test_linear_model(): x = tf.convert_to_tensor([[1, 2, 2], [0, 3, 2]], dtype="int64") m = LinearModel([3, 4, 5]) o = m(x) assert o.shape == (2, 1) def t...
let nock = require('nock'); module.exports.hash = "9bac0ca2daafba01efcbec476a0fb69a"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) .get('/common/discovery/instance') .query(true) .reply(200, {"tenant_discovery_endpoint":"htt...
# Supported Instructions: # add $d, $s, $t # 000000|rs[5]|rt[5]|rd[5]|00000|100000 # rd = rs + rt # sub $d, $s, $t # 000000|rs[5]|rt[5]|rd[5]|00000|100010 # rd = rs - rt # and $d, $s, $t # 000000|rs[5]|rt[5]|rd[5]|00000|100100 # rd = rs & rt # or $d, $s, $t # 000000|rs[5]|rt[5]|rd[5]|00000|100101 #...
""" Adapted from https://github.com/g-sam/polly Removed unused functionality; return sensor data from read() rather than transmit on MQTT. """ import machine import ustruct as struct import sys import utime as time def init_uart(x): uart = machine.UART(x, 9600) uart.init(9600, bits=8, parity=None, stop=1) ...
"""M2Crypto enhancement to xmlrpclib. Copyright (c) 1999-2003 Ng Pheng Siong. All rights reserved.""" import base64, string, sys from xmlrpclib import * import M2Crypto import SSL, httpslib, m2urllib __version__ = M2Crypto.version class SSL_Transport(Transport): user_agent = "M2Crypto_XMLRPC/%s - %s" % (__ver...
define("ace/snippets/tex",["require","exports","module"],(function(n,t,e){"use strict";t.snippetText="#PREAMBLE\n#newcommand\nsnippet nc\n\t\\newcommand{\\${1:cmd}}[${2:opt}]{${3:realcmd}}${4}\n#usepackage\nsnippet up\n\t\\usepackage[${1:[options}]{${2:package}}\n#newunicodechar\nsnippet nuc\n\t\\newunicodechar{${1}}{$...
#define _GNU_SOURCE #define _FILE_OFFSET_BITS 64 #define __MSVCRT_VERSION__ 0x0700 #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdint.h> #include <ctype.h> #include <errno.h> #include <fcntl.h> #include "utils.c" /** * Name........: gate * Autor.......: Jens Steube <jens.steube@gmail.com> ...
class Subtask: def __init__(self, key): self.key = key
'use strict'; var util = require('util'), path = require('path'), yeoman = require('yeoman-generator'), childProcess = require('child_process'), chalk = require('chalk'), _s = require('underscore.string'), scriptBase = require('../script-base'); var exec = childProcess.exec; var spawn = childProcess.spawn; var CloudF...
// // Copyright (c) 2016, Scientific Toolworks, Inc. // // This software is licensed under the MIT License. The LICENSE.md file // describes the conditions under which this software may be distributed. // // Author: Jason Haslam // #ifndef CREDENTIALHELPER_H #define CREDENTIALHELPER_H #include <QObject> #inc...
module.exports = function countCats(matrix) { const array = matrix.flat(); const cats = array.filter(item => item === '^^'); return cats.length; };
// // Copyright 2012 the original author or 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 ap...
export const gradeUtil = { getGradeScorePoint: (text) => { const reg = /[\u4e00-\u9fa5]/g; const symbolReg = /:/; return text.replace(reg, '').replace(symbolReg, ''); }, getNumberOfString(text) { return text.match(/\d+/g); }, getDoubleNumOfString(text) { return text.match(/\d+(.\d+)?/g); ...
'use strict'; angular.module('contacts').config(['$stateProvider', function($stateProvider) { $stateProvider. state('listContacts', { url: '/contacts', templateUrl: 'modules/contacts/views/list-contacts.client.view.html', controller: 'ContactsController' }); } ]);
''' orig author: Igor Maculan - n3wtron@gmail.com A Simple mjpg stream http server ''' import cv2 from http.server import BaseHTTPRequestHandler,HTTPServer import time capture=None imgN1=None imgN2=None def diffImg(t0, t1, t2): d1 = cv2.absdiff(t2, t1) d2 = cv2.absdiff(t1, t0) return cv2.bitwise_and(d1,...
# Copyright (C) 2019 The Raphielscape Company LLC. # # Licensed under the Raphielscape Public License, Version 1.c (the "License"); # you may not use this file except in compliance with the License. # import io import math import random import urllib.request from os import remove import requests from bs4 import Beaut...
require('dotenv').config(); const express = require('express'); const chalk = require('chalk'); const webpack = require('webpack'); const webpackMiddleware = require('webpack-dev-middleware'); const webpackHotMiddleware = require('webpack-hot-middleware'); const historyApiFallback = require('connect-history-api-fallbac...
import pytest import helpers import meshio netCDF4 = pytest.importorskip("netCDF4") test_set = [ helpers.tri_mesh, helpers.tri_mesh_2d, helpers.triangle6_mesh, helpers.quad_mesh, helpers.quad8_mesh, helpers.tri_quad_mesh, helpers.tet_mesh, helpers.tet10_mesh, helpers.hex_mesh, ...
#!G:\My Drive\Skolarbete\Programmering\Python\WeatherTimer\venv\Scripts\python.exe # $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $ # Author: Chris Liechti <cliechti@gmx.net> # Copyright: This module has been placed in the public domain. """ A minimal front end to the Docutils Publisher, producing HTML slides usi...
// // RNNetworkManager.h // CommonProject // // Created by Ming Wang on 2017/3/1. // Copyright © 2017年 oeasy. All rights reserved. // #import <Foundation/Foundation.h> #import <AFNetworking/AFNetworking.h> #import "RNRequest.h" NS_ASSUME_NONNULL_BEGIN typedef enum { CPRequestForGet, CPRequestForPost }CPRe...
/* * FreeRTOS Kernel V10.0.1 * Copyright (C) 2018 Amazon.com, Inc. or its affiliates. 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, includ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.bathtub = void 0; var bathtub = { "viewBox": "0 0 1792 1792", "children": [{ "name": "path", "attribs": { "d": "M1664 1088v192q0 169-128 286v194q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-118q-63 22-128 22h-768q-65 0-12...
var objPeople = [ { useremail: "melon1@gmail.com", password: "123", }, { useremail: "morris1@gmail.com", password: "654321", }, { useremail: "kimuli1@gmail.com", password: "forever", }, ]; function getInfo() { var useremail = document.getElementById...
import request from './requ' // 初始化 function materialList(kvs){ return request({ url:'/admin/xy/upload/list', method:'POST', kvs }) } // 删除功能 function delList(kvs){ return request({ url:'/admin/xy/upload/del', method:'get', kvs }) } // 上传图片 function updateImg(kvs){ return request({ ...
import React, {Component} from 'react' import {Button, Col, Form, Input, Row, Switch, Tooltip} from 'antd' import PropTypes from "prop-types"; import {PrivilegeUtils} from "../../utils/PrivilegeUtils"; import {privileges} from "../../constants/privileges-types"; import ComponentAuthority from "../ComponentAuthority"; ...
'use strict' /* eslint-env mocha */ const expect = require('chai').expect const URL = require('url').URL describe('env-var', function () { // Some default env vars for tests var TEST_VARS = { VALID_BASE_64: 'aGVsbG8=', // "hello" in base64 INVALID_BASE_64: 'a|GV-sb*G8=', STRING: 'oh hai', FLOAT: ...
XXXXXXXXXX XXXXXXXXXX XXXXXXXXXX XX XXXXXXXX XXXXXXXXXXXXXXXXX XXXXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXXXX XXXXXXXX XXXX XXXXXXXX XXXXXXXX XXX XXXXXXXXXX XXXXXXXXXX XXXX XXXX XXXX XXXXXXX XXX XXXXXXXXXXX XX XXX XX XXX XXXX XXX XXX XX XXXXX XXXX XXX XXXXXXXXXXX XXX XXX XXXXXXXXXXXXXXXX XXXXX XXXXX XXXXXXXXXXXXXXXXXXXXX...
import mongoose from 'mongoose'; const ExportBanListSchema = new mongoose.Schema({ name: { type: String, required: true }, config: { type: String, required: true }, owner: { type: String, required: true }, generatorStatus: { type: String, enum: ['queued', 'completed', '...
/* Copyright (C) 1995-2020 Free Software Foundation, Inc. This program 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 your option) any later version. This ...
g_db.quests[20416]={id:20416,name:"09",type:0,trigger_policy:0,on_give_up_parent_fail:1,on_success_parent_success:0,can_give_up:0,can_retake:1,can_retake_after_failure:1,on_fail_parent_fail:0,fail_on_death:0,simultaneous_player_limit:0,start_on_enter:{world:1,east:-9999.00000000,bottom:-9999.00000000,south:-9999.000000...
from .base import NowDateTime,Base from bson import ObjectId class Month(Base): def __init__(self,db,prefix): super(Month, self).__init__(db,prefix + "_month")
import React, { Component } from "react"; import PropTypes from "prop-types"; import NotificationsScreen from "./presenter"; import { Notifications } from "expo"; class Container extends Component { static propTypes = { notifications: PropTypes.array, getNotifications: PropTypes.func.isRequired }; state ...
const fs = require('fs'); const path = require('path'); const getDataJson = () => { const content = fs.readFileSync(path.join(__dirname, '/data/data.json')); const result = JSON.parse(content); return result; }; module.exports = { getDataJson };
/* * datum * * This date module is a bit of an experiment leaving it around for a bit. * * https://github.com/wolfeidau/datum * * Copyright (c) 2012 Mark Wolfe * Licensed under the MIT license. */ var moment = require('moment'); module.exports.getPeriodIndex = function(date, period, unit){ var periodValu...
const world = new World(); const help = new Help(); const keyboard = new Keyboard(); const configs = getConfigs(world.getBounds()); const game = new Game(world, keyboard, configs); let isFirstRun = true; keyboard.subscribe(onKey); function init() { reset(); go(); } function go() { game.start(); confi...
/* Copyright 2019 Gravitational, 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }...
__author__ = 'PAY.ON' import tests.core import tests class TestRegistration(tests.core.abstract_payments_test_case.AbstractPaymentsTestCase): def test_create_get_delete_registration(self): registration1 = self.API.registrations().create(**{"paymentBrand": "AMEX", ...
# Tipos primitivos # NÃO FUNCIONA # valor1 = input('digite um numero') # valor2 = input('digite outro numero') # soma = valor1 + valor2 # printf('a soma dos numeros é:', soma) # FUNCIONA # valor1 = int(input('digite um numero')) # valor2 = int(input('digite outro numero')) # soma = valor1 + valor2 # printf('a som...
var Xinha = {}; _editor_url = _editor_url.replace(/\x2f*$/, '/'); Xinha.agt = navigator.userAgent.toLowerCase(); Xinha.is_ie = ((Xinha.agt.indexOf("msie") != -1) && (Xinha.agt.indexOf("opera") == -1)); Xinha.ie_version= parseFloat(Xinha.agt.substring(Xinha.agt.indexOf("msie")+5)); Xinha.is_opera = (Xinha.ag...
/* file: split_layer_backward_kernel.h */ /******************************************************************************* * Copyright 2014-2019 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 cop...
from enum import Enum from utils.str2notes import str2notes from .note import Note import yaml try: from yaml import CLoader as Loader, CDumper as Dumper except ImportError: from yaml import Loader, Dumper import os class RuleType(Enum): ONCE = 'once' EVERYTIME = 'everytime' class Rule(object): ...
/** * Akima interpolation */ export default class AkimaInterpolation { // https://slpr.sakura.ne.jp/qp/akima-interpolation/ /** * @param {boolean} modified */ constructor(modified = false) { this._modified = modified } /** * Fit model parameters. * @param {number[]} x * @param {number[]} y */ fit...
import React from "react"; import { render, fireEvent } from "@testing-library/react"; import InputNumber from "./index"; class TestInput extends React.Component { state = { value: "", }; handleChange = (e) => { this.setState({ [e.target.name]: e.target.value }); }; render() { return ( <I...
# 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 ...
$(document).ready(function(){ $.dobPicker({ daySelector: '#dobday', /* Required */ monthSelector: '#dobmonth', /* Required */ yearSelector: '#dobyear', /* Required */ dayDefault: 'Day', /* Optional */ monthDefault: 'Month', /* Optional */ yearDefault: 'Year', /...
#!/usr/bin/env python # Copyright 2014 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. """Wrapper around GKE (Google Container Engine) SDK tools to simplify working with container deployments. Core to this is a...
TINY={}; TINY.box=function(){ var j,m,b,g,v,p=0; return{ show:function(o){ v={opacity:70,close:1, scroll:1/* 弹出框跟着页面滚动 */, trigger:null, animate:1,fixed:1,mask:1,maskid:'',boxid:'',topsplit:2,url:0,post:0,height:0,width:0,html:0,iframe:0}; for(s in o){v[s]=o[s]} if(!p){ j=document.creat...
from model_basic import BasicModel from model_redis import RedisModel from view_terminal import TerminalView from view_gui import GUIView from controller_basic import BasicController class MyApp(object): def __init__(self) -> None: model = BasicModel() #model = RedisModel() view = Terminal...
#!/usr/bin/env python3 # 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 ...
#! /usr/bin/python -tt import datetime import webbrowser import time def main(): path = "Prod.txt" print ("Welcome Harvey !!!! :) \nThe Scheduler has Started and is ACTIVE" while(1): tempTime = str(datetime.datetime.now().time()) listTime = tempTime.sp...
import React, {PropTypes} from 'react'; class App extends React.Component { render() { return ( <div> {this.props.children} </div> ); } } App.propTypes = { children: PropTypes.element }; export default App;
!function(t){function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__esModule?function(){return ...
#!/bin/sh ':' //; exec "$(command -v nodejs || command -v node)" "$0" "$@" var Transform = require('stream').Transform, fs = require('fs'); var upperCase = new Transform(); upperCase._transform = function (chunk, __, done) { // This refers to the created stream this.push(chunk.toString().toUpperCase()); ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import struct from .. import TestUnitBase class TestPack(TestUnitBase): def test_pack_wrapping_byte(self): pack = self.load() self.assertEqual( pack(B'123, 34, 256, 12, 1, 234'), bytes(bytearray((123, 34, 0, 12, 1, 234))) ...
module.exports = { roots: ['<rootDir>/src'], collectCoverageFrom: [ '<rootDir>/src/**/*.ts', '!<rootDir>/src/infra/db/migrations/**.ts', '!<rootDir>/src/infra/db/entities/base-entity/**.ts', '!<rootDir>/src/infra/db/config/**.ts', '!<rootDir>/src/docs/swagger/**.ts', '!<rootDir>/src/main.ts'...
while True: s = input() if s == '#': break ans = True stack = [] for i in s: if i in "([{": stack.append(i) elif i in ")]}": if len(stack) ==0: ans = False else: if i == ')': if stack[-1]...
""" Django settings for lily_33975 project. Generated by 'django-admin startproject' using Django 2.2.2. For more information on this file, see https://docs.djangoproject.com/en/2.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.2/ref/settings/ """ import os...
arr = [1, 2, 3, 4, 5] a, b, _, c, _ = arr print(a) print(b) print(c)
import tensorflow as tf import argparse parser = argparse.ArgumentParser() parser.add_argument('--post_train_quantize', default=False, type=bool, help='do post training quantization') parser.add_argument('--model_path', type=str, help='path to the trained model') parser.add_argument('--model_type', default='pb', type...
from Open_Browser import driver import Open_Browser from time import sleep import getpass #Using getpass to hide username and password Open_Browser.OpensURL('https://www.instagram.com/') print("Your username and password will not be appearing as your are typing the username and password to prevent anyone from knowin...
from graphviz import Digraph import os from helpers import viz_util import json def visualize_scene_graph(graph, relationships, rel_filter_in = [], rel_filter_out = [], obj_ids = [], title ="", scan_id="", outfolder="./vis_graphs/"): g = Digraph(comment='Scene Graph' + title, format='png') for (i,obj)...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
// Copyright (c) 2009 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CHROME_BROWSER_KEYCHAIN_MAC_H_ #define CHROME_BROWSER_KEYCHAIN_MAC_H_ #include <Security/Security.h> #include "base/basictypes.h" // Wraps ...
module.exports = { moduleFileExtensions: [ 'js', 'jsx', 'json', 'vue' ], transform: { '^.+\\.vue$': 'vue-jest', '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub', '^.+\\.jsx?$': 'babel-jest' }, moduleNameMapper: { '^@/(.*)$': '<rootDir>/src/$1'...
//------------------------------------------------------------------------------------------------------- // Copyright (C) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. //---------------------------------------------------------...
import http import pytest import httpx def test_cookies(): cookies = httpx.Cookies({"name": "value"}) assert cookies["name"] == "value" assert "name" in cookies assert len(cookies) == 1 assert dict(cookies) == {"name": "value"} assert bool(cookies) is True del cookies["name"] assert...
module.exports = { apps: [ { name: 'nestjs-typescript-template', script: 'dist/main.js', env: { NODE_ENV: 'production', }, }, ], };
import json from matplotlib import pyplot as plt INPUT_FILENAME = 'select_monitors_10000.json' ''' Load data ''' with open(INPUT_FILENAME, 'r') as f: DATA = json.load(f) # DATA.keys() = 'asns naive', 'dist naive', 'asns greedy', 'dist greedy' ''' Define ploting options ''' linewidth = 3.0 markersize = 1...
// get the client const mysql = require('mysql2'); const util = require("util"); // create the connection to database const connection = mysql.createConnection({ host: 'localhost', user: 'root', password: 'great', //this password will be empty when submitted database: 'Employees' }); connection.connect(); c...
#include <float128_private.h> #define SIG 0 #define FUNC __setpayloadf128 #include "../ldbl-128/s_setpayloadl_main.c" libm_alias_float128 (__setpayload, setpayload)
/*! For license information please see app-9ecafa024eee078b4e08.js.LICENSE.txt */ (window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+ZDr":function(t,e,n){"use strict";var r=n("TqRt");e.__esModule=!0,e.withPrefix=d,e.withAssetPrefix=function(t){return d(t,v())},e.navigateTo=e.replace=e.push=e.navigate=e.default=...
/** * Create FullScreen Control * @type function * @returns {function} See parameters of return function in {@link CONTROL_FACTORIES_fullScreen} */ BKGWebMap.Control.createFullScreen = function () { return function (map, controlName, options, panel, standardPositionControls) { var mapDivId = map.getTarg...
import * as files from './files' import * as share from './share' import * as users from './users' import * as settings from './settings' import search from './search' import commands from './commands' export { files, share, users, settings, commands, search }
from collections import defaultdict from typing import Any, Dict, Iterator, List, Optional, Set, Tuple, Union, cast from dagster import check from dagster.core.definitions import ( AssetKey, AssetMaterialization, ExpectationResult, Materialization, Output, OutputDefinition, SolidDefinition,...
import React from "react"; import PropTypes from "prop-types"; import AddIncidentForm from "@/components/Forms/AddIncidentForm"; import CustomPropTypes from "@/customPropTypes"; const propTypes = { closeModal: PropTypes.func.isRequired, onSubmit: PropTypes.func.isRequired, title: PropTypes.string, followupActi...
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['jquery.sap.global'],function(q){"use strict";var C={};C.render=function(r,c){r.write("<div");r.writeControlData(c);r.w...
$(document).ready(function() { $('#menu').click(function() { window.location='menu' } ); var mapCanvas = $('#map-canvas'); var mapOptions = { center: { lat: 60.1841396, lng: 24.8300838 }, zoom: 12 }; var map = new google.maps.Map(mapCanvas[0], mapOptions); map.data.setStyle(function(feature) { ...
# ------------------------------ # 643. Maximum Average Subarray I # # Description: # Given an array consisting of n integers, find the contiguous subarray of given length k that has the maximum average value. And you need to output the maximum average value. # Example 1: # Input: [1,12,-5,-6,50,3], k = 4 # Output: 12...
const validationPassword = (password) => { const response = /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#$%^&*_=+-]).{8,12}$/; return response.test(String(password)); } const validationEmail = (email) => { const response = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1...
export default { 'app.title': 'EASYLOGIC', 'app.sample': (a, b, c) => { return `${a}-${b}-${c}` }, 'app.lang.en_US': 'English', 'app.lang.ko_KR': '한국어', 'app.lang.fr_FR': 'Français', 'app.label.lang': 'Langue', 'app.layout.all': 'All', 'app.layout.css': 'CSS', 'app.layo...
const pathUtil = require('path') const parmRegExp = /^{.*}$/ function makeRegExp(path) { var str = '^' for (dir of path.split('/').slice(1)) { if (parmRegExp.test(dir)) { str += '/[^/]+' } else { str += '/' + dir } } return new RegExp(str + '\/?') } function Router() { // Construct...
#!/usr/bin/python3 from brownie import ArtBottest, accounts, network, config OPENSEA_FORMAT = "https://testnets.opensea.io/assets/{}/{}" def main(): dev = accounts.add(config["wallets"]["from_key"]) print(network.show_active()) simple_collectible = ArtBottest[len(ArtBottest) - 1] token_id = simple_c...
# coding: utf-8 # Manticore Search Client # Copyright (c) 2020-2021, Manticore Software LTD (https://manticoresearch.com) # # All rights reserved # from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from six.moves.urllib.parse import quote fro...
'use strict' const AsyncObject = require('@cuties/cutie').AsyncObject // Represented result is boolean class IsResponseFinished extends AsyncObject { constructor (response) { super(response) } syncCall () { return (response) => { return response.finished } } } module.exports = IsResponseFi...
from utlis.rank import setrank,isrank,remrank,remsudos,setsudo from config import * from pyrogram.types import ReplyKeyboardMarkup, InlineKeyboardMarkup, InlineKeyboardButton import threading, requests, time, random, re, json,importlib from os import listdir from os.path import isfile, join def getOR(rank,r,userID): ...
from setuptools import setup, find_packages with open("README.md", "r") as f: long_description = f.read() setup( name="mdb_parser", version="0.0.3", packages=find_packages(), author="Federico Stella", author_email="fedestella263@gmail.com", description="Microsoft Access (.mdb, .accdb) data...
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strjoin.c :+: :+: :+: ...
/** * We ditched the `npm i serve` (from vercel) because it doesn't support proxying to external URLs * More about that here: https://github.com/vercel/serve-handler/issues/30 * This configuration file is related to https://github.com/lwsjs/local-web-server (ws command) used for serving production build artifacts *...
module.exports={A:{A:{"2":"J E F G A B kB"},B:{"1":"P Q T U V W X Y Z a b c R d H","2":"C K L D M N O"},C:{"1":"QB RB SB TB UB VB WB XB YB ZB P Q T mB U V W X Y Z a b c R d H fB","2":"0 lB cB I e J E F G A B C K L D M N O f g h i j k l m n o p q r s t u v w x y z nB oB","194":"1 2 3 4 5 6 7 8 9 AB BB CB DB EB FB GB HB ...
import hashlib import os import binascii def encryptx(data, key): encrypted = [] a, b, c = key for d in data: keystream = (b & 0xff) ^ (c & 0xff) d = (d - (a & 0xff)) ^ keystream d = d & 0xff encrypted.append(d) a = rotr(a) b = rotl(b) c = rotl(c) ...
import { Host, h } from '@stencil/core'; import { getIonMode } from '../../global/ionic-global'; import { findItemLabel, renderHiddenInput } from '../../utils/helpers'; import { createColorClasses, hostContext } from '../../utils/theme'; /** * @virtualProp {"ios" | "md"} mode - The mode determines which platform ...
#include "types.h" #include "param.h" #include "memlayout.h" #include "mmu.h" #include "proc.h" #include "defs.h" #include "x86.h" #include "elf.h" int exec(char *path, char **argv) { char *s, *last; int i, off; uint userstack_top; uint argc, sz, sp, ustack[3+MAXARG+1]; struct elfhdr elf; struct inode *ip;...
from pathlib import Path import networkx as nx from PyQt5.QtCore import * from PyQt5.QtWidgets import * from PyQt5.QtGui import * from pysmiles import read_smiles, remove_explicit_hydrogens, add_explicit_hydrogens from vermouth.processors import MakeBonds from vermouth.system import System from vermouth.pdb import ...
# -*- coding: utf-8 -*- """ Lovasz-Softmax and Jaccard hinge loss in PyTorch Maxim Berman 2018 ESAT-PSI KU Leuven (MIT License) """ from __future__ import print_function, division import torch from torch import nn import torch.nn.functional as F import numpy as np try: from itertools import ifilterfalse except I...