text
stringlengths
3
1.05M
# -*- coding: utf-8 -*- """DNACenterAPI Sites API fixtures and tests. Copyright (c) 2019 Cisco and/or its affiliates. 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, includin...
var searchData= [ ['debug_18',['DEBUG',['../kiss__fft__log_8h.html#ad72dbcf6d0153db1b8d8a58001feed83',1,'kiss_fft_log.h']]], ['docalc_19',['docalc',['../dostuff_8c.html#a29b3aabd5c4f44f85a5bb6f83b4ea1d1',1,'docalc(int frame_no, int atom_no, float traj[frame_no][atom_no][3], float pbc[3][3], int atom[atom_no], char ...
import os import random class RandomParamIterator(object): def __init__(self, param_sets): self.param_sets = param_sets def random_param_set(self): param_set = {} for param_key, param_values in self.param_sets.items(): param_set[param_key] = random.choice(param_values) ...
from stats_arrays import ( UncertaintyBase, NormalUncertainty, TriangularUncertainty, UniformUncertainty, ) import bw_processing as bwp import matrix_utils as mu import numpy as np import pytest def mc_fixture(**kwargs): dp = bwp.create_datapackage(**kwargs) dp.add_persistent_vector( m...
import { async, TestBed } from '@angular/core/testing'; import { ForgotPasswordComponent } from './forgot-password.component'; import { AppMaterialModule } from 'src/app/app-material.module'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing'...
'use strict'; var chai = require('chai'); var expect = chai.expect; var constants = require('test/unit/fixtures/constants'); var elements = require('lib/common/elements')(constants); var factory = require('lib/base/attributes'); var AVFSError = require('lib/common/avfs-error'); var Storage = require('lib/commo...
import React,{useState} from 'react' import {Link} from 'react-router-dom' import PopupCard from '../components/PopupCard'; import back from '../images/back.png' import icon from '../images/iconBig3.png' const FindImpostor = () => { const [score, setScore] = useState(0) let role = ['true','true','false','false...
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test the wallet.""" from decimal import Decimal import time from test_framework.test_framework import ...
import React from "react"; import PropTypes from "prop-types"; import cx from "classnames"; const Menu = ({ up, right, ...props }) => ( <div className={cx("Menu", { "Menu--Right": right, "Menu--Up": up })} {...props} /> ); Menu.propTypes = { right: PropTypes.bool, up: PropTypes.bool }; Menu.defaultProps = { ...
# Copyright (c) 2021, B2Grow and Contributors # See license.txt # import frappe import unittest class TestHead(unittest.TestCase): pass
pbjsChunk([112],{104:function(e,r,a){e.exports=a(105)},105:function(e,r,a){"use strict";var t,d=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},s=a(0),i=a(1),l=(t=i)&&t.__esModule?t:{default:t};var n,p=a(4)...
var Helpers = require('./helpers'); var definitions = require('./definitions'); exports.email = function() { return this.userName() + "@" + this.domainName(); }; exports.userName = function() { switch(Helpers.randomNumber(2)) { case 0: return Helpers.randomize(definitions.first_name()); break; case 1: ret...
import os from collections import Counter input_path = os.path.join(os.path.dirname(__file__), "input.txt") with open(input_path) as f: data = f.read() def solve(data: str) -> int: heights = [[int(cell) for cell in row] for row in data.splitlines()] minimums = [] for i, row in enumerate(heights): ...
/*eslint-disable import/default*/ /* eslint-disable no-console */ import express from 'express'; import path from 'path'; import open from 'opn'; import fs from 'fs'; import https from 'https'; import compression from 'compression'; const port = 3000; const app = express(); app.use(compression()); app.use(express.s...
// Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma // de Barcelona (UAB). // // This work is licensed under the terms of the MIT license. // For a copy, see <https://opensource.org/licenses/MIT>. #pragma once #include "Containers/Array.h" class ACarlaPlayerState; class APlayerStart; class...
'use strict'; const io = require('socket.io-client'); const HOST_URL = process.env.HOST_URL || 'http://localhost:3000'; const NAMESPACE = process.env.NAMESPACE || 'caps'; const socket = io.connect(`${HOST_URL}/${NAMESPACE}`); const message = process.argv.splice(2)[0]; socket.emit ('new message', message); socke...
var group___s_t_l_u_x_struct___i2_c__t_8_i_t_r = [ [ "__pad0__", "group___s_t_l_u_x.html#a74a47a7eac047138ff811ede153943e6", null ], [ "ITBUFEN", "group___s_t_l_u_x.html#afd3876d3959ab0155eb9cd16e28b6ad4", null ], [ "ITERREN", "group___s_t_l_u_x.html#a7e83155db98914fb889a6ff2c189a97a", null ], [ "ITEVTE...
import requests import json import time apiUrl = 'http://localhost:3000/dronesym/api/node' def update_drone(id, status): try: response = requests.post(apiUrl + '/update/' + str(id), json=status, headers={ 'Content-Type' : 'application/json' }) return response.json() except requests.ConnectionError: print("Ret...
# Copyright 2020 Microsoft Corporation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in...
/* jslint node: true */ /* eslint-env node */ 'use strict'; // Require express, socket.io, and vue const express = require('express'); const app = express(); const http = require('http').Server(app); const io = require('socket.io')(http); const path = require('path'); // Pick arbitrary port for server const port = 30...
import random import time import signal import json import sys import os import numpy as np from head_rig import HeadRig from utils import extract_user_id from arena import * avatars = {} scene = Scene(host="arenaxr.org", realm="realm", scene="avatar") def user_join_callback(scene, camera, msg): global avatar...
"""This module contains the general information for BiosVfExecuteDisableBit ManagedObject.""" from ...imcmo import ManagedObject from ...imccoremeta import MoPropertyMeta, MoMeta from ...imcmeta import VersionMeta class BiosVfExecuteDisableBitConsts: VP_EXECUTE_DISABLE_BIT_DISABLED = "Disabled" VP_EXECUTE_DI...
import Icon from 'vue-awesome/components/Icon' Icon.register({ looks_4_sharp: { paths: [ { d: 'M21.04 3h-18v18h18V3zm-6 14h-2v-4h-4V7h2v4h2V7h2v10z' } ], width: '24', height: '24' } })
from random import randint class Die(): """表示一个骰子的类""" def __init__(self,number_size = 6): self.number_size = number_size #翻滚骰子 def roll(self): """返回一个位于1和骰子面数之间的随机数""" return randint(1,self.number_size)
import React from 'react' import { Link } from 'react-router-dom' import { css } from '@emotion/core' export default function LookAlikeHero () { return ( <div css={heroStyles}> <div className='content'> <p className='subheading'>DIVVY FOR SMALL BUSINESSES</p> <h1>Spend management for small ...
/* * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The OpenAirInterface Software Alliance licenses this file to You under * the OAI Public Lic...
__version__ = (1, 2, 0) version_string = '.'.join(str(n) for n in __version__)
name="Homie3" __version__ = "0.0.9"
import cx from 'classnames' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' /** * Button groups can contain conditionals. */ function ButtonOr(props) { const { className, text } = props const classes = cx(...
'use strict'; const os = require('os'); const isInstalledGlobally = require('is-installed-globally'); const pkgDir = require('pkg-dir'); const {cosmiconfig} = require('cosmiconfig'); module.exports = async () => { const searchDir = isInstalledGlobally ? os.homedir() : await pkgDir(); const searchPlaces = ['.np-confi...
from settings import * TEST_DISCOVER_PATTERN = "test_*" SOUTH_TESTS_MIGRATE = False # To disable migrations and use syncdb instead SKIP_SOUTH_TESTS = True DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:', } }
import socket class Server(object): def __init__(self): self.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.hostIp = '127.0.0.1' self.hostPort = 9999 self.clientIp = '127.0.0.1' self.clientPort = 9998 def main(self): self.sock.bind((self.hostIp, s...
"""Declare API endpoints with Django RestFramework viewsets.""" import uuid from django.urls import reverse from rest_framework import mixins, viewsets from rest_framework.decorators import action from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response from marsha.bbb.uti...
import React from 'react' import {linkTo} from '@storybook/addon-links' import {Welcome} from '@storybook/react/demo' export default { title: 'Welcome' } export const toStorybook = () => <Welcome showApp={linkTo('Button')} /> toStorybook.story = { name: 'to Storybook' }
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var core_1 = require("@angular/core"); var ngx_1 = require("@ionic-native/file-transfer/ngx"); var ng2_file_upload_1 = require("ng2-file-upload"); var edit_product_type_popup_1 = require("./edit-product-type-pop...
/** @license MIT License (c) copyright B Cavalier & J Hann */ /** * Licensed under the MIT License at: * http://www.opensource.org/licenses/mit-license.php */ (function(define){ define(function() { "use strict"; var undef; /** * Creates an object by either invoking ctor as a function and returning the result...
def count_good_rectangles(rectangles): lengths = [] for rect in rectangles: l = rect[0] w = rect[1] max_length = min(l, w) lengths.append(max_length) return lengths.count(max(lengths)) print(count_good_rectangles([[5, 8], [3, 9], [5, 12], [16, 5]])) print(count_good_recta...
# # MIT License # # Copyright (c) 2022 GT4SD team # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge,...
import { TYPES } from '../constants'; import grid from '../utils/grid'; import { on } from '../libs/kontra'; import componentManager, { moveComponent } from './component-manager'; import Mover from '../buildings/mover'; import { removeFromArray } from '../utils'; let movers = []; let moverManager = { init() { o...
""" Entradas NotaParcial1-->float-->N1 NotaParcial2-->float-->N2 NotaParcial3-->float-->N3 ExamenFinal-->float-->N4 TrabajoFinal-->float-->N5 Salidas Definitiva-->float-->Definitiva """ #ENTRADAS N1=float(input("Digite la calificación del primer parcial")) N2=float(input("Digite la calificación del segundo parcial")) N...
/* * Copyright (c) 2018 Cisco and/or its affiliates. * 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 applicabl...
import argparse from trace_race import TraceRace ap = argparse.ArgumentParser() ap.add_argument("-w", "--width", default=500, type=int, help='Display width') ap.add_argument("-c", "--color", required=False, help="Crayon color. Options: ['blue', 'green', 'pink', 'red', 'yellow']") args =...
'use strict'; var _InCallManager = require('react-native').NativeModules.InCallManager; import { Platform, Vibration, } from 'react-native'; class InCallManager { constructor() { this.vibrate = false; this.recordPermission = 'unknow'; this.cameraPermission = 'unknow'; this.a...
["^ ","~:resource-id",["~:shadow.build.npm/resource","node_modules/mathjs/lib/cjs/entry/dependenciesAny/dependenciesIsPrime.generated.js"],"~:js","shadow$provide.module$node_modules$mathjs$lib$cjs$entry$dependenciesAny$dependenciesIsPrime_generated=function(global,require,module,exports){Object.defineProperty(exports,\...
from contextlib import ExitStack import tensorflow as tf from .cnn import CNNComplex from .cross_domain import CrossDomainNet from ..utils.fourier import NFFT, AdjNFFT from ..utils.gpu_placement import gpu_index_from_submodel_index, get_gpus class NCPDNet(CrossDomainNet): def __init__( self, ...
const Sequelize = require("sequelize"); const localOptions = { host: "localhost", port: 3306, dialect: "mysql", pool: { max: 5, min: 0, idle: 10000, }, }; const productionOptions = { host: process.env.HOSTNAME, port: 3306, dialect: "mysql", use_env_variable: "JAWSDB_URL", pool: { m...
/* jshint -W101 */ var $ = require('mf-utils-node'), mongoose = require('mongoose'); module.exports = function (schema, options) { options = options || {}; setOptions(options); if (!schema.path(options.created.path) && options.created.use !== false) { var createdPath = options....
/*- * Copyright (c) 1997, 1998, 1999 * Nan Yang Computer Services Limited. All rights reserved. * * Parts copyright (c) 1997, 1998 Cybernet Corporation, NetMAX project. * * Written by Greg Lehey * * This software is distributed under the so-called ``Berkeley * License'': * * Redistribution and use in so...
#!/usr/bin/env python # -*- coding: utf-8 -*- ...
import matplotlib.pyplot as plt import re look = ['./log.txt'] shape = ['r'] for idx, item in enumerate(look): num = [] acc = [] print(item) with open(item) as f: for st in f: if st.find('train_acc') != -1: num.append(len(num)+1) acc.append(float(re...
from __future__ import absolute_import def insta_snapshot_stacktrace_data(self, event): self.insta_snapshot({ "stacktrace": event.get('stacktrace'), "exception": event.get('exception'), "threads": event.get('threads'), "debug_meta": event.get('debug_meta'), "contexts": even...
export class MockStorage { constructor () { this.data = {} } removeItem (p) { delete this.data[p] } setItem (p, val) { this.data[p] = val } getItem (p) { return this.data[p] } }
# coding: utf-8 # coding: utf-8 # import re import threading import time from logzero import logger from lxml import etree import uiautomator2 from uiautomator2.exceptions import XPathElementNotFoundError from uiautomator2.utils import U def safe_xmlstr(s): return s.replace("$", "-") def init(): uiautom...
import os import json import signal import shutil import sys import copy from datetime import datetime import traceback import yaml from infraboxcli.execute import execute from infraboxcli.job_list import get_job_list, load_infrabox_file from infraboxcli.log import logger from infraboxcli.workflow import WorkflowCache...
// Copyright Hansol Park (anav96@naver.com, mooming.go@gmail.com). All rights reserved. #ifndef MemoryManager_h #define MemoryManager_h #include "Types.h" #include <cstdint> namespace HE { class Allocator; class MemoryManager { private: Allocator* allocators[0xFF]; AllocatorId freeI...
''' Defines the base class of all expressions (`Expr`), as well as common subclasses for collections. ''' import collections import sys import traceback import weakref import numpy as np from traits.api import Any, Instance, Int, PythonValue from ... import blob_ctx, util from ...node import Node, indent from ...uti...
""" * 'show dmvpn' * 'show dmvpn interface {interface}' """ # Metaparser import re from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Any, Or, Optional # ============================== # Schema for # 'show dmvpn' # 'show dmvpn interface {interface}' # ==...
# ----------------------------------------------------------- # SSH: Single Stage Headless Face Detector # Main module for training the SSH network on a given dataset # Written by Mahyar Najibi # ----------------------------------------------------------- from SSH.train import train_net, get_training_roidb import argp...
import abc import unittest import reframe.core.launchers as launchers from reframe.core.launchers.registry import getlauncher from reframe.core.schedulers import Job class FakeJob(Job): def emit_preamble(self): pass def submit(self): pass def wait(self): pass def cancel(sel...
_base_ = '../../base.py' # model settings model = dict( type='MOCO', pretrained='data/basetrain_chkpts/moco_v2_800ep.pth', queue_len=65536, feat_dim=128, momentum=0.999, backbone=dict( type='ResNet', depth=50, in_channels=3, out_indices=[4], # 0: conv-1, x: stage...
/* * lcd.h * * Created on: 2016. 5. 14. * Author: Baram */ #ifndef LCD_H #define LCD_H #ifdef __cplusplus extern "C" { #endif #include "hw_def.h" typedef struct { } lcd_drv_t; void lcdInit(); void lcdDrawFrame(bool wait); void lcdSetRotation(uint8_t mode); void lcdFillRect(int16_t x, int16_t...
""" This test is applicable while InnoSchedule bot instance is running In order to run the test, you have to: 1.1 Create your bot in telegram: Write @BotFather the command "/newbot", follow instructions 1.2 In admin/permanent.py put your token 2.1 Run the bot: Python Innoschedule.py 3.1 Contact you bot, find ou...
#!/usr/bin/env python3 # @Date : 2022/2/27 # @Filename : 6009.py # @Tag : # @Autor : LI YAO # @Difficulty : from heapq import * from typing import List, Optional from collections import defaultdict, deque, Counter from itertools import product,combinations,permutations,accumulate from random impo...
import numpy as np from scipy import interpolate from matplotlib import pyplot as plt from matplotlib.patches import Rectangle import cv2 from skimage import morphology, graph import h5py from subprocess import check_output import sys import os import wormtracker.wormimageprocessor as wp import roitools import time imp...
import React from 'react' import { Route, Switch, Redirect, withRouter, BrowserRouter } from "react-router-dom" import AppContext from '../../common/AppContext' import TextEditor from '../../common/TextEditor' class CreateQuestionRadio extends React.Component{ constructor(props){ sup...
// ==UserScript== // @name yt-url-at-time // @namespace mechalynx/yt-url-at-time // @license MIT // @grant none // @description On youtube, use alt+` to set the url to the current timestamp, for easy bookmarking // @include https://www.youtube.com/* // @version 0.2.7 // @copyright 2017, Mec...
module.exports = function(grunt){ var filename = "leap-<%= pkg.version %>"; var banner = "/*! \ \n * LeapJS v<%= pkg.version %> \ \n * http://github.com/leapmotion/leapjs/ ...
import Vue from 'vue' import App from './App.vue' import router from './router' Vue.config.productionTip = false import mockFAQ from './mockFAQ.js' export const EventBus = new Vue(); let data = { queue: null, faq: mockFAQ, inQueue: false, //Global cus I'm guessing when this gets updated this'll be the easiest...
import _extends from "@babel/runtime/helpers/extends"; import * as React from 'react'; import { StyledIconBase } from '@styled-icons/styled-icon'; export var Magento = /*#__PURE__*/React.forwardRef(function (props, ref) { var attrs = { "fill": "currentColor", "xmlns": "http://www.w3.org/2000/svg" }; retur...
/* * SPDX-License-Identifier: Apache-2.0 * * Würth Elektronic WSEN-ITDS 3-axis accel sensor driver * * Copyright (c) 2020 Linumiz * Author: Saravanan Sekar <saravanan@linumiz.com> */ #include <init.h> #include <drivers/sensor.h> #include <sys/byteorder.h> #include <kernel.h> #include <sys/__assert.h> #include <...
import random going = True while going: user_action = input("Enter your choice (Rock, Paper, Scissors):") possible_action = ["Rock", "Paper", "Scissors"] computer_action = random.choice(possible_action) print(f"/n You chose {user_action}, computer chose {computer_action}") if user_action == computer_action: ...
# -*- coding: utf-8 -*- import logging from wechatpy.client import WeChatClient # NOQA from wechatpy.component import ComponentOAuth, WeChatComponent # NOQA from wechatpy.exceptions import ( WeChatClientException, WeChatException, WeChatOAuthException, WeChatPayException, ) # NOQA from wechatpy.oaut...
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from collections import defaultdict from datetime import datetime, timedelta import json import logging import pandas as pd import pickle import re import time import tra...
// @remove-on-eject-begin /** * Copyright (c) 2014-present, Facebook, Inc. All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same dir...
""" Hook for setuptools/distutils """ import distutils.dist import functools import warnings from setupmeta.model import MetaDefs, SetupMeta def finalize_dist(dist, setup_requires=None): """ Hook into setuptools' Distribution class before attributes are interpreted. This is called before Distribution a...
from metagraph.tests.util import default_plugin_resolver from . import RoundTripper from metagraph.plugins.pandas.types import PandasEdgeSet import pandas as pd def test_edgeset_roundtrip_directed(default_plugin_resolver): rt = RoundTripper(default_plugin_resolver) df = pd.DataFrame({"Source": [1, 3, 3, 5], "...
class Heuristic(): def score(self, game_state, player_id): raise NotImplementedError class CustomHeuristic(Heuristic): def __init__(self): pass def __get_player_liberties(self, game_state, player_id): loc = game_state.locs[player_id] return game_state.liberties(loc) de...
"""Decorators Recall the simple closure example we did which allowed us to maintain a count of ho9w many times a function was called: """ def counter(in)
from ps4a import * wordList = loadWords() def playHand(hand, wordList, n): """ Allows the user to play the given hand, as follows: * The hand is displayed. * The user may input a word or a single period (the string ".") to indicate they're done playing * Invalid words are rejected, and a m...
# 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 u...
import numpy as np from PIL import Image import random import torch def set_seed(seed_val): """Sets seed for reproducibility. Args: seed_val (int): Seed for rng. """ random.seed(seed_val) np.random.seed(seed_val) torch.manual_seed(seed_val) torch.cuda.manual_seed_all(seed_val) de...
# -*- 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 field 'Project.date_deleted' db.add_column(u'projects_project', 'date_deleted', ...
import numpy as np from scipy.stats import f as fdist, t as tdist from selection.truncated.F import sf_F from selection.truncated.T import sf_T def test_F(): f1 = sf_F(3.,20.,1) f2 = fdist(3.,20.) V = np.linspace(1,7,201) V1 = [float(f1(v)) for v in V] V2 = f2.sf(V) np.testing.assert_allclose...
/******************************************************************************* * * DO NOT EDIT THIS FILE! * This file is auto-generated by fltg from * INTERNAL/fltg/xgs/tm/bcm56990_a0/bcm56990_a0_TM_EBST_CONTROL.map.ltl for * bcm56990_a0 * * Tool: $SDK/INTERNAL/fltg/bin/fltg * * Edits to this file wi...
import re import sys import os linere = re.compile(r'^(\d+)\s+(\w+)\(([^)]+)\)\s+\=\s*(.*)$') #linere = re.compile(r'^(\S+)\s+(\w+)\(([^)]+)\)\s+\=\s*(.*)$') # Does not cope file-descriptor switches: #fcntl(3, F_DUPFD, 10) = 10 #close(3) = 0 #fcntl(10, F_SETFD, FD_CLOEXEC) = 0 ...
import { useStaticQuery, graphql } from 'gatsby'; const usePropiedades = () => { const datos = useStaticQuery(graphql` query { allStrapiPropiedades { nodes { nombre descripcion id wc precio estacionamiento habitaciones ...
import findspark findspark.init('/apps/spark') import pyspark import random odd = [] even = [] def disFun(val): if(val/2 == 0): odd.append(val) return odd else: even.append(val) return even sc = pyspark.SparkContext(appName="spark-rdd") data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] rd...
"""A process that reads from stdin and out using Twisted.""" from __future__ import division, absolute_import, print_function ### Twisted Preamble # This makes sure that users don't have to set up their environment # specially in order to run these programs from bin/. import sys, os pos = os.path.abspath(sys.argv[0])...
# Welcome to the first set of exercises """ ==== Exercise 1: add and remove comments ==== In the below example comment out the first line of code and uncomment the second, then run the file. """ print("This shouldn't print") # print("This should print") """ ==== Exercise 2: print multiple things ==== For this exerci...
# coding: utf-8 """ OrderCloud No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: 1.0 Contact: ordercloud@four51.com Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Ve...
# Copyright 2020 - 2021 MONAI Consortium # 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 wri...
var Plottable;!function(a){!function(a){!function(a){function b(a,b,c){return Math.min(b,c)<=a&&a<=Math.max(b,c)}function c(a){null!=window.console&&(null!=window.console.warn?console.warn(a):null!=window.console.log&&console.log(a))}function d(a,b){if(a.length!==b.length)throw new Error("attempted to add arrays of une...
from django.shortcuts import render from django.shortcuts import HttpResponse import json from django.core import serializers from cloud.models import Data # Create your views here. def index(request): return render(request, 'cloud/index.html', context={ 'title': 'PRP-DGPS', 'content': 'Welcome PRP-DGPS Server :...
# Battle Ship Collision ditection (bullets) import os import random import pygame # Settings WIDTH = 500 HEIGHT = 700 FPS = 60 # Colors WHITE = (233, 233, 233) BLACK = (0, 0, 0) RED = (233, 0, 0) GREEN = (0, 233, 0) BLUE = (0, 0, 233) YELLOW = (233, 233, 0) CYAN = (0, 233, 233) MAGENTA = (233, 0, 233) # Pygame init...
#!/usr/bin/python import sys import os import requests import urllib import re import dateutil.parser g_user = None g_pass = None g_sprint = None g_csv = False g_verbose = False g_burndown = False g_start_date = None def get_issue_key(issue): return issue[u'key'] def get_issue_assignee(issue): return iss...
const router = require("express").Router(); const cheerio = require("cheerio"); const baseUrl = require("../constants/urls"); const replaceMangaPage = "https://komiku.id/manga/"; const AxiosService = require("../helpers/axiosService"); // manga popular ----Ignore this for now -------- router.get("/manga/popular", asyn...
/*! @azure/msal-browser v2.18.0 2021-10-05 */ 'use strict'; /* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ var EventType; (function (EventType) { EventType["ACCOUNT_ADDED"] = "msal:accountAdded"; EventType["ACCOUNT_REMOVED"] = "msal:accountRemoved"; Ev...
import FormField from './components/FormField'; import DetailField from './components/DetailField'; Nova.booting((Vue, router) => { Vue.component('form-simple-repeatable', FormField); Vue.component('detail-simple-repeatable', DetailField); });
# Copyright 2014 IBM Corp. # # 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 t...
import zipfile import os import glob def flatarch(source,zipfile_name): """Creates a flat arhive including files only""" files = glob.glob(os.path.join(source, "*")) files_to_archive = [] for file in files: if os.path.isfile(file): files_to_archive.append(file) zf = zipfile.ZipF...