text
stringlengths
3
1.05M
import Vue from 'vue'; import App from './App.vue'; import numeral from 'numeral'; import customNumeralLocale from '@/assets/js/customNumeralLocale.js'; numeral.register('locale', 'us-custom', customNumeralLocale); numeral.locale('us-custom'); Vue.filter('numeralFormat', (value, format = '0,0') => numeral(value).forma...
"""atelieom URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.1/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-base...
""" core 模块里实现了 fastNLP 的核心框架,常用的功能都可以从 fastNLP 包中直接 import。当然你也同样可以从 core 模块的子模块中 import, 例如 :class:`~fastNLP.DataSetIter` 组件有两种 import 的方式:: # 直接从 fastNLP 中 import from fastNLP import DataSetIter # 从 core 模块的子模块 batch 中 import DataSetIter from fastNLP.core.batch import DataSetIter 对于常用的功能,你...
const mongoose = require("mongoose"); const Schema = mongoose.Schema; const workoutSchema = new Schema( { day: { type: Date, default: Date.now, }, // totalDuration: Number, exercises: [ { type: { type: String, enum: ['cardio', 'resistance'], req...
#!/usr/bin/env python from ..common import * from ..extractor import VideoExtractor import json class MusicPlayOn(VideoExtractor): name = "MusicPlayOn" stream_types = [ {'id': '720p HD'}, {'id': '360p SD'}, ] def prepare(self, **kwargs): content = get_content(self.url) ...
# -*- coding: utf-8 -*- """ Module to define and load pywikibot configuration default and user preferences. User preferences are loaded from a python file called user-config.py, which may be located in directory specified by the environment variable PYWIKIBOT2_DIR, or the same directory as pwb.py, or in a directory wi...
/* @flow strict-local */ import React, { PureComponent } from 'react'; import { StyleSheet, View } from 'react-native'; import type { Narrow } from '../types'; import { ViewPlaceholder } from '../common'; import { getInfoButtonFromNarrow, getExtraButtonFromNarrow } from './titleButtonFromNarrow'; const styles = Style...
''' Created on Aug 5, 2013 This file mostly contains access utility for BWTs that are already created on disk. @author: holtjma ''' import bisect import gc import gzip import heapq import math import numpy as np import os import pickle import pysam#@UnresolvedImport import shutil import sys import MSBWTGen #flags ...
module.exports = { presets: [ ['@babel/preset-react', { runtime: 'automatic' }], '@babel/preset-flow', '@babel/preset-env', ], };
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # 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...
/* * This is a part of the BugTrap package. * Copyright (c) 2005-2007 IntelleSoft. * All rights reserved. * * Description: Dynamic string holder. * Author: Maksim Pyatkovskiy. * * This source code is only intended as a supplement to the * BugTrap package reference and related electronic documentation ...
from wptserve.utils import isomorphic_decode def main(request, response): if b'Status' in request.GET: status = int(request.GET[b"Status"]) else: status = 302 headers = [] url = isomorphic_decode(request.GET[b'Redirect']) headers.append((b"Location", url)) if b"ACAOrigin" in ...
from django.conf.urls import patterns, include, url from django.contrib import admin from django.views.generic import TemplateView import home.views urlpatterns = patterns('', # Examples: # url(r'^$', 'searchblueprints.views.home', name='home'), # url(r'^blog/', include('blog.urls')), url(r'^admin/', i...
from collections import OrderedDict, defaultdict from typing import Tuple, Union from orderedset import OrderedSet from plenum.common.constants import PROPAGATE, THREE_PC_PREFIX from plenum.common.messages.node_messages import Propagate from plenum.common.request import Request, ReqKey from plenum.common.types import...
/* Copyright 2009 Larry Gritz and the other authors and contributors. All Rights Reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright noti...
"""Kernel Tuner interface module This module contains the main functions that Kernel Tuner offers to its users. Author ------ Ben van Werkhoven <b.vanwerkhoven@esciencenter.nl> Copyright and License --------------------- * Copyright 2016 Netherlands eScience Center Licensed under the Apache License, Version 2.0 (th...
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib import admin from .models import Ingredient, IngredientTag from products.models import Price class PriceInlineAdmin(admin.TabularInline): model = Price readonly_fields = ('per_kg', 'created_at','updated_at') class IngredientAd...
"Isoclines map for the predicted trajectory" from __future__ import division import matplotlib import numpy as np import matplotlib.cm as cm import matplotlib.mlab as mlab import matplotlib.pyplot as plt import scipy.interpolate import time import scipy.stats as stats import numpy.random as random plt.close('all') # p...
""" QR code generator """ import io import logging from base64 import b64encode import qrcode # I can decode the addresses produced correctly but the data load does not # appear to be identical to blockchain.info QR, not sure what's wrong def bitcoinqr(address, pixel_size=4, border_pixsels=0): """ QRCode """ r...
const fs = require('fs') const path = require('path') const inquirer = require('inquirer') const dedent = require('dedent') const root = process.cwd() const getAuthors = () => { const authorPath = path.join(root, 'data', 'authors') const authorList = fs.readdirSync(authorPath).map((filename) => path.parse(filenam...
/* * * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. * * Copyright 2007-2020 Broadcom Inc. All rights reserved. * * This file contains STAT definitions internal to the BCM library. */ #ifndef _BCM_INT_STAT_H #define _BCM_INT...
import random import numpy as np from agents.abstract_agent import Agent from gym_splendor_code.envs.mechanics.state_as_dict import StateAsDict class ValueNNAgent(Agent): def __init__(self, model): super().__init__() self.model = model def choose_act(self, mode, info=False): curre...
#! python3 import requests resp = requests.get("http://clav-api.di.uminho.pt/v2/classes?nivel=3&apikey=eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYyNGNiYTg0OWJhYmI2NjdjYmZkYzE2ZSIsImlhdCI6MTY0OTE5NTY1MiwiZXhwIjoxNjUxNzg3NjUyfQ.EuvH713Qr6IZ073-5FMF6j5p_3tb6Trv0TOOF5ZHWOPUlCBqKU1H9DTo_ueoCyWhPbEd6F8xzNvn-UkG3J8Ppq65...
""" Components that house MIDI events and other misc. data, """ from dataclasses import dataclass class TrackInfo(dataclass): """ An object that contains info about a specific track. The data in this object is used for keeping track of track statistics. We contain data about the track type, ...
var prewidth; $(".gallery-grid").hover(function(){ prewidth = $(this).find(".gallery-info").css("top"); console.log(prewidth); $(this).find(".gallery-info").css("top",0); },function(){ $(this).find(".gallery-info").css("top",prewidth); }); function nestajanjePopUp(){ localStorage.setItem("accepted", "tr...
/* * Inline Form Validation Engine 2.6.2, jQuery plugin * * Copyright(c) 2010, Cedric Dugas * http://www.position-absolute.com * * 2.0 Rewrite by Olivier Refalo * http://www.crionics.com * * Form validation engine allowing custom regex rules to be added. * Licensed under the MIT License */ (func...
/* artifact generator: C:\My\wizzi\v4\node_modules\v4-wizzi-js\lib\artifacts\js\module\gen\main.js primary source IttfDocument: c:\my\wizzi\v4\kernel\wizzi-mtree\src\ittf\lib\loader\ittfinterpolate.js.ittf utc time: Tue, 10 Oct 2017 15:44:11 GMT */ 'use strict'; var jsWizziRunner = require('../jswizzi/jsWiz...
export const initialState = { selectedCompanies: [], selectedSlots: {}, // [{ company_id: slot}] fetchingCompanies: false, errorFetchingCompanies: null, fetchedCompanies: false, fetchingCompaniesData: false, errorFetchingCompaniesData: false, fetchedCompaniesData: false, companiesOnlyList: [], compa...
(function() { "use strict"; load("jstests/aggregation/extras/utils.js"); // For arrayEq(). load("jstests/libs/analyze_plan.js"); // For getPlanStages(). const coll = db.wildcard_nonblocking_sort; assert.commandWorked(coll.createIndex({"$**": 1}, {wildcardProjection: {"excludedField": 0}}...
/** * BSD 3-Clause License * * Copyright (c) 2021, Avonni Labs, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright n...
class Translation(object): HELP_TEXT = """<b><u>BASIC COMMANDS</u></b>\n\n • /start :- Check Iam Alive\n • /help :- More Details\n • /about :- About Me\n • /sub :- Support and deploy\n • /stats :- User Count""" START_TEXT = """👋Hey {},Iam <a href="t.me/Psautofilter1bot">Psautofilter1bot</a>\n\nMake me an adm...
var assert = require('assert') var tape = require('tape') var {eval: ev, quote, bind, isBoundFun} = require('../eval') var syms = require('../symbols') var parse = require('../parse') var {isNumber, stringify, pretty, isArray} = require('../util') var unroll = require('../unroll') var flatten = require('../flatten') v...
/********************************************************************************************/ /********************************************************************************************/ #include "sys_types.h" #include "sys_define.h" #include "stdio.h" #include "string.h" #include "stdlib.h" #include "assert.h" #in...
from acme import Product import random ADJECTIVES = ['Awesome', 'Shiny', 'Impressive', 'Portable', 'Improved'] NOUNS = ['Anvil', 'Catapult', 'Disguise', 'Mousetrap', '???'] def generate_products(n=30, price_range=(5, 10), weight_range=(5, 100)): """Generate n number of products within a specified price and weigh...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Python 3 script # Author : Aymeric LAMBRECHT import xml.etree.ElementTree as etree import uuid, subprocess, os.path, argparse, sys, logging logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, format='%(asctime)s|%(levelname)s|%(funcName)s: %(message)s', datefm...
import hasInterface from '../../../../../hasInterface'; import SweepLineSegment from './SweepLineSegment'; import SweepLineEvent from './SweepLineEvent'; import EdgeSetIntersector from './EdgeSetIntersector'; import extend from '../../../../../extend'; import Collections from '../../../../../java/util/Collections'; imp...
# # Generated with FibreRopeBlueprint from dmt.blueprint import Blueprint from dmt.dimension import Dimension from dmt.attribute import Attribute from dmt.enum_attribute import EnumAttribute from dmt.blueprint_attribute import BlueprintAttribute from .crosssection import CrossSectionBlueprint from .crsaxialfrictionmod...
module.exports = { preset: 'ts-jest', moduleDirectories: ['node_modules', 'src'], collectCoverage: true, collectCoverageFrom: ['src/**/*.ts', '!src/index.ts', '!src/domain/**'], coverageThreshold: { global: { branches: 80, functions: 80, lines: 80, statements: 80, }, }, };
# stdlib from typing import Optional # third party import pytest # ite absolute import ite.datasets as ds def test_sanity() -> None: with pytest.raises(BaseException): ds.load("test") @pytest.mark.parametrize( "train_ratio", [0.1, 0.5, 0.8], ) @pytest.mark.parametrize( "downsample", [N...
#ifndef WLR_RENDER_WLR_RENDERER_H #define WLR_RENDER_WLR_RENDERER_H #include <stdint.h> #include <wayland-server-protocol.h> #include <wlr/render/wlr_texture.h> #include <wlr/types/wlr_box.h> struct wlr_output; struct wlr_renderer; void wlr_renderer_begin(struct wlr_renderer *r, int width, int height); void wlr_ren...
/** * \file appl_sample_example_5.c * * Source File for Generic OnOff Server and Light Lightness Server * Standalone application without CLI or menu based console input interface. * In this example, the server models are part of two different elements. */ /* * Copyright (C) 2018. Mindtree Ltd. * All rig...
/* (C) 2014 EEMBC(R). All rights reserved. All EEMBC Benchmark Software are products of EEMBC and are provided under the terms of the EEMBC Benchmark License Agreements. The EEMBC Benchmark Software are proprietary intellectual properties of EEMBC and its Members and is protected under...
let handler = async (m, { conn, text }) => { conn.hartatahta = conn.hartatahta ? conn.hartatahta : {} if (m.chat in conn.hartatahta) throw 'Masih ada yang sedang membuat\nTeks Custom Harta Tahta\ndi chat ini... tunggu sampai selesai' else conn.hartatahta[m.chat] = true m.reply('Sedang membuat...\nMohon tunggu s...
import os import unittest2 as unittest from keystone.test.functional import common class TestExtensions(common.FunctionalTestCase): use_server = True def test_extensions_json(self): r = self.service_request(path='/extensions.json') self.assertTrue('json' in r.getheader('Content-Type')) ...
from __future__ import nested_scopes import weakref import sys from _pydevd_bundle.pydevd_comm import get_global_debugger from _pydevd_bundle.pydevd_constants import call_only_once from _pydev_imps._pydev_saved_modules import threading from _pydevd_bundle.pydevd_constants import dict_items from _pydevd_bundle.pydevd_...
/**************************************************************************** ** ** Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info@nokia.com) ** ** This file is part of the QtGui module of the Qt Toolkit. ** ** Commercial Usage ** Licensees holding valid Q...
/* * SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 */ #include <string.h> #include "sdkconfig.h" #include "esp_rom_efuse.h" #include "esp_system.h" #include "esp_efuse.h" #include "esp_efuse_table.h" /* esp_system.h APIs relating to MAC addresses */ ...
(function(e){e.fn.inlineStyler=function(t){var n=e.extend({propertyGroups:{"*":["border","border-radius","box-shadow","height","margin","padding","width","max-width","min-width","border-collapse","border-spacing","caption-side","empty-cells","table-layout","direction","font","font-family","font-style","font-variant","f...
import datetime from typing import Union, ClassVar from dataclasses import dataclass, asdict from json_coder import jsonify UNDEFINED_XPAIR = "undefined-x-pair" ROUTED_TYPES = ("get", "post", "put", "patch", "del", "all") INCOMING_REQ_TYPES = ("rpcIn", *ROUTED_TYPES) OUTGOING_REQ_TYPES = ("rpcOut",) MARK_START = "st...
# # The Python Imaging Library. # $Id$ # # transform wrappers # # History: # 2002-04-08 fl Created # # Copyright (c) 2002 by Secret Labs AB # Copyright (c) 2002 by Fredrik Lundh # # See the README file for information on usage and redistribution. # from . import Image class Transform(Image.ImageT...
from defusedxml import ElementTree as ET from xml.etree.ElementTree import ElementTree, Element from math import floor from typing import Tuple def cap(number, min_, max_): """Cap a value between a lower and/or upper bound (inclusive)""" if min_ is not None and number < min_: return min_ ...
from games.game_interface import Game class Challenge(Game.Action): """This action cannot be played directly""" async def validate(self, game, sid, target=None) -> bool: return False async def activate(self, game, sid, target=None): pass class Income(Game.Action): async def vali...
import requests from ..constants import INDEX_FIELDS_URL, FOLDERS_URL class IndexFieldService: def __init__(self, vault): self.vault = vault def get_index_fields(self, query=''): """ get all index fields or filter by query :param query: string, example: "label = 'TestField'" ...
""" server side redis listener. - logging - exception handling """ import os import sys import json import toml import msgpack import requests import redis import threading import time import etcd import gevent from gevent.pool import Pool from gevent import monkey monkey.patch_all() conf_fn = os.sep.join(...
import torch from vap_turn_taking.utils import ( find_island_idx_len, get_dialog_states, get_last_speaker, ) class HoldShift: """ Hold/Shift extraction from VAD. Operates of Frames. Arguments: post_onset_shift: int, frames for shift onset cond pre_offset_...
from django.db import models from gram.users import models as user_models from django.utils.encoding import python_2_unicode_compatible from taggit.managers import TaggableManager @python_2_unicode_compatible class TimeStampedModel(models.Model): created_at = models.DateTimeField(auto_now_add=True) updated_at...
import unittest from api.SendEmail import send_confirmation_email from api.mail import MockMailSender class TestSendEmail(unittest.TestCase): def setUp(self): self.user_adress = "unosuke@gmx.com" self.from_address = "no-reply@morpheus.com" self.subject = "Account confirmation" s...
##################################################################### # # Predictive Failure Analysis (PFA) # Graph JES2 Resource Data # #This python script is for use with data that is collected, created, #and written by the PFA_JES2_RESOURCE_EXHAUSTION check only. Its #use w...
const db = require('./../mongodb/db'); const FileUtil = require('./fileUtil'); const DistrictCodeModal = require('./../models/districtCode'); const StatCodeModal = require('./../models/statCode'); const districtFilePath = './../json/districtcode'; const statFilePath = './../json/statcode'; // const Storage = { // ...
#include <stdlib.h> #include <stdio.h> #include <conio.h> #include "memory/memory.h" int main(int argc, char **argv) { m_init(20, 20); int error_code; m_id chunk_1 = m_malloc(13, &error_code); if (error_code != M_ERR_OK) abort(); m_id chunk_2 = m_malloc(20, &error_code); if (error_code != M_ERR_OK) abo...
/* Graph Renderer Displays a graph of pie / bar charts with an optional legend. Options type (STRING) Defines the display type of the graph, can be one of pie column stackedColumn row stackedRow line stackedArea Default is column. title (STRING)...
"""Component to integrate the Home Assistant cloud.""" import logging import voluptuous as vol from homeassistant.auth.const import GROUP_ID_ADMIN from homeassistant.components.alexa import const as alexa_const from homeassistant.components.google_assistant import const as ga_c from homeassistant.const import ( C...
# coding=utf-8 # Copyright 2018 The Dopamine 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...
'use strict'; myApp.controller('SwapiFilmsController', function SwapiFilmsController ($scope, $location, filmData){ $scope.films = filmData.getAllFilms(); });
// // JMWKWebView.h // CoreLib // // Created by CoreCode on 06.03.19. /* Copyright © 2020 CoreCode Limited 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...
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/index'); var users = require('./routes/users'); var ggirsv = require...
""" WSGI config for gettingstarted project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/ """ import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "configs.settings") from djang...
# -*- coding: utf-8 -*- from __future__ import unicode_literals, division, print_function, absolute_import import sys import hashlib try: import cPickle as pickle except ImportError: import pickle # shamelessly ripped from https://github.com/kennethreitz/requests/blob/master/requests/compat.py # Syntax sugar....
import React from 'react'; import Layout from '../components/layout/layout'; import HomeContent from '../components/home/home-content'; function IndexPage() { return ( <Layout> <HomeContent /> </Layout> ); } export default IndexPage;
'use strict'; var ValidationError = require('../error/validation_error'); var getType = require('../util/get_type'); module.exports = function validateConstants(options) { var key = options.key; var constants = options.value; var styleSpec = options.styleSpec; if (styleSpec.$version > 7) { if...
# -*- coding: utf-8 -*- """ EVOKE Page class - allowing several "kinds" of pages, including default kinds: - page : a generic page, which can have child pages (of any kind) - file : a reference to a flat file, available for download its parent page - image : a reference to a an image flat file...
"use strict"; function __export(m) { for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; } Object.defineProperty(exports, "__esModule", { value: true }); __export(require("./zip/zip_archive_writer")); __export(require("./zip/zip_archive_reader")); __export(require("./zip/zip_buffer_archive_reader"))...
""" This module is specifically intended for use when in environments where you're actively trying to share/develop tools across multiple applications which support PyQt, PySide or PySide2. The premise is that you can request the main application window using a common function regardless of the actual application - ...
var __create = Object.create; var __defProp = Object.defineProperty; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __getOwnPropNames = Object.getOwnPropertyNames; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropSymbols = Object.getOwnPropertySy...
#------------------------------------------------------------------------- # Copyright (c) Microsoft. 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.apac...
import argparse class GitHubArgumentParseError(Exception): """ Raised when there is an error parsing arguments for a CLI invocation from GitHub. """ class CustomHelpAction(argparse._HelpAction): """ Custom argparse action that handles -h and --help flags in Bugout Slack argument parsers. Thi...
class Solution(object): def partition(self, s): """ :type s: str :rtype: List[List[str]] """ cache = [[]] for index in range(len(s) - 1, -1, -1): tmp, suffix = [], s[index:] for cursor in range(index + 1, len(s)): sub = s[inde...
/** * Module dependencies. */ var qs = require('querystring'); var parse = require('url').parse; var base64id = require('base64id'); var transports = require('./transports'); var EventEmitter = require('events').EventEmitter; var Socket = require('./socket'); var util = require('util'); var debug = require('debug')...
import os,json,requests,time,random,task1,task12,task13 from bs4 import BeautifulSoup from pprint import pprint def count_movies(moviesLst): dicT={} for dic in moviesLst: for dic0 in dic["cast"]: if dic0["imdb_id"] not in dicT: dicT[dic0["imdb_id"]]={} count=0 for x in moviesLst: for y in x["ca...
"""This module containes SQLAlchemy models.""" from datetime import datetime from app import db # Association table for many-to-many relationship between orgs and users users = db.Table( # pylint: disable=invalid-name 'users', db.Column('org_id', db.Integer, db.ForeignKey('organization.id'), ...
import React from "react"; import PropTypes from "prop-types"; import Head from "next/head"; import settings from "../../settings"; const socialTags = ({ type, url, title, description, image, createdAt, updatedAt, }) => { const metaTags = [ { name: "twitter:card", content: "summary_large_image" }, ...
// // ____ _ __ _ _____ // / ___\ /_\ /\/\ /\ /\ /__\ /_\ \_ \ // \ \ //_\\ / \ / / \ \ / \// //_\\ / /\/ // /\_\ \ / _ \ / /\/\ \ \ \_/ / / _ \ / _ \ /\/ /_ // \____/ \_/ \_/ \/ \/ \___/ \/ \_/ \_/ \_/ \____/ // // Copyright...
var searchData= [ ['timecodetominutes_523',['timeCodeToMinutes',['../BrokerCommon_8h.html#a5f7fe934c97e99cd812171e90c7945cd',1,'ace_time::internal']]], ['timeoffset_524',['TimeOffset',['../classace__time_1_1TimeOffset.html#a0fca23cf055036370aadd89ca307aae8',1,'ace_time::TimeOffset::TimeOffset()'],['../classace__tim...
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'flash', 'eo', { access: 'Atingi skriptojn', accessAlways: 'Ĉiam', accessNever: 'Neniam', accessSameDomain: 'Sama domajno', a...
var columns = [ {title: "QVC", dataKey: "QVC"}, {title: "TP", dataKey: "TP"}, {title: "MP", dataKey: "MP"}, {title: "TVC", dataKey: "TVC"}, {title: "TFC", dataKey: "TFC"}, {title: "TC", dataKey: "TC"}, {title: "AVC", dataKey: "AVC"}, {title: "AFC", dataKey: "AFC"}, {title: "ATC", ...
module.exports = { tabWidth: 2,// tab缩进大小,默认为2 useTabs: false,// 使用tab缩进,默认false semi: true,// 使用分号, 默认true singleQuote: true, // 使用单引号, 默认false(在jsx中配置无效, 默认都是双引号) trailingComma: 'all', // 行尾逗号,默认none,可选 none|es5|all // es5 包括es5中的数组、对象 // all 包括函数对象等所有可选 bracketSpacing: true, // 对象中的空格 默认true //...
from pycoin.networks.bitcoinish import create_bitcoinish_network network = create_bitcoinish_network( symbol="BTDX", network_name="Bitcloud", subnet_name="mainnet", wif_prefix_hex="99", sec_prefix="BTDXSEC:", address_prefix_hex="19", pay_to_script_prefix_hex="05", bip32_prv_prefix_hex="0488ADE4", bip32_pub...
# -*- coding=utf-8 -*- from __future__ import absolute_import, print_function import itertools import os from fnmatch import fnmatch import attr import io import re import six import vistir from .environment import PYENV_ROOT, ASDF_DATA_DIR from .exceptions import InvalidPythonVersion six.add_move(six.MovedAttrib...
/** * @function create * @return {RFuncClint} - A client instance */ 'use strict' const RFuncClint = require('./rfunc_client') /** @lends create */ function create (...args) { return new RFuncClint(...args) } module.exports = create
#!/usr/bin/env python3 ############################################################################### # # # RMG - Reaction Mechanism Generator # # ...
# coding=utf-8 # Copyright 2018 The Google AI Language Team 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 ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ @author: ericyuan """ import pandas as pd import numpy as np import matplotlib.pyplot as plt import seaborn as sns from sklearn import linear_model from sklearn.model_selection import cross_validate from pykalman import KalmanFilter class CRESULT: '''class for ...
class Solution(object): def maxProfit(self, prices): """ :type prices: List[int] :rtype: int """ diff = 0 for i in range(len(prices) - 1): if prices[i] < prices[i + 1]: diff = max(diff, max(prices[i + 1:]) - prices[i]) return diff
// pages/about/about.js Page({ /** * 页面的初始数据 */ data: { }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { }, /** * 生命周期函数--监听页面隐藏 */ onHide: fun...
# Copyright 2018 The TensorFlow Probability 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 o...
#! /usr/bin/python import rospy import cv2 # OpenCV from cv_bridge import CvBridge, CvBridgeError # converts between ROS Image messages and OpenCV images from std_msgs.msg import String from sensor_msgs.msg import Image import numpy as np import math as m from enum import Enum from find_corners import find_corners "...
/* * Copyright (c) 2000-2005 Silicon Graphics, Inc. * Copyright (c) 2013 Red Hat, Inc. * All Rights Reserved. * * 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. * * This program is distr...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.J2C = { validate(buffer) { // TODO: this doesn't seem right. SIZ marker doesnt have to be right after the SOC return buffer.toString('hex', 0, 4) === 'ff4fff51'; }, calculate(buffer) { return { ...
/***************************************************************************/ /* */ /* afhints.h */ /* */ /* Au...
//Evaluate these: //#1 [2] === [2] //false {} === {} //false //#2 what is the value of property a for each object. const object1 = { a: 5 }; //4 const object2 = object1; //4 const object3 = object2; //4 const object4 = { a: 5}; //5 object1.a = 4; //#3 create two classes: an Animal class and a Mamal class. // create...