text
stringlengths
3
1.05M
/* * Copyright (c) 2006-2021, RT-Thread Development Team * * SPDX-License-Identifier: Apache-2.0 * * Change Logs: * Date Author Notes * 2006-02-24 Bernard first version * 2006-05-03 Bernard add IRQ_DEBUG * 2016-08-09 ArdaFu add interrupt enter and leave hook. * 2018...
module.exports = 'react';
# -*- coding: utf-8 -*- """ Copyright (c) 2008, appengine-utilities project 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 notice, this ...
exports.extend = function(r) { for (var t = Array.prototype.slice.call(arguments, 1), e = 0; e < t.length; e += 1) { var n = t[e]; for (var o in n) n.hasOwnProperty(o) && (r[o] = n[o]); } return r; };
/*- * Copyright (c) 2008-2015 Juan Romero Pardines. * 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, this ...
// SPDX-License-Identifier: BSD-3-Clause // Copyright Contributors to the OpenEXR Project. // This file is auto-generated by the cmake configure step #ifndef INCLUDED_ILMBASE_CONFIG_H #define INCLUDED_ILMBASE_CONFIG_H 1 #pragma once // // Options / configuration based on O.S. / compiler ///////////////////// #defi...
// Emacs style mode select -*- C++ -*- //----------------------------------------------------------------------------- // // Copyright(C) 1993-1996 Id Software, Inc. // Copyright(C) 2005 Simon Howard // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General P...
/* Copyright (c) 2015, The Linux Foundation. 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 * notice, this list ...
define("ace/snippets/haskell_cabal",["require","exports","module"], function(require, exports, module) { "use strict"; exports.snippetText =undefined; exports.scope = "haskell_cabal"; }); (function() { window.require(["ace/snippets/haskell_cabal"], function(m) { ...
from objectives.conditions._objective_condition import * import random class Condition(ObjectiveCondition): NAME = "Espers" def __init__(self, min_count, max_count): self.count = random.randint(min_count, max_count) super().__init__(ConditionType.EventWord, event_word.ESPERS_FOUND, self.count) ...
$(document).ready(function () { var e = new Date, t = e.getDate(), a = e.getMonth(), l = e.getFullYear(); $("#external-events div.external-event").each(function () { var e = {title: $.trim($(this).text())}; $(this).data("eventObject", e), $(this).draggable({zIndex: 999, revert: !0, revertDuratio...
import pandas as pd from datetime import datetime,timedelta from sqlalchemy import create_engine IMPULSE_KWH = 1000 #depends on prepaid meter RUPIAH_PER_KWH = 1444.70 # R-1/TR 1.301 – 2.200 VA def run_cron(): now_date = datetime.now().strftime('%Y-%m-%d') yesterday_date = datetime.now() - timedelta(days=1) ...
/******************************************************************************* * (c) 2018 ZondaX GmbH * * 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/lic...
import logging from pathlib import Path from typing import Dict, Text, List, Any, Optional, Union from ruamel.yaml.parser import ParserError import rasa.utils.common as common_utils import rasa.utils.io from rasa.constants import DOCS_URL_STORIES from rasa.core.constants import INTENT_MESSAGE_PREFIX, RULE_SNIPPET_ACT...
// Dashboard.js // ==================================================================== // ==================================================================== // - ThemeOn.net - $(window).on('load', function() { // Network chart ( Morris Line Chart ) // ===============================================...
import VueRouter from 'vue-router'; import APP3D from '../views/3d/index'; const routes = [ {path: '/', component: APP3D}, {path: '/3d', component: APP3D}, ]; const router = new VueRouter({ mode: 'history', routes, }); export default router;
# -*- coding: utf-8 -*- import PySide2.QtCore from PySide2.QtCore import Signal from PySide2.QtWidgets import QWidget from ......Classes.SlotW28 import SlotW28 from ......GUI import gui_option from ......GUI.Dialog.DMachineSetup.SWSlot.PWSlot28.Gen_PWSlot28 import Gen_PWSlot28 from ......Methods.Slot.Slot import Slot...
import axios from 'axios'; const uuid4 = require('uuid4'); const api = axios.create({ baseURL: 'http://localhost:6000/hlf/api', responseType: 'json', timeout: 50000, contentType: 'application/json', }); const getMiners = () => api .get('/org.acme.goldchain.Miner'); const getCas = () => api .get('/org.ac...
from seabreeze.pyseabreeze.features._base import SeaBreezeFeature # Definition # ========== # # TODO: This feature needs to be implemented for pyseabreeze # class SeaBreezeRevisionFeature(SeaBreezeFeature): identifier = "revision" def hardware_revision(self): raise NotImplementedError("implement in d...
#!/usr/bin/env python # Author: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> # Copyright (c) 2018 Linaro Ltd. # # SPDX-License-Identifier: MIT # # Example Usage: Reads maximum brightness value for user1 led and turns it # on/off depending on current state. Then sets led trigger # ...
import os from datetime import datetime, timedelta from selenium import webdriver from selenium.common.exceptions import TimeoutException from bs4 import BeautifulSoup import re import pandas as pd import time def base_url_builder(tag): #BUILDS THE BASE URL TO ITERATE ON FROM GIVEN TAG url = "ht...
"""StyleSheetList implements DOM Level 2 Style Sheets StyleSheetList.""" __all__ = ['StyleSheetList'] class StyleSheetList(list): """Interface `StyleSheetList` (introduced in DOM Level 2) The `StyleSheetList` interface provides the abstraction of an ordered collection of :class:`~cssutils.stylesheets.Sty...
# The MIT License (MIT) # Copyright (c) 2019 Ian Buttimer # 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,...
"""Study addon namespace.""" from contextlib import suppress from itertools import chain from pathlib import Path from time import monotonic from typing import Any, Dict, Iterator, List, Optional, Tuple import pydicom from box import Box from ambra_sdk import ADDON_DOCS_URL from ambra_sdk.addon.dicom import Uploaded...
default_app_config = 'capweb.apps.CapwebConfig'
from folium import plugins, Map, Circle, CircleMarker, PolyLine from randomcoords import RandomCoords center_point = [34.062400, -117.894900] # Defining the center of our map as well as our RandomCoords objects # Making our first map, a 100km circle with 5000 points. map1 = Map(location=center_point, zoom_st...
#ifndef AnalyticalErrorPropagation_H #define AnalyticalErrorPropagation_H #include "FWCore/Utilities/interface/Visibility.h" #include "TrackingTools/AnalyticalJacobians/interface/AnalyticalCurvilinearJacobian.h" #include "TrackingTools/TrajectoryParametrization/interface/GlobalTrajectoryParameters.h" #include "Trackin...
/* ======================================================== * * Londinium - premium responsive admin template * * ======================================================== * * File: application.js; * Description: General plugins and layout settings. * Version: 1.0 * * ==========================================...
#pragma once #include <memory> template<class T> class UPtrVirtualDeleterBase { public: UPtrVirtualDeleterBase() {} virtual ~UPtrVirtualDeleterBase() {} virtual void operator()(T *obj) = 0; }; template<class T> struct UPtrVirtualDeleter { std::unique_ptr<UPtrVirtualDeleterBase<T>> virtDeleter; ...
import getpass import os import sys from datetime import datetime from time import sleep import smtplib from email.mime.text import MIMEText import traceback from subprocess import check_output from os.path import exists, getctime from .utils import is_local, hostname log_fpath = None project_name = None project_fpa...
(function () { 'use strict'; angular .module('erpApp') .factory('JhiLanguageService', JhiLanguageService); JhiLanguageService.$inject = ['$q', '$http', '$translate', 'LANGUAGES']; function JhiLanguageService ($q, $http, $translate, LANGUAGES) { var service = { getA...
import os def error_CD(): print('A major error(CD=Config_Damage) has been detected') print('Fixing the error...') os.remove('bin/config.json') input('Please proceed by clicking enter and reopening the app') quit()
import React from 'react' const AboutPage = () => ( <> <h1>About Us</h1> <h2>Our Mission</h2> <p>Our mission is to train the world’s workforce in the careers of the future. We partner with leading technology companies to learn how technology is transforming industries, ...
ace.define("ace/snippets/plain_text", ["require", "exports", "module"], function (require, exports, module) { "use strict"; exports.snippetText = undefined; exports.scope = "plain_text"; }); (function () { ace.require(["ace/snippets/plain_text"], function (m) { if (typeof module == "object" && typeof expo...
from django.db import models from django.conf import settings from django.utils import timezone from django.urls import reverse from django.utils.text import slugify from django.utils.formats import localize_input, sanitize_separators from django.core.validators import MaxLengthValidator, RegexValidator #from carts.mod...
# /* # * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. # * A copy of the License is located at # * # * http://aws.amazon.com/apache2.0 # * # * or i...
var styles=[{"format_version": "1.0", "generated_by": "cytoscape-3.8.1", "target_cytoscapejs_version": "~2.1", "title": "PPIColorByCluster", "style": [{"selector": "node", "css": {"text-valign": "center", "text-halign": "right", "text-opacity": 1.0, "border-opacity": 1.0, "shape": "ellipse", "font-size": 9, "width": 35...
""" This script is used for course notes. Author: Erick Marin Date: 10/09/2020 """ # True print (10 > 1) # False print("cat" == "dog") # True print(1 != 2) # This would result in an error because the computer knows that one is a # number and the oter is a string. # TypeError: '<' not supported between instances of...
// // Assert.h // FastDTW-x // // Created by Melo Yao on 12/2/13. // Copyright (c) 2013 melo.yao. All rights reserved. // #ifndef FastDTW_x_Assert_h #define FastDTW_x_Assert_h #include <cassert> #include <stdio.h> #define FDASSERT0(__assertion__,__msg__) \ do {if(!(__assertion__)){printf(__msg__);assert(false);}}...
#!/usr/bin/env python import rospy from geometry_msgs.msg import Twist from ackermann_msgs.msg import AckermannDrive import math def cmd_vel_cb(msg): pub_msg = AckermannDrive() pub_msg.speed = msg.linear.x if msg.linear.x != 0 and msg.angular.z != 0: turn_radius = msg.linear.x / msg.angular.z ...
\n int kvm_arch_vcpu_setup(struct kvm_vcpu *vcpu) static u64 core_reg_offset_from_id(u64 id) static int get_core_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) static int set_core_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) int kvm_arch_vcpu_ioctl_get_regs(struct kvm_vcpu *vcpu, struct kvm_reg...
import _extends from 'babel-runtime/helpers/extends' import request, { extend } from 'umi-request' import { notification } from 'ant-design-vue' var codeMessage = { 200: '服务器成功返回请求的数据。', 201: '新建或修改数据成功。', 202: '一个请求已经进入后台排队(异步任务)。', 204: '删除数据成功。', 400: '发出的请求有错误,服务器没有进行新建或修改数据的操作。', 401: '用户没有权限(令牌、用户名、密...
// Copyright (c) 2013 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #ifndef SHELL_BROWSER_JAVASCRIPT_ENVIRONMENT_H_ #define SHELL_BROWSER_JAVASCRIPT_ENVIRONMENT_H_ #include <memory> #include "base/macros.h" #include "gin/public/isolate_holder.h" #inc...
import LinksView from './LinksView'; allure.api.addTestResultBlock(LinksView, {position: 'before'});
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
""" WSGI config for linkr 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/3.1/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('D...
/* $Id: msdosfs_vnops.c,v 1.80 1998/12/07 21:58:35 archie Exp $ */ /* $NetBSD: msdosfs_vnops.c,v 1.68 1998/02/10 14:10:04 mrg Exp $ */ /*- * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank. * Copyright (C) 1994, 1995, 1997 TooLs GmbH. * All rights reserved. * Original code by Paul Popelka (paulp@uts.amdahl.com) (...
module.exports = /******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = require('../../../ssr-module-cache.js'); /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /***...
A, I = map(int, input().split()) print(A*(I-1)+1)
$(".slider-header").slick({ lazyLoad: "ondemand", dots: true, infinite: true, speed: 1000, autoplaySpeed: 10000, arrows: false, fade: true, cssEase: "linear", autoplay: true, centerMode: true, slidesToShow: 1, pauseOnFocus: false, pauseOnHover: false, responsive: ...
''' Copyright 2013 Cosnita Radu Viorel 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, publish, distribute...
'use strict' if (process.env.NODE_ENV !== 'production') { require('dotenv').config() } const CONFIG = require('./config/config') const App = require('./app/app') const errorHandler = require('./app/middleware/error') App.use(errorHandler) App.listen(CONFIG.PORT, function (error) { if (error) return console.log(er...
guess = None value = 5 trial = 5 print("WELCOME TO OUR GUESS GAME") while trial > 0: print('Your remaining trial is {}'.format(trial)) guess = int(input('enter a number: ')) if guess == value: print('You win') break else: trial = trial-1 else: print('You loss')
import htmlgenerator as hg from django.utils.translation import gettext_lazy as _ from .icon import Icon class Button(hg.BUTTON): """buttontype: "primary", "secondary", "tertiary", "danger", "ghost" """ def __init__( self, *children, buttontype="primary", icon=None, n...
from .base import NbGraderPreprocessor from .headerfooter import IncludeHeaderFooter from .lockcells import LockCells from .clearsolutions import ClearSolutions from .saveautogrades import SaveAutoGrades from .computechecksums import ComputeChecksums from .savecells import SaveCells from .overwritecells import Overwrit...
import argparse import os import shutil import socket import subprocess from typing import List parser: argparse.ArgumentParser = argparse.ArgumentParser(description="Launch 35 merlin workflow jobs") parser.add_argument("run_id", type=int, help="The ID of this run") parser.add_argument("output_path", type=str, help="...
import { Component } from 'react'; import axios from 'axios'; import { withRouter } from 'react-router'; class FormBuilder extends Component { state = { loading: false, payload: [], searchParam: '' }; componentDidMount() { this.setState({ loading: true }); this.apiGet(); } apiGet = () => { console.lo...
import asyncio import copy import logging import os import pickle from typing import Dict, List, Optional from happy_bittorrent.algorithms import TorrentManager from happy_bittorrent.models import generate_peer_id, TorrentInfo, TorrentState from happy_bittorrent.network import PeerTCPServer from happy_bittorrent.utils...
export const REGISTER_USER = "REGISTER_USER"; export const LOGIN_USER = "LOGIN_USER"; export const USER_LOADED = "USER_LOADED"; export const LOGOUT = "LOGOUT"; export const AUTH_FAIL = "AUTH_FAIL"; export const SET_ALERT = "AUTH_FAIL"; export const REMOVE_ALERT = "REMOVE_ALERT"; export const CLEAR_ERRORS = "CLEAR_ERROR...
import {request} from './request' export function fetchGetList(params) { return request({ url:"/equipmentMaintain/getList", method:'get', params:params }) }
// Copyright Joyent, Inc. and other Node contributors. // // 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, modi...
from tetueSrc.configParser import get_configuration, get_string_list, get_int_element, get_string_element, get_dict, \ get_string_list_only_section, load_configuration from tetueSrc.logger import log_event_info, log_event_error, log_header_info
app = angular.module('app'); app.controller('HistoryCollectedCtrl',[ '$scope', '$rootScope', '$http', 'PublicService', '$sce', '$state', function($scope,$rootScope,$http,PublicService,$sce,$state){ if($rootScope.loginStatus){ var friend = $rootScope.userLogin.name; }else{ ...
# code credit goes to: # https://www.hackerearth.com/practice/notes/beautiful-python-a-simple-ascii-art-generator-from-images/ # code modified to work with Python 3 by @aneagoie from __future__ import division import os import sys import time import click import pyfiglet import pyjokes import random from asciimati...
class Rope { constructor(bodyA,pointB){ var options={ bodyA:bodyA, pointB:pointB, stiffness:1.2, length:250 } this.pointB=pointB; this.rope=Constraint.create(options); World.add(world,this.rope); } display() { var pointA = this.rope.bodyA.position; var pointB = this.pointB; push(); str...
$().ready(function(){ $("#board_info_file").change(function () { var fileObj = $(this)[0].files[0]; if (typeof (fileObj) == "undefined" || fileObj.size <= 0) { alert("Upload error."); return; } var file_name = $(this).val(); var formFile = new FormData()...
from bs4 import BeautifulSoup import requests as req import re import asyncio import aiohttp import os if os.name == 'nt': loop = asyncio.ProactorEventLoop() asyncio.set_event_loop(loop) else: loop = asyncio.get_event_loop() # db from db import handleDB, naiveHandleDB # global variables such as parsing U...
""" Find compiled module linking to Tcl / Tk libraries """ import sys from tkinter import _tkinter as tk if hasattr(sys, "pypy_find_executable"): TKINTER_LIB = tk.tklib_cffi.__file__ else: TKINTER_LIB = tk.__file__
#include "../redismodule.h" #include <string.h> int MutexTryAcquire_RedisCommand(RedisModuleCtx *ctx, RedisModuleString **argv, int argc) { if (argc != 4) { return RedisModule_WrongArity(ctx); } RedisModuleKey *lockKey = RedisModule_OpenKey(ctx, argv[1], REDISMODULE_READ|REDISMODULE_WRITE); int keyType =...
function init(){ var idEncuesta=$("#idEncuesta").val(); Generar(idEncuesta); $("#FormularioEncuesta").on("submit", function (e) { RegistroEncuesta(e); }); } function Generar(idEncuesta){ $.post("Gestion/Controlador/CEncuesta.php?op=RecuperarEncuestaCompleta", { "idEncuesta": idEncue...
const express = require('express'); const path = require('path'); const favicon = require('serve-favicon'); const logger = require('morgan'); const cookieParser = require('cookie-parser'); const bodyParser = require('body-parser'); const routes = require('./routes/index'); const latex = require('./routes/latex'); con...
# -*- coding: utf-8 -*- import json import os import shutil import tempfile import time import zipfile import multiprocessing import contextlib from unittest import mock from django import forms from django.conf import settings from django.forms import ValidationError from django.test.utils import override_settings ...
// Account Handling! var crypto = require('crypto'); // Data Models var User = require('../models/user.js'); var Session = require('../models/session.js'); function Account(c_socket, c_io) { this.m_io = c_io; this.m_socket = c_socket; } Account.prototype.VerifyEmailAddress = function (email) { var re = ...
'use strict'; /* jshint esnext: true */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactNative, { ListView, StyleSheet, View, NativeModules, } from 'react-native'; import merge from 'merge'; import SectionHeader from './SectionHeader'; import SectionList from './Secti...
# Natural Language Toolkit: Tokenizer Interface # # Copyright (C) 2001-2008 University of Pennsylvania # Author: Edward Loper <edloper@gradient.cis.upenn.edu> # URL: <http://nltk.sf.net> # For license information, see LICENSE.TXT """ Tokenizer Interface """ from nltk.internals import overridden class TokenizerI(objec...
module.exports = { purge: ['./components/**/*.js', './pages/**/*.js'], plugins: [require('@tailwindcss/forms')], theme: { extend: { height: (theme) => ({ 'screen-1/2': '50vh', 'screen-1/5': '20vh', 'screen-2/5': '40vh', 'screen-3/5': '60vh', 'screen-4/5': '80vh', ...
import csv import tmdbsimple as tmdb from ast import literal_eval BASE_URL = 'https://image.tmdb.org/t/p/w300' def readCsvFile(filename): # initializing the titles and rows list rows = [] # reading csv file with open(filename, 'r') as csvfile: # creating a csv reader object csvreader...
from utils import utils import numpy as np import pandas as pd from sklearn import metrics #matplotlib.use('Agg') import matplotlib.pyplot as plt from keras.models import load_model from config import settings as cnst from .predict_args import DefaultPredictArguments, Predict as pObj from plots.plots import display_pro...
# 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 applicable law or agreed to in...
#!/usr/local/bin/python3 # coding: utf-8 # YYeTsBot - __init__.py # 9/21/21 18:09 # __author__ = "Benny <benny.think@gmail.com>" import requests import logging API = "https://yyets.dmesg.app/api/resource?" logging.basicConfig( level=logging.INFO, format='[%(asctime)s %(filename)s:%(lineno)d %(levelname).1s...
#!/usr/bin/env python # -*- coding: utf-8 -*- import numpy as np chars = [u" ", u"▁", u"▂", u"▃", u"▄", u"▅", u"▆", u"▇", u"█"] def plot_hinton(arr, max_arr=None): if max_arr == None: max_arr = arr arr = np.array(arr) max_val = max(abs(np.max(max_arr)), abs(np.min(max_arr))) print (np.array2string(ar...
import getpass import re from django.core.management.base import BaseCommand from django.contrib.auth import get_user_model class Command(BaseCommand): help = 'Used to create admin.' requires_migrations_checks = True def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) s...
from ._anvil_designer import html_displayTemplate from anvil import * import anvil.facebook.auth import anvil.google.auth, anvil.google.drive from anvil.google.drive import app_files import anvil.microsoft.auth import anvil.users import anvil.server import anvil.tables as tables import anvil.tables.query as q from anvi...
# -*- coding: utf-8 -*- # # Copyright 2012-2015 Spotify AB # # 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"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SHELL_EXEC_OPTIONS = { silent: true, }; exports.SHELL_EXEC_RETURN_ARRAY = "array"; exports.SHELL_EXEC_RETURN_STRING = "string";
""" Python 3 compatibility tools. Copied from numpy/compat/py3k. Please prefer the routines in the six module when possible. BSD license """ __all__ = ['bytes', 'asbytes', 'isfileobj', 'getexception', 'strchar', 'unicode', 'asunicode', 'asbytes_nested', 'asunicode_nested', 'asstr', 'open_latin...
import matplotlib.pyplot as plt from matplotlib.image import imread img = imread('./room.jpg') plt.imshow(img) plt.show()
# -*- coding: utf-8 -*- from pandas_ta import Imports from pandas_ta.overlap import hlc3, sma from pandas_ta.statistics.mad import mad from pandas_ta.utils import get_offset, verify_series def cci(high, low, close, length=None, c=None, offset=None, **kwargs): """Indicator: Commodity Channel Index (CCI)""" # V...
import React from 'react' const Django = () => ( <svg width="256px" height="326px" viewBox="0 0 256 326" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid"> <g fill="white"> <path d="M114.78426,0 L168.062259,0 L168.062259,24...
import angular from 'angular'; import uiRouter from 'angular-ui-router'; import serviceModule from './../../services/util/util.service.module' import applicationModule from './../../services/application/application.module' import homeComponent from './home.component'; let homeModule = angular.module('home', [ uiRou...
function isString(value) { return typeof value === 'string' || value instanceof String; } function contains(source, value) { if (source == undefined || value == undefined) { return false } return source.indexOf(value) > -1; } function containsAny(source, ...value) { if (source == undefined) { return false }...
#include "config.h" #include "AL/alc.h" #include "AL/al.h" #include "alMain.h" #include "defs.h" extern inline void BiquadFilter_clear(BiquadFilter *filter); extern inline void BiquadFilter_copyParams(BiquadFilter *restrict dst, const BiquadFilter *restrict src); extern inline void BiquadFilter_passthru(BiquadFilte...
""" Words/Ladder Graph ------------------ Generate an undirected graph over the 5757 5-letter words in the datafile words_dat.txt.gz. Two words are connected by an edge if they differ in one letter, resulting in 14,135 edges. This example is described in Section 1.1 in Knuth's book [1]_,[2]_. References ---------- ...
# -*- coding: utf-8 -*- """Orbit Class""" import numpy as np from scipy.integrate import ode import pyatmos as atm import mayavi as mya from . import util as ut class Orbit: """ A class to repersent the orbit of the spacecraft. ... Attributes --------- spacecraft : Spacecraft the s...
import Types from '../types' import ThemeDao from "../../expand/dao/ThemeDao"; /** * 主题变更 * @param theme * @returns {{type: string, theme: *}} */ export function onThemeChange(theme) { return { type: Types.THEME_CHANGE, theme: theme, } } /** * 初始化主题 * @returns {Function} */ export funct...
document.addEventListener('DOMContentLoaded', function () { document.getElementById('main-launcher') && startProcessNetteTester(); }); function startProcessNetteTester() { var $mainLauncher = document.getElementById('main-launcher'), runSingleSelector = '.run-single', $display = docume...
import React, { useState, useEffect, useContext } from "react"; import apiRequest from "../utils/request"; import Question from "./Question"; import Grid from "@material-ui/core/Grid"; import Button from "@material-ui/core/Button"; import QuizCard from "./QuizCard"; import { QuizContext } from "./QuizContext"; import {...
import PropTypes from 'prop-types'; import React from 'react'; import Editor from '../../../editor'; import Preview from '../../../preview'; import codeText from '../modules/examples/example.txt'; import style from './playground.module.scss'; class Playground extends React.Component { static propTypes = { classN...
/* Terminal Kit Copyright (c) 2009 - 2018 Cédric Ronvel The MIT License (MIT) 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 ...
from . import views from django.urls import path urlpatterns = [ path('', views.PostList.as_view(), name='home'), path('<slug:slug>/', views.PostDetail.as_view(), name='post_detail'), path('register', views.register_request, name="register"), path('login', views.login_request, name='login'), path(...