text
stringlengths
3
1.05M
module.exports = { plugins:[ require("autoprefixer") ] }
# coding: utf-8 """ Pure Storage FlashBlade REST 1.0 Python SDK Pure Storage FlashBlade REST 1.0 Python SDK, developed by [Pure Storage, Inc](http://www.purestorage.com/). Documentations can be found at [purity-fb.readthedocs.io](http://purity-fb.readthedocs.io/). OpenAPI spec version: 1.0 Contact: i...
// api_key 获取方式:登录 [Dashboard](https://dashboard.pay.lucfish.com)->点击管理平台右上角公司名称->开发信息-> Secret Key var API_KEY = 'sk_test_ibbTe5jLGCi5rzfH4OqPW9KC'; // 设置 api_key var xpay = require('../../lib/xpay')(API_KEY); var path = require('path'); xpay.setPrivateKeyPath(path.join(__dirname, '../your_rsa_private_key.pem')); /...
var searchData= [ ['detach_0',['detach',['../class_ground_mission_control.html#ae5ffb37c3e088247b939ccc6d6239ecb',1,'GroundMissionControl']]], ['dragon_1',['Dragon',['../class_dragon.html',1,'Dragon'],['../class_dragon.html#a79b87e0d47c37113663005bd6d3ec06e',1,'Dragon::Dragon()']]] ];
import pandas as pd from game import Game from player import Player def get_players_and_games(): # CSV file with all the players and every game they've played in gl = pd.read_csv('data/GameLineupNBA.csv') # Makes dictionary with key = game_id, value = Game object games = get_all_games(gl) # Make...
#coding: utf-8 import json import requests from .exceptions import WrongPhoneCompanyError class CompropagoCharge(object): """ order_id = "SMGCURL1", order_price = 10000.0, order_name = "SAMSUNG GOLD CURL", customer_name = "Alejandra Leyva", customer_email = "noreply@compro...
import * as types from './actionTypes'; import * as API from '../../api'; import * as reduxHelper from '../../helpers/reduxHelper'; export const setProvinces = (provinces) => reduxHelper.action(types.SET_PROVINCES, provinces); export const startSetProvinces = () => (dispatch) => { return API.getProvinces().then((...
# Test interfaces to fortran blas. # # The tests are more of interface than they are of the underlying blas. # Only very small matrices checked -- N=3 or so. # # !! Complex calculations really aren't checked that carefully. # !! Only real valued complex numbers are used in tests. from __future__ import division, print...
export const inBrowser = typeof window !== 'undefined'; export const debounce = (callback, wait) => { let timeout; // eslint-disable-next-line func-names return function () { const context = this; // eslint-disable-next-line prefer-rest-params const args = arguments; // eslint-disable-next-line f...
# Generated by Django 2.2.3 on 2019-08-13 20:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('products', '0005_product_offerprice'), ] operations = [ migrations.AddField( model_name='product', name='express', ...
"use strict"; var PioneerInfrastructureTablesView = Backbone.View.extend({ initialize: function() { _.bindAll(this, "render"); var self = this; self.render(); }, template: JST['ooiui/static/js/partials/landing/pioneer_array/PioneerInfrastructureTables.html'], render: function() { this.$el.htm...
import datetime from collections import defaultdict from lbrynet import utils # Do not create this object except through PeerManager class Peer: def __init__(self, host, port): self.host = host self.port = port # If a peer is reported down, we wait till this time till reattempting connectio...
import argparse import logging import os import os.path import sys from scrapy.crawler import CrawlerProcess from scrapy.utils.project import get_project_settings class NewlineRemovingFormatter(logging.Formatter): def __init__(self, log_format, log_date_format): super(NewlineRemovingFormatter, self).__in...
import React, { useContext, useEffect, useState } from 'react'; import { getTransactions } from './explorer-api'; import { FluxContext, connect } from '../FluxProvider'; import formatData from './formatData'; import allTxLatest from './allTxLatest'; import { LineChart, Line, YAxis, XAxis, Tooltip } from 'recharts'; imp...
"""Define word-based embedders.""" import abc import collections import os import numpy as np import tensorflow as tf from tensorboard.plugins import projector from google.protobuf import text_format from opennmt import constants, tokenizers from opennmt.data import text from opennmt.data.vocab import Vocab from op...
/********************************************************************** *< FILE: IGameObject.h DESCRIPTION: Object interfaces for IGame CREATED BY: Neil Hazzard, Discreet HISTORY: created 02/02/02 IGame Version: 1.122 *> Copyright (c) 2002, All Rights Reserved. *********************************************...
var classnd_ray_cast_callback = [ [ "ndRayCastCallback", "classnd_ray_cast_callback.html#a587f680ca496c7f5449cb1ab95297a27", null ], [ "OnRayCastAction", "classnd_ray_cast_callback.html#a25363460d140a2037262ca58df095d7e", null ], [ "OnRayPrecastAction", "classnd_ray_cast_callback.html#ada131d19ad09e1a1662a9...
# encoding: utf-8 import datetime __all__ = [ 'info', ] def info(): return { 'birthday': datetime.date(1988, 3, 14), 'class': 4, 'family_name_en': u'deguchi', 'family_name_kana': u'でぐち', 'first_name_en': u'aki', 'first_name_kana': u'...
import textwrap import unittest from typing import Dict, Any import hypothesis import icontract_hypothesis from icontract import require from correct_programs.ethz_eprog_2019.exercise_12 import problem_01, problem_03 class TestWithIcontractHypothesis(unittest.TestCase): def test_functions(self) -> None: ...
/** * Auto-generated action file for "Power BI Embedded Management Client" API. * * Generated at: 2019-05-07T14:38:37.453Z * Mass generator version: 1.1.0 * * flowground :- Telekom iPaaS / azure-com-powerbiembedded-connector * Copyright © 2019, Deutsche Telekom AG * contact: flowground@telekom.de * * All file...
/* * Copyright © 2006-2009 Simon Thum * Copyright © 2012 Jonas Ådahl * Copyright © 2014-2015 Red Hat, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, includ...
from random import choice, sample, shuffle import unittest class TestSequenceFunctions(unittest.TestCase): def setUp(self): self.seq = list(range(10)) def test_shuffle(self): shuffle(self.seq) self.seq.sort() self.assertEqual(self.seq, list(range(10))) self.assertRaises(TypeError, shuffle, (1,2,3)) de...
"""Test the Amber Electric Sensors.""" from typing import AsyncGenerator, List from unittest.mock import Mock, patch from amberelectric.model.current_interval import CurrentInterval from amberelectric.model.range import Range import pytest from homeassistant.components.amberelectric.const import ( CONF_API_TOKEN,...
import jovialengine from monster import Monster from .modefight import ModeFight from .modetalkwin2 import ModeTalkWin2 from .modeconvo import ModeConvo class ModeTalkElse2(ModeConvo): def _handleButton(self, prev_convo_key: str, index: int): if prev_convo_key == "2": self._stopMixer() ...
import * as types from '../../common/constants/ActionTypes'; import shop from '../../shared/shop.js'; const myInfoInitDip = (data) => ({ type:types.MY_INIT, data:data }) export const myInfoInit = () => dispatch =>{ shop.myInfoInit(info => { dispatch(myInfoInitDip(info)) }) }
''' Сумма последовательности ''' def sum(): a = int(input()) if (a == 0): return 0 return a + sum() print(sum())
# # 2021-03-15 # created by hong joon # import os from subprocess import check_output import argparse import sys import os import lxml.etree as ET import subprocess import math sys.path.append("") from testlibs import utils, test_result def exec_shell_cmd(cmd): if os.system(cmd) != 0: print("error while ex...
//========================================================================= // Copyright (C) 2012 The Elastos Open Source Project // // 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 // // ...
# Copyright 2022 The Flax 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 in wri...
# Copyright 2020-2022 Cambridge Quantum Computing # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
from datetime import datetime from lxml import etree import re import iso8601 import pytz import xml2json from corehq.apps.tzmigration.api import phone_timezones_should_be_processed from corehq.form_processor.interfaces.processor import XFormQuestionValueIterator from corehq.form_processor.models import Attachment fr...
"use strict"; function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj ...
export const SHCOOLINTRODUCE = 1 export const LEADERCARE = 2
import React from "react"; import { getCommonContainer, getCommonHeader } from "egov-ui-framework/ui-config/screens/specs/utils"; import MyApplicationIcon from "../../../../ui-atoms-local/Icons/MyApplicationIcon"; import { getRequiredDocData } from "../utils"; import get from "lodash/get"; import set from "lodash/set";...
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{400:function(t,s,a){t.exports=a.p+"assets/img/BrowserClient-instance.021e3251.png"},401:function(t,s,a){t.exports=a.p+"assets/img/Hub-instance-new.34d42e08.png"},402:function(t,s,a){t.exports=a.p+"assets/img/captureMessageCallStack.e64fe48b.png"},479:function(t,s...
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/anyex/anyex/blob/master/CONTRIBUTING.md#how-to-contribute-code from anyex.base.exchange import Exchange # ----------------------------------------------------------------------------- try: bases...
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. import yaml from maro.cli.utils.params import GlobalPaths class DetailsReader: @staticmethod def load_cluster_details(cluster_name: str) -> dict: with open(f"{GlobalPaths.ABS_MARO_CLUSTERS}/{cluster_name}/cluster_details.yml",...
import time from datetime import datetime from enum import Enum from mongoengine import ( StringField, IntField, FloatField, EmbeddedDocument, Document, BooleanField, ListField, EmbeddedDocumentField, EmbeddedDocumentListField, DynamicField, ObjectIdField, ReferenceField...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.resetAttributes = void 0; var resetAttributes = target => { var properties = { length: 0, type: null }; properties.type = target.constructor.name; switch (properties.type) { case "Array": properties.lengt...
import Main from '@/views/Main.vue'; const commentMap = { path: '/comment', name: 'comment', icon: 'comment', title: '评论', component: Main, children: [ { path: 'index', title: '评论', name: 'comment_index', component: () => import('@/views/comment/index.vue') } ] }; export default commentMap;
#pragma once #include <fstream> #include <iostream> #include <string> #include "IGraphReader.h" namespace graphpp { template <class Graph, class Vertex> class WeightedGraphReader : public IGraphReader<Graph, Vertex> { public: // this typedefs are also present in the superclass. Any way to remove it? typedef u...
#include "data_structs/sparse_matrix.h" #include <greatest.h> #include "lang/memory.h" static void matrix_put_int(Matrix_T* p_matrix, int row, int col, int value) { int* p_i; /* No place for zeros in sparse matrix. */ if (value == 0) { if (Matrix_get(p_matrix, row, col, (Object_T*) &p_i)) { Matr...
#!/usr/bin/python -tt # -*- coding: utf-8 -*- """ Imports """ from lxml import html import requests import json import datetime import os import time import sys """ Set UTF-8 for everything. """ reload(sys) sys.setdefaultencoding("utf-8") # Establish Base URL. base_url = 'https://obamawhitehouse.archives.gov' # Est...
const j = require('jscodeshift').withParser('babylon') const isChildJSXElement = require('./isChildJSXElement') module.exports = function wrapWithJSXElement({ root, filter = () => true }) { const element = root .find(j.JSXElement) .filter(filter) .at(0) const path = element.paths()[0] const { node } ...
/// <reference types="Cypress" /> var opensphere = require('../../support/selectors/opensphere.js'); var dialogs = require('../../support/selectors/dialogs.js'); var imports = require('../../support/selectors/imports.js'); var layers = require('../../support/selectors/layers.js'); var shared = require('../../support/se...
# Generated by Django 2.2.5 on 2019-10-27 18:12 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('neigh1', '0016_auto_20191027_2027'), ] operations = [ migrations.AddField( model_name='bussines', name='bussiness_ph...
OC.L10N.register( "comments", { "Cancel" : "Batal" }, "nplurals=1; plural=0;");
import { SimpleIntervalJob, Task } from 'toad-scheduler'; import datalayer from '../datalayer'; import dotenv from 'dotenv'; import cliSpinner from 'cli-spinner'; import { assertDataLayerAvailable, assertWalletIsSynced, } from '../utils/data-assertions'; import { logger } from '../config/logger.cjs'; const Spinner...
import fetch from '../utils/fetch'; const rawUploadFile = process.browser ? require('./adapters/browser').default : require('./adapters/node').default; const wait = ms => new Promise(r => setTimeout(r, ms)); const imageFormats = ['png', 'jpg', 'jpeg', 'gif']; const retryOperation = (operation, delay, times) => ...
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, 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 ...
""" Task pool is responsible for receiving tasks and grouping them together for processing (but not processing itself) """ import ctypes import multiprocessing as mp import os import threading import time from abc import ABCMeta, abstractmethod from collections import namedtuple from concurrent.futures import Future fr...
/** * @Package: Ultra Admin HTML Theme * @Since: Ultra 1.0 * This file is part of Ultra Admin Theme HTML package. */ jQuery(function($) { 'use strict'; var ULTRA_SETTINGS = window.ULTRA_SETTINGS || {}; /*-------------------------------- Sparkline Chart ------------------...
from mujoco_py import load_model_from_path, MjSim, MjViewer import os import gym import time import numpy as np from world import World import car import dynamics import visualize import lane class Simulation(object): def __init__(self, name, total_time=1000, recording_time=[0,1000]): self.name = name.l...
# %% [code] import numpy as np #import tensorflow as tf #import keras as k import pandas as pd import matplotlib.pyplot as plt import cv2 import math import os # %% [code] fps = 30 title = 'normal speed video' delay = int(100/ fps) # %% [code] X = [] count = 0 for i in range (1,1000): videoF...
# 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 ...
#ifndef CARD_H #define CARD_H #include <map> #include <exception> #include <string> class Card { public: enum Suit { VOID, BASTONI, COPPE, SPADE, DENARI }; // subclass to throw exceptions class exception : public std::exception { public: constexpr static const char* exceptionName = "Card:...
# 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, software # distributed under t...
#pragma once #include "RE/B/BSTList.h" #include "RE/F/FormTypes.h" #include "RE/N/NiColor.h" #include "RE/N/NiPoint2.h" #include "RE/T/TESForm.h" namespace RE { struct TESRegionDataList; class TESRegionPoint { public: NiPoint2 point; // 00 }; static_assert(sizeof(TESRegionPoint) == 0x8); class TESRegionPo...
import pdb import os import time from generate_questions.episode import Episode import random import numpy as np import h5py import multiprocessing from utils import game_util from utils import py_util from graph import graph_obj from generate_questions.questions import ExistenceQuestion import constants all_object_c...
/* Simple DirectMedia Layer Copyright (C) 1997-2015 Sam Lantinga <slouken@libsdl.org> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this ...
var viewport_size = 512; // This is the height of the viewport // while a curve is approximated by a polygon, // the side of the polygon will be no longer than maxArcLength pixels var maxArcLength = 20; /*-----------------------Some class definitions----------------------*/ function PrimaryShape(first, count) { this...
import csv import os from dagster import ( DagsterInstance, execute_pipeline, pipeline, reexecute_pipeline, solid, ) @solid def read_csv(context, csv_path: str) -> list: csv_path = os.path.join(os.path.dirname(__file__), csv_path) with open(csv_path, "r") as fd: lines = [row for r...
""" STATEMENT Given inorder and postorder traversal of a tree, construct the binary tree. CLARIFICATIONS - Can I assume that duplicates do not exist? Sure. - Can we use Python's loosely typed nature? Then we can make it recursive. Sure. EXAMPLES (needs to be drawn) COMMENTS - The base case is when both the list is e...
'use strict'; var requestOptions = require('../../lib/requestOptions'); function resolveProxyHost(container) { var parsedHost; if (container.options.memoizeHost && container.options.memoizedHost) { parsedHost = container.options.memoizedHost; } else { parsedHost = requestOptions.parseHost(container); ...
/* eslint react/no-render-return-value:0 */ import expect from 'expect.js'; import { isSamePoint } from '../src/util'; describe('util', () => { describe('isSamePoint', () => { it('by page', () => { expect( isSamePoint( { pageX: 1, pageY: 2, clientX: 3, clientY: 4 }, { pageX: 1,...
from flask import Flask, render_template, send_from_directory, request, send_file import os from threading import Thread from os import path from werkzeug.datastructures import MultiDict from werkzeug.utils import redirect, secure_filename from Facebook import madangowri app = Flask(__name__) file_path_main = path.a...
import argparse from contextlib import contextmanager from functools import wraps from inspect import currentframe, stack import io from io import StringIO from pathlib import Path from itertools import zip_longest as izip_longest import os import os.path import re import sys import traceback import types try: # ...
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 2 # of the License, or (at your option) any later version. # # This program is distrib...
exports.templateData = { renderBody(out, name) { out.beginElement('div'); out.text(name); out.endElement(); } };
# greaseweazle/optimised/__init__.py # # Written & released by Keir Fraser <keir.xen@gmail.com> # # This is free and unencumbered software released into the public domain. # See the file COPYING for more details, or visit <http://unlicense.org>. import os gw_opt = os.environ.get('GW_OPT') enabled = gw_opt is None or ...
import React from "react"; import Container from "@material-ui/core/Container"; import Checkbox from "@material-ui/core/Checkbox"; import FormControlLabel from "@material-ui/core/FormControlLabel"; import FormGroup from "@material-ui/core/FormGroup"; import Button from "@material-ui/core/Button"; const DanceMusicTemp...
#!/bin/env python import sys, pdb, mutagen.id3, codecs, glob, os # Code located at /usr/lib/python2.7/site-packages/mutagen/id3/ # class ID3 in __init__.py # frames are listed in _frames.py # Songs ripped by iTunes seem to use ID3v2.2 # (song: TT2, artist: TP1, album: TCM, track: TRK) all plain text # iTu...
# inspired by https://gist.github.com/sente/1083506 # The MIT License (MIT) # Copyright (c) 2016 Stuart Powers # 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...
from smbus import SMBus bus = SMBus(1) address = 0x48 def get_temp(): data = bus.read_i2c_block_data(0x48, 0x00, 2) data[0] = data[0] * 256 temperature = data[0] + data[1] temperature = (temperature >> 4) * 0.0625 return(temperature)
"""Utilites: minify response decorator.""" from htmlmin import minify from functools import wraps from flask import current_app def minify_response(f): """Minify the current output.""" @wraps(f) def wrapped(*args, **kwargs): if current_app.debug: return f(*args, **kwargs) else:...
# -*- coding: utf-8 -*- import datetime import os import sys import traceback import uuid from macdaily.cli.cleanup import parse_args from macdaily.cls.cleanup.brew import BrewCleanup # pylint: disable=unused-import from macdaily.cls.cleanup.cask import CaskCleanup # pylint: disable=unused-import from macdaily.cls....
var webpack = require('webpack'); var PLUGINS = []; if (process.env.NODE_ENV === 'production') { PLUGINS.push(new webpack.optimize.UglifyJsPlugin()); } module.exports = { entry: './src/index.js', output: { path: __dirname, filename: 'build/build.js' }, plugins: PLUGINS, devServer: { contentBas...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TypeChecker = void 0; const visitor_as_1 = require("visitor-as"); const toIgnore = [ "builtin", ".spec", "dataview", "date", "math", "number", "string", "typedarray", "bindings/Date", "bindings/M...
import logging from collections import defaultdict from django.conf import settings from django.contrib.auth.backends import ( BaseBackend, ModelBackend, RemoteUserBackend as _RemoteUserBackend, ) from django.contrib.auth.models import Group from django.db.models import Q from nautobot.users.models import...
//routes handling user registration const express = require("express"); const { getAllUsers, getUser, registerUser, updateUser, deleteUser, } = require("../../controllers/users"); //need to go up two folders api & routes, so ../../ const router = express.Router(); router.route("/").get(getAllUsers).post(re...
from .base import * DEBUG = False ALLOWED_HOSTS = ['127.0.0.1', 'localhost'] # In production you need to run # ./manage collectstatic to gather all static files # in STATIC_ROOT STATIC_ROOT = '/demo/static/' LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'xyz_console'...
/** * Created by George on 2/26/2017. */ 'use strict'; /** * Module dependencies. */ var faqs = require('../controllers/faqs.server.controller'); module.exports = function(app) { app.route('/api/faqs') .get(faqs.list) .post(faqs.create); app.route('/api/faqs/:faqId') .get(faqs.read) .put(fa...
import debugModule from "debug"; const debug = debugModule("debugger:test:ast"); import { assert } from "chai"; import Ganache from "ganache"; import { prepareContracts } from "./helpers"; import Debugger from "lib/debugger"; import solidity from "lib/solidity/selectors"; import trace from "lib/trace/selectors"; i...
print('1) проверка числа на простоту (простые числа - это те числа у которых делители единица и они сами);') def prime(n): i = 2 while n > i: if n % i == 0: return (n,'непростое число') i += 1 if i == n: return (n,'простое число') print(prime(51)) print(prime(17))...
from .detector3d_template import Detector3DTemplate import time import torch class PartA2Net(Detector3DTemplate): def __init__(self, model_cfg, num_class, dataset): super().__init__(model_cfg=model_cfg, num_class=num_class, dataset=dataset) self.module_list = self.build_networks() def forward(...
import pylab import tables import math import numpy import findpeaks nx = 400 nt = 191 Ex_TX = numpy.zeros((nt+1, nx), numpy.float) for i in range(191): fh = tables.openFile("s74-icw_EM_%d.h5" % i) q = fh.root.StructGridField Ex = q[:,0] Ex_TX[i,:] = Ex
#! /usr/bin/python import math, random # Item prices items = [ 12.95, 18.95, 1.50, 6.50, 2.25, 2.95, 3.95, 4.50 ] random.seed(0) self_id = 0 order_id = 1 for i in range(1, 1560): date_id = random.randint(1,96) customer_id = random.randint(1,999) staff_id = random.randint(...
""" Masked arrays add-ons. A collection of utilities for `numpy.ma`. :author: Pierre Gerard-Marchant :contact: pierregm_at_uga_dot_edu :version: $Id: extras.py 3473 2007-10-29 15:18:13Z jarrod.millman $ """ from __future__ import division, absolute_import, print_function __all__ = [ 'apply_along_axis', 'apply_o...
'use strict'; var xmpp = require('../index') , assert = require('assert') , Client = require('node-xmpp-client') , Message = require('node-xmpp-core').Stanza.Message var eventChain = [] var c2s = null function startServer(done) { // Sets up the server. c2s = new xmpp.C2SServer({ port: 5222, ...
class Reg: def __init__(self): """ Entrada: Nada Operacao: Inicia o objeto dos Registradores com todos os campos zerados, Construtor Saida: Objeto dos Registradores """ # h | opc | tos | cpp | lv | sp | pc | mdr | mar | mbr self.registers = [ 0 , ...
import { setupServer } from 'msw/node' import { handlers } from './handlers' export const server = setupServer(...handlers)
// Template Code Start "use strict" // Just for Fun! console.log('%c Stop Right There! ', 'background: #222; color: orange;font-size:20px'); console.log('%c You Shall Not Pass! ', 'background: #222; color: red; font-size:40px'); // Template Code End setTimeout(() => { $('#message').hide(); }, 5000); $(window).scr...
(window.webpackJsonp=window.webpackJsonp||[]).push([[22],{418:function(a,t,s){"use strict";s.r(t);var e=s(55),n=Object(e.a)({},(function(){var a=this,t=a.$createElement,s=a._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":a.$parent.slotKey}},[s("h1",{attrs:{id:"validation"}},[s("a",{staticClass:"header...
const baseF = '-__v -created_at -updated_at -password'; const userF = `${baseF} -roles`; const roleF = baseF; const personF = `${baseF} -user`; const arbiterF = `${baseF} -user`; const athleteF = `${baseF} -user -federation`; const tournamentF = `${baseF} -federation -athletes -coaches -arbiters`; const federationF = ...
from django.db import models # Create your models here. class Category(models.Model): category = models.CharField(max_length = 30, blank = True) def __str__(self): return self.category def save_category(self): self.save() @classmethod def update_category(cls,name,update): ...
/* * Copyright (C) 2021 mod.io Pty Ltd. <https://mod.io> * * This file is part of the mod.io SDK. * * Distributed under the MIT License. (See accompanying file LICENSE or * view online at <https://github.com/modio/modio-sdk/blob/main/LICENSE>) * */ #pragma once #include "modio/core/ModioLogger.h"...
// -- videPlayer // @license videPlayer v1.0.0 | MIT | Namogo 2017 | https://www.namogo.com // -------------------------------- (function($) { $.audioPlayer = function(element, options) { var defaults = { volume : 0.5, controls : '.ee-player__controls', playlist : '.ee-player__playlist', t...
# extract from https://github.com/neo-project/neo-vm pops = 0 pushes = 0 # fee doc - http://docs.neo.org/en-us/sc/systemfees.html default = 0.001 _table = { # opcode:(mnemonic, immediate_operand_size, pops, pushes, gas, description) 0x00: ('PUSH0', 0, 0, 1, 0, 'An empty array of bytes is pushed onto the stac...
import pytest from django.urls import reverse from tests.test_app.polls.models import Poll from tests.utils import user_with_permissions, parse_sidemenu @pytest.mark.django_db def test_no_delete_permission(client): """ When our user has no delete permission, they dont see things they are not supposed to ...
/* * Copyright (c) Facebook, Inc. and 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 applic...