text
stringlengths
27
775k
from .constants import * from .data import * from .metadata import * from typing import Union def make_entry(json_dict: dict) -> Union[DataRef, DataVal, Bracket, EOF]: if METADATA in json_dict: # Metadata Record if Bracket.is_superclass(json_dict): return Bracket.cons(json_dict) ...
# PAGINA 1 contenido pagina 1 (section-label)= ## SECCION 1 estes es un [hipertexto](intro.md). Here is a reference to [](section-label).
using Sourcypants.Utils; namespace Sourcypants { public class MappingSegment { public int GeneratedLineIndex { get; set; } public int GeneratedColumnIndex { get; set; } public int? SourcesIndex { get; set; } public int? SourceLineIndex { get; set; } public int? SourceCo...
package com.platum.restflow.resource.annotation; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import com.platum.restflow.resource.query.QueryBuilder; @Retention(RetentionPolicy.RUNTIME) public @interface QueryBuilderImpl { Class<? extends QueryBuilder> value(); }
<?php namespace App\Http\Controllers\API; use Illuminate\Http\Request; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\Http; use App\Http\Controllers\Auth\AuthGate; use App\Http\Controllers\API\APIController; class BookController extends AuthGate implements APIController { private static...
module Ohm module Scope def self.included(model) unless model.const_defined?(:DefinedScopes) model.const_set(:DefinedScopes, Module.new) end model.extend ClassMethods end module ClassMethods def scope(scope = nil, &block) self::DefinedScopes.module_eval(&block) if...
package com.ouc.dcrms.core.redis; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import redis.clients.jedis.Jedis; /** * @author WuPing * @version 2017年2月23日 下午3:40:18 */ public class RedisMap { public static void main(String[] args) { // 连接本地的 Redis 服务 J...
import React, { useMemo, useCallback, useState, useContext } from 'react'; import { View, Text, StyleSheet, StatusBar, TouchableOpacity, FlatList, Alert, ActivityIndicator, } from 'react-native'; import { BlurView } from '@react-native-community/blur'; // Redux import { useDispatch, useSelector } from ...
<?php namespace Stagem\ZfcCmsBlock\View\Helper; use Popov\ZfcCurrent\CurrentHelper; use Stagem\ZfcCmsBlock\Service\CmsBlockService; use Stagem\ZfcLang\LangHelper; use Zend\View\Helper\AbstractHelper; class CmsBlockHelper extends AbstractHelper { /** @var CmsBlockService */ protected $contentService; /**...
# encoding: utf-8 # This file is distributed under Ting Yun's license terms. require File.expand_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'test_helper')) require 'ting_yun/agent/instance_methods/start' require 'ting_yun/agent' require 'ting_yun/ting_yun_service' require 'ting_yun/configuration/server_s...
/* * * Copyright 2002-2004 The Ant-Contrib 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
const router = require('express-promise-router')(); const register = require('../../controllers/register'); const ensureModerator = require('../helpers').ensureModerator; router.route('/').get(ensureModerator, register.list); router.route('/:registerId').delete(ensureModerator, register.delete); module.exports = rou...
using Game.Artillery; using UnityEngine; namespace Game.Pool { public class PoolManagerEnemies : PoolManager { public new SpaceShip GetItem() { var spaceShip = base.GetItem().GetComponent<SpaceShip>(); var gunSystem = spaceShip.GetComponent<Gun>(); gunSystem....
package pb.managers; import pb.managers.endpoint.Endpoint; import pb.managers.endpoint.IEndpointHandler; import pb.protocols.IProtocolHandler; import pb.protocols.Protocol; import pb.utils.Eventable; /** * Manager base class. Methods must be overriden. * * @see {@link pb.managers.ServerManager} * @see {@link pb...
{{/* =% sh %= */}} {{ $goos := flag "os" "string" "GOOS value" | prompt "GOOS?" "string" "darwin" }} {{ $goarch := flag "arch" "string" "GOARCH value" | prompt "GOARCH?" "string" "amd64" }} {{ $mobyCompile := flag "moby-compile" "string" "Moby compiler container" | prompt "Moby go-compile container?" "string" "linuxk...
#!/bin/sh if [ "$#" -ne 2 ] ; then echo "Copies Arakoon client from the Arakoon repo to the Open vStorage repo" echo "Usage: ./update.sh <arakoon_dir> <openvstorage_dir>" echo " arakoon_dir: The root of a working directory of the Arakoon repo" echo " openvstorage_dir: The root of a working directory or the O...
;; -*- mode: Lisp; Syntax: Common-Lisp; Package: cl-magick; -*- ;;; ;;; Copyright (c) 2004 by Kenneth William Tilton. ;;; ;;; 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 restr...
/* eslint-disable unicorn/no-abusive-eslint-disable */ /* eslint-disable */ import * as vscode from 'vscode' declare const __ORIGINAL_EXTENSION_ID__: string declare const __INJECT__ENTRYPOINT__: string declare const __ORIGINAL_ENTRYPOINT__: string // actual code for every extension export const activate = context => ...
package Octium::Cmd::TempSigns 0.011; use Actium; use Octium; use autodie; use Octium::Folder; use Actium::DateTime; use Octium::Text::InDesignTags; const my $IDT => 'Octium::Text::InDesignTags'; const my $HARDRET => Octium::Text::InDesignTags::->hardreturn_esc; sub OPTIONS { return qw/actiumdb/; } my %i18...
from nose.tools import assert_equals, assert_true from framework.core.forum_api import ForumApi from framework.model.user import User class TestCreateMessage(): @classmethod def setup_class(self): self.forum_api = ForumApi() self.forum_api.reset_mock() def test_create_user_with_all_param...
源作者:https://github.com/XueYangLee/NumberCalculate ![参考](https://github.com/XueYangLee/NumberCalculate/blob/master/screen.gif)
using System; using System.Collections.Generic; using System.Security.Cryptography.X509Certificates; using HunterPie.Core.Definitions; namespace HunterPie.Core.Jobs { public struct LightBowgunInformation { public float SpecialAmmoRegen; public int GroundAmmo; public sEquippedAmmo Equip...
// Decompiled with JetBrains decompiler // Type: PEC.Windows.Common.MapiRecipDesc // Assembly: PEC.Windows.Common, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ed425d74cb6df699 // MVID: CDBD3A57-B7D2-4B12-ADDA-3F67C481AC77 // Assembly location: C:\oaisd_app\_Misc\Presentation Builder\EXE\PEC.Windows.Common.dll us...
package com.pinyougou.sellergoods.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import com.alibaba.dubbo.config.annotation.Service; import com.github.pagehelper.Page; import com.github.pagehelper.PageHelper; import com.pinyougou.mapper.TbSeckillOrderMapper; import c...
package main import ( "bufio" "encoding/binary" "io" "net" "strconv" "strings" "time" "github.com/alecthomas/kong" "github.com/pkg/errors" "github.com/wavesplatform/gowaves/pkg/crypto" "github.com/wavesplatform/gowaves/pkg/proto" "go.uber.org/zap" ) var Cli struct { WavesNetwork string `kong:"wavesnetwo...
require 'fileutils' module ShopifyCli module Helpers module FS class << self def ensure_file(*path) fname = File.join(*path) unless File.exist?(fname) FileUtils.mkdir_p(File.dirname(fname)) FileUtils.touch(fname) end fname end ...
# TODO - If a path is given, look for YAML files recursively, bypassing the need for the user to implement a loop. - Testing and validation (`kubectl kustomize --dry-run=client /path/to/ingress` with `find`) - Ensure temp file gets deleted no matter the exception. ## One Day... - Allow updating only a subset of obje...
package com.nitya.accounter.servlets; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Set; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; import ...
# 365-Mobile Projects from CSIS-365 at MSUM I'll be maintaining each project in a different branch for logistics purposes.
Create a simple poc for DCC train commands using a motor driver. h4. Links - https://www.opendcc.de/elektronik/opendcc/opendcc_sw_lenz.html - https://dccwiki.com/Digital_packet - https://dccwiki.com/DCC_Tutorial_(Power) h4. Knowledge - high: 58us -vcc, 58us +vcc - low: 116us -vcc, 116us +vcc
import "firebase/messaging"; import PropTypes from "prop-types"; import React from "react"; import { connect } from "react-redux"; import { BrowserRouter as Router } from "react-router-dom"; import { createGlobalStyle, ThemeProvider } from "styled-components"; import { Normalize } from "styled-normalize"; import "./App...
#!/bin/env bash set -u script_dir=$(cd $(dirname ${BASH_SOURCE:-$0}); pwd) # backup bash $script_dir/backup.sh # download git-completion bash $script_dir/download-git-completion.sh # install homebrew bash $script_dir/homebrew/install.sh # install bash $script_dir/homebrew/brew.sh bash $script_dir/homebrew/mas.sh ...
#[derive(Debug, Clone, Copy)] pub enum Frontend { Web, AnsiTerminal, Graphical, } impl Frontend { pub(crate) fn log_rng_seed(self, seed: u64) { match self { Self::Web => log::info!("RNG Seed: {}", seed), Self::AnsiTerminal => (), Self::Graphical => println!("...
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
(defpackage :src/punter (:use :common-lisp :src/graph) (:export #:punter #:claim-edge #:score #:punter-graph)) (in-package :src/punter) (defclass punter () ((id :initarg :id :type integer :reader id) (mine->sites :initform (make-hash-table :test #'eq) ...
require_relative '../bar_app.rb' Pact.configuration.reports_dir = "./provider/reports" Pact.service_provider "Bar" do app { BarApp.new } app_version '1.2.3' publish_verification_results !!ENV['PUBLISH_VERIFICATIONS_RESULTS'] honours_pact_with 'Foo' do pact_uri './consumer/spec/support/foo-bar.json' end...
package es.upm.fi.dia.oeg.mappingpedia.model class JDBCConnection (val dbUserName:String, val dbPassword:String, val dbName:String, val jdbc_url:String , val databaseDriver:String, val databaseType:String) { }
"use strict"; exports.DEFAULT_INTERPOLATION_CONFIG = { start: '{{', end: '}}' }; //# sourceMappingURL=interpolation_config.js.map
package mock import ( "encoding/hex" "errors" "fmt" "sync" gosocketio "github.com/developertask/golang-socketio" "github.com/developertask/multiwallet/client" "github.com/developertask/multiwallet/model" "github.com/btcsuite/btcutil" ) type MockAPIClient struct { blockChan chan model.Block txChan chan m...
browserify-des === [![Build Status](https://travis-ci.org/crypto-browserify/browserify-des.svg)](https://travis-ci.org/crypto-browserify/browserify-des) DES for browserify
/* * Copyright (C) 2016-2020 Lightbend Inc. <https://www.lightbend.com> */ package akka.persistence.cassandra.compaction import java.util.concurrent.TimeUnit import akka.persistence.cassandra.{ CassandraLifecycle, CassandraSpec, PluginSettings } import com.typesafe.config.ConfigFactory import org.scalatest.wordspe...
@file:JsModule("os") @file:JsNonModule package org.tix.node external fun homedir(): String
<?php /** * Copyright 2018 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
package com.swing.rememberme.engine.card; public class NameCard extends StringCard{ public NameCard(int refID, String content) { setCardType(CardType.NAME_CARD); setCardID(refID); setCardContent(content); } }
# TypeScript Project ## TODO - [ ] Set year and name in `LICENSE` - [ ] Complete `package.json` - [ ] `name` - [ ] `description` - [ ] `repository` - [ ] `keywords` - [ ] `author` - [ ] `bugs` - [ ] `homepage` - [ ] Unset `private` if necessary - [ ] Review TODOs in `.github/workflows/ci.yml` - [ ] Re...
#!/bin/sh /usr/sbin/bird -f & /usr/sbin/smartdns -f $@
(function () { 'use strict'; angular.module('view.file') .controller('FriendlyXmlCtrl', FriendlyXmlCtrl); FriendlyXmlCtrl.$inject = ['$scope', '$sce', '$templateCache', '$http', 'x2js']; function FriendlyXmlCtrl($scope, $sce, $templateCache, $http, x2js) { var ctrl = this; ctrl.trustUri = functi...
<?php namespace Zombmin; class Page { private static $title = ''; private static $headElements = array(); private static $bottomScripts = array(); private static $controller = null; public static function initialize() { // set initial width for mobile devices self::addHeadElemen...
'use strict'; module.exports = { description: 'A model to view all filters, renderers, and widgets.', label: 'Test', };
package com.intellij.openapi.externalSystem.model.project; import com.intellij.openapi.roots.DependencyScope; import org.jetbrains.annotations.NotNull; /** * Implementations of this interface are not obliged to be thread-safe. * * @author Denis Zhdanov */ public interface DependencyData<T extends ExternalEntityD...
using System.Collections.Generic; namespace MultiSourceTorrentDownloader.Data { public class TorrentQueryResult { public TorrentQueryResult() { TorrentEntries = new List<TorrentEntry>(); } public IEnumerable<TorrentEntry> TorrentEntries { get; set; } public ...
package uk.co.caeldev.springsecuritymongo.services; import org.junit.Before; import org.junit.Test; import org.springframework.security.authentication.TestingAuthenticationToken; import static org.assertj.core.api.Assertions.assertThat; import static uk.org.fyodor.generators.RDG.string; public class SecurityContextS...
# CleanQiitaClient This is the iOS CleanArchitecture of the sample app This app uses the Swift 3.0 [The Clean Architecture](https://8thlight.com/blog/uncle-bob/2012/08/13/the-clean-architecture.html) [まだMVC,MVP,MVVMで消耗してるの? iOS Clean Architectureについて](http://qiita.com/koutalou/items/07a4f9cf51a2d13e4cdc)
package com.github.satoshun.example.lazyload import android.os.Bundle import android.view.View import androidx.fragment.app.Fragment import androidx.fragment.app.FragmentStatePagerAdapter import com.github.satoshun.example.R import com.github.satoshun.example.databinding.LazyLoadFragBinding class LazyLoadFragment : F...
import { Component, OnInit } from '@angular/core'; import { List } from '../../../../modules/list/model/list'; import { ListRow } from '../../../../modules/list/model/list-row'; import { ListsFacade } from '../../../../modules/list/+state/lists.facade'; import { Observable } from 'rxjs'; import { map } from 'rxjs/opera...
#!/bin/bash if [ -z ${GOPATH} ] then echo "A cute gopher died because you didn't set GOPATH :(" exit -1 fi go get -d -v go build -o nbrp nbrp.go mkdir -p /tmp/datadir docker-compose build docker-compose up -d docker-compose scale web=3 # docker-compose stop
<?php class m_events extends MY_Model { public function __construct(){ parent::construct( 'events', 'event_id', 'event_id' ); } }
namespace CompanyName.MyMeetings.Modules.Administration.Application; public interface ISqlConnectionFactory { object GetOpenConnection(); }
<?php namespace App\Entity; use Doctrine\ORM\Mapping as ORM; /** * @ORM\Entity(repositoryClass="App\Repository\PollRepository") */ class Poll { /** * @ORM\Id() * @ORM\GeneratedValue(strategy="UUID") * @ORM\Column(type="guid") */ private $uuid; /** * @var string * @ORM\Col...
using ClientLogic.Models; using System.Threading.Tasks; namespace ClientLogic.Interfaces { public interface IConfigurationService { Task<Configuration> GetAppConfiguration(); } }
using GalaSoft.MvvmLight; using GalaSoft.MvvmLight.Command; using PushkinA.EnglishVocabulary.Model; using PushkinA.EnglishVocabulary.Services; using System.Collections.ObjectModel; using System.Linq; namespace PushkinA.EnglishVocabulary.ViewModels { public class MainViewModel : ViewModelBase { private ...
package com.guidovezzoni.architecture.datasource import com.guidovezzoni.architecture.cache.TimeStampHelper import io.reactivex.Single import retrofit2.Response /** * implementation of [BaseRetrofitDataSource] that uses a [Function1] to define [getFromEndPoint] */ open class RetrofitFunctionDataSource<M, P>( ti...
package graph; import java.util.List; /** * A GraphAlgorithmObserver will register with a WeightedGraph * to let it know that it is "watching". As algorithms are * carried out on the WeightedGraph (BFS, DFS, Dijkstra), the * graph will notify the Observer to let it know how the * algorithms are pro...
/** * Thrown when a method should be removed that does not exist on the virtual class. * * @export * @class MethodNotFound * @extends {Error} */ export class MethodNotFound extends Error { constructor(methodName: string, parent?: string) { super(); this.message = `The method "${methodName}" w...
package codegen import ( "github.com/openland/spacex-cli/il" "io/ioutil" "os" "path/filepath" ) func GenerateSwift(model *il.Model, to string) { output := NewOutput() for _, f := range model.Fragments { output.NextScope() output.WriteLine("private let " + f.Name + "Selector = ") output.IndentAdd() gene...
import sys, os, json, redis redis_storage = redis.StrictRedis() __mypath = os.path.abspath(os.path.dirname(__file__)) os.chdir(os.path.join(__mypath, '..')) os.rmdir('../build/lib.win-amd64-3.6') os.system('python ./setup.py build') os.chdir(__mypath) sys.path.append('../build/lib.win-amd64-3.6') import GraphEngine ...
using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; using Windows.UI.Xaml; using Windows.UI.Xaml.Media; using Bililive_dm_UWPViewer.Annotations; namespace Bililive_dm_UWPViewer { pub...
--- title: "Gelişmekte Olan Ülkelerde Sosyal Yatı rı mı n Teşvik Edilmesi" date: 2014-01-01 publishDate: 2021-08-20T12:06:02.502927Z authors: ["D Çetindamar"] publication_types: ["2"] abstract: "" featured: false publication: "*İktisat ve Toplum*" ---
package me.andrewda.utils import com.google.gson.annotations.Expose import io.ktor.application.ApplicationCall import io.ktor.http.HttpStatusCode data class Status( @Expose val status: Int, @Expose val description: String, @Expose val success: Boolean ) { companion object { fun fromHttpStatusC...
package knaufdan.android.arch.base.component.common.button import androidx.annotation.DimenRes import androidx.annotation.DrawableRes import knaufdan.android.arch.R import knaufdan.android.arch.databinding.view.LayoutBehavior import knaufdan.android.core.resources.IResourceProvider data class ButtonConfig( val la...
program divide implicit none ! Create vars real :: x, y, ans ! Ask for em print *, "What are your x and y vals?" ! Assign read *, x read *, y ans = x / y ! Display print *, "Your result is ", ans end program divide
import Button, { ButtonType } from '../UI/Button/Button'; import React, { useEffect, useState } from 'react'; import { BaseDialogProps } from '../../utils/types'; import Modal from './Modal'; import styles from './Modal.module.scss'; interface PromptDialogProps extends BaseDialogProps<string> { defaultValue?: str...
<?php /** * @since 8.1 */ final class GdFont {}
using System; namespace ExtensionMethodLibrary.ValueTypes.Date { public static class ExtensionDate { public static DateTime Ago(this TimeSpan time) { return DateTime.Now.Subtract(time); } public static DateTime Future(this TimeSpan time) { retur...
package dev.robocode.tankroyale.gui import dev.robocode.tankroyale.gui.ui.MainWindow import dev.robocode.tankroyale.gui.ui.components.Images import java.awt.Taskbar import javax.swing.UIManager fun main() { try { Taskbar.getTaskbar().iconImage = Images.tankImage // for macOS } catch (ignore: Unsupport...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
// React import React, { useState, useEffect } from 'react'; // Components import StatisticCard from './StatisticCard'; import LoadingWheel from './LoadingWheel'; // Api import { getCovid19Statistics } from '../api/Covid19Api'; // Constants import { TOTAL_CONFIRMED, TOTAL_DEATHS, TOTAL_RECOVERED } from '../constants...
from flask import g from eth_account.messages import encode_defunct def is_authorized(msg, sig, key): """ Given the proper arguments determine if a message was signed by holder of 'key' @param msg: plain text or hashed. The message that was signed @param sig: hash Resulting hash from the signature ...
import { HTMLElement } from './element'; import { TextNode } from './textnode'; export class Document { readonly nodeType: number; body: HTMLElement; documentElement: HTMLElement; head: HTMLElement; implementation: { createHTMLDocument (textContent: string): Document; hasFeature (feature: string, ver...
import Vue from 'vue' import App from './App.vue' import vuetify from './plugins/vuetify' import VueCookies from 'vue-cookies' import md5 from 'js-md5'; var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?ca3629bf308ae41cf96590fe334a19e5"; var s = docum...
/* * The MIT License (MIT) Copyright (c) 2020-2021 artipie.com * https://github.com/artipie/rpm-adapter/LICENSE.txt */ package com.artipie.rpm; import com.artipie.asto.test.TestResource; import com.artipie.rpm.hm.IsXmlEqual; import com.artipie.rpm.meta.XmlPackage; import com.artipie.rpm.pkg.FilePackage; import com....
using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace ShapesMVC.Generator { public class ShapeGeneratorFactory { public static readonly string TRIANGLE = "triangle"; public static readonly string DIAMOND = "diamond"; public static readonly st...
using System; namespace HospiEnCasa.App.Dominio { /// <summary>Class <c>SugerenciaCuidado</c> /// Modela las sugerencias de cuidado del Paciente /// </summary> public class SugerenciaCuidado { // Identificador único de cada SugerenciaCuidado public int Id { get; set; } /...
--- layout: post title: "crypto project" date: 2019-12-06 excerpt: "open source software project" project: true tag: - crypto - project comments: true --- opensource project를 위해 github의 Carleslc/CryptTools를 fork하여 affine_cipher와 permutation_cipher을 추가하였습니다. affine_cipher는 (A*X+B)Mod26의 형태로 값을 갖습니다 X= 암호화할 알파벳의 아스키...
#!perl use strict; use warnings; use Test::More; my $db_file = 'TEST.sqlite'; unlink $db_file; plan skip_all => "Not a real test file -- just cleaning up";
# @MESG-COMPONENTS/PROGRESSBAR ## Install `npm install @mesg-components/progressbar` or `yarn add @mesg-components/progressbar` #### To use: ```javascript import Linear from '@mesg-components/progressbar/Linear' ``` ## Properties - **value**: `String`, **Optional** , _The default is `0`_, _Width value of linear p...
(* Name: keymancontext Copyright: Copyright (C) SIL International. Documentation: Description: Create Date: 1 Aug 2006 Modified Date: 12 Mar 2010 Authors: mcdurdin Related Files: Dependencies: Bugs: Todo: Notes: ...
package com.cxz.wanandroid.utils import android.content.Context import android.view.inputmethod.InputMethodManager import android.widget.EditText /** * Created by chenxz on 2018/6/5. */ object KeyBordUtil { /** * 打卡软键盘 */ fun openKeyBord(mEditText: EditText, mContext: Context) { val imm =...
package vulkan.common object Animations { fun update(time:Double) { } }
package org.iitk.brihaspati.modules.utils; /* * @(#)SystemIndepedentUtil.java * * Copyright (c) 2005-2006 ETRG,IIT Kanpur. * All Rights Reserved. * * Redistribution and use in source and binary forms, with or * without modification, are permitted provided that the following * conditions are met: * ...
import * as mongoose from 'mongoose'; import GeneralConfigs from '../configurations/general'; import SequenceConfigs from '../configurations/sequence'; const Schema = mongoose.Schema; const jobSchema = new mongoose.Schema({ target: { type: Schema.Types.ObjectId, ref: 'Dataset' }, tool: { ...
# thirteenth "Flavored Datetime Converter" ## Initialize (Overwrote `__repr__`) ``` python console >>> from thirteenth import Thirteenth >>> Thirteenth() # Now, via `time.time_ns`. <3Y,0M,1W,4D; 22h,41m,12s; 127ms,132us,925ns> >>> Thirteenth('2021-04-26 14:23:33') # From datetime (via `ti...
### Types # Represents the number to fill into a cell, i.e. 1 to 9. typealias Number Int # A subset of {1, 2, ..., 9}, which represents the leftover number that can be use to fill the corresponding cells. immutable LeftoverNumbers val_bits::Uint16 end # Represents a cell. # In natural order, (1, 1) is the top ...
package slf4gozap import ( "testing" slog "github.com/go-eden/slf4go" "go.uber.org/zap" ) var ( zapcfg = zap.Config{ Level: zap.NewAtomicLevelAt(zap.DebugLevel), Development: false, // DisableCaller: true, DisableStacktrace: true, Encoding: "console", EncoderConfig: zap.NewDeve...
# Vinicius Alves Loures França 20.1.1039 def preencherVetor(valores, tipo): vetor = [] valores = valores.split(',') for i in range(len(valores)): if tipo == 'int': valor = int(valores[i].strip()) elif tipo == 'float': valor = float(valores[i].strip()) else: ...
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
#!/usr/bin/env ruby require_relative 'example' class GraphExample < CLIExample def GraphExample.parse_opts(opts, params) opts.banner = 'Usage: graph_ex.rb [options]' # default values params.box = true params.shadow = false params.x_value = CDK::CENTER params.y_value = CDK::CENTER params....
mod address_mode; pub(crate) mod bus; pub(crate) mod cpu; pub(crate) mod interrupt; pub mod joypad; mod opcode;
package com.alison.client.config; /** * @author peidong.meng * @date 2019/12/17 */ public interface IClientConfig { default int getReadTimeout(){ return 30000; } default int getConnectTimeout(){ return 120000; } }
# SI 506: Problem Set 07 This week, we will be working with the *coolest* part of Python: Classes! You will need to utilize two different input files, "sh_basic_info.csv" and "sh_additional_info.csv", to gather information on three super-powered women from the Marvel universe. You will build a class with which to organ...