text
stringlengths
27
775k
module ReminderTypes where import NotyTypes type Id = String data Freq = Fmin Int | Fhour Int | Fday Int | Fmon Int | Fyear Int deriving (Show) data MyIter = Iter {freq::Freq, occurrences::Int} deriving (Show) data MyDate = Date {year::Int, month::Int, day::Int} deriving (Eq, Ord, Show) data MyTime = Time {hour::Int, ...
import torch import torch.nn as nn import torch.nn.functional as F from layer import CBHG, BatchNormConv1d, Linear, Prenet, Highway, Attention, LocationLayer, StopNet from utils.utils import sequence_mask class Tacotron(nn.Module): def __init__(self, num_chars, r=7, linear_dim=1025, mel_dim=80): super(T...
// Copyright 2015 The LUCI 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...
<?php /** * Created by PhpStorm. * User: inhere * Date: 2017/10/12 * Time: 下午8:06 */ namespace Swokit\Task\Schedule; use Swokit\Task\AbstractManager; use Swokit\Task\TaskHelper; use Swoole\Timer; /** * Class ScheduleManager * @package Swokit\Task\Schedule * * @ref https://github.com/jobbyphp/jobby/blob/mast...
package com.ruoyi; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import com.ruoyi.common.security.annotation.EnableCustomConfig; import com.ruoyi.common.security.annotation.EnableRyFeignClients; import org.springframework.boot.autoconfigure.jdbc...
using System; using System.ComponentModel; using System.Diagnostics; using System.Drawing; using System.IO; using System.Windows.Forms; namespace MASToolBox { partial class Form1 { private LibraryWorker KeywordSearcher = new LibraryWorker(Library.KeywordSearch); private void Btn_selectTargetF...
#! python3 """ FILE NAME ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ DESCRIPTION [author] AUTHOR NAME, ORGANIZATION NAME [info] OTHER INFORMATION """ from typing import Optional, Tuple, Union from enum import Enum from serial import Serial from pisat.handler.serial_handler_base import SerialHandlerBase class Pyseria...
/************************************ Module Header ***********************************\ * Module Name: NativeMethods.cs * Project: CSWinFormExAeroToClient * Copyright (c) Microsoft Corporation. * * This class wraps the DwmIsCompositionEnabled, DwmExtendFrameIntoClientArea and * DwmEnableB...
// Copyright Toru Niina 2017. // Distributed under the MIT License. #ifndef TOML11_PARSER_HPP #define TOML11_PARSER_HPP #include "result.hpp" #include "region.hpp" #include "combinator.hpp" #include "lexer.hpp" #include "types.hpp" #include "value.hpp" #include <iostream> #include <cstring> namespace toml { namesp...
<?php namespace App\Http\Controllers\Admin; use App\Products\Product; use App\Http\Controllers\Controller; class FeaturedProductsController extends Controller { public function index() { return view('admin.products.featured.index'); } public function store() { request()->validat...
Rails.application.routes.draw do get 'list', to: 'welcome#index', as: 'full_list' root to: 'welcome#random' end
package ch.epfl.bluebrain.nexus.delta.service.schemas import ch.epfl.bluebrain.nexus.delta.kernel.utils.UUIDF import ch.epfl.bluebrain.nexus.delta.rdf.Vocabulary import ch.epfl.bluebrain.nexus.delta.rdf.Vocabulary.{contexts, nxv, schema => schemaorg} import ch.epfl.bluebrain.nexus.delta.rdf.jsonld.api.{JsonLdApi, Json...
package com.robin.dal.dao; import java.io.IOException; import java.util.List; import java.util.Map; /** * Message Queue based data access DAO */ public interface IMessageQueueAccessDao extends IDataAccessDao { boolean insertMessage(String queue,Map<String,Object> valueMap) throws IOException; List<Map<Strin...
package io.rsbox.engine.game.model.interf import io.rsbox.api.interf.DisplayMode import it.unimi.dsi.fastutil.ints.Int2IntOpenHashMap /** * Based off Tomm0017's Interface system. * * @author Kyle Escobar */ class InterfaceSet { private val visible = Int2IntOpenHashMap() private var currentModal = -1 ...
from nominal_unification.Syntax import * class Closure(): """ A closure represents an expression within a context with bindings. Variables within said expression may or may not be captured by the scope. """ def __init__(self, expr, scope): self.expr = expr self.scope = sco...
oauth2-dialog ============== Provides a easy way to perform OAuth2 implicit flow authentication and get a access token Can be used as a node module or as a standalone tool. Also supports listening for authentication requests over HTTP or performing requests against a server. This enables usage when you have no GUI,...
package com.digirati.elucidate.model.annotation.temporal import com.digirati.elucidate.common.model.annotation.AbstractObject import java.io.Serializable import java.util.* class AnnotationTemporal : AbstractObject(), Serializable { var type: String? = null var value: Date? = null }
/* NSC -- new Scala compiler * Copyright 2005-2013 LAMP/EPFL * @author Paul Phillips */ package scala.tools.nsc package interpreter import scala.reflect.{ ClassTag, classTag } class RichClass[T](val clazz: Class[T]) { def toTag: ClassTag[T] = ClassTag[T](clazz) // Sadly isAnonymousClass does not return true...
from sympy import * def deg2rad(angle): """ Converts degrees to radians Parameters ---------- angle : float, int Angle in degrees Returns ------- ar : float Angle in radians Examples -------- >>> deg2rad(30) 0.523598775598299 ...
<?php /* * This file is part of the Sylius package. * * (c) Paweł Jędrzejewski * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ declare(strict_types=1); namespace Sylius\Bundle\CoreBundle\Fixture; use Doctrine\Persistence\Object...
/** * This source file is part of the Swift.org open source project * * Copyright (c) 2021 Apple Inc. and the Swift project authors * Licensed under Apache License v2.0 with Runtime Library Exception * * See https://swift.org/LICENSE.txt for license information * See https://swift.org/CONTRIBUTORS.txt for Swift ...
import { quickSort } from './quickSort' test('should sort array', () => { expect(quickSort([])).toEqual([]) expect(quickSort([ 1 ])).toEqual([ 1 ]) expect(quickSort([ 1, 1, 1 ])).toEqual([ 1, 1, 1 ]) expect(quickSort([ 3, 4, 4, 1, 1, 2 ])).toEqual([ 1, 1, 2, 3, 4, 4 ]) expect(quickSort([ 1, 2, 3, 4, 5 ])).to...
// FarNet plugin for Far Manager // Copyright (c) Roman Kuzmin #include "StdAfx.h" #include "Viewer0.h" #include "Viewer.h" namespace FarNet {; //! See Editor0::Editors(). array<IViewer^>^ Viewer0::Viewers() { return _viewers.ToArray(); } // Viewer must not be registered yet void Viewer0::Register...
-module(dcos_dns). -include_lib("dns/include/dns_records.hrl"). %% API -export([ family/1, resolve/1, resolve/2, resolve/3, get_leader_addr/0 ]). -spec family(inet:ip_address()) -> inet | inet6. family(IP) when size(IP) == 4 -> inet; family(IP) when size(IP) == 8 -> inet6. -spec(get_lead...
namespace Common.Netcode { // Received from Game Client public enum ClientPacketOpcode { Disconnect, PurchaseItem, CreateAccount, Login, ChatMessage, CreateChannel, RemoveChannel, AddUserToChannel, RemoveUserFromChannel, AddFri...
#!/bin/bash PROJECT_DIR=$(pwd) flex -o "${PROJECT_DIR}/src/f77lexer.c" "${PROJECT_DIR}/f77lexer.l"
package Batch::PBS; use strict; use warnings; use DumpStack; use Carp; use Env; use Shell::Source; use Data::Dumper; use Batch; use FindBin; use subs qw(account batch queue queues default_time_limit pe time_limit blocked_queues); use vars qw(@ISA $queues $AUTOLOAD); @ISA = qw(Batch); { # Batch hash with default val...
// @flow import React from 'react'; import EditorButton from './EditorButton'; import { Download } from '../icons/'; const EditorDownloadButton = (props: *) => ( <EditorButton icon={<Download />} {...props} /> ); export default EditorDownloadButton;
import * as vscode from 'vscode'; import BookmarkManager from '../services/bookmark-manager'; import { inject, injectable} from 'inversify'; import { TYPE_NAME_CATEGORY_MSG } from '../consts/messages'; import { TreeDataItem } from '../models/tree-data-item'; import { RENAME_CATEGORY } from '../consts/commands'; import ...
--- title: SbSHwq permalink: SbSHwq layout: post date: 2019-06-24 19:04:10 category: ellipses --- ```latex % Dans le préambule % ----------------- \usepackage{chancery} % ----------------- La police Zapf Chancery porte le nom de son créateur : Hermann~Zapf. ```
const assert = require('assert').strict; const runner = require('../src/runner'); const kolorist = require('kolorist'); const { newPage, closePage, waitForVisible, waitForText, waitForTestId, assertValue, assertNotXPath, clickSelector, clickXPath, clickText, clickTestId, ...
package com.middleware.common.service; import com.middleware.common.model.PageInfo; /** * Created by DOUBLE on 2017/02/25. * * @author DOUBLE * @since 2017/02/25 */ public interface BasePageService<T> extends BaseService<T> { PageInfo<T> listPage(PageInfo<T> pageInfo, T entity); }
using UnityEngine; public class FPSCounter : MonoBehaviour { [SerializeField] float updateInterval = 0.5f; float accum = .0f; int frames = 0; float timeleft; float fps; GUIStyle textStyle = new GUIStyle(); private void Start() { timeleft = updateInterval; textStyle....
module LedgerSync module Adaptors module Test class Adaptor < LedgerSync::Adaptors::Adaptor def initialize(*_config); end def find(resource:, id:) { 'id' => id } end def post(resource:, payload:) payload end def query(resource:, query:) ...
module Admin.View.NixCoffees.Index where import Admin.View.Prelude data IndexView = IndexView { nixCoffees :: [NixCoffee] } instance View IndexView where html IndexView { .. } = [hsx| <nav> <ol class="breadcrumb"> <li class="breadcrumb-item active"><a href={NixCoffeesAction}>Ni...
using System; using System.Globalization; using Xamarin.Forms; namespace Caeno.XamarinForms.Toolkit { /// <summary> /// A XAML Value Converter that returns an Optional value when the binded value is null. /// </summary> public class NullToValueConverter : IValueConverter { public object Convert(object value,...
package com.linkedin.parseq.trace; import java.util.Map; /** * A shallow trace is a trace without any relationship information. Use * {@link ShallowTraceBuilder} to construct new instances of this class. * * @author Jaroslaw Odzga (jodzga@linkedin.com) * */ public interface ShallowTrace { /** * Returns t...
import { PairDTO, Stage1Row } from '../../@common/dto'; import { RootState } from '../../@common/models'; // Get state from store export const Stage1Selector = { isLoading: ({ stage1State: { isLoading } }: RootState): boolean => isLoading, getSelectedRows: (stageName: string, { stage1State: { selectedRows } }: RootS...
export const environment = { production: true, wsServer: 'wss://example.com', // TODO };
using System; using Sdl.Web.Common.Models; namespace Sdl.Web.Tridion.Tests.Models { [SemanticEntity(Vocab = CoreVocabulary, EntityName = "SimpleTestEntity", Prefix = "s")] [SemanticEntity(Vocab = CoreVocabulary, EntityName = "FolderSchema", Prefix = "f")] public class Tsi2844TestEntity : EntityModel {...
package com.caldremch.utils import android.annotation.SuppressLint import android.content.Context /** * * @author Caldremch * * @date 2020-07-12 17:04 * * @email caldremch@163.com * * @describe 注册 Application 获得全局 context * **/ @SuppressLint("StaticFieldLeak") object Utils { @SuppressLint("StaticFieldL...
# Alters a dataport export set such that the electronic documents are named with their record number (instead of suggested title) # Reference: https://www.cmramble.com/blog/2017/10/15/exporting $metadataFile = "C:\DataPort\Export\Out-of-the-box Electronic Export\records.txt" $subFolder = "C:\DataPort\Export\Out-of-th...
package com.coxautodata.waimak.dataflow.spark.dataquality import java.time.Instant import java.util.{Date, Properties} import com.coxautodata.waimak.configuration.CaseClassConfigParser import com.coxautodata.waimak.dataflow.DataFlowException import com.coxautodata.waimak.dataflow.spark.SparkFlowContext import com.cox...
package cafe.adriel.voyager.hilt import cafe.adriel.voyager.core.model.ScreenModel import dagger.Module import dagger.hilt.InstallIn import dagger.hilt.android.components.ActivityRetainedComponent import dagger.multibindings.Multibinds /** * By default Dagger Multibindings are required to have at least one ...
##Patterns: Layout_SpaceBeforeFirstArg : {"AllowForAlignment":false} ##Info: Layout_SpaceBeforeFirstArg something x ##Info: Layout_SpaceBeforeFirstArg a.something y, z
/* * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { HttpRedirectsHead300OptionalParams, HttpRedirectsHead300Response, HttpRedi...
from jet.dashboard.modules import DashboardModule from accounts.models import User from management.models import Activity, Assistance class ActivityAttendance(DashboardModule): title = 'Asistencia de actividades' q = 3 subtitle = f'Promedio de asistencia de actividades (Porcentaje últ. {q} clases)' t...
var assert = require("assert"), decache = require("decache"), path = require("path"), fs = require("fs"), pName = "checkBundleStructure", debug = require("debug")("bundlelinter:" + pName), Bundle = require("../lib/package/Bundle.js"), util = require("util"), bl = require("../lib/package/bundleLinter.js"...
// tests go here; this will not be compiled when this package is used as a library BME280.init() basic.forever(function () { basic.showString(BME280.stringTemperature()) basic.showString(BME280.stringPressure()) basic.pause(1000) })
# Ember Charts [![Build Status](https://secure.travis-ci.org/Addepar/ember-charts.svg?branch=master)](https://travis-ci.org/Addepar/ember-charts) A charting library built with the Ember.js and d3.js frameworks. It includes time series, bar, pie, and scatter charts which are easy to extend and modify. The out-of-the-bo...
unit Eagle.Alfred; interface uses System.Classes, System.SysUtils, StrUtils, System.Math, System.Generics.Collections, System.Rtti, System.IOUtils, System.RegularExpressions, XSuperJSON, XSuperObject, Eagle.Alfred.Core.Exceptions, Eagle.Alfred.Core.ConsoleIO, Eagle.Alfred.Core...
package com.epam.drill import com.epam.drill.common.* @SharedImmutable val AGENT_TYPE: AgentType = AgentType.JAVA
<?php namespace Database\Seeders; use App\Models\Exam; use Illuminate\Database\Seeder; class ExamSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { Exam::create([ 'title' => 'آزمون الکوئنت', 'description' =...
class Picture < ActiveRecord::Base belongs_to :category has_many :notes def moyenne notes.map{|note| note.value}.sum / notes.size unless notes.empty? end attr_accessible :description, :location, :name, :category, :category_id end
export declare const empty: IDisposable; export interface IDisposable { dispose(): void; } export declare function dispose<T extends IDisposable>(...disposables: T[]): T; export declare function dispose<T extends IDisposable>(disposables: T[]): T[]; export declare function combinedDisposable(disposables: IDisposabl...
package com.smallraw.chain.ethereum import com.smallraw.chain.ethereum.extensions.stripHexPrefix import com.smallraw.chain.ethereum.supplement.EIP55 import java.math.BigInteger class AddressValidator { open class AddressValidationException(msg: String) : Exception(msg) class InvalidAddressLength(msg: String)...
# Beacon Block Flow This is a WIP document to explain the beacon block flows. ## Validation & Verification flow Important distinction: - We distinguish block `validation` which is defined in the P2P specs: https://github.com/ethereum/consensus-specs/blob/v1.1.0/specs/phase0/p2p-interface.md#beacon_block. A valid...
--- category: cpp name: ODataCpp-Server <span class="label label-success">featured</span> version: V4 object: Server downloads: - source: GitHub link: https://github.com/OData/odatacpp-server --- ODataCpp-Server is a server library that helps you build OData V4 service with C++.
// ------------------------------------------------------------------------------ // Copyright 吴来伟个人 版权所有。 // 项目名:WorkData.Service.MessageTransfer // 文件名:QueueSchedulingService.cs // 创建标识:吴来伟 2018-04-19 15:59 // 创建描述: // // 修改标识:吴来伟2018-04-19 17:32 // 修改描述: // --------------------------------------------------------...
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Tentang extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this contro...
use crate::{Dummy, Fake}; use rand::Rng; macro_rules! array_impl { {$n:expr, $t:ident $($ts:ident)*} => { impl<T, U> Dummy<U> for [T; $n] where T: Dummy<U> { fn dummy_with_rng<R: Rng + ?Sized>(config: &U, rng: &mut R) -> Self { [Fake::fake_with_rng::<$t, _>(config, rng), $(Fake:...
```bash sh -c "`curl -fsSL https://raw.githubusercontent.com/garbagedream/dotfiles/master/install.sh`" ```
package io.github.dunwu.autoconfigure.mybatis; import lombok.Data; import lombok.ToString; import org.springframework.boot.context.properties.ConfigurationProperties; /** * Spring Boot 集成 MyBatis-Plus 配置属性 * * @author <a href="mailto:forbreak@163.com">Zhang Peng</a> * @since 2019-06-16 */ @Data @ToString @Config...
using AxoCover.Common.Settings; using System.Runtime.Serialization; namespace AxoCover.Common.Runner { [DataContract] public class TestExecutionOptions { [DataMember] public string SolutionPath { get; set; } [DataMember] public string OutputPath { get; set; } [DataMember] public st...
package org.jetbrains.compose.demo.widgets.data.model data class Item( val id: Int, val title: String, val subtitle: String, val imageId: String, val source: String = "demo source" )
-- Deploy procedures/generate_secret to pg BEGIN; CREATE FUNCTION generate_secret( len int default 32, symbols boolean default false ) RETURNS text AS $$ DECLARE v_set text; v_bytea bytea; v_output text; x int; y int; b_index int; BEGIN v_set = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnop...
/* * Copyright 2021 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 agreed to...
package database.tournamentParts; public class Properties { public boolean DO_KNOCKOUT = true; public boolean DO_QUALIFYING = true; String name = ""; public int[][] subMatches = new int[][] { { 1, 2 }, { 2, 1 }, { 1, 1 }, { 2, 2 } }; boolean TYPE_2TEAM = false; boolean TYPE_DOUBLE = false; boolean TYPE_SIN...
using Test, Glob, MarketObservables tests = glob("test_*") for test_file ∈ tests include(test_file) end
/* * 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 may ...
package CXGN::Trial::ParseUpload::Plugin::GenotypeTrialCoordinateTemplate; use Moose::Role; use Text::CSV; use CXGN::List::Validate; use CXGN::Stock::StockLookup; use SGN::Model::Cvterm; use Data::Dumper; use Scalar::Util qw(looks_like_number); sub _validate_with_plugin { my $self = shift; my $args = shift; ...
require 'leafy/core/metric_registry' RSpec.describe Leafy::Core::MetricRegistry do class MetricMock def initialize(klass) @klass = klass end def is_a?(klass) @klass == klass end end let(:registry) { subject } let(:gauge) { MetricMock.new(Leafy::Core::Gauge) } let(:counter) { M...
/* * Copyright (C) 2012-2015 Open Source Robotics Foundation * * 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...
package com.hubtwork.katarinaapi.dto.katarina.user data class SummonerInfoDTO( var revisionDate: Long, // 소환사 정보 갱신 시간 ( 소환사명, 프로필 아이콘, 레벨 변동 기준 ) var encryptedAccountId: String, var name: String, var summonerLevel: Long, var profileIconId: Int )
json.id taxon.id json.text taxon.name json.state do json.opened true end json.data do json.destroy_url admin_taxonomy_taxon_url(taxonomy, taxon) json.update_position_url update_position_admin_taxonomy_taxon_url(taxonomy, taxon) end json.children taxon.children do |child| json.partial! partial: 'cdx/admin/taxono...
-- | The space tree abstraction was pioneered by the <http://mlpack.org MLPack> library. -- It provides a generic interface for all tree structures that support nearest neighbor queries. -- The paper <http://arxiv.org/abs/1304.4327 Tree Independent Dual Tree Algorithms> gives full details. -- -- FIXME: -- Should this i...
using Configuration; using System; using System.Net; using UnityEngine; using UnityEngine.SceneManagement; using UnityRandom = UnityEngine.Random; namespace Menu.Main { class MainMenuScript : MonoBehaviour { private Parameters parameters; private void Awake() { parameters ...
if [[ "$OSTYPE" == "darwin"* ]]; then printf "\tCompiling info executable...\n" gcc -o info/info info/info.c printf "\tCompiling loader...\n" gcc -o loader/loader loader/loader.c # -D DEBUG_MODE printf "\tCompiling loader (autoreload)...\n" gcc -o loader/loader_autoreload loader/loader.c -D AUTORELOAD printf "\t...
module Admin::FeedbackHelper def link_to_article_edit(article) link_to truncate(article.title, 60), :controller => '/admin/content', :action => 'edit', :id => article.id end # Define if all_feedback is the current def all_feedback if params[:confirmed] != 'f' and params[:published] != 'f' return ...
#!/bin/bash # Script to launch a multi-node pytorch.distributed training run on UF HiPerGator's AI partition, # a SLURM cluster using Singularity as container runtime. # # This script uses `pt_multinode_helper_funcs.sh` and `run_on_node.sh`. # # If launch with torch.distributed.launch, # set #SBATCH --ntasks=-...
<?php include ('functions.php'); ?> <script src="functions.js"></script>
package typingsSlinky.kdbxweb import typingsSlinky.kdbxweb.mod.KdbxErrorCode import org.scalablytyped.runtime.StObject import scala.scalajs.js import scala.scalajs.js.`|` import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess} object kdbxwebStrings { @js.native sealed tr...
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers @addTagHelper *, TagHelperSeries <html> <body> <helloworld/> </body> </html>
import './utils'; import path from 'path'; import cac from 'cac'; import fs from 'fs-extra'; import { getConfig } from './config'; import { Logger } from './log'; const argv = cac().parse(); const logger = new Logger('cache'); export = function main() { const CACHE_DIR = getConfig('cache_dir'); if (argv.args...
import 'package:adaptive_dialog/adaptive_dialog.dart'; import 'package:flutter/material.dart'; import 'package:hongyanasst/dao/get_data_dao.dart'; import 'package:hongyanasst/dao/login_dao.dart'; import 'package:hongyanasst/db/hi_cache.dart'; import 'package:hongyanasst/http/core/hi_error.dart'; import 'package:hongyan...
# MultiLayer Perceptron ![Image of Neurons](http://www.extremetech.com/wp-content/uploads/2013/09/340.jpg) This is simple example of multilayer perceptron, but I want to parametrize it, so at constructor will be count of layers and each layer size (include S and R layers). I think this projects will be helpful for re...
require 'faraday' require_relative '../formatter' module FaradayMiddleware class FcoinFormatter < Faraday::Middleware # Format response_env by using Fcoin::Formatter def call(request_env) @app.call(request_env).on_complete do |response_env| body = JSON.parse(response_env.body) formatter...
//======================================================================= // RISCV Magic RAM Interface // Watson Huang // Dec 3, 2017 // // A magic ram interface for unittest to simulate read/write //======================================================================= package rvcommon import chisel3._ im...
package dao import ( "fmt" ) func Test(){ fmt.Println("This is dao") }
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ## 0.4.3 (March 26th, 2021) ### Fixed * Pin SQLAlchemy to <1.4 (#314) ## 0.4.2 (March 14th, 2021) ### Fixed * Fix memory leak with asyncpg for SQLAlch...
package io.warp10.warpscriptDSL // // WarpScript KOTLINDSL // @author aurrelhebert // @license apache 2.0 // // Autogenerated code fun WarpScript.d(init: Element.() -> Unit = {}) : Functions { return initTag(Functions("d"), init) } fun WarpScript.d(value: Number, init: Element.() -> Unit = {}) : Functi...
// // CommonFramework.h // CommonFramework // // Created by shengnan.liu on 16/6/16. // Copyright © 2016年 shengnan.liu. All rights reserved. // #import <Foundation/Foundation.h> @interface CommonFramework : NSObject - (void)fangfaOne; - (void)fangfaTwo; - (void)fangfaThree; @end
module BSONSerializer using Mongoc: BSON, BSONObjectId using Dates, InteractiveUtils export @BSONSerializable include("types.jl") include("encoding.jl") include("codegen.jl") include("serialize.jl") end # module
{-# LANGUAGE NoMonomorphismRestriction #-} {-# LANGUAGE FlexibleContexts #-} module Annotation.Parser ( parseAnnotations , annotations , pAnnotation , parseFlipbook ) where import Control.Lens.Operators import qualified Control.Lens as L import Text.Parsec import qualified Text.Parsec.Token as P i...
import React from 'react'; import { Container } from './styles'; interface ISelectInput { options: { label: string | number, value: number }[]; onChange: (e: React.ChangeEvent<HTMLSelectElement>) => void | undefined; value: number; } const SelectInput: React.FC<ISelectInput> = ({ options, onChange, va...
package com.github.wakingrufus.demo import com.nhaarman.mockito_kotlin.mock import com.nhaarman.mockito_kotlin.verify import org.junit.Test import java.io.PrintStream import kotlin.test.assertEquals class HigherOrderKtTest { @Test fun `test printHelloWorld`() { printHelloWorld() // ??? } @Te...
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package oop.demo; import account.BankAccount; import account.CurrentAccount; /** * * @author kmhasan */ public class OOPDemo { ...
<?php if(!defined('ROOT_AES_KEY')) define('ROOT_AES_KEY', substr(strtoupper(md5("a53dd09374f9a2a61ba3da6524b639ed")),8,16)); define('RDSDEFAULT', 0); // 库0 define('USERINFO', 1); // 库1 哈希 define('USERLIST', 2); // 库2 列表 define('USERSET', 3); // 库3 集合 define('ORDER', 4); // 4 订单 define('LOGINSPLIT', '@~'); define('HA...
using System; using System.Runtime.CompilerServices; using Microsoft.VisualStudio.TestTools.UnitTesting; namespace Singulink.Collections.Weak.Tests { [TestClass] public class WeakValueDictionaryTests { [TestMethod] public void Clean() { var c = new WeakValue...
package com.higor.monolithicecommerce.config import com.rabbitmq.client.BuiltinExchangeType import com.rabbitmq.client.ConnectionFactory class QueueManager { companion object { fun publish(message: String) { val factory = ConnectionFactory() factory.newConnection().use { connecti...