text
stringlengths
3
1.05M
#!/usr/bin/env python # -*- coding: utf-8 -*- from lib import Tk from lib.login import Login from lib.client import Client class PyChat(object): def __init__(self): self.root = Tk() self.root.geometry("300x275+400+100") def login(self): self.login = Login(self.root, self.create_cli...
// COPYRIGHT © 2018 Esri // // All rights reserved under the copyright laws of the United States // and applicable international laws, treaties, and conventions. // // This material is licensed for use under the Esri Master License // Agreement (MLA), and is bound by the terms of that agreement. // You may redistribute...
import Component from '@ember/component'; import layout from '../../templates/components/tr-table/tr-table-column-header-presenter'; export default Component.extend({ layout, columnDefinition: null, filterValue: '', toggleSorting: null, columnState: null, applyColumnFilter: null });
const express = require('express'); const app = express(); app.use(express.json()); app.get('/courses', (request, response) => { const query = request.query; console.log(query); return response.json(["Curso 1", "Curso 2", "Curso 3"]); }); app.post('/courses', (request, response) => { const body = re...
self["webpackHotUpdate_N_E"]("pages/index",{ /***/ "./src/components/Acomplishments/AcomplishmentsStyles.js": /*!***************************************************************!*\ !*** ./src/components/Acomplishments/AcomplishmentsStyles.js ***! \***************************************************************/ /**...
import json import logging import os from cate.conf import USER_PREFERENCES_FILE, DEFAULT_DATA_PATH _DEFAULT_USER_PREFS = { "reopenLastWorkspace": True, "lastWorkspacePath": "", "autoUpdateSoftware": True, "autoShowNewFigures": True, "offlineMode": False, "showSelectedVariableLayer": True, ...
#ifdef __OBJC__ #import <UIKit/UIKit.h> #endif FOUNDATION_EXPORT double Pods_TJPYingKeVersionNumber; FOUNDATION_EXPORT const unsigned char Pods_TJPYingKeVersionString[];
import collections import gzip import tempfile import pytest from galaxy.tool_util.verify import ( files_contains, files_delta, files_diff, files_re_match, files_re_match_multiline, ) F1 = b"A\nB\nC" F2 = b"A\nB\nD\nE" * 61 F3 = b"A\nB\n\xfc" F4 = b"A\r\nB\nC" MULTILINE_MATCH = b".*" TestFile = ...
#ifndef SERVO_H #define SERVO_H #include <avr/io.h> class Servo { public: /** * Aktiviert das Servo Signal */ void enable(void) volatile; /** * Deaktiviert das Servo Signal */ void disable(void) const volatile; /** * Setzt die Pulselänge und damit die Servo ...
Clazz.declarePackage ("J.jvxl.readers"); Clazz.load (["JU.P3", "$.V3"], "J.jvxl.readers.SurfaceGenerator", ["java.lang.Float", "java.util.Map", "JU.AU", "$.BS", "$.Measure", "$.P4", "$.PT", "$.Rdr", "J.jvxl.data.JvxlData", "$.MeshData", "$.VolumeData", "J.jvxl.readers.Parameters", "$.SurfaceReader", "JU.Logger", "JV.F...
/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2014 Torus Knot Software Ltd Permission is hereby granted, free of charge, to any person obta...
import React, { useMemo, useLayoutEffect } from 'react' import { observer } from 'startupjs' import parsePropTypes from 'parse-prop-types' import { Text, Platform } from 'react-native' import Table from './Table' import Tbody from './Tbody' import Thead from './Thead' import Tr from './Tr' import Td from './Td' import ...
from rb.processings.gec.gec_correct import GecCorrector if __name__ == "__main__": corrector = GecCorrector(d_model=768) decoded_senntence = corrector.correct_sentence('Am meers l-a magaazin sa cuumper s leegume si fructe de mancaat.') print(decoded_senntence)
# Mat07.py import matplotlib.pyplot as plt import numpy as np a = np.random.normal(loc=0,scale=1,size=1000) b = np.random.normal(loc=5,scale=0.5,size=1000) c = np.random.normal(loc=10,scale=2,size=1000) plt.figure(figsize=(10,6)) plt.plot(a,label='a') plt.plot(b,label='b') plt.plot(c,label='c') plt.legend() plt.show(...
#!/usr/bin/env python """ package_container functions for building the initial docker container templates for docker-image command """ import sys import os import json import pystache from cirrus.logger import get_logger from cirrus.templates import find_template from cirrus.utils import working_dir from cirrus.conf...
import "../wpt-env.js"; /* Delete created databases * * Go through each finished test, see if it has an associated database. Close * that and delete the database. */ add_completion_callback(function (tests) { for (var i in tests) { if (tests[i].db) { tests[i].db.close(); self.ind...
/** * @param {number[][]} buildings * @return {number[][]} */ var getSkyline = function (buildings) { let xSet = new Set(); for (const [l, r] of buildings) { xSet.add(l); xSet.add(r); } let priorityQueue = Array.from(xSet).sort((a, b) => a - b); let results = []; for (const p ...
!(function (t) { 'use strict'; 'function' == typeof define && define.amd ? define(['jquery'], t) : 'object' == typeof exports ? (module.exports = t(require('jquery'))) : t(jQuery); })(function (t) { 'use strict'; var n = 'animsition', i = { init: function (a) { (a = t.extend( { inClass: ...
AR = 'arm-none-eabi-ar' ARFLAGS = 'rcs' AS = 'arm-none-eabi-gcc' BINDIR = '/usr/local/bin' BLOCK_MESSAGE_KEYS = [] BUILD_DIR = 'diorite' BUILD_TYPE = 'app' BUNDLE_BIN_DIR = 'diorite' BUNDLE_NAME = 'TimeStylePebble.pbw' CC = ['arm-none-eabi-gcc'] CCLNK_SRC_F = [] CCLNK_TGT_F = ['-o'] CC_NAME = 'gcc' CC_SRC_F = [] CC_TGT...
# Copyright The PyTorch Lightning team. # # 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 i...
""" setup Gap-ML Copyright, 2018(c), Andrew Ferlitsch Autor: David Molina @virtualdvid """ from setuptools import setup, find_packages #setup components with open('README.md', 'r', encoding="utf-8") as f: long_description = f.read() install_requires=[ 'beautifulsoup4==4.6.3', 'numpy==1.14.5'...
var fs = require('fs') const dataStoreFile = './dataStore.json' let dataStore = {} if (fs.existsSync(dataStoreFile)) { const str = fs.readFileSync(dataStoreFile) dataStore = str.length ? JSON.parse(str) : {} } exports.getStore = function () { return dataStore } exports.updateStore = function () { ...
const Cache = require('./cache') function openDB () { return new Promise(rs => { // Open (or create) the database const open = indexedDB.open('cachestorage', 4) // Create the schema open.onupgradeneeded = function () { const db = open.result // cointains all storage containsers db.c...
# Copyright (c) 2019 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...
#!/usr/bin/env python ''' Created on 18 gru 2014 @author: ghalajko ''' from lvstop.screen import Screen from lvstop import loop if __name__ == '__main__': with Screen() as scr: try: scr.main_loop(loop) except KeyboardInterrupt: pass except: ...
"""Dilated_ResNetV0s, implemented in Gluon.""" # pylint: disable=arguments-differ,unused-argument,missing-docstring from __future__ import division from mxnet.context import cpu from mxnet.gluon.block import HybridBlock from mxnet.gluon import nn from mxnet.gluon.nn import BatchNorm __all__ = ['DilatedResNetV0', 'dil...
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
import csv from collections import defaultdict #import pandas as pd #import seaborn as sns #import matplotlib.pyplot as plt #matplotlib inline #from sklearn.naive_bayes import MultinomialNB #from sklearn.cross_validation import train_test_split import numpy as np #from numpy import genfromtxt, savetxt from globalData i...
#include "mefrec.h" /********************************** show_record() ********************************/ void show_record(RECORD_HEADER *record_header, ui4 record_number, PASSWORD_DATA *pwd) { si4 i, decryption_blocks; ui4 type_code, *type_string_int; ui1 *ui1_p, *decryption_key; s...
from collections import Counter from itertools import product import pickle from statistics import mean, mode, median import matplotlib.pyplot as plt import nltk from nltk.tokenize import TweetTokenizer, word_tokenize import pandas as pd from sklearn.metrics import classification_report, f1_score from sklearn.model_se...
from .Pipe import Pipe class UnfreezeOnPlateau(Pipe): ''' This pipe allows you to unfreeze optimizers one by one when the plateau is reached. If used together with ReduceLROnPlateau, should be listed after it. It temporarily turns off LR reducing and, instead of it, performs unfreezing. Args: ...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ CLF utility """ from __future__ import division import os import io import pathlib import sys import array import optparse import re import xml.etree.ElementTree as et __copyright__ = 'Copyright (C) 2021 Pekka Riikonen' __email__ = 'priikone@iki.fi' __major_version...
# The contents of this file are automatically written by # tools/generate_schema_wrapper.py. Do not modify directly. # 2018-02-24 22:43 from altair.utils.schemapi import SchemaBase, Undefined import os import json def load_schema(): """Load the json schema associated with this module's functions""" directory...
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hakathon.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: ...
import os import sys import pickle import argparse import numpy as np import yaml import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.utils.data import DataLoader, Subset from torchvision import datasets, transforms # from torch.optim.lr_scheduler import StepLR fr...
import cv2 img = cv2.imread("image.jpg") gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) edges = cv2.Canny(gray, 100, 200, 3) cv2.imwrite("canny_edges.jpg", edges) cv2.imshow("canny_edges", edges)
/* @(#)s_ilogb.c 5.1 93/09/24 */ /* * ==================================================== * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved. * * Developed at SunPro, a Sun Microsystems, Inc. business. * Permission to use, copy, modify, and distribute this * software is freely granted, provided t...
""" Django settings for mute_butterfly_29508 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 Vue from 'vue' import App from './App.vue' import 'phoenix-styles/less/phoenix-styles.less' // 第一种:全局引入 import SwanUI from 'swan-ui' Vue.use(SwanUI) //第二种:按需引入 // import {Button,Image,ImageList} from 'swan-ui' // Vue.component(Button.name,Button) // Vue.component(Image.name,Image) // Vue.component(ImageList.na...
var utils = require('./utils'); var tableLayout = require('./layout-manager'); var _ = require('lodash'); function Table(options){ this.options = utils.mergeOptions(options); } Table.prototype.__proto__ = Array.prototype; Table.prototype.toString = function(){ var array = this; var headersPresent = this.optio...
"use strict"; var Backbone = require("backbone").noConflict(); Backbone._ = require("lodash"); module.exports = Backbone; // ---------------------------------------------------------------------------- // Copyright (C) 2015 Bloomberg Finance L.P. // // Licensed under the Apache License, Version 2.0 (the "License"); ...
// // ZYBTPrinterTool.h // JuniuHD // // Created by ZYSu on 2016/12/6. // Copyright © 2016年 ZYSu. All rights reserved. // 蓝牙4.0通用 #import <Foundation/Foundation.h> #import "ZYPrinterProtocol.h" @interface ZYBTPrinterTool : NSObject<ZYPrinterProtocol> @end
/* http://keith-wood.name/keypad.html Keypad field entry extension for jQuery v1.4.2. Written by Keith Wood (kbwood{at}iinet.com.au) August 2008. Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) li...
from pypy.rpython.lltypesystem.rffi import CConstant, CExternVariable, INT from pypy.rpython.lltypesystem import lltype, ll2ctypes from pypy.translator.tool.cbuild import ExternalCompilationInfo from pypy.rlib.rarithmetic import intmask class CConstantErrno(CConstant): # these accessors are used when calling get_e...
/*! Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 */ /** * @author Solution Builders */ 'use strict'; angular.module('serverlessVideoTranscode.profile', ['serverlessVideoTranscode.main', 'serverlessVideoTranscode.utils', 'serverlessVideoTranscode.factory.pro...
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or ...
module.exports = { "parserOptions": { "ecmaVersion": 6 }, "env": { "browser": true, "commonjs": true }, "extends": [ "./possible-errors.js", "./best-practices.js", "./variables.js", "./stylistic-issues.js" ], "plugins": [ ], ...
class Number: def __init__(self, value): self.value = value def __repr__(self): return f'{self.value}' class OpNode(): def __init__(self, a, b): self.a = a self.b = b self.op = None def __repr__(self): return f'({self.a}{self.op}{self.b})' class Addi...
/* * This header is generated by classdump-dyld 1.5 * on Wednesday, April 28, 2021 at 9:01:31 PM Mountain Standard Time * Operating System: Version 14.5 (Build 18L204) * Image Source: /System/Library/Frameworks/Foundation.framew...
// @flow import React from 'react'; import { capitalize } from 'lodash'; import { Helmet } from 'react-helmet'; import biomMassFavicon from '@ncigdc/theme/images/biom-mass-server-favicon.png'; export default ({ title }) => ( <Helmet> <meta name="description" content="BIOM-Mass Portal" /> <ti...
#n = int(input()) #s = input() n, q = map(int, input().split()) # = list(map(int, input().split())) #ab = [list(map(int, input().split())) for _ in range(n-1)] from collections import deque graph = [[] for _ in range(n + 1)] for i in range(n - 1): a, b = map(int, input().split()) graph[a].append(b) graph...
export default Ext.define('KitchenSink.reader.Salary', { extend: 'Ext.data.reader.Json', alias: 'reader.salary', getResponseData: function(...args) { const data = KitchenSink.reader.Salary.superclass.getResponseData.call(this, ...args) return this.addTreeHierarchy(data); }, addTre...
#!/usr/bin/env python import jinja2 import tempfile import os import json import pdb import string import random import re # XXX hardcoded path # is there any reason why we aren't importing xos.config ? XOS_DIR="/opt/xos" try: step_dir = Config().observer_steps_dir sys_dir = Config().observer_sys_dir excep...
from fcrepo_verify.utils import get_data_dir, replace_strings_in_file from fcrepo_verify.constants import BAG_DATA_DIR import os import tempfile class MockConfig(dict): pass config = MockConfig({}) config.dir = "/tmp" def test_get_data_dir(): config.bag = False data_dir = get_data_dir(config) asse...
def read_data(): import pandas as pd global mu_liver mu_liver=pd.read_csv("./mu_values_tissues/mu_liver_complete.csv", header=0) global mu_fat mu_fat = pd.read_csv("./mu_values_tissues/mu_fat_complete.csv", header=0) global mu_air mu_air = pd.read_csv("./mu_values_tissues/mu_air_complete.csv...
/* * This header is generated by classdump-dyld 1.0 * on Sunday, September 27, 2020 at 11:42:11 AM Mountain Standard Time * Operating System: Version 14.0 (Build 18A373) * Image Source: /System/Library/PrivateFrameworks/Translation.framework/Translation * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by...
#ifndef TESTMAPLOADER_H #define TESTMAPLOADER_H #include "Test.h" #include <MapLoader.h> class Test_MapLoader: public Test { private: public: Test_MapLoader(): Test("MAPLOADER") { } void setup() { MapLoader loader; newEntry(TestData("Missing File", loader.parseMap("../Maps/invalid.txt", NULL, NULL, NULL) == ...
//Theme initialize if (!localStorage.getItem("theme")) { localStorage.setItem("theme", "light"); } // Theme toggle const toggle = () => { if (localStorage.getItem("theme") === "light") localStorage.setItem("theme", "dark"); else if (localStorage.getItem("theme") === "dark") { localStorage.setItem("theme"...
!function(e){const t=e.de=e.de||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 von %1","Align cell text to the bottom":"Zellentext unten ausrichten","Align cell text to the center":"Zellentext zentriert ausrichten","Align cell text to the left":"Zellentext linksbündig ausrichten","Align cell text to the...
""" This module handles all the phishing related operations for Wifiphisher.py """ import os from shutil import copyfile import wifiphisher.common.constants as constants try: from configparser import ConfigParser, RawConfigParser except ImportError: from configparser import ConfigParser, RawConfigParser ...
/////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// #include "gsCommon.h" #include "gsDebug.h" //#include <stdio.h> //#include <stdarg.h> // THIS FILE ONLY INCLUDED WHEN USING GAMESPY DEBUG FUNCTIONS /...
/* 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 not use this f...
/***************************************************************************** * * Copyright Next-Generation System Software Research Group, All rights reserved. * Future Computing Research Division, Artificial Intelligence Reserch Laboratory * Electronics and Telecommunications Research Institute (ETRI) * * THESE DOCU...
""" Functions to calculate stats/hists of the relative energy resolution. The relative energy resolution is defined as (Reco - True) / True. """ from cafplot.rhist import RHist1D from .stats import calc_all_stats def calc_fom_hist(pred, true, weights, bins, range): """Calculate relative energy resolution histogr...
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory of...
# Copyright 2020 Jacob Glueck # # 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, ...
# Copyright 2019-present NAVER Corp. # Apache License v2.0 # Wonseok Hwang # wp = word piece import os, json import random as rd from copy import deepcopy from matplotlib.pylab import * import torch import torchvision.datasets as dsets import torch.nn as nn import torch.nn.functional as F from .utils import gene...
from GPIOLibrary import GPIOProcessor from CharacterLibrary import Alphabet as AL import time class LEDBlock: global OP_OP NO_OP = 0x0000 global OP_0 OP_0 = 0x0100 global OP_1 OP_1 = 0x0200 global OP_2 OP_2 = 0x0300 global OP_3 OP_3 ...
# Copyright 2016 The Kubernetes 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 agreed to ...
import datetime from money import Money from api.config import Configuration from api.circulation_exceptions import * from core.model.patron import Patron from core.util import MoneyUtility class PatronUtility(object): """Apply circulation-specific logic to Patron model objects.""" @classmethod def needs_...
from __future__ import absolute_import from __future__ import unicode_literals import django from django.db import connections from django.db.models.sql import DeleteQuery, Query, UpdateQuery from django.db.models.sql.compiler import ( SQLCompiler, SQLDeleteCompiler, SQLUpdateCompiler, ) from .expressions...
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html from base.pipelines import BaseUrlPipeline, BaseDetailPipeline class ManongchangPipeline(BaseUrlPipeline): def __init__(se...
(window.webpackJsonp=window.webpackJsonp||[]).push([[16,5],{112:function(t,e,n){"use strict";var r=n(135),i=(n(136),n(137)),o=(n(138),function(t){var e={exports:{}};t(e,e.exports);var n=e.exports.__esModule&&e.exports.default||e.exports;return"function"==typeof n?n:function(){return r.createElement("div",{},"Code snipp...
from __future__ import unicode_literals from moto.core.responses import BaseResponse from .models import support_backends import json class SupportResponse(BaseResponse): SERVICE_NAME = "support" @property def support_backend(self): return support_backends[self.region] def describe_trusted_a...
const fs = require('fs') const path = require('path') const loader = async dir => { const result = await require(dir) return result } const checkDirectory = dir => { let result = false try { const state = fs.statSync(dir) if (state && state.isDirectory()) { result = true } } catch (err) {...
"use strict"; /// <reference types="homeworks" /> var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Refle...
import day2in class Entry: def __init__(self, strIn): self.m_strPass = None self.m_ch = None self.m_cChMin = 0 self.m_cChMax = 0 self.ParseLine(strIn) def ParseLine(self, strIn): # line looks like this: min-max letter: password lStr = strIn.split(':') ...
#! /usr/bin/env python # # Deployment script to set up containers locally import docker import re import os import time import sys import socket import stat from plumbum import SshMachine # --- The role instances to deploy locally --- # roleInstances = \ [ { "Name": "frontEnd1", "Role": "frontEnd"...
// Jobs service used to communicate Jobs REST endpoints (function () { 'use strict'; angular .module('jobs') .factory('JobsService', JobsService); JobsService.$inject = ['$resource']; function JobsService($resource) { return $resource('api/jobs/:jobId', { jobId: '@_id' }, { update...
define([ '../Core/BoundingSphere', '../Core/Cartesian2', '../Core/Cartesian3', '../Core/Cartesian4', '../Core/Cartographic', '../Core/Check', '../Core/clone', '../Core/Color', '../Core/combine', '../Core/createGuid', '../Core/defaul...
import collections.abc import functools import os import pickle import socket import time import typing import uuid import warnings from abc import abstractmethod from dataclasses import dataclass from typing import Iterator import cloudpickle import mlflow import mlflow.entities import mlflow.exceptions import mlflow...
from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from rest_framework.renderers import JSONRenderer from rest_framework.parsers import JSONParser from home.models import Ebill from apis.serializers import EbillSerializer class JSONResponse(HttpResponse): """ An HttpResp...
from mock import Mock, patch, call from tests.helpers.testbase import TestBase from cerami.response import SaveResponse from cerami.request import PutRequest from cerami.request.search_attribute import DictAttribute class TestPutRequest(TestBase): def setUp(self): self.mocked_client = Mock() self.r...
# Ref: http://andreinc.net/2010/10/05/converting-infix-to-rpn-shunting-yard-algorithm/ LEFT_ASSOC = 0 RIGHT_ASSOC = 1 operators = { '+': (0, LEFT_ASSOC), '-': (0, LEFT_ASSOC), '*' : (5, LEFT_ASSOC), '/' : (5, LEFT_ASSOC), '%' : (5, LEFT_ASSOC), '^' : (10, RIGHT_ASSOC) ...
// // UIScrollView+JKPages.h // JKCategories (https://github.com/shaojiankui/JKCategories) // // Created by Jakey on 14/12/30. // Copyright (c) 2014年 www.skyfox.org. All rights reserved. // #import <UIKit/UIKit.h> @interface UIScrollView (JKPages) - (NSInteger)jk_pages; - (NSInteger)jk_currentPage; - (CGFloat)jk_...
from PIL import Image, ImageGrab import mss import mss.tools import time import cv2 as cv import pyautogui import matplotlib.pyplot as plt import numpy as np import os import PIL import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from tensorflow.keras.models import Sequential i...
# -*- coding: utf-8 -*- """ requests.models ~~~~~~~~~~~~~~~ This module contains the primary objects that power Requests. """ import datetime import sys # Import encoding now, to avoid implicit import later. # Implicit import within threads may cause LookupError when standard library is in a ZIP, # such as in Embed...
/** * 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-399ca71f.js'); var React = require...
#!/usr/bin/env python # IPFIX support for Scapy (RFC7011) from scapy.all import * # IPFIX Information Elements http://www.iana.org/assignments/ipfix/ipfix.xhtml information_elements = { 1: "octetDeltaCount", 2: "packetDeltaCount", 3: "deltaFlowCount", 4: "protocolIdentifier", 5: "ipClas...
(this.webpackJsonpinvoid=this.webpackJsonpinvoid||[]).push([[0],{50:function(e,t,c){},60:function(e,t,c){},61:function(e,t,c){"use strict";c.r(t);var n=c(2),s=c.n(n),i=c(25),r=c.n(i),a=(c(50),c(23)),j=c(33),o=c(13),l=c(82),d=c(88),b=c(84),h=c(87),u=c(86),x=c(85),O=c.p+"static/media/gg.b79d6914.png",p=c.p+"static/media/...
import fs from 'fs' import pug from 'pug' import path from 'path' import express from 'express' import request from 'superagent' import l10n from '../client/l10n' import render from '../client/run-server' const themes = [ 'light', 'dark' ] , langs = Object.keys(l10n) , baseHref = process.env.BASE_HREF || '/' ...
"""An Application for launching a kernel Authors ------- * MinRK """ #----------------------------------------------------------------------------- # Copyright (C) 2011 The IPython Development Team # # Distributed under the terms of the BSD License. The full license is in # the file COPYING.txt, distributed as pa...
# encoding: utf-8 # # Copyright (c) 2013 Dariusz Dwornikowski. All rights reserved. # # Adapted from https://github.com/tdi/sphinxcontrib-manpage # License: Apache 2 # import re from docutils import nodes, utils from docutils.parsers.rst.roles import set_classes from string import Template def make_link_node(raw...
let fetch = require('node-fetch') let handler = async (m, { conn, args }) => { response = args.join(' ') if (!args) throw 'Masukkan Parameter' m.reply('Bentar Kak...') let res = `https://ariarestapii.herokuapp.com/api/darkjokes?apikey=aria` conn.sendFile(m.chat, res, 'darkjokes.jpg', `Pemuda Tersesat Dasar`,...
/* * JFFS2 -- Journalling Flash File System, Version 2. * * Copyright (C) 2001-2003 Red Hat, Inc. * * Created by Dominic Ostrowski <dominic.ostrowski@3glab.com> * Contributors: David Woodhouse, Nick Garnett, Richard Panton. * * For licensing information, see the file 'LICENCE' in this directory. * * $Id: flas...
import browser from "./browser.js"; import dom from "./domObjects.js"; import * as domUtils from "./domUtils.js"; import hypot from "./hypot.js"; import is from "./is.js"; import pointerExtend from "./pointerExtend.js"; export function copyCoords(dest, src) { dest.page = dest.page || {}; dest.page.x = src.page.x; ...
$(function() { $('.slider-vn').slick({ dots: true, arrows: true, infinite: true, speed: 500, slidesToShow: 1, slidesToScroll: 1, swipeToSlide: true }); });
# Copyright 2019 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
/** * @license Angular v11.0.0-next.6+37.sha-a38293d.with-local-changes * (c) 2010-2020 Google LLC. https://angular.io/ * License: MIT */ !function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict"; /** * @license * Copyright Google LLC All Rights Reserved. * * Use of ...
# -*- coding: utf-8 -*- # CCP in Tomographic Imaging (CCPi) Core Imaging Library (CIL). # Copyright 2017-2020 UKRI-STFC # Copyright 2017-2020 University of Manchester # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You m...