text stringlengths 27 775k |
|---|
<?php
declare(strict_types=1); // @codeCoverageIgnore
namespace Recoil\Exception;
use PHPUnit\Framework\TestCase;
class TimeoutExceptionTest extends TestCase
{
private $subject;
public function setUp(): void {
$this->subject = TimeoutException::create(1.25);
}
public function testMessage()... |
<?php
// https://www.codeofaninja.com/2017/02/create-simple-rest-api-in-php.html
// https://stackoverflow.com/questions/359047/detecting-request-type-in-php-get-post-put-or-delete
// https://www.php.net/manual/en/reserved.variables.server.php
try{
$headers = apache_request_headers();
$queries = array();
... |
import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import Dashboard from './Dashboard/Dashboard';
import SignIn from './SignIn/SignIn';
import Quiz from './Quiz/Quiz';
... |
package org.jmisb.api.klv.st0102;
import static java.time.format.DateTimeFormatter.BASIC_ISO_DATE;
import java.nio.charset.StandardCharsets;
import java.time.LocalDate;
import java.time.format.DateTimeParseException;
/**
* Declassification Date (ST 0102 tag 10).
*
* <p>The Declassification Date metadata element p... |
use hyper::{Body, Response, StatusCode};
use std::borrow::Cow;
use url::Url;
pub(super) fn find_query_param<'a, 'b>(
url: &'a Url,
name: &'b str,
) -> std::result::Result<Cow<'a, str>, StatusCode> {
Ok(url
.query_pairs()
.find_map(|(key, value)| if key == name { Some(value) } else { None })... |
#!/bin/bash
set -euo pipefail
# Find all template files and run AWS validation
find templates \
-name \*.yml \
-exec aws cloudformation validate-template --template-body file://{} --output=text \;
|
let API = /** @type {string} **/ (process.env.NEXT_PUBLIC_API)
let MAGIC_TOKEN = /** @type {string} **/ (process.env.NEXT_PUBLIC_MAGIC)
if (globalThis.window) {
switch (location.host) {
case 'staging.nft.storage':
API = 'https://api-staging.nft.storage'
MAGIC_TOKEN = 'pk_live_9363234DECD6F093'
... |
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Relatório de pedidos</title>
<!-- ideal seria criar um CSS especifico para print -->
<link rel="stylesheet" href="">
</head>
<body>
<table border="1" width="100%" cellpadding="1" cellspacing="1" cl... |
using BorrowedGames.Models;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace BorrowedGames.Data.Repositories.Interfaces
{
public interface IGamesRepository : IDisposable
{
Task<IEnumerable<Game>> FindAll();
Task<Game> Find(long id);
void Add(Game ... |
# Coursera Subtitle Translation
开启 Coursera 课程视频的中英文双语字幕
* 如果课程同时存在中英文字幕,直接打开
* 如果课程没有中文字幕,自动翻译英文字幕
## 安装
下载项目,Chrome 打开扩展程序,加载已解压的扩展程序(需要打开开发者模式)
## 使用
在课程视频页面点击扩展图标即可
|
------------------------------------------------------------
-- |
-- Module : Koncat.Language.Arguments
-- License : WTFPL Version 2
-- Maintainer : Georg Grab, <grab@thereisnobreak.net>
-- Stability : Unstable
-- Portability : Linux
--
-- Allow functions to request a specific set of arguments in order to m... |
#!/bin/bash
set -euo pipefail
# Port forward the internal minikube registry
: "${REGISTRY_PORT:=8888}"
: "${REGISTRY:=localhost:${REGISTRY_PORT}}"
C_GREEN='\033[32m'
C_CYAN='\033[36m'
C_RESET_ALL='\033[0m'
echo -e "${C_GREEN}Port forwarding the minikube registry: REGISTRY=${REGISTRY}${C_RESET_ALL}"
echo -e "${C_CYAN}... |
package cmd
import (
"flag"
"fmt"
"os"
enginev1alpha1 "github.com/awesomenix/azk/api/v1alpha1"
"github.com/spf13/cobra"
"k8s.io/client-go/kubernetes/scheme"
logf "sigs.k8s.io/controller-runtime/pkg/runtime/log"
)
var log = logf.Log.WithName("azk")
var RootCmd = &cobra.Command{
Use: "azk",
Short: "azure c... |
package me.pitok.subtitle.di
import dagger.Binds
import dagger.Module
import me.pitok.dependencyinjection.library.LibraryScope
import me.pitok.subtitle.datasource.SubtitleReader
import me.pitok.subtitle.datasource.SubtitleReaderType
@Module
interface SubtitleDataSourceModule {
@Binds
@LibraryScope
fun pr... |
from django import template
register = template.Library()
FALLBACK = "generic/generic.html"
@register.filter
def search_include(value):
app = value.app_label
model = value.model_name
includes_path = "search/includes"
templatename = f"{includes_path}/{app}/{model}.html"
try:
template.loa... |
<?php
namespace App\Form\GroupUsers;
use App\Form\GroupUsers\Model\GroupEditModel;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\Extension\Core\Type\CountryType;
use Symfony\Component\Form\Extension\Core\Type\FileType;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
... |
package net.skyscanner.backpack.text
import android.content.Context
import android.graphics.Typeface
import androidx.core.content.res.ResourcesCompat
import java.util.Hashtable
object FontCache {
private val fontCache = Hashtable<Int, Typeface>()
operator fun get(res: Int, context: Context): Typeface? {
var... |
CREATE TABLE CUSTOMER (
CUST_ID INT NOT NULL,
NAME VARCHAR(45) NOT NULL,
STATUS VARCHAR(45) NOT NULL,
ORDER_LIMIT INT NOT NULL
); |
-- =============================================
-- Author: Bob Wakefield
-- Create date: 15Jan19
-- Description: Pulls all customers and aggregates them by how much money they have spent.
-- =============================================
CREATE OR REPLACE VIEW customers_by_total_spent AS
SELECT
cust.first_name,
cust.... |
// Copyright © 2020 The Platform9 Systems Inc.
package pmk
import (
"time"
"github.com/google/uuid"
"gopkg.in/segmentio/analytics-go.v3"
)
const WriteKey = "P6DycMCALprZrUwWL9ZzRLlfMQwL5Xyl"
type Segment interface {
SendEvent(string, interface{}) error
SendGroupTraits(string, interface{}) error
Close()
}
ty... |
import 'package:any_to_widget/any_to_widget.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class A2WExceptionConverter implements DataConverter {
const A2WExceptionConverter();
@override
Widget convert(BuildContext context, data) {
final message =
(data as E... |
use std::borrow::Borrow;
/// The "credentials" pair defined in [RFC 5849 section 1.1][rfc].
///
/// [rfc]: https://tools.ietf.org/html/rfc5849#section-1.1
///
/// This type represents:
///
/// - Client credentials (consumer key and secrets)
/// - Temporary credentials (request token and secret)
/// - Token credentials... |
%%%
%%% High Dynamic Range (HDR) Histogram for Erlang
%%%
%%% This implementation is based on the Elixir version found at
%%% https://github.com/2nd/histogrex/ with adjustments based on
%%% https://github.com/HdrHistogram/hdr_histogram_erl.
%%%
%%%
%%% The MIT License (MIT)
%%%
%%% Copyright (c) 2017 Second Spectrum
... |
package com.harleyoconnor.casino.users;
/**
* Stores user information, including the username, {@link PasswordHandler}, and balance.
*
* @author Harley O'Connor
*/
public class User {
protected final String username;
protected final PasswordHandler passwordHandler;
protected long bitcoins = 1000;
... |
/*
* @Description: KEEP CALM AND MAKE EPIC SHIT - PONY ZHANG
* @Version: 2.0
* @Author: PONY ZHANG
* @Date: 2020-11-10 23:04:18
* @LastEditors: PONY ZHANG
* @LastEditTime: 2020-11-11 23:13:21
*/
import Tab from './Tab';
(() => {
const init = () => {
let model: string = 'fade';
const tab: Ta... |
class BrexitChecker::Question::Option
include ActiveModel::Validations
validates_presence_of :label
attr_reader :label, :value, :sub_options, :hint_text, :criteria
def initialize(attrs)
attrs.each { |key, value| instance_variable_set("@#{key}", value) }
validate!
end
def show?(criteria_keys)
... |
# == Schema Information
#
# Table name: item_images
#
# id :integer not null, primary key
# image :string(255) not null
# caption :string(255)
#
class ItemImage < ActiveRecord::Base
include DataURIToImageConverter
has_one :item, as: :target, dependent: :destroy
validates :image, presence:... |
import React from "react";
import Head from "next/head";
import Link from "next/link";
import Styled from "../components/Styled";
import Grid from "../components/Grid";
import Icon from "../components/Icon";
import { Svg } from "../components/Image";
import blog from "@fortawesome/fontawesome-free/svgs/solid/blog.svg?i... |
/*
* Copyright (C) 2022 Sheedon.
*
* 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 ... |
WIREGUARD_INTERFACE="wg0"
WIREGUARD_LAN="10.0.0.0/24"
WIREGUARD_PORT=5280
MASQUERADE_INTERFACE="eth0"
sudo iptables -t nat -D POSTROUTING -o $MASQUERADE_INTERFACE -j MASQUERADE -s 10.0.0.0/24
# Add a WIREGUARD_wg0 chain to the FORWARD chain
CHAIN_NAME="WIREGUARD_$WIREGUARD_INTERFACE"
# Remove and delete the WIREGUAR... |
// Copyright (c) 2022 PaddlePaddle 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... |
package housekeeping
import (
"context"
"fmt"
"math"
"runtime"
"gitlab.com/gitlab-org/gitaly/v14/internal/git"
"gitlab.com/gitlab-org/gitaly/v14/internal/git/localrepo"
"gitlab.com/gitlab-org/gitaly/v14/internal/git/stats"
)
const (
// looseObjectLimit is the limit of loose objects we accept both when doing ... |
package com.gnoemes.shikimori.services
import com.gnoemes.shikimori.entities.common.RelatedResponse
import com.gnoemes.shikimori.entities.common.RolesResponse
import com.gnoemes.shikimori.entities.manga.MangaResponse
import com.gnoemes.shikimori.entities.rates.RateResponse
import com.gnoemes.shimori.model.ShimoriConst... |
<?php
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;
use App\Models\User;
class UserTest extends TestCase
{
use DatabaseTransactions;
/**
* Check the profile update system
* @test
* @return void
... |
# frozen_string_literal: true
module Loco
class WsConnectionManager
EXPIRATION = 60 * 3
def initialize(resource, opts = {})
if opts[:identifier]
@identifier = resource
else
@resource = resource
end
end
def add(uuid)
WsConnectionStorage.current.add(identifier,... |
import { MINION_TYPES, PROPOSAL_TYPES } from '../../utils/proposalUtils';
import { FIELD } from '../fields';
import { TX } from '../txLegos/contractTX';
export const SWAPR_BOOST_FORMS = {
SWAPR_STAKE: {
id: 'SWAPR_STAKE',
logValues: true,
title: 'Swapr Staking Proposal',
description: 'Stake Minion Fu... |
package com.egm.stellio.entity.repository
import arrow.core.None
import com.egm.stellio.entity.config.WithNeo4jContainer
import com.egm.stellio.entity.model.Entity
import com.egm.stellio.entity.model.Property
import com.egm.stellio.entity.model.Relationship
import com.egm.stellio.shared.model.QueryParams
import com.eg... |
package com.print_stack_trace.voogasalad.controller.guiElements.userInputTypes;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.EventHandler;
import javafx.scene.control.TextField;
import javafx.scene.input.Key... |
# -*- coding: utf-8 -*-
#
# michael a.g. aïvázis
# orthologue
# (c) 1998-2021 all rights reserved
#
# superclass
from .EventContainer import EventContainer
# the top level object that accumulates the configuration events
class Section(EventContainer):
"""
The resting place for all scoped configuration event... |
package io.github.meta.ease.core.reactor;
import lombok.extern.slf4j.Slf4j;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
import java.util.Comparator;
import java.util.List;
import java.util.Map;
/**
* @author leijian
* @version 1.0
* @date 2022/1/23 11:31
*/
@Slf4j
public class FluxMon... |
import React from 'react';
import { Text, View } from 'react-native';
import { getConferenceName } from '../../../../base/conference/functions';
import { getFeatureFlag, MEETING_NAME_ENABLED } from '../../../../base/flags';
import { JitsiRecordingConstants } from '../../../../base/lib-jitsi-meet';
import { connect } f... |
/*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package kotlin.collections.builders
internal class SetBuilder<E> internal constructor(
private val backin... |
// IS_APPLICABLE: false
fun testing(x: Int, y: Int, f: (a: Int, b: Int) -> Int): Int {
return f(x, y)
}
fun main() {
val num = testing(1, 2, { x, y -> x + y <caret>})
}
|
module Intrigue
module Task
module Data
def dev_server_name_patterns
[
/-stage$/,/-staging$/,/-dev$/,/-development$/,/-test$/,/-qa$/,
/^staging-/,/^dev-/,/^development-/,/^test-/,/^qa-/,
/^staging\./,/^dev\./,/^development\./,/^test\./,/^qa\./,
/^test/,/^staging/,/^qa/
] # possibly to... |
class Sbagen < Formula
homepage "https://uazu.net/sbagen/"
url "https://uazu.net/sbagen/sbagen-1.4.5.tgz"
sha256 "02b05d0f89f1baa6e6b282f4a5db279b4c59ee6fc400a5a9686aa11287f220e4"
patch :DATA
option "without-river", "Skip downloading loopable river sounds"
resource "river" do
url "https://uazu.net/sb... |
package com.decompose.android
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy... |
; RUN: opt -loop-unswitch -loop-reduce -loop-simplifycfg -verify-memoryssa -S %s | FileCheck %s
; TODO: also run with NPM, but currently LSR does not preserve LCSSA, causing a verification failure on the test.
; opt -passes='loop-mssa(simple-loop-unswitch<nontrivial>,loop-reduce,simplifycfg)' -verify-memoryssa -S %s... |
package Krawfish::Index::Store::V1::Fields;
use parent 'Krawfish::Index::Store::V1::Stream';
use Krawfish::Index::Store::V1::Util qw/enc_string dec_string/;
use Krawfish::Log;
use strict;
use warnings;
# All keys are stored in sequential order augmented by a skip list.
# The index structure is
#
# (
# [skip-data... |
---
layout: post
title: 전달인자(argument)와 매개변수(parameter)
author: Kimtaeng
tags: knowledge
description: 함수의 전달인자(argument, 아큐먼트)와 매개변수(parameter, 파라미터)는 무슨 차이일까?
category: Knowledge
date: "2018-10-23 23:47:12"
comments: true
---
# 같은 것 아니었나?
가끔 전달인자(argument)와 매개변수(parameter)를 섞어서 큰 구분없이 사용하기도 한다.
하지만 엄밀히 따진... |
// Room: /testmud/d/changan/gudi.c
// This is a room made by Wsl.
inherit ROOM;
int do_break(string arg);
int do_jump(string arg);
int do_enter(string arg);
void create()
{
set("short", "谷底");
set("long", @LONG
頭頂幾道陽光照在地上,腳下是一片很厚的草地,走在上面軟綿
綿的,很是恰意,四周看上去高不可攀,怪石嶙峋,你心中不由一驚,
要不是這片厚厚的草堆墊着,在好的輕功也會摔得變成一堆肉泥。
L... |
import xhr from 'xhr-mock';
import fs from 'fs';
import path from 'path';
import WorkModuleLoader from './WorkModuleLoader';
import KeldaError from '../kelda/KeldaError';
describe('WorkLoader', () => {
const numberUrl = '/path/to/number/script';
const numberScript = fs
.readFileSync(path.join(__dirname, '../ut... |
object LogicServerTest: TLogicServerTest
Left = 164
Top = 151
Width = 685
Height = 617
Caption = 'Logic Server Test'
Font.Color = clWindowText
Font.Height = -13
Font.Name = 'System'
Font.Style = []
PixelsPerInch = 96
TextHeight = 16
object OutLabel: TLabel
Left = 392
Top = 16
Width =... |
//----------- Imports -----------//
import styled from 'styled-components'
import vars from 'styles/variables'
import mixins from 'styles/mixins'
//----------- Global Header ----------- */
const Elem = styled.header`
background : ${vars.white};
box-shadow : ${vars.shadow};
font-size : 1em;
position ... |
package com.labijie.application.aliyun.configuration
import java.time.Duration
/**
* Created with IntelliJ IDEA.
* @author Anders Xiao
* @date 2019-09-20
*/
class StsSettings {
var endpoint:String = "sts.aliyuncs.com"
var role:String = ""
var tokenTimeout:Duration = Duration.ofSeconds(900)
} |
import { builderAndRuleEngineFactory } from "./utils/test-utils";
import { Builder } from "../engine/builder/builder";
import { C } from "../value-converter/common-value-converters";
import { valueAfterTime, executeAfterTime } from "./utils/timing-utils";
import { PropertyScalar } from "../properties/property-scalar";
... |
var log4js = require('log4js');
var DIRFIRST = '/node/' //和nginx配置统一
var CONFIG = {
DBPRODUCT: {
HOST: 'localhost',
USER: 'root',
PASSWORD: 'root',
DATABASE: 'cms_db',
PORT: 3306
},
DBLOG: {
HOST: 'localhost',
USER: 'logSmsService',
PASSWORD: 'lj87dc6Z',
DATABASE: 'log_general'... |
module EmitParseTree where
import Data.String.Utils (join)
-- EMISSION FUNCTIONS
-- Functions designed to take the output of a reduction from Derp lib,
-- destructure it using pattern matching, and output a string that is a like
-- a lispy AST.
--
-- Each is accompanied by an emit function that gives hints about ho... |
require 'functor'
module Enumerable
# Higher-order form of #select.
#
# [1, 2, 3].where > 2 #=> [3]
#
def where
Functor.new do |op, *a, &b|
select{ |e| e.public_send(op, *a, &b) }
end
end
end
|
import sbt._
object Dependencies {
object Versions {
val http4s = "0.21.3"
val jaeger = "1.2.0"
val sttp = "2.1.1"
val opentracing = "0.33.0"
val opentelemetry = "0.3.0"
val opencensus = "0.26.0"
val zipkin = "2.15.0"
val zio = "1.0.0-RC20"... |
---
layout: post
title: Publish an open source project
status: todo
time: Not started
--- |
package org.rhinoonabus.stackoverflowbrowser.domain
import io.reactivex.Single
interface SourceCodeManagementRepository {
fun searchForCodeRepositories(searchPhrase: String): Single<List<CodeRepository>>
fun searchUsers(searchPhrase: String): Single<List<CodeRepositoryUser>>
fun getUserDetails(userLogin:... |
package typingsSlinky.grammarkdown.grammarkdownMod
import org.scalablytyped.runtime.StObject
import scala.scalajs.js
import scala.scalajs.js.`|`
import scala.scalajs.js.annotation.{JSGlobalScope, JSGlobal, JSImport, JSName, JSBracketAccess}
object Range {
@JSImport("grammarkdown/dist/grammarkdown", "Range.clone"... |
package com.shz.spark.bigdata.streaming
import org.apache.spark.SparkConf
import org.apache.spark.streaming.{Seconds, StreamingContext}
object S03_DStream {
def main(args: Array[String]): Unit = {
val conf = new SparkConf().setAppName("S03_DStream").setMaster("local[2]")
val ssc = new StreamingCon... |
<?php
// 1. Open database connection
$dbhost = "localhost";
$dbuser = "zhang-enwei";
$dbpass = "6cAFWonVn8nI";
$dbname = "2201613130227";
$connection = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
// 1. Test if connection is ok
if (mysqli_connect_errno()) {
die("Database connection failed: " .
mys... |
// Angular bootstrapping
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { disableDebugTools, enableDebugTools } from '@angular/platform-browser';
import { enableProdMode } from '@angular/core';
// Top-level application module
import { AppModule } from './app/app.module';
// Global ... |
# -*- encoding: utf-8 -*-
#
# Author:: Fletcher Nichol (<fnichol@nichol.ca>)
#
# Copyright (C) 2013, Fletcher Nichol
#
# 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.o... |
:- ensure_loaded(tk).
foreign_file('trigo.o', [c_sin,c_cos]).
foreign(c_sin,sin(+float,[-float])).
foreign(c_cos,cos(+float,[-float])).
:- load_foreign_files(['trigo.o'], ['-lm']).
e4:-
tk([]),
tcl('frame .fb'), % button
tcl('frame .fc'), % canvas
tcl('butto... |
import {
BrowserRouter,
Routes,
Route
} from "react-router-dom";
import { Home } from "./pages/home";
import { Admin } from "./pages/admin";
import { Login } from "./pages/login";
export const SistemRoutes = () => {
return (
<BrowserRouter>
<Routes>
<Route path="/" eleme... |
<?php
declare(strict_types = 1);
namespace unreal4u\TelegramBots\Bots\UptimeMonitor;
use Doctrine\ORM\EntityManager;
use unreal4u\TelegramBots\Models\Entities\Events;
use unreal4u\TelegramBots\Models\Entities\Monitors;
class EventManager {
/**
* The current event we are working on
* @var Events
*... |
function Helium() {
this.objects = {}
this.awakeOverride = () => {}
this.startOverride = () => {}
this.updateOverride = () => {}
this.currentFrameRate = {}
this.Init = (data, functions, scene) => {
if(scene) {
console.log('loaded scene from' + scene.name)
this.... |
class GooglePage < SitePrism::Page
set_url("https://google.com")
element :input, "input[name=\"q\"]"
def has_hyperlink_to?(url)
page.find("a[href=\"#{url}\"]")
end
end |
package chapter07
/**
* 7.3 for 표현식
*
* 스칼라의 for 표현식은 반복 처리를 위한 스위스 군용 만능 칼.
* 단순작업, 고급표현 필터링 등 다 가능하다.
*/
object c07_i03 extends App {
/*
* 1. 컬렉션 순회
*/
println("1. 컬렉션 순회")
//val filesHere = (new java.io.File(".")).listFiles
val filesHere = (new java.io.File("src/main/java/chapter05")).listFil... |
## 基础框架
ykit
react
react router v4
antd
mobx
css modules
## 环境准备
> npm install ykit -g
charles >= v4.1
## 开发
qt_oa_qzz.git
cd qt_oa_qzz
npm i
> 上层目录 sudo ykit server
配置charles -> 参考文件 ./qt_oa_new.xml
|
// Interfaces
import { IHeliosBrowse } from "../types/browse.interface";
import { IHeliosResultFields } from "../fields.interface";
import { IHeliosResult } from "./result.interface";
/**
* Helios browse result
* @description Result bearing browse result
*/
export interface IHeliosBrowseResult extends IHeliosResult... |
package interactor
import (
"fmt"
"github.com/pester18/url-shortener/entities"
"github.com/pester18/url-shortener/usecase/repository"
)
type interactor struct {
Repository repository.Repository
}
type Interactor interface {
GetShortenedUrlOrigin(shortenedUrlToFind *entities.ShortenedURL) (*entities.ShortenedUR... |
using Cadena.Data;
namespace StarryEyes.Helpers
{
public static class StatusExtension
{
public static TwitterStatus GetOriginal(this TwitterStatus status)
{
return status.RetweetedStatus ?? status;
}
}
} |
(function() {
var bodyEl = document.body,
content = document.querySelector( '.content-wrap' ),
openbtn = document.getElementById( 'open-button' ),
closebtn = document.getElementById( 'close-button' ),
closebtnlinks = document.getElementsByClassName('close');
isOpen = false;
function init() {
initEv... |
package co.com.sofka.stepdefinitions.singleuser;
import co.com.sofka.stepdefinitions.common.ServiceSetUp;
import io.cucumber.java.en.Given;
import io.cucumber.java.en.Then;
import io.cucumber.java.en.When;
import net.serenitybdd.screenplay.Actor;
import net.serenitybdd.screenplay.rest.abilities.CallAnApi;
import net.s... |
package test.set;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.TreeSet;
public class Test {
public static void main(String[] args) {
Set<String> hashSet = new HashSet<>();
Set<String> linkedHashSet = new LinkedHashSet<>();
Set<String> tre... |
use core::cmp;
use std::collections::HashMap;
use std::ffi::{OsStr, OsString};
use std::ops::Index;
use itertools::Itertools;
use lazy_init::Lazy;
use rayon::{ThreadPool, ThreadPoolBuilder};
use regex::Regex;
use sysinfo::{DiskExt, DiskType, System, SystemExt};
use crate::config::Parallelism;
use crate::files::FileLe... |
#! /bin/bash
SEQUENCE_NAME=gBR_sBM_cAll_d04_mBR0_ch01
CUDA_VISIBLE_DEVICES=0,1,2,3 python processing/run_openpose.py --sequence_names=${SEQUENCE_NAME}
CUDA_VISIBLE_DEVICES=0,1,2,3 python processing/run_preprocessing.py --sequence_names=${SEQUENCE_NAME}
CUDA_VISIBLE_DEVICES=0,1,2,3 python processing/run_estimate_keypo... |
package me.gulya.bitwarden.crypto
expect object PlatformCryptoPrimitives {
fun generateRsaKeyPair(length: RsaKeyLength): AsymmetricKeyPair
fun randomBytes(numBytes: Int): ByteArray
} |
{{
config(
materialized='incremental',
unique_key = 'id'
)
}}
with z_score_without_id as (
select
stats.table_name as table_name,
stats.column_name as column_name,
stats.metric as metric,
stats.interval_length_sec,
(last_metric.last_value - stats.las... |
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using Mamesaver.Configuration.Models;
namespace Mamesaver
{
public class MamePathManager
{
/// <summary>
/// String which is surrounded by double quotes
/// </summary>
... |
# Cordova AdMob Plugin
Created for iOS 14 AppTrackingTransparency.
This plugin use cocoapods for iOS dependencies!
Usage:
-------------------------------------------------------
Use directly with iOS 14 AppTrackingTransparency module (recommended)
```
admob.interstitial.config({ id: admobid.interstitial, isTesting: ... |
echo "Renaming all files to suitable convention . . . . "
for number in {1..9}
do
echo "Renaming Case_"$number"_El_Telbany.dat to Case_"$number"_exp.dat "
mv Case_0"$number"_El_Telbany.dat Case_0"$number"_exp.dat
done
#exit 0
for number in {10..15}
do
echo "Renaming Case_"$number"_El_Telbany.dat to Case_"$number"_e... |
package validate
import (
"testing"
"github.com/jrapoport/gothic/test/tconf"
"github.com/stretchr/testify/assert"
)
func TestPassword(t *testing.T) {
t.Parallel()
const randomPass8 = "7r/M3Z&F"
const randomPass8AN = "isBSfVB9"
const randomPass8NO = "01234569"
const randomPass8MC = "dnGfemqX"
const randomPas... |
#[doc = "Reader of register SSEMUX0"]
pub type R = crate::R<u32, super::SSEMUX0>;
#[doc = "Writer for register SSEMUX0"]
pub type W = crate::W<u32, super::SSEMUX0>;
#[doc = "Register SSEMUX0 `reset()`'s with value 0"]
impl crate::ResetValue for super::SSEMUX0 {
type Type = u32;
#[inline(always)]
fn reset_va... |
! { dg-do compile }
! PR27954 Internal compiler error on bad statements
! Derived from test case submitted in PR.
subroutine bad1
character*20 :: y, x 00 ! { dg-error "Syntax error" }
data y /'abcdef'/, x /'jbnhjk'/ pp ! { dg-error "Syntax error" }
end subroutine bad1
subroutine bad2
character*20 :: y, x 00 ... |
<?php
try{
$BD = new PDO('mysql:host=localhost;port=3306;dbname=CV_bd', 'root', '');
} catch (PDOException $e){
die($e->getMessage());
}
?> |
package lint
import (
"fmt"
"strings"
"github.com/go-bridget/mig/cmd/mig/internal"
)
const (
errMissingTableComment = "Table is missing comment: %s"
errMissingColumnComment = "Column is missing comment: %s.%s"
errInvalidColumnName = "Invalid column name %s.%s: %w"
errInvalidTableName = "Invalid table name ... |
---
layout: default
title: Venue
---
## head
text |
require 'active_support/concern'
module ActiveAggregate
module HandlerConcern
extend ActiveSupport::Concern
class_methods do
# Add handler based on the event class name
# handle Event::EventName will create method:
# def handle_Event_EventName(evt) ... end
def handle(klass, &code)
... |
<?php
namespace CoWorkerman\Exception;
/**
* Class ConnectionErrorException
*
* @package CoWorkerman\Exception
*/
class ConnectionErrorException extends \Exception {} |
module.exports = function (sharp, path, config) {
var ImageProcessor = {
getProcessedImage: function (filePath, width, height, gravity, gray, blur, callback) {
gravity = ImageProcessor.getGravity(gravity)
ImageProcessor.imageResize(filePath, width, height, gravity, gray, blur, function (error, image) ... |
# Dinge die noch nicht fertig ausformuliert sind
- Warum haskell? Drop-In & gefahrloses bzw leichteres Refactoring im vorbeigehen
Abstract:
TBD
## Gliederung
- Einführung in aktuelle Grafik Engines
+ Bedeutung
+ Komplexität und Wartung
+ Performance
+ Anforderungen an moderne Engines
+ Überblick m... |
require_relative "../../test_helper"
class Test::Proxy::Caching::TestAuth < Minitest::Test
include ApiUmbrellaTestHelpers::Setup
include ApiUmbrellaTestHelpers::Caching
parallelize_me!
def setup
super
setup_server
once_per_class_setup do
prepend_api_backends([
{
:frontend_h... |
RSpec.describe ActiveRecord::NestedAttributesDestroyIf do
before do
ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"
silence_stream(STDOUT) do
ActiveRecord::Schema.define do
create_table :parents do |t|
t.string :name
end
create_table :... |
# frozen_string_literal: true
require_relative 'mastery/base'
require_relative 'mastery/all_champions'
require_relative 'mastery/by_champion'
require_relative 'mastery/total_score'
module Hextech
module League
module Mastery
class << self
def all_champions(summoner_id:, region: 'euw1')
... |
/***********
## XMSS reference code [![Build Status]
(https://travis-ci.org/joostrijneveld/xmss-reference.svg?branch=master)]
(https://travis-ci.org/joostrijneveld/xmss-reference)
This repository contains the reference implementation that accompanies the Internet Draft
_"XMSS: Extended Hash-Based Signatures"_, ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.