text
stringlengths
3
1.05M
# -*- coding: utf-8 -*- import codecs from warnings import warn from future.builtins import str from fdutil.resources import open_document_snippet from .resources import table_style_css # Useful CSS with open(table_style_css, 'rb') as fp: TABLE_CSS = u'{css}'.format(css=fp.read()) # Useful JS with open(open_docu...
function initRawTable(data) { var html = '<p>原料明细</p><table class="table table-striped table-bordered raw" style="font-size: 10px;padding:0;"><thead><tr><th>成品Id</th><th>成品名</th><th>订单数量</th><th>原料Id</th><th>原料名(单位)</th><th>单位</th><th>总量</th></tr></thead><tbody>'; $.each(data, function(index, elem) { va...
/** * @license Copyright 2016 The Lighthouse 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 applica...
import warnings from determined.common import * # noqa from .__version__ import __version__ warnings.warn( "determined_common package is deprecated, please use determined.common instead.", FutureWarning )
'use es6'; import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { ACTIVE_FILL_COLOR, CARD_COLOR, HOVER_FILL_COLOR, } from 'VizIoT/styles/base/viz-theme'; import {withClickable} from 'UIBean/CommonHOC'; import {pure, compose} from 'recompose'; export const B...
from collections import deque import sys portfolio = [] def read_data_from_file(): path = "portfolio.txt" with open(path, "r") as O: for line in O: line = line.split(",") stocks = str(line[0]) units = int(line[1]) prices = float(line[2]) portfolio.append([stocks, units, prices]) portfolio = deque(...
// SPDX-License-Identifier: GPL-2.0 /* * ext4.h * * Copyright (C) 1992, 1993, 1994, 1995 * Remy Card (card@masi.ibp.fr) * Laboratoire MASI - Institut Blaise Pascal * Universite Pierre et Marie Curie (Paris VI) * * from * * linux/include/linux/minix_fs.h * * Copyright (C) 1991, 1992 Linus Torvalds */ ...
// More info about config & dependencies: // - https://github.com/hakimel/reveal.js#configuration // - https://github.com/hakimel/reveal.js#dependencies Reveal.initialize({ width: 1100, slideNumber: true, dependencies: [ { src: '/plugin/markdown/marked.js' }, { src: '/plugin/markdown/markdown.js' }, {...
/** * DataBlock component. * * Site Kit by Google, Copyright 2019 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * *...
import asyncio from secrets import token_bytes from typing import Optional import pytest from melon.consensus.block_record import BlockRecord from melon.consensus.block_rewards import calculate_base_farmer_reward, calculate_pool_reward from melon.full_node.full_node_api import FullNodeAPI from melon.protocols import ...
export default class TooltipData { constructor( { text, symbol, color } ) { if (typeof text === 'undefined') throw "text is required parameter"; this._symbol = symbol; this._color = color; this._text = text; } /** * @param {TooltipData} tooltipData */ static copyAs(tooltipData) { retu...
from time import sleep import random from gameplay import Gameplay from terminal_utils import write, print_win, print_error, print_tie, print_info game = Gameplay() print("———————————————————————————————————————————") print("\t\t\033[31mTIC \033[32mTAC\033[33m TOE\033[0m") print("—————————————————————————————————————...
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model import pprint import six class CencFairPlay(object): @poscheck_model def __init__(self, iv=None, uri=None): # type: (string_types...
from .constants import * from .waobject import WaObject class Settings(WaObject): def setting_theme(self, theme: str, _shouldoutput=(True, True)): if _shouldoutput[0] and DEFAULT_SHOULD_OUTPUT: print(f'Setting "{theme}" theme', end="...") self._open_settings() self._wait_for_a...
# pylint: disable=unused-argument, unused-variable from contextlib import ExitStack import slash from slash import hooks, plugins from slash.plugins import PluginInterface import pytest import gossip import vintage from .utils import TestCase as _TestCase, make_runnable_tests, CustomException class SessionEndExcepti...
import subprocess as sp import os import speech_recognition as sr import webbrowser as wb r = sr.Recognizer() while True: os.system("tput setaf 10") print("\t\tWELCOME TO VOICE CONTROLLED AUTOMATION MENU") print("\t\t--------------------------------") print() print() pr...
import Ember from 'ember'; import { TOKEN_EXPIRATION_TIME } from 'gooru-web/config/config'; export default Ember.Service.extend({ session: Ember.inject.service('session'), /** * Creates a session with the specified user credentials * @param {Ember.Object} credentials - Object with username and password attr...
TIME_INDEX_NAME = 'time_index' def entity_pk(entity): """ :param entity: NGSI JSON Entity Representation :return: unicode NGSI Entity "unique" identifier. """ if 'type' not in entity and 'id' not in entity: # Allowance for tsdb back-and-forth. # To avoid column name id in databases...
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** 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 from ... import _utilities, _tables from...
import flatten from 'lodash/flatten'; import isArray from 'lodash/isArray'; export const unwind = (array, field) => { if (isArray(array)) { return flatten(array.map(input => { if (isArray(input[field])) { return input[field].map(i => { const output = { ...input }; output[field] ...
from django.contrib.gis.db import models class City3D(models.Model): name = models.CharField(max_length=30) point = models.PointField(dim=3) objects = models.GeoManager() def __unicode__(self): return self.name class Interstate2D(models.Model): name = models.CharField(max_lengt...
const admin = require('firebase-admin') const serviceAccount = require('./.key/kambeshi-c8022-firebase-adminsdk-ap4b8-79c9eedccb.json') admin.initializeApp({ credential: admin.credential.cert(serviceAccount), databaseURL: 'https://kambeshi-c8022.firebaseio.com', }) const db = admin.firestore() // ---------- SET...
/*- * Copyright (c) 2014 Leon Dang <ldang@nahannisys.com> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice,...
import Vec2 from "./Vec2.js"; import {randInt} from './Math.js'; const initialCellData = { "id": null, "name": null, "pos": new Vec2() }; const DragOrientation = { "X": Symbol('X'), "Y": Symbol('Y'), "NotSet": Symbol('NotSet') }; const spriteData = [ { //"name": 'red', "po...
# (C) Datadog, Inc. 2018 # All rights reserved # Licensed under a 3-clause BSD style license (see LICENSE) from setuptools import setup from codecs import open # To use a consistent encoding from os import path HERE = path.dirname(path.abspath(__file__)) # Get version info ABOUT = {} with open(path.join(HERE, 'datad...
// Dependencies const express = require('express'); const Jimp = require('jimp'); const path = require('path'); // Init const app = express(); app.get('/', async (req, res) => { if (!req.query.text) return res.status(400).json({ err: 'No text provided' }); const bg = await Jimp.read('./img/bg.jpg'); const fon...
# Copyright 2017 The TensorFlow 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 applica...
import{w as n,v as t}from"./index.ae3055f9.js";const o=Symbol();function r(n){return t(n,o,{native:!0})}function a(){return n(o)}export{r as c,a as u};
import RD from './rd.js'; export default RD.registerComponent('rd-table', class extends RD.Component { render () { const data = Array.isArray(this.attributes.data) ? this.attributes.data : []; const trs = data.map(tr => Array.isArray(tr) ? tr : [tr]).map(tr => { return ({ type: 'tr', ch...
//# sourceMappingURL=ChunkProgressBarHandle.js.map
import React, { Component } from 'react'; import '../styles/Loader.css'; export default class MiniLoader extends Component { render() { return ( <div className="lds-grid"> <div /> <div /> <div /> </div> ); } }
from __future__ import absolute_import from pontoon.checks import DB_LIBRARIES def bulk_run_checks(translations): """ Run checks on a list of translations *Important* To avoid performance problems, translations have to prefetch entities and locales objects. """ from pontoon.checks.libraries ...
/* * 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 ma...
''' Video Chat ''' from __future__ import with_statement import string import re from operator import attrgetter from digsby.web import DigsbyHttp, DigsbyHttpError import simplejson as json from contacts.buddyinfo import BuddyInfo from common import profile, netcall from util import threaded, traceguard from util.p...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const React = require("react"); const wrapIcon_1 = require("../utils/wrapIcon"); const rawSvg = (iconProps) => { const { className, primaryFill } = iconProps; return React.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 ...
#!/usr/bin/env python try: from xmlrpc.client import ServerProxy except ImportError: from xmlrpclib import ServerProxy # NOQA from circuits import Component from circuits.web import XMLRPC, Controller from .helpers import urlopen class App(Component): def eval(self, s): return eval(s) class ...
//===------------------------------------------------------------*- C++ -*-===// // // This file is distributed under MIT License. See LICENSE.txt for details. // //===----------------------------------------------------------------------===// // // Copyright (c) 2017 University of Kaiserslautern. // #pragma once #in...
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ //--------------------------------...
/* -*- C++ -*- ***************************************************************** * Copyright (c) 2013 United States Government as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * Licensed under the NASA Open Source Agreement, Version 1.3 (the "Lice...
# Copyright 2020 Board of Trustees of the University of Illinois. # # 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 ...
from __future__ import print_function import difflib import mysqlsh import re import sys def get_members(object): all_exports = dir(object) exports = [] for member in all_exports: if not member.startswith('__'): exports.append(member) return exports ## # Verifies if a variable is defined, returnin...
angular.module('os.query.datepicker', []) .directive('osQueryDatePicker', function() { return { restrict: "A", link: function(scope, element, attrs) { var options = {format: 'mm-dd-yyyy'}; if (attrs.osQueryDatePicker) { options = JSON.parse(attrs.osQueryDatePicker); ...
# # PySNMP MIB module RFC1230-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/RFC1230-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:48:03 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 0...
#!/usr/bin/env python3 # Copyright 2010-2021 Google 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 ...
(global["webpackJsonp"] = global["webpackJsonp"] || []).push([["components/single/list/cu-list-action"],{ /***/ 1195: /*!**********************************************************************************!*\ !*** C:/Users/小进进/Desktop/memberAdmin/components/single/list/cu-list-action.vue ***! \**********************...
"""Crie um módulo chamado moeda.py que tenha as funções incorporadas aumetar(), diminuir(), dobro() e metado(). Faça também um programa que importe esse módulo e use algumas dessas funções.""" def aumentar(p1, p2): res = p1 + (p1 * p2 / 100) return res def diminuir(p1, p2): res = p1 - (p1 * p2 / 100) ...
#pragma once #include "absl/time/civil_time.h"
''' Copyright European Organization for Nuclear Research (CERN) 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 Authors: - Vincent Garonne, ...
function(args) { /* is_app(true) component_type("VB") display_name("List control") description("The List control") base_component_id("list_control") load_once_from_file(true) visibility("PRIVATE") read_only(true) properties( [ { id: "text", name: "Text", type: "St...
var gulp = require('gulp'); var concat = require('gulp-concat'); var browserify = require('browserify'); var source = require('vinyl-source-stream'); var uglify = require('gulp-uglify'); var utilities = require('gulp-util'); var del = require('del'); var jshint = require('gulp-jshint'); var lib = require('bower-files')...
#!/usr/bin/env python from __future__ import absolute_import from __future__ import print_function import argparse import math import random import re from collections import namedtuple from PIL import Image, ImageDraw from typing import Union from laia.utils.symbols_table import SymbolsTable PositionMatch = named...
""" Copyright (c) 2009, Stefan van der Walt <stefan@sun.ac.za> This module was originally based on code from http://swiftcoder.wordpress.com/2008/12/19/simple-glsl-wrapper-for-pyglet/ which is Copyright (c) 2008, Tristam MacDonald Permission is hereby granted, free of charge, to any person or organization obtainin...
import discord from discord.ext import commands import motor.motor_asyncio import pymongo import names from fuzzywuzzy import process as fwproc import os import typing import enum import random import datetime import hashlib import traceback import asyncio TOKEN = os.getenv('DISCORD_TOKEN') intents = discord.Intents...
import * as React from "react"; import * as Scrivito from "scrivito"; import Select from "react-select"; import { BarChart, Bar, XAxis, YAxis, LabelList, Cell, ComposedChart, CartesianGrid } from "recharts"; import myData from "./price_db.json"; const NUMBER_TO_MONTH = [ "Januar", "Februar", "Marts", "April", ...
/* 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 th...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _react = require('react'); var _react2 = _interopRequireDefault(_react); var _propTypes = require('prop-types'); var _propTypes2 = _interopRequireDefault(_propTypes); var _SVG = require('./SVG'); var _SVG2 = _interopRequireDefault...
# -*- coding=utf-8 -*- from config.emailConf import sendEmail from config.pushbearConf import sendPushBear from config.serverchanConf import sendServerChan from init import select_ticket_info def run(): select_ticket_info.select().main() def Email(): sendEmail(u"订票小助手测试一下") def PushbearConf(): sendPus...
# Copyright 2010-2012 Institut Mines-Telecom # # 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 agre...
""" Created on Wed Jul 7 13:30:00 2021 @author: purvit """ # importing libraries from selenium import webdriver import time from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions from selenium.webdriver.common.key...
import socket HOST = "localhost" PORT = 9999 server = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server.bind((HOST,PORT)) server.listen(5) print (f"Start Listing ... {HOST}:{PORT}") client, addr = server.accept() done = False msg = '' msg_send = '' while not done: try: msg = client.recv(1024).dec...
module.exports={A:{A:{"2":"L H G E A B jB"},B:{"1":"8","2":"C D e K I N J"},C:{"1":"GB HB IB","2":"0 1 2 3 4 5 7 9 gB BB F L H G E A B C D e K I N J P Q R S T U V W X Y Z a b c d f g h i j k l m n o M q r s t u v w x y z KB JB CB aB ZB","194":"DB EB O"},D:{"1":"8 O GB HB IB TB PB OB mB MB QB RB","2":"0 1 2 3 4 5 7 9 F ...
// Copyright (C) 2015 the V8 project authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es6id: 15.2 description: > An ImportDeclaration is not a valid StatementListItem and is therefore restricted from appearing within statements in a ModuleBody. flags: [m...
/* @flow */ /* eslint-disable class-methods-use-this, no-unused-vars, react/no-unused-prop-types */ import * as React from 'react'; import Button from './Button'; type Props = { /** * Callback to trigger on press. */ onPress: () => mixed, }; /** * Dialog.Button allows you to add buttons in a dialog. */ e...
/** * @module Dann * @submodule Share */ /** * This method allows for a Dann model to be converted into a minified javascript function that can run independently, which means you don't need to import the library for it to work. The function generated acts as a Dann.feedForward(). * @method toFunction * @param {St...
/** * Collects data from GPT tags on page and sends to content script. * * @since 0.1.0 * @package DFPeep * @copyright 2017 David Green <https://davidrg.com> * @license MIT */ /* global googletag */ var DFPeep = ( function() { 'use strict'; window.googletag = window.googletag || {}; window.googletag.cmd = w...
# ensure we don't break imports from cement namespace def test_import(): from cement import App, Controller, ex, init_defaults # noqa: F401
from typing import Dict, List, Union, Any import inspect import torch from overrides import overrides from allennlp.common import Params from allennlp.common.checks import ConfigurationError from allennlp.data import Vocabulary from allennlp.modules.text_field_embedders.text_field_embedder import TextFieldEmbedder fr...
(function($) { "use strict"; /* .............................................. Loader ................................................. */ $(window).on('load', function() { $('.preloader').fadeOut(); $('#preloader').delay(550).fadeOut('slow'); $('body').delay(450).css({'overflow':'visible'}); }); ...
from typing import List class Solution: def generateAbbreviations(self, word: str) -> List[str]: start = [''] for ch in word: new_start = [] for abb in start: # add as a char new_start.append(abb + ch) # add as numeric ...
class Point2D(): def __init__(self, x, y): self.coord = [x,y] def __str__(self): return (f'Point: ({self.coord[0]}, {self.coord[1]})') def __del__(self): del self.coord # ОПРЕДЕЛЯЕМ ПОВЕДЕНИЕ КЛЮЧЕВОГО СЛОВА in # вообще итеририроваться можно по любому объекту - для этого...
/* * Vortex OpenSplice * * This software and documentation are Copyright 2006 to TO_YEAR ADLINK * Technology Limited, its affiliated companies and licensors. All rights * reserved. * * Licensed under the ADLINK Software License Agreement Rev 2.7 2nd October * 2014 (the "License...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * File Name : stm32f4xx_hal_msp.c * Description : This file provides code for the MSP Initialization * and de-Initialization codes. ****************************...
""" This module allows importing AbstractBaseUser even when django.contrib.auth is not in INSTALLED_APPS. """ import unicodedata from django.contrib.auth import password_validation from django.contrib.auth.hashers import ( check_password, is_password_usable, make_password, ) from django.db import models from djang...
import json from api.test import BaseTestCase class TestGetItems(BaseTestCase): def test_get_items_in_bucket_list(self): bucket_list_one = { "description": "Movies i have to watch by the end of the week", "status": "Pending", "title": "Entertainment", "use...
import subprocess # Commands regarding ADB def get_devices(): devices = {} adb_proc = subprocess.Popen(['adb', 'devices', '-l'], stdout=subprocess.PIPE) while True: line = adb_proc.stdout.readline().strip().decode("utf-8") if line != '': #the real code does filtering here ...
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],{11:function(module,exports,__webpack_require__){"use strict";function __export(m){for(var p in m)exports.hasOwnProperty(p)||(exports[p]=m[p])}Object.defineProperty(exports,"__esModule",{value:!0}),__export(__webpack_require__(159)),__export(__webpack_require__(16...
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import numpy as np import pytest import torch from pyro.ops.welford import WelfordArrowheadCovariance, WelfordCovariance from pyro.util import optional from tests.common import assert_equal, skipif_rocm @pytest.mark.parametrize(...
from distutils.core import setup, Extension from Cython.Build import cythonize import numpy setup(ext_modules = cythonize(Extension( "privBayesSelect", # the extension name sources=["privBayesSelect.pyx", "lib/methods.cpp", "lib/table.cpp", ...
const PORT = 8000 const axios = require('axios') const cheerio = require('cheerio') const express = require('express') const {response} = require("express"); const {replaceWith} = require("cheerio/lib/api/manipulation"); const app = express() const url = 'https://beacons.ai/' axios(url) .then(respons...
export default { default: [ ] };
#ifndef RR_GRAPH_BUILDER_H #define RR_GRAPH_BUILDER_H /** * @file * @brief This file defines the RRGraphBuilder data structure which allows data modification on a routing resource graph * * The builder does not own the storage but it serves a virtual protocol for * - node_storage: store the node list * - ...
import torch import torch.nn.functional as F import numpy as np from path import Path import argparse from tqdm import tqdm import imageio from models import DepthNet, PoseNet from inverse_warp import pose_vec2mat, compensate_pose, invert_mat, inverse_rotate from utils import tensor2array parser = argparse.ArgumentP...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon(React.createElement("path", { d: "M16.85 6.85l1.44 1.44-4.88 4.88-3.29-3.29a.9959.9959 0 00-1.41 0l-6 6.01c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L9.41 12l3.29 3.29c.39.39 1.02.39 1.41 0l5.59-5.58 1.44 1.44...
# -*- coding: utf-8 -*- # Copyright (c) 2017, masonarmani38@gmail.com and contributors # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class SalesJourneyPlanNewItem(Document): pass
KeyboardPhysical = function(kb){ this.kb = kb; } KeyboardPhysical.prototype.keyDown = function(event){ this.code = event.originalEvent.code; this.event = event; if((!this.isEventInKeysRange()) || (!this.kb.field.active)) return; if(this.keyLettersDown()) this.stopEvent(); } KeyboardPhysical.prototype.stopE...
import { createGlobalStyle } from "styled-components"; const GlobalStyle = createGlobalStyle` @import url("https://fonts.googleapis.com/css?family=Open+Sans:400,600,700|Poppins:400,500,600,700"); * { box-sizing: border-box; } *::selection { background-color: #fdcfd8; color: #514f7d; } *::-mo...
from dms import state from dms.ds import Field, Meta from dms.orm import FNS class Schema: def __init__(self, name: str, meta: Meta): self.name: str = name self.meta = meta self.pk = list(state.items.table(name=self.name).primary_key.columns)[0] self._fields = None @property ...
from src.Instructions import I class Parseur: def __init__(self, file_name): self.file_name = file_name self.content = self.get_content() self.instructions = [] def get_content(self): return [x.split("\n")[0] for x in open(self.file_name, "r").readlines()] def generate_inst...
""" Interfaces should not have an excessive number of mehtods """ from abc import abstractmethod ########################################################################## # Problematic interface, many responsabilities class Machine: def print(self, document): raise NotImplementedError def fax(self, ...
import os buff = bytearray(os.path.getsize('fear.txt')) with open('fear.txt', 'rb') as f: f.readinto(buff) half = len(buff) // 2 buff[:half] = buff[:half].upper() buff[half:] = buff[half:].lower() with open('fear_mod.txt', 'wb') as fw: fw.write(buff)
# Impacket - Collection of Python classes for working with network protocols. # # SECUREAUTH LABS. Copyright (C) 2021 SecureAuth Corporation. All rights reserved. # # This software is provided under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. #...
'use strict'; // name属性は複数ある場合があるので、返り値はNodeListになる。今回は要素が1つしかないので先頭の要素を取得している。 const decreaseBtnElement = document.getElementsByName('decrease_button')[0]; const inputCounterElement = document.getElementsByName('input_counter')[0]; const increaseBtnElement = document.getElementsByName('increase_button')[0]; const disp...
""" Django settings for tweetme project. Generated by 'django-admin startproject' using Django 1.10.3. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os...
# remove all tweets import sys data = sys.stdin.read() if data.find('<id>tag:twitter.com,') < 0: sys.stdout.write(data)
# -*- coding: utf-8 -*- """ author: Julien Seznec Rotting Adaptive Window Upper Confidence Bounds for rotting bandits. Reference : [Seznec et al., 2019b] A single algorithm for both rested and restless rotting bandits (WIP) Julien Seznec, Pierre Ménard, Alessandro Lazaric, Michal Valko """ from __future__ import d...
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'blockquote', 'es', { toolbar: 'Cita' } );
#!/usr/bin/env python # -*- coding:utf-8 -*- import os import sys sys.path.append(os.path.join(os.path.dirname(__file__), 'common/pylib')) from localeUtil import getLocale from localeUtil import parseAcceptLanguage from misc import isDevServer from misc import isTrack import i18n import web sys.path.append(os.path.jo...
export const EnvironmentNames = { PRODUCTION: 'production', DEVELOPMENT: 'development', STAGING: 'staging', LOCAL: 'local', }; export const URLNames = { LOCALE: 'locale', API: 'api', SAMPLES: 'samples', }; export const VariableNames = { LOCALE_ENABLED: 'locale-enabled', LOCALE_ROUTING_ENABLED: 'loca...
"""VARLiNGAM algorithm. Author: Georgios Koutroulis .. MIT License .. .. Copyright (c) 2019 Georgios Koutroulis .. .. 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 restr...
import json import logging import os import fileinput import re from .data_manipulation import DataManipulation # Logger logging.basicConfig(level=os.environ.get("LOGLEVEL", "INFO")) LOGGER = logging.getLogger(__name__) # Macros PULSAR_SOURCE_CONNECTION_ID_PLAYGROUND = f"29fb61f1-9342-48f5-9793-1afa008c377b" PULSAR...