text
stringlengths
3
1.05M
import React, { Component } from "react"; import "./App.css"; import Filter from "./Components/Filter"; import ContactList from "./Components/ContactList"; import ContactForm from "./Components/ContactForm"; import v4 from "uuid/dist/v4"; // new markup // logic on removing contact // conditional rendering on 'Filter' ...
import { t } from '../core/localizer'; import { actionStraightenNodes } from '../actions/straighten_nodes'; import { actionStraightenWay } from '../actions/straighten_way'; import { behaviorOperation } from '../behavior/operation'; import { utilArrayDifference, utilGetAllNodes } from '../util/index'; export function ...
const exprParser = require('../../util/exprParser'); exports = module.exports = function () { this.register('template-parse-ast-attr-:class', function parseBindClass ({item, name, expr}) { let exprObj = exprParser.str2obj(expr); item.bindClass = Object.keys(exprObj).map(name => { let exp = exprObj[na...
// ----------------------------------------------------------------------------------------- // QSVEnc/NVEnc by rigaya // ----------------------------------------------------------------------------------------- // The MIT License // // Copyright (c) 2011-2016 rigaya // // Permission is hereby granted, free of ...
# Copyright 2015 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
""" Django settings for qlever project. Generated by 'django-admin startproject' using Django 1.11.3. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ from .sett...
import tensorflow as tf import numpy as np import sys import os import data_utils import _pickle as cPickle from data_utils import VocabularyProcessor from data_utils import Data from WGAN import WGAN from improved_WGAN import Improved_WGAN tf.flags.DEFINE_integer("embedding_dim", 128, "Dimensionality of word embeddin...
# ------------------------------------------------------------------------------ # Modified based on torchvision.models.alexnet. # ------------------------------------------------------------------------------ import torch import torch.nn as nn from torch.hub import load_state_dict_from_url from typing import Any __...
from typing import Callable, Optional from pydantic import conint from starlette.requests import Request from starlette.responses import Response from fastapi_limiter import FastAPILimiter class RateLimiter: def __init__( self, times: conint(ge=0) = 1, milliseconds: conint(ge=-1) = 0, ...
const puppeteer = require('puppeteer'); const httpServer = require('http-server'); const percySnapshot = require('@percy/puppeteer'); describe('DesignSystem', function () { this.timeout(10000); let page; let server; let browser; //define port const PORT = process.env.PORT_NUMBER || 3000; //before tests...
/* * SPDX-License-Identifier: Apache-2.0 * * The OpenSearch Contributors require contributions made to * this file be licensed under the Apache-2.0 license or a * compatible open source license. */ /* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distr...
/** * @title WET-BOEW Menu plugin * @overview A Menu plugin for WET * @license wet-boew.github.io/wet-boew/License-en.html / wet-boew.github.io/wet-boew/Licence-fr.html * @author WET community */ ( function( $, window, document, wb ) { "use strict"; /* * Variable and function definitions. * These are global to ...
from datetime import datetime from flask import make_response, jsonify, request Users =[] class User: """ User constructor method """ def __init__(self, fname=None, lname=None, email=None, username=None, password=None, registered=None, isAdmin=None): self.fname = fname self.lname = lname ...
/* Papa Parse v4.0.4 https://github.com/mholt/PapaParse */ (function(global) { "use strict"; var IS_WORKER = !global.document, SCRIPT_PATH; var workers = {}, workerIdCounter = 0; // A configuration object from which to draw default settings var DEFAULTS = { delimiter: "", // empty: auto-detect newline: ""...
import { sendMessage, highlightInProgress } from './stores' import { getCursorPos, toUTF8Coords, toHaskellRange } from './agda/utils' import { syntaxState, setSyntax, parseHoleContent, getGoalAtCursor } from './agda/syntax' function asString(s) { return `"${s.replace(/\//g, '\\\\').replace(/"/g, '\\"').replace(/\n/g...
""" VRChat API Documentation The version of the OpenAPI document: 1.6.8 Contact: me@ruby.js.org Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from vrchatapi.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ...
const { src, dest } = require('gulp'); const sass = require('gulp-sass')(require('sass')); const uglify = require('gulp-uglify'); const uglifycss = require('gulp-uglifycss'); const rename = require('gulp-rename'); const css = src('./src/assets/css/*.scss') .pipe(sass().on('error', sass.logError)) .pipe(uglifyc...
import _curry1 from './internal/_curry1.js'; /** * Makes a comparator function out of a function that reports whether the first * element is less than the second. * * @func * @memberOf R * @since v0.1.0 * @category Function * @sig ((a, b) -> Boolean) -> ((a, b) -> Number) * @param {Function} pred A predicate...
/* ** asm/setup.h -- Definition of the Linux/m68k setup information ** ** Copyright 1992 by Greg Harp ** ** This file is subject to the terms and conditions of the GNU General Public ** License. See the file COPYING in the main directory of this archive ** for more details. ** ** Created 09/29/92 by Greg Harp ** ** 5/...
import io import time import cv2 from rtcom import RealTimeCommunication from PIL import Image, ImageDraw import numpy as np from threading import Thread from utils import VideoCapture import cv2, queue, threading, time with RealTimeCommunication("rpi") as rtcom: cap = VideoCapture(0) first_pass = True ...
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z" /><path d="M16....
# Dependencies import numpy as np import pandas as pd from bs4 import BeautifulSoup as bs import requests from splinter import Browser import re import time # Initialize browser def init_browser(): executable_path = {"executable_path": "/usr/local/bin/chromedriver"} #executable_path = {'executable_path': 'ch...
import os import exceptions import string import codecs from pylons import config import domain import language from herder import events from herder import validation from errors import * def message_datafile_path(language, id): """Return the datafile path for locating a particular message in the language....
import twisted from twisted.internet import reactor from twisted.internet.defer import inlineCallbacks, returnValue from twisted.trial import unittest from twisted.web.client import HTTPConnectionPool from pubnub.models.consumer.presence import PNWhereNowResult from pubnub.pubnub_twisted import PubNubTwisted, Twiste...
import six import math import lib.layers.wrappers.cnf_regularization as reg_lib import lib.spectral_norm as spectral_norm import lib.layers as layers from lib.layers.odefunc import divergence_bf, divergence_approx def standard_normal_logprob(z): logZ = -0.5 * math.log(2 * math.pi) return logZ - z.pow(2) / 2 ...
# IBM_PROLOG_BEGIN_TAG # This is an automatically generated prolog. # # $Source: src/build/simics/hb-pnor-vpd-preload.py $ # # OpenPOWER HostBoot Project # # COPYRIGHT International Business Machines Corp. 2012,2014 # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except i...
import torch import torch.nn as nn import torch.nn.functional as F class Net(nn.Module): def __init__(self): super(Net, self).__init__() # 1 input image channel, 6 output channels, 5x5 square convolution # kernel self.conv1 = nn.Conv2d(1, 6, 5) self.conv2 = nn.Conv2d(6, 16...
# gpt2模型进行英文讲故事 给一个开头 继续讲五句话 import torch from tqdm import tqdm import torch.nn as nn from torch.optim import Adam import numpy as np import os import json import time import glob import pandas as pd import bert_seq2seq from torch.utils.data import Dataset, DataLoader from bert_seq2seq.utils import load_gpt from transf...
from epc.encoding import ( decode_int, encode_int, decode_partition, encode_partition, decode_string, encode_string, is_encodable_string, url_encode_string ) from .base import EpcScheme _sgln_partition_table = { # Partition Value: (Company Prefix Length (bits), # Company Prefix Lengt...
n1 = float(input("Digite sua primeira nota: ")) n2 = float(input("Digite sua segunda nota: ")) print("A média de suas notas {} e {} resultou em {}.".format(n1, n2, ((n1+n2)/2)))
""" mbed CMSIS-DAP debugger Copyright (c) 2006-2013 ARM Limited 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 ...
const test = require("tape"); const Web3 = require("web3"); const EEAClient = require("../../src"); const { contracts, parseError } = require("./support/helpers"); const { besu, orion } = require("./support/keys"); test("getPrivateTransaction", async t => { const chainID = 2018; const node1Client = new EEAClient...
/** * @ag-grid-enterprise/date-time-cell-editor - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components * @version v23.1.1 * @link http://www.ag-grid.com/ ' * @license Commercial */ /** * @ag-grid-enterprise/date-time-cell-editor - Advanced Data Grid / Data Table supporting Jav...
# MIT License # # Copyright (c) 2018-2019 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, including without limitation the rights # to use, copy, modify, m...
class DSU: def __init__(self, N): self.par = list(range(N)) def find(self, x): if x != self.par[x]: self.par[x] = self.find(self.par[x]) return self.par[x] def union(self, x, y): xr, yr = self.find(x), self.find(y) if xr == yr: return...
import { verifyAuthToken } from './services/userService'; import { logger } from './services/loggerService'; const unauthorized = (res, msg) => { res.status(401); if (msg) { res.send(msg); } res.end(); } export function authRequired(req, res, next) { try { const { authorization } = req.headers; ...
const express = require('express'); const User = require('./users.model'); const router = express.Router(); router.get('/', async (req, res) => { const users = await User.query() .select('id', 'email', 'name', 'created_at', 'updated_at') .where('deleted_at', null); res.json(users); }); module.exports = ...
// // NSObject+NGExtension.h // NGCategories // // Created by guojian on 2016/11/26. // Copyright © 2016年 http://naijoug.com. All rights reserved. // #import <Foundation/Foundation.h> @interface NSObject (NGExtension) - (BOOL)ng_isString; // NSString类型 - (BOOL)ng_isNumber; // NSNumber类型 - (BOOL)ng_isArray;...
# Copyright (c) 2020 KU Leuven import sklearn.metrics from tqdm.auto import tqdm import pandas as pd import numpy as np import torch import scipy.sparse import scipy.io import types import json def count_parameters(model): return sum(p.numel() for p in model.parameters() if p.requires_grad) def all_metrics(y_true...
//определение переменной окружения const NODE_ENV = process.env.NODE_ENV || "development"; const webpack = require('webpack'); const ExtractTextPlugin = require ('extract-text-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = { entry: './static_src/js/index.js', outp...
def create_table(data): _ = data.pop(0) lookup = data.pop() table = {} for entry in data: entry = entry.split(" ") table[entry[0]] = (float(entry[1]), float(entry[2]), float(entry[3])) return table, lookup def get_student_average(lookup, table): student_grades = table[lookup] ...
from __future__ import print_function import threading import unittest import mock import numpy import six import chainer from chainer import cuda from chainer import testing from chainer.testing import attr from chainer.utils import type_check class TestFunctionNode(unittest.TestCase): def _get_method(self, p...
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } }...
/******************************************************************************************* * * raylib [core] example - VR Simulator (Oculus Rift CV1 parameters) * * This example has been created using raylib 3.7 (www.raylib.com) * raylib is licensed under an unmodified zlib/libpng license (View raylib.h for det...
# Copyright 2021 Huawei Technologies Co., Ltd # # 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...
/**************************************************************************** * * Copyright (c) 2012-2014 PX4 Development Team. 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. Red...
# Copyright 2020 Northern.tech AS # # 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 ag...
/* Copyright (c) 2013, 2016, 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...
/* * Copyright (c) 1995-2016 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * * This file contains Original Code and/or Modifications of Original Code * as defined in and that are subject to the Apple Public Source License * Version 2.0 (the 'License'). You may not use this file ex...
""" This is a python interface to Adobe Font Metrics Files. Although a number of other python implementations exist (and may be more complete than mine) I decided not to go with them because either they were either 1) copyrighted or used a non-BSD compatible license 2) had too many dependencies and I wanted a fr...
# very simple code to scrape Wells Fargo Mortgage Rates from html table # ref - https://www.youtube.com/watch?v=F1kZ39SvuGE # ref - https://github.com/engineer-man/youtube/tree/master/042 # regex ref at www.newthinktank.com/2016/08/learn-program-16/ # need to "pip install bs4" first import requests from bs4 import Be...
var searchData= [ ['context_2eh',['context.h',['../context_8h.html',1,'']]], ['context_5fmain',['Context_main',['../context_8h.html#a6769b7c56d4fa4864da5611ab3079613',1,'context.h']]] ];
/** * Copyright IBM Corp. 2019, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * Code generated by @carbon/icon-build-helpers. DO NOT EDIT. */ 'use strict'; var Icon = require('../Icon-1083255b.js'); var React = require...
/* * Copyright (c) 2015 by Greg Reimer <gregreimer@gmail.com> * MIT License. See mit-license.txt for more info. */ import $ref from './ref'; /* * Recursively iterate through every node in a JSON object tree. */ export default function* walkObj(value, parents, path, parent, key) { parents = parents || []; p...
import EmberRouter from '@ember/routing/router'; import config from './config/environment'; const Router = EmberRouter.extend({ location: config.locationType, rootURL: config.rootURL }); Router.map(function() { this.route('home', {path: '/'}); this.route('simple-block'); this.route('nested'); this.route('...
import {handleActions} from 'redux-actions'; import Immutable from 'immutable'; const initialState = Immutable.fromJS({}); export default handleActions({}, initialState);
import pytest import open_cp.scripted.evaluators as evaluators pass
self.__precacheManifest = (self.__precacheManifest || []).concat([ { "revision": "3454e8e3c2429f4146eed89da9dbce89", "url": "/index.html" }, { "revision": "4c2564d6c42cb09918ee", "url": "/static/css/main.5ecd60fb.chunk.css" }, { "revision": "bd5a13bbfac972fd154b", "url": "/static/js/2....
/* Generated by RuntimeBrowser. */ @protocol NGSSettingsManagerDelegate <NSObject> @required - (void)settingsManagerReloadedGlances:(NGSSettingsManager *)arg1; @end
/******************************************************************************* SYS CLK Static Functions for Clock System Service Company: Microchip Technology Inc. File Name: plib_clk.c Summary: SYS CLK static function implementations for the Clock System Service. Description: The Clock ...
var searchData= [ ['linearalgebralibrary',['LinearAlgebraLibrary',['../classoi_1_1math_1_1_choose_l_a_lib.html#a4452b21e7efd69dcb88f293704477757',1,'oi::math::ChooseLALib']]], ['lineunknowns',['LineUnknowns',['../classoi_1_1_line.html#a1f58ed1f4b1a300facd707ba453d9bf1',1,'oi::Line']]] ];
var interface_c_p_t_decimal_number_value_transformer = [ [ "allowsReverseTransformation", "interface_c_p_t_decimal_number_value_transformer.html#ade6e8e07c5810ec4cecff863845484d8", null ], [ "transformedValueClass", "interface_c_p_t_decimal_number_value_transformer.html#a310743aa6b41ad0b0b1355a9c0d3759a", null ...
import asyncio import datetime import http import json import re import types import importlib_resources import pytest from gidgethub import ( BadGraphQLRequest, GitHubBroken, GraphQLAuthorizationFailure, GraphQLException, QueryError, RedirectionException, GraphQLResponseTypeError, ) from ...
# Copyright 2021 Research Institute of Systems Planning, 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 required by applica...
import gzip import _pickle as pickle class Oracle(object): def __init__(self, concept, examples): self.concept = concept filename = 'oracle_cache/oracle_data_for_{}.pkl'.format(concept) with gzip.GzipFile(filename, 'rb') as file: self.saved_results = pickle.load(file) def ...
import { Caps, Flex, Text, Box } from 'components/elements' import Markdown from 'components/markdown' import chunk from 'lodash/chunk' import React from 'react' const Item = ({ title, description, ...props }) => ( <Box as='li' maxWidth='16rem' style={{ listStyle: 'none' }} flex={1} pb={3} pr...
const electron = require('electron'); const BrowserWindow = electron.BrowserWindow; // Module to create native browser window. const isDev = require('electron-is').dev(); const ipcMain = electron.ipcMain; const { load } = require('./Utils/UrlLoader'); // Generic function to load external editors in a modal window. // ...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AudioFilters = void 0; const bass = (g) => `bass=g=${g}:f=110:w=0.3`; /** * The available audio filters * @typedef {object} AudioFilters * @property {string} bassboost_low The bassboost filter (+15dB) * @property {string} bassboost...
var Promise = require("bluebird"); /** * 保留字符在一行的一个对象 * @type {{}} */ module.exports = { /** * 把需要保留在一行的字符串从整个字符串中抠出来,用占位符替换 * @param str * @returns {*} */ pickFromCode: function (str) { return pickFromCode(str); }, result: result, /** * 从pickFromCode把不能分离的行替换回来...
struct { int a; void *b; void *c } * d; void *e, *f, *g, *h, *i, *j, *k, *l, *m, *n, *o, *q, *r; p, s, t; u() { switch (d->a) { case 8: switch (t) { case 0: d->c = n; case 1: d->c = m; case 2: d->c = j; case 3: d->c = h; case 4: d->c = g; } d->b = ...
// these are some functions associated with the gnuplot functionality of the webpage function displayResults(random_num, big, data, xAxis, yAxis, zAxis){ $("#waiting_img").hide(); $("#waiting_text").hide(); var yes = Number(xAxis) || Number(yAxis) || Number(zAxis); userWantsImage(yes, random_num); ...
import pygame from models.asteroid.BigAsteroid import BigAsteroid if __name__ == '__main__': FPS = 60 SCREEN_W = 800 SCREEN_H = 600 SIZE = (SCREEN_W, SCREEN_H) pygame.init() screen = pygame.display.set_mode((640, 480)) clock = pygame.time.Clock() pygame.display.set_caption('Asteroid De...
export { default } from 'ember-flexberry-service-bus/models/new-platform-flexberry-service-bus-statistics-record';
import itertools import logging import matplotlib.pyplot as plt import matplotlib.patches as mpatches import numpy as np import pandas as pd import seaborn as sns from collections import defaultdict from collections.abc import Iterable from pyam.run_control import run_control from pyam.figures import sankey from pya...
import json import os import random import string import discord import requests from keep_alive import keep_alive from nltk.sentiment.vader import SentimentIntensityAnalyzer client = discord.Client() starter_motivator = [ "Cheer Up!", "Always remember, I am here for you!", "You are a great person. Remem...
""" pygluu.kubernetes.postgres ~~~~~~~~~~~~~~~~~~~~~~~~~~ License terms and conditions for Gluu Cloud Native Edition: https://www.apache.org/licenses/LICENSE-2.0 Handles Postgres operations """ from pygluu.kubernetes.helpers import get_logger, exec_cmd from pygluu.kubernetes.kubeapi import Kubernetes from pygluu....
import React from 'react'; import { storiesOf } from '@storybook/react'; import Carousel from '../src/Carousel'; const stories = storiesOf('Javascript|Carousel', module); stories.addParameters({ info: { text: `Our Carousel is a robust and versatile component that can be an image slider, to an item carousel...
/** * Layout component that queries for data * with Gatsby's useStaticQuery component * * See: https://www.gatsbyjs.org/docs/use-static-query/ */ import React from "react" import PropTypes from "prop-types" import { useStaticQuery, graphql } from "gatsby" import Header from "./header" import "./layout.css" cons...
# -*- coding: utf-8 -*- import datetime import json import time from flask import Flask, abort, jsonify, make_response, request from search import model_selector, search app = Flask(__name__) @app.errorhandler(404) def page_not_found(e): # note that we set the 404 status explicitly return make_response({"e...
'use strict' process.env.BABEL_ENV = 'web' const path = require('path') const webpack = require('webpack') const BabiliWebpackPlugin = require('babili-webpack-plugin') const CopyWebpackPlugin = require('copy-webpack-plugin') const MiniCssExtractPlugin = require('mini-css-extract-plugin') const HtmlWebpackPlugin = re...
from django.test import TestCase from django.contrib.auth import get_user_model class ModelTests(TestCase): def test_create_user_with_email_successful(self): """Test creating a new user with an email is successful""" email = "test@lab.joeaudet.net" password = 'Testpass123' user = ...
import React from "react" import { graphql, useStaticQuery } from "gatsby" import footerStyles from "./footer.module.scss" const Footer = () => { const data = useStaticQuery(graphql` query { site { siteMetadata { author } } } `) return ( <div className={footerSty...
/** * Aggregator.js service * * @description: A set of functions similar to controller's actions to avoid code duplication. */ const _ = require('lodash'); const pluralize = require('pluralize'); const { convertRestQueryParams, buildQuery } = require('strapi-utils'); const Schema = require('./Schema.js'); const G...
#encoding=utf-8 import h5py import torch import numpy as np import json import torch.nn.functional as F import cv2 import math import shutil import pickle from scipy.spatial.transform import Rotation as R import sys, os sys.path.append(os.path.abspath(__file__).replace('utils/util.py','')) from config import args impo...
from smart_contract_lark import smart_contract_lark from exec_cond_demo import exec_cond_demo from state_machine_demo import state_machine_demo # Smart contract 1 smart_contract_lark = smart_contract_lark(holder="test") assert smart_contract_lark.holder == "test", "Holder is not set in constructor" smart_contract_lar...
import _createClass from "@babel/runtime/helpers/createClass"; import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose"; import Ext_sparkline_BarBase from '../../Ext/sparkline/BarBase.js'; var Ext_sparkline_Bar = /*#__PURE__*/ function (_Ext_sparkline_BarBas) { _inheritsLoose(Ext_sparkline_Bar, _Ext_sparkli...
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) { /******/ re...
import bpy import arm.assets as assets import arm.material.mat_state as mat_state import arm.material.mat_utils as mat_utils import arm.material.cycles as cycles import arm.material.make_tess as make_tess import arm.material.make_particle as make_particle import arm.material.make_cluster as make_cluster import arm.mate...
'use strict' const exec = require('child_process').exec const projectUrl = 'https://github.com/screetBloom/wecat.js.git' module.exports = () => { console.log('this is my first commander >>>>>> ') // git命令,远程拉取项目并自定义项目名 let cmdStr = `git clone `+projectUrl // 在nodejs中执行shell命令,第一个参数是命令,第二个是具体的回调函数 ...
import os import tempo from tempo import run_tempo os.chdir("test_data") run_tempo.run(adata_path = 'adata.h5ad', folder_out = 'tempo_test_out', config_dict_path = 'config.txt')
'use strict' const co = require('co') const cli = require('heroku-cli-util') let empty = (o) => Object.keys(o).length === 0 function displayFormation (formation) { const groupBy = require('lodash.groupby') const map = require('lodash.map') const sumBy = require('lodash.sumby') formation = groupBy(formation,...
# -*- coding: utf-8 -*- # # Buckaroo documentation build configuration file, created by # sphinx-quickstart on Wed Apr 26 11:18:51 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # ...
import './tabletoptier.styl'; import * as rotatingDieActions from './rotatingdie/actions'; import Component from '../../components/component.react'; import React from 'react'; import immutable from 'immutable'; import DiceBin from './dicebin/dicebin.react'; import TableTop from './tabletop/tabletop.react'; class Tabl...
#!/usr/bin/env python3 # # Author: # Tamas Jos (@skelsec) # import os import logging import ntpath from minikerberos.ccache import CCACHE, Credential from minikerberos.common import print_table from minikerberos import logger def main(): import argparse parser = argparse.ArgumentParser(description='Prints CCACHE ...
/* * Note: this file originally auto-generated by mib2c */ #include <net-snmp/net-snmp-config.h> #include <net-snmp/net-snmp-includes.h> #include <net-snmp/agent/net-snmp-agent-includes.h> #include <net-snmp/agent/table.h> #include <net-snmp/agent/table_iterator.h> #include "nsTransactionTable.h" /** Initialize t...
// Copyright 2021 gRPC 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 i...
class CmsUsersTableController { constructor(UserService, RoleService, LanguageService, DialogService, $filter) { 'ngInject'; this.users = []; this.user; this.roles = []; this.filter = {}; this.selectedUsers = []; this.languages = []; this.$filter = $...
#!/usr/bin/env python # Python Network Programming Cookbook -- Chapter - 2 # This program is optimized for Python 2.7. # It may run on any other version with/without modifications. import os import socket import threading import SocketServer SERVER_HOST = 'localhost' SERVER_PORT = 0 # tells the kernel to pickup a por...
'use strict' const expect = require('chai').expect const WordDistance = require('../../problems/string/WordDistance') const WordDistanceObj = new WordDistance() describe('WordDistance', function(){ it('Should return shortest distance in terms of numbers of words in a Word Array', function(){ // 1. Arrang...
"use strict"; import Page from "../page.js"; /** * Klasse PageList: Stellt die Listenübersicht zur Verfügung */ export default class PageList extends Page { /** * Konstruktor. * * @param {App} app Instanz der App-Klasse */ constructor(app) { super(app, "page-list/page-list.html")...