text
stringlengths
27
775k
package com.github.asalimonov.hay.core.metrics trait ResetableMetric { def Reset(): Unit }
import React from 'react'; import {shallow} from 'enzyme' import toJson from 'enzyme-to-json'; import {ConfirmNewFolderContainer} from "./ConfirmNewFolderContainer"; describe('ConfirmNewFolderContainer', () => { it('match snapshot', () => { expect(toJson(shallow(<ConfirmNewFolderContainer/>))).toMatchSnap...
<?php namespace CarbonClean\Sanitizer\Tests; use CarbonClean\Sanitizer\Tests\Fixtures\Filters\CustomFilter; use CarbonClean\Sanitizer\Laravel\Factory; use PHPUnit\Framework\TestCase; class FactoryTest extends TestCase { public function test_custom_closure_filter() { $factory = new Factory; $f...
# canon Using something like the WHERE part of an SQL query to evaluate an array like thing is true or false. # Basic Usage ```php use EUAutomation\Canon\Processor; $processor = new Processor(); $expressions = $processor->process('foo = "bar"'); $expressions->evaluate([ "foo" => "bar" ]); // true ``` # Supports -...
import React, { Component } from 'react'; import { Button } from 'antd'; import bindLifecycle from '../../es/utils/bindLifecycle'; @bindLifecycle export default class Index extends Component { constructor(props) { super(props); } render() { return ( <div> <h2>Home</h2> <Button type=...
<?php return [ /* |-------------------------------------------------------------------------- | App Language Lines |-------------------------------------------------------------------------- | */ 'settings.system' => 'Rendszer', 'settings.appearance' => 'Megjelenés', 'settings.mis...
package be.mickverm.widgets.sample.recyclerview.ui.items import android.view.View import android.view.ViewGroup import android.widget.TextView import androidx.recyclerview.widget.RecyclerView import be.mickverm.widget.recyclerview.adapter.RxDiffUtilAdapter import be.mickverm.widgets.sample.R import be.mickverm.widgets...
package org.aiotrade.lib.trading import java.util.Date import java.util.logging.Logger import org.aiotrade.lib.securities.model.Sec import org.aiotrade.lib.util.actors.Publisher /** * quantity should always be >= 0 */ final case class Order(account: TradableAccount, sec: Sec, price: Double, var quantity: Double, si...
using System.Data; namespace PeanutButter.FluentMigrator.Fakes { internal class FakeDbConnection: IDbConnection { private ConnectionState _state; public void Dispose() { /* intentionally left blank */ } public IDbTransaction BeginTransaction() { ...
package org.jenkins.ci.plugins.jenkinslint.check; import hudson.model.Item; import hudson.model.Project; import hudson.tasks.Builder; import jenkins.model.Jenkins; import org.jenkins.ci.plugins.jenkinslint.model.AbstractCheck; import java.util.List; import java.util.logging.Level; /** * @author Victor Martinez */ ...
class PascalTriangle include Enumerable attr_reader :rows def initialize row_count raise ArgumentException unless row_count.class == Fixnum raise "row_count must be greater than 0." unless row_count > 0 @row_count = row_count generate_rows end def to_s max_width = @rows.flatten.max.to_s.size max_co...
package main import ( "fmt" "sync" ) func scope1() { var wg sync.WaitGroup for _, m := range []string{"Hello", "Good day", "Greeting"} { wg.Add(1) go func() { defer wg.Done() fmt.Println(m) }() } wg.Wait() } func scope2() { var wg sync.WaitGroup for _, m := range []string{"Hello", "Good day", "Gr...
package com.xiyan.controller; import com.xiyan.dto.*; import com.xiyan.service.UserService; import com.xiyan.vo.BaseVO; import com.xiyan.vo.UserByIdVO; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; imp...
Format Relative Options ============================================================================== `style` > options for "best fit" ("yesterday") and "numeric" ("1 day ago") output. `units` > options for always rendering in a particular unit; e.g. "30 days ago", > instead of "1 month ago".
# Maintainer's Guide This document explains how to maintain an image-builder repo. ## How it works The SD card is automatically built with [Circle](https://circleci.com). You don't need real hardware to build and publish the SD card image. ### Pull requests Pull requests are also built and checked with Circle. See...
use crate::{api_client::{self, Client}, common::ui::{Status, UIReader, UIWriter, UI}, error::{Error, Result}, PRODUCT, VERSION}; use habitat_core::origi...
module.exports = { delims: ["\\$\\$", "<math>"], output: "mml" };
const path = require('path'); const fs = require('fs'); const m = require('match-file-utility'); const config = JSON.parse(fs.readFileSync('package.json')).gruntBuild; function notGrunt(file) { return !/Gruntfile.js$/.test(file); } let src = { shared : m('src/shared/', /\.js$/).filter(notGrunt), vendor : m('src...
import { combineReducers } from 'redux'; import UploadDetailsReducer from '../../views/Upload/upload.reducer'; import HomeReducer from '../../views/Home/home.reducer'; import ProfileReducer from '../../views/Profile/myprofile.reducer'; import AdminReducer from '../../views/Admin/admin.reducer'; import SelectorBarReduc...
# MessagePack.Experimental This C# project is the experimental project for the features which are very complex, unstable or unsafe. - [HardwareIntrinsics](HardwareIntrinsics/HardwareIntrinsics.md) - [UnsafeUnmanagedStructFormatter](UnsafeUnmanagedStructFormatter/UnsafeUnmanagedStructFormatter.md) **Caution!** `Mess...
import '../loadenv'; import '../utils/db'; import moment from 'moment'; import RSS from '../models/rss'; import Podcast from '../models/podcast'; import logger from '../utils/logger'; import { RssQueueAdd, PodcastQueueAdd } from '../asyncTasks'; import { isURL } from '../utils/validation'; const publicationTypes =...
package me.liuhui.mall.repository.dao; import me.liuhui.mall.repository.dao.mybatis.provider.BaseDao; import me.liuhui.mall.repository.model.Cart; import me.liuhui.mall.repository.model.annotation.MapperMapping; @MapperMapping(table = "u_cart") public interface CartDao extends BaseDao<Cart,Long> { Cart selectByUserI...
# After they all had been wandering away like lost sheep, to whom did they return? They all returned to the shephered and guardian of their souls.
require 'spec_helper' describe EpubBook do it 'has a version number' do expect(EpubBook::VERSION).not_to be nil end describe ".config" do #before do # EpubBook.default_config #end context 'not configure' do it 'return nil' do expect(EpubBook.config.mail_from).to eq(nil) ...
from t2wml.input_processing.region import YamlRegion from t2wml.settings import t2wml_settings from t2wml.utils.t2wml_exceptions import ErrorInYAMLFileException from t2wml.parsing.cleaning_functions import cleaning_functions_dict from t2wml.utils.bindings import update_bindings def create_lambda(function_name, *args, ...
require 'spec_helper' module Rsvp describe "Family associations" do it "should have many invitations" do Family.reflect_on_association(:invitations).macro.should eq(:has_many) end it "should have many members" do Family.reflect_on_association(:members).macro.should eq(:has_many) end i...
# chainer-object-detection Google Colaboratory上で独自データセットを用いた物体検出(バウンディングボックスとクラスラベルを付与)できます。 自分のPCにGPUが無いためcolabで実行しましたが、本ソースコードをコピペしてローカル環境でも実行できます。 # Demo 学習後の推論実行結果 ![ダウンロード](https://user-images.githubusercontent.com/49754372/60765863-fb8b4080-a0db-11e9-9423-cab437835e44.png) # Requirement Colab上でライブラリなどをインストールす...
--- layout: post title: Week 11 --- # Part 1 Project Reflection Particularly, Group 6 was very impressive in several ways. First, I really liked how each member of the group has a respective task. Since the project is big and active enough, they choose a similar approach of ours. Also I liked how they started w...
import 'package:glob/glob.dart'; /// Represents converted unused localization config, /// which contains parsed entities. class UnusedL10nAnalysisConfig { final Iterable<Glob> globalExcludes; final Iterable<Glob> analyzerExcludedPatterns; final RegExp classPattern; UnusedL10nAnalysisConfig( this.globalExc...
# Project journal for fp2md4roam ## Saturday 16 October 2021 Very primitive version working! ## Monday 18 October 2021 Beta version is now packaged with entry point. ## Thursday 09 December 2021 Made minor refactorings before merging common code in fp2md Now uses the same markdown_builder as fp2md
export interface LeaveRequestItem { datetime_leave_from : string; datetime_leave_to : string | null; email : string; avatar : string; full_name : string; email_content : string; leave_request_type_id : number; reason : string; use...
<?php /** * * @package phpBB Gallery * @version $Id$ * @copyright (c) 2007 nickvergessen nickvergessen@gmx.de http://www.flying-bits.org * @license http://opensource.org/licenses/gpl-license.php GNU Public License * */ namespace phpbbgallery\acpcleanup; use phpbb\language\language; use phpbb\user; use phpbbgallery\co...
#!/bin/sh # Attach the monitoring ./echxute.sh "chaosorca monit start --name hello_world"
#include <iostream> #include "fsmpp2/fsmpp2.hpp" #include "fsmpp2/plantuml.hpp" namespace events { struct Ev1 : fsmpp2::event {}; struct Ev2 : fsmpp2::event {}; struct Ev3 : fsmpp2::event {}; } // namespace events namespace states { struct EmptyContext {}; struct A; struct B; struct C; struct D; struct E; struct F...
package ga.rugal.fridge.core.service; import ga.rugal.fridge.core.dao.HistoryDao; public interface HistoryService extends BaseService<HistoryDao> { }
<?php // // Create database variables $servername = "localhost"; $username = "root"; // For localhost it will be root $password = "mysql"; // If using Ammps "mysql" if other leave empty $dbname = "200385752Comp1006Assignment2"; // replace with your database name // Create connection // $conn = n...
package com.zhongya.havefun.app.util import android.content.Context import android.util.TypedValue class DensityUtils private constructor() { companion object { @JvmStatic fun dp2px(context: Context, dpVal: Float): Float { return TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, ...
package ktx.dev.engine.media import com.luck.picture.lib.config.PictureMimeType import com.luck.picture.lib.entity.LocalMedia import dev.engine.media.IMediaEngine /** * detail: Local Media Selector Data * @author Ttt */ class LocalMediaData : IMediaEngine.MediaData { var localMedia: LocalMedia? = null co...
from test import TCBase, check_status_code class SaveUrlTest(TCBase): @check_status_code(201) def test_success_save_url(self): rv = self.save_url_request() self.assertEqual(rv.json['url'], 'http://localhost/b') return rv @check_status_code(201) def test_exist_url(self): ...
import React from 'react'; import { storiesOf } from '@storybook/react'; import { RequestStatusContainer } from './index'; storiesOf('Request status', module) .add('Success', () => ( <RequestStatusContainer statuses={[ { type: 'success', message: 'Cool bananas' }, { type: 'success', messag...
/** * Copyright [2012] [Datasalt Systems S.L.] * * 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 ...
# Copyright 2020 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 in writing, ...
import { InputElement } from "./inputElement"; export class InputTextElement extends InputElement { constructor(attributes) { super({...attributes, type: 'text'}, 'input'); } }
<?hh // strict namespace NS_mixed; class C { const mixed THING = 'abc'; private mixed $prop = true; public function setProp(mixed $val): void { $this->prop = $val; } public function getProp(): mixed { return $this->prop; } }
/* Copyright 2014 Ooyala, Inc. All rights reserved. * * This file is 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 applic...
/* (C) Copr. 1986-92 Numerical Recipes Software ?421.1-9. */ #include <stdlib.h> #include <stdio.h> #include <math.h> #include "psrgeom.h" void nrerror(char *error_text) { fprintf(stderr,"Numerical recipes run time error...\r\n"); fprintf(stderr,"%s\r\n",error_text); fprintf(stderr,"... now exiting to sys...
using Archiving.Core.Operation; using Archiving.Entity; using Archiving.Operation; using Archiving.Operation.FileExt.Core; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Archiving.Core.Options; namespace Archiving.Operation.FileExt { publi...
TestBattle: ret .loop call GBPalNormal ; Don't mess around ; with obedience. ld a, %10000000 ; EARTHBADGE ld [wObtainedBadges], a ld hl, wFlags_D733 set BIT_TEST_BATTLE, [hl] ; Reset the party. ld hl, wPartyCount xor a ld [hli], a dec a ld [hl], a ; Give the player a ; level 20 Rhydon. ld a, RHYDO...
-- Unused file CREATE TABLE RESERVATION ( ID BIGINT PRIMARY KEY AUTO_INCREMENT NOT NULL, RESERVATION_NAME VARCHAR(255) NOT NULL, ADDED TIMESTAMP AS CURRENT_TIMESTAMP NOT NULL );
package queue type Tube struct { name string queue *Queue reserved int }
# 广告平台业务说明 广告平台使用 redis 存储用户点击广告数据,数据结构如下 ```python DeviceID: { aid: { "view": 10 //剩余访问次数(int) "clicked": False, //是否点击过(boolean) }, aid: { "view": 10 "clicked": True, }, ... } ``` 数据一以 *key:value* ...
#!/bin/bash echo " >> Assert that current usage of 50% is higher than maximum of 40%" MOCK_SWAP_USAGE=50 MAX_ALLOWED_PERCENTAGE=40 ../checks/swap-usage-max-percent if [[ $? != 1 ]]; then echo " >> Test failed." exit 1 fi echo " >> Assert that swap is not used" MOCK_SWAP_USAGE=0 MAX_ALLOWED_PERCENTAGE=0 ../che...
#!/usr/bin/env bash # Suspends computer and automatically waits it up at specified date/time parameter # Source: http://askubuntu.com/questions/61708/automatically-sleep-and-wake-up-at-specific-times # # Takes a 24hour time HH:MM and date YYYY-MM-DD as its arguments # Example: # suspend_until 9:30 # suspend_until 18:4...
<?php $result = ''; if ( !empty($_REQUEST['data']) ) { $app = new PARSER_DOCX(); $result = $app->parse($_REQUEST['data']); } echo $result; // class PARSER_DOCX { function __construct() { } /** * Парсер * * @access public */ public function parse($data) { $result = ''; if ( !empty($data) ) { $m...
!> 通过简单的粒子间距与光滑长度相匹配进行最近相邻粒子搜索的子程序。详见第 4 章 148 页。 !> subroutine to calculate the smoothing funciton for each particle and !> the interaction parameters used by the sph algorithm. interaction !> pairs are determined by directly comparing the particle distance !> with the corresponding smoothing length. !> see ...
module AmaLayout class BreadcrumbBuilder < BreadcrumbsOnRails::Breadcrumbs::Builder def render @elements.map { |e| render_element(e) }.join(@options[:separator]) end private def render_element(element) name = compute_name(element) path = element.path && compute_path(element) || '#' ...
library stamp_image; import 'dart:io'; import 'dart:typed_data'; import 'dart:ui'; import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:path_provider/path_provider.dart'; class StampImage { ///Create watermark to an existing image file [image] and custom Widget as the wa...
if [ `git branch --show-current` != 'master' ]; then echo 'you are not in master branch' >&2 exit -1 fi yarn dist rm -rf temp/* mv dist temp/ mv bundles temp/ git checkout builds || exit -1 rm -rf bundles dist cp -r temp/* ./ git checkout master README.md && git checkout master LICENSE.txt && git checkout master s...
import 'package:ui_bits/src/ui_bits_internal.dart'; class BitInputPasswordField extends StatefulWidget { final FieldLabels messages; final Field<String> field; final BitAnimation animation; const BitInputPasswordField( this.messages, { this.field, this.animation = const BitNoAnimation(), }); ...
use std::io::Cursor; use rocket::request::Request; use rocket::response::{Response, Responder}; use rocket::http::ContentType; use rocket::http::Status; #[derive(Debug)] pub struct ApiResponder { pub error: Status, pub message: String } #[derive(Deserialize, Serialize)] #[serde(rename_all = "camelCase")] st...
var modalOpen = false; var currentModal; // Open the Modal function openModal(carLightbox) { modalOpen = true; document.getElementById('lightBoxModal').style.display = "block"; document.body.style.overflow = "hidden"; document.getElementById("mainNav").style.display = "none"; $(".table-large")[0].style.overf...
-- ----------------------------------------------------------------------------- -- -- DFA.hs, part of Alex -- -- (c) Chris Dornan 1995-2000, Simon Marlow 2003 -- -- This module generates a DFA from a scanner by first converting it -- to an NFA and then converting the NFA with the subset construction. -- -- See the c...
package com.kenny.tripscout.ui.city import android.os.Bundle import androidx.fragment.app.Fragment import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.view.children import androidx.lifecycle.Observer import androidx.navigation.fragment.findNavController import...
setup () { lib_path="$POSIT_DIR/../../lib/workshop" . "$lib_path/common.sh" . "$lib_path/dispatch.sh" } test_dispatch_with_empty_placeholder () { expected_string="Called empty placeholder" example () ( dispatch example "${@:-}" ) example_ () ( echo "$expected_string" ) OLDPS4="$PS4" # Prevent debugger from ...
# Write Any File! [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Test Coverage][cov-image]][cov-url] [![Dependency Status][daviddm-image]][daviddm-url] [![DevDependency Status][daviddm-image-dev]][daviddm-url-dev] [![License][license-image]][license-url] [![PR Welcome][pr-image]][pr...
using System.Collections.Generic; namespace Fhi.HelseId.Web.Hpr.Core { public static partial class Kodekonstanter { public static OId9060 OId9060Ambulansearbeider = new OId9060("AA", "Ambulansearbeider"); public static OId9060 OId9060Apotektekniker = new OId9060("AT", "Apotektekniker"); ...
/* eslint-disable import/prefer-default-export */ import forge from 'node-forge'; import axios from 'axios'; import { WriteStream } from 'fs'; import scrypt from 'scrypt-js'; import { CursorBuffer } from './CursorBuffer'; // IV is decryptions is 16 bytes const IVLength = 16; // Salt is 32 bytes const SaltLength = 32; ...
AgentX =========== AgentX是alinode团队开发的agent命令程序,用于协助alinode的性能数据上报和问题诊断。 - [![Build Status](https://travis-ci.org/aliyun-node/agentx.png?branch=master)](https://travis-ci.org/aliyun-node/agentx) - [![Dependencies Status](https://david-dm.org/aliyun-node/agentx.png)](https://david-dm.org/aliyun-node/agentx) - [![codec...
use rustc_serialize::Encodable; use rustc_serialize::json; use iron::prelude::*; use hyper::status::StatusCode; pub trait AsApiResponse { fn as_response(&self) -> Response; } impl<D: Sized + Encodable> AsApiResponse for D { fn as_response(&self) -> Response { let mut response = Response::with(StatusCo...
# encoding: utf-8 require 'test_helper' class Erlang::AssociableTest < Minitest::Test def test_update_in map = Erlang::Map[ "A" => "aye", "B" => Erlang::Map["C" => "see", "D" => Erlang::Map["E" => "eee"]], "F" => Erlang::Tuple["G", Erlang::Map["H" => "eitch"], "I"] ] tuple = Erlang::T...
namespace :autoclose do desc <<~END_DESC Find affected issues and update them END_DESC task :autoclose => :environment do RedmineAutoclose::Autoclose.autoclose end desc <<~END_DESC Find affected issues and preview them without updating END_DESC task :preview => :environment do RedmineAut...
use crate::protos::protobuf::pulsar_api::CompressionType as Protobuf_CompressionType; #[derive(PartialEq, Eq, Debug, Clone)] pub enum CompressionType { NONE, #[cfg(feature = "with-compression-lz4")] LZ4, #[cfg(feature = "with-compression-zlib")] ZLIB, } impl From<CompressionType> for Protobuf_Comp...
package com.timzowen.idoctor.data import com.timzowen.idoctor.R import com.timzowen.idoctor.model.DoctorsProfile class DataDoctorsProfile { // temp data for lead counselors fun loadDoctorsProfile(): List<DoctorsProfile> { return listOf( DoctorsProfile( R.drawable.doctor1,...
-- reset reward claims and point assignments drop table if exists Transactions; drop table if exists RewardClaim; drop table if exists PointAssignment; drop table if exists PointChange; -- reset person/reward tables drop table if exists Rewards; drop table if exists RewardCategory; drop table if exists JuvenileEvent; ...
# Copyright 2020 (c) Netguru S.A. # # 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 writ...
import IUser from '@domain/entities/IUser' export default interface IUserRepository { insert(user: IUser ): Promise<IUser> getAll( ): Promise<IUser[]> getOne(id: number ): Promise<IUser> update(id: number, user: IUser): Promise<IUser> delete(id: number ...
package com.ybx.xiangxue.kotlin.kt.core /** * @Author 55HAITAO * @Date 2020/7/6 4:52 PM */ // lambada 15种写法 fun main() { // : 无实现 // : 有实现 // = 有实现 // 没有实现的 var m01: () -> Unit var m02: (Int) -> String var m03: (Int, Int, String?) -> String var m04: (Int, Int) -> String ...
import express from 'express'; export interface IController { path: string, router: express.Router, intializeRoutes: () => void }
--- title: List of Algorithms category: Tutorial order: 4 --- - aaa {:toc} ### Global optimization |Name|Applicable Prolems' Tags| |-|-| |[Simulated Annealing](../../Instance/algorithm/simulated annealing)|`ConOP`| |[DE/rand/1](../../Instance/algorithm/canonical DE/#derand1)|`ConOP` `GOP` `MMOP`| |[DE/best/2](../../I...
class HttpRequestInteractionDiagramMapper def initialize(formatter, write_request_body, display_cookies) @formatter = formatter @write_request_body = write_request_body @display_cookies = display_cookies end def note_from(http_request) body_lines = [] body_lines << "Cookie: #{http_request.coo...
/* * All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or * its licensors. * * For complete copyright and license terms please see the LICENSE at the root of this * distribution (the "License"). All use of this software is governed by the License, * or, if provided, by the license below or t...
# pkg: ## 说明: - 本目录, 用于存放与`业务无关`的通用代码 - 常用的 utility, wrap, hook, 中间件等等 - 后期可逐步迁移到外部, 供其他项目使用. ## 区别 app/std 目录: - app/std 是`项目内`全局`公共依赖`: 标准状态码, 标准配置 ## 目录结构建议: - 参考 go 标准库目录组织方式.
# restapi-rust Este projeto foi criado para estudo rust, foi um api rest usando a linguagem Rust ## Build a CRUD API with Rust Para escrever api em rust é mas complicado do que escrever com nodejs ou golang. ## Frameworks Frameworks que serão usados para auxiliar no projeto * [Rocket](https://rocket.rs/)  --  web fra...
using System; using System.Threading.Tasks; using Common.Log; using AzureStorage; using AzureStorage.Tables; using Lykke.SettingsReader; using Lykke.Service.Stellar.Api.Core.Domain.Transaction; namespace Lykke.Service.Stellar.Api.AzureRepositories.Transaction { public class TxBroadcastRepository : ITxBroadcastRep...
require 'test_helper' class EntryTest < ActiveSupport::TestCase test "should not save entry without content" do entry = Entry.new assert_not entry.save end test "should not save entry without day_id" do entry = Entry.new assert_not entry.save end test "should not save entry without categor...
package com.fmt.kotlin.eyepetizer.home import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.SavedStateHandle import com.fmt.kotlin.eyepetizer.common.base.viewmodel.BaseViewModel import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewMod...
#[allow(unused_imports)] use tokio::sync::oneshot::{Receiver as OneshotReceiver, Sender as OneshotSender}; #[allow(unused_imports)] use tokio::sync::watch::{Receiver as WatchReceiver, Sender as WatchSender}; pub mod cli; pub mod client; pub mod config; pub mod database; pub mod mainactor; pub mod stats; pub mod metric...
package utf.commons.http /** * Created by Sławomir Kluz on 04/10/2017. */ object Method extends Enumeration { type Method = Value val GET, POST, PUT, PATCH, DELETE = Value }
/*- * Copyright (c) 1999 MAEKAWA Masahide <bishop@rr.iij4u.or.jp>, * Nick Hibma <n_hibma@FreeBSD.org> * 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 sourc...
+++ title = "Радио–Т 115" date = "2008-12-07T07:47:00" categories = ["podcast"] filename = "rt_podcast115" +++ ![](https://radio-t.com/images/radio-t/rt115.jpg) - Главный мышиный юбилей - Python 3.0 тут. Ура, товарищи! - Австралийский телефон - Выход JavaFX - Как–бы поиск по книгам Яндекса - Последствия улучшений Go...
# Jaraw This is the automatically-generated documentation for jaraw. For a brief overview, look at the [README](https://github.com/Thimoteus/jaraw/blob/master/README.md).
public class StringConcat { public static void main(String[] args) { System.out.println(1 + 2 + "Hello"); // the output is 3Hello System.out.println("Hello" + 1 + 2); // the output is Hello12 } }
#!/bin/bash [[ -z "$HOME" || ! -d "$HOME" ]] && { echo 'fixing $HOME'; HOME=/root; } export HOME yum install -y epel-release yum install -y nodejs yum install -y npm npm install -g azure-cli azure config mode arm export AZURE_STORAGE_ACCOUNT="$1" export AZURE_STORAGE_ACCESS_KEY="$2" azure storage container create i...
use petgraph::stable_graph::NodeIndex; use crate::graph::CachedStableGraph; use anyhow::Result; struct VisitCount { node: NodeIndex, touch: usize, children: usize, } /// Performs a depth-first search with duplicates pub struct Dfs<'a> { stack: Vec<NodeIndex>, graph: &'a CachedStableGraph, c...
<?php namespace Gaw508\Queue; use Aws\Sqs\SqsClient; use Gaw508\Queue\Exception\QueueException; /** * Sqs queue class * * Queue interface implementation for Amazon SQS * * @author George Webb <george@webb.uno> * @package Gaw508\Queue */ class Sqs implements QueueInterface { /** * The sqs url * ...
use crate::tags::CompressionMethod; use std::io::{self, Write}; mod deflate; mod lzw; mod packbits; mod uncompressed; pub use self::deflate::{Deflate, DeflateLevel}; pub use self::lzw::Lzw; pub use self::packbits::Packbits; pub use self::uncompressed::Uncompressed; /// An algorithm used for compression pub trait Com...
select id, nombre, valor, tipo_vehiculo, tipo_dia from public.tarifa where tipo_vehiculo = :tipoVehiculo and tipo_dia = :tipoDia
package io.github.cottonmc.jsonfactory.gui import java.io.FileNotFoundException import javax.sound.sampled.AudioSystem import javax.sound.sampled.Clip import javax.sound.sampled.LineEvent internal object Sounds { // Sound by Headphaze // https://freesound.org/people/Headphaze/sounds/277032/ val finished =...
package top.srsea.lever.common import android.util.Log /** * Currying Log#println(int, String, String). */ fun logger(tag: String = Logger.GLOBAL_TAG): (priority: Int) -> (msg: String) -> Unit = { priority -> { msg -> Log.println(priority, tag, msg) } } /** * Create a new logger which the class na...
//! Benchmark packet serialization and deserialization. use bytes::BytesMut; use chrono::{DateTime, Utc}; use criterion::{criterion_group, criterion_main, Criterion}; use lazy_static::lazy_static; use ilp::{ErrorCode, Fulfill, Prepare, Reject}; use ilp::{FulfillBuilder, PrepareBuilder, RejectBuilder}; use interledger...