text stringlengths 27 775k |
|---|
using UnityEditor;
using UnityEngine;
using mulova.commons;
namespace mulova.unicore
{
public class ScriptableObjectGen
{
[MenuItem("Assets/Create/ScriptableObject")]
public static void GenerateScriptableObject() {
Object scriptableObj = Selection.activeObject;
string s... |
<html>
<head>
<style type="text/css">
body{
margin-top: 2px;
margin-left: 2px;
margin-right: 2px;
margin-bottom: 2px;
}
</style>
</head>
<body onload="window.parent.sl('<?php echo $_GET['urlno']; ?>');">
<iframe name="site1" width="100%" frameborder="0" height="100%" src="<?php echo ... |
<?php
namespace Urb\Procedure\Data;
use Exception;
interface DataExceptionInterface
{
/**
* add Exception to ObjectStorage
*
* @param Exception $exception
* @return $this
*/
public function addExceptions(Exception $exception);
/**
* Returns an object storag... |
using FOS.Website.Feature.ContentBlocks.Data;
using FOS.Website.Feature.ContentBlocks.Helpers;
using Sitecore.Analytics.Commons;
using Synthesis.FieldTypes.Interfaces;
namespace FOS.Website.Feature.ContentBlocks.Models
{
public class ImageModel : ContentBlockModelBase
{
public I_ImageItem ImageItem { ... |
@if (isset($follows) && $follows)
<?php $type = NULL;?>
<ul class='list'>
@foreach ($follows as $follow)
<?php $object = $follow->getObject();?>
@include('entities.single', ['entity' => $entity])
@endforeach
</ul>
@else
<p><i>None listed</i></p>
@endif |
system "title RubyGL Demo"
system "@echo off"
system "cls"
while true do
system "COLOR 1f"
sleep(1)
system "COLOR 2f"
sleep(1)
system "COLOR 3f"
sleep(1)
system "COLOR 4f"
sleep(1)
system "COLOR 5f"
sleep(1)
system "COLOR 6f"
sleep(1)
system "COLOR 7f"
slee... |
import 'package:flutter/material.dart';
import 'package:ulusoyapps_flutter/002-navigator-2/entity/shape_border_type.dart';
import 'package:ulusoyapps_flutter/002-navigator-2/widgets/shaped_container.dart';
import 'package:ulusoyapps_flutter/resources/dimens/app_dimens.dart';
class ShapeBorderGridView extends Stateless... |
import React, { Component } from 'react';
import AudioContext from './AudioContext';
import playblink from '../buttons/play-blink.svg';
import play from '../buttons/play.svg';
const audioCtx = AudioContext.getAudioContext();
export default class Playing extends Component {
componentDidMount() {
audioCtx.... |
# Kafka-UI
UI for Apache Kafka management
## Table of contents
- [Getting started](#getting-started)
- [Links](#links)
## Getting started
Install packages
```
npm install
```
Set correct URL to your API server in `.env`.
```
REACT_APP_API_URL=http://api.your-kafka-rest-api.com:3004
```
Start JSON Server if you p... |
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
class FeatureA extends Controller
{
//
public function validate(Request $request, array $rules, array $messages = [], array $customAttributes = [])
{
$a ="12345";
}
}
|
//! Query batching utility
extern crate batch_recv;
extern crate crossbeam_channel as chan;
extern crate futures;
extern crate itertools;
extern crate worker_sentinel;
use std::fmt::Debug;
use futures::sync::oneshot;
use itertools::Itertools;
use worker_sentinel::{Work, WorkFactory};
use batch_recv::BatchRecv;
/// T... |
from fabric.api import task
from fabric.api import local
from time import sleep
from boto.ec2.connection import EC2Connection
@task
def create_aws_instance():
'''Initialize an AWS instance'''
print('Creating an AWS instance...')
conn = EC2Connection()
# start an instance of Ubuntu 10.04
ami_ub... |
<?php
namespace App\Core\Security;
use App\Core\BaseController;
use App\Core\HTTP\Request;
use App\Entities\User;
use App\Core\Database\QueryBuilder;
use Exception;
class TokenController extends BaseController
{
private SecurityController $securityController;
public function __construct()
{
par... |
from DRecPy.Recommender import CDAE
from DRecPy.Recommender.EarlyStopping import MaxValidationValueRule
from DRecPy.Dataset import get_train_dataset
from DRecPy.Dataset import get_test_dataset
from DRecPy.Evaluation.Processes import ranking_evaluation
from DRecPy.Evaluation.Splits import leave_k_out
from DRecPy.Evaluat... |
'use strict';
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { 'default': obj }; };
var _expect = require('expect.js');
var _expect2 = _interopRequireWildcard(_expect);
var _Disposable = require('../Disposable');
var _Disposable2 = _interopRequireWildcard(_Disposable);
var _Se... |
export * from './build-scan-input'
export * from './scan'
|
//! These tests don't really assert anything, they just exercise the API.
//! This is primarily intended to be run under miri as a sanitizer.
#![allow(unused)]
use {rc_borrow::ArcBorrow, std::sync::Arc};
#[test]
fn doc_example() {
type Resource = u128;
fn acquire_resource() -> Arc<Resource> {
Arc::n... |
#!/usr/bin/env bash
KUBECONFIG=${1-openshift.local.clusterup/openshift-apiserver/admin.kubeconfig}
echo "Using KUBECONFIG '$KUBECONFIG'"
oc login -u system:admin
oc project default
oc apply -f deploy/rbac.yaml
oc apply -f deploy/crd.yaml
WATCH_NAMESPACE="default" ./build/_output/bin/infinispan-operator -kubeconfig $... |
#!/usr/bin/env bash
set -euo pipefail
# dir should be lowercase so we don't conflict with
# script defined DIR variable
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
. "$dir/ansi"
if [ "${CI:-0}" = "1" ]; then
ansi --red "Skipping post_install due to CI variable set to 1"
exit 0
fi
|
export function score(input: number[]): number {
var result: number = 0;
var currentBallIndex: number = 0;
for (var frame: number = 0; frame < 10; frame++) {
result += input[currentBallIndex];
if (input[currentBallIndex] === 10) {
result += input[currentBallIndex + 1] + input[currentBallIn... |
---
title: People
permalink: /2022/people/
---
## <span style="color:#267CB9"> Organizing committee</span>
* [Shabnam Tafreshi](https://www.linkedin.com/in/shabnamtafreshi), University of Maryland: ARLIS
* [João Sedoc](https://www.stern.nyu.edu/faculty/bio/joao-sedoc), New York University
* [Anna Rogers](http://ww... |
<?php
declare(strict_types=1);
namespace AkioSarkiz\Traits;
use AkioSarkiz\Contracts\ProxyDataInterface;
use GuzzleHttp\Client;
use Throwable;
trait HasCheckerProxy
{
/**
* Check proxy is live.
*
* @param ProxyDataInterface $proxyData
* @param int $timeout
* @return bool
*/
... |
---
layout: post
title: FLAGs to be destroyed.
date: 2020-10-01 00:08:07 +0800
categories:
tags:
---
> 记录待做的总结部分,可以视为立FLAG.
- [x] Pytorch- Tensor的基本操作
- [x] Pytorch- TensorIterator
- [x] Pytorch- Vectorization
- [x] Neon- How to get ARM Neon Intrinsics well worked?
- [x] *Attention is all you need* Summary
- [x] ML... |
txtrader readme
---------------
The Interactive Brokers TWS API interface uses the IbPy module
These libraries are derived from an automated conversion of the IB java
project files into a python wrapper.
An up-to-date as of 2015-03-25 copy is found at https://github.com/rstms/IbPy
This is a fork of the github master... |
# name: notepad-plugin
# about: Notepad-plugin for making notes in Discourse
# version: 0.0.1
# authors: Tanvi Guttula, Julie Hang, Andrew Tedijanto
enabled_site_setting :notepad_enabled
after_initialize do
load File.expand_path('../app/controllers/notepad-plugin_controller.rb', __FILE__)
Discourse::Application.... |
<?php
namespace App\Models;
use Illuminate\Support\Facades\DB;
class User extends AppModel
{
//
protected $table = "users";
public function user_level()
{
return $this->hasOne(UserLevel::class,"user_id",'id');
}
/**
* Created by Eric-Nothing.
* @param int $type
* @r... |
/******************************************************************************
** Copyright (c) 2015, Intel Corporation **
** All rights reserved. **
** **
... |
# [Question 1 - Blue-Red Permutation](https://codeforces.com/problemset/problem/1607/D)
---
# [Question 2 - K-Concatenation](https://www.codechef.com/JAN18/problems/KCON)
---
|
struct FractionVector{T,V} <: AbstractVector{T}
vec::V
val::T
end
#=
Fraction Vector
useful when expressing fractions in n-1 components.
the last component is calculated at build time.
it allocates less than creating a new vector or appending.
=#
##
function FractionVector(v::AbstractVector)
a = one(eltype... |
CREATE VIEW KTSUsers
AS
SELECT
X2.ID,
p.FirstName,
p.Surname,
p.Email,
u.LogonName,
X2.X2AUserID KTSID,
d.SerialNumber
FROM X2
JOIN UserAccounts u ON X2.OwnerID = u.ID
JOIN People p ON u.PersonID = p.ID
LEFT JOIN Devices d ON u.ID = d.UserAccountID
g... |
-- e_fkey.test
--
-- execsql {
-- INSERT INTO song VALUES(2, 'Elvis Presley', NULL, 'Fever');
-- INSERT INTO song VALUES(3, NULL, 'Elvis Is Back', 'Soldier Boy');
-- }
INSERT INTO song VALUES(2, 'Elvis Presley', NULL, 'Fever');
INSERT INTO song VALUES(3, NULL, 'Elvis Is Back', 'Soldier Boy'); |
@php( $models = $models ?? collect() )
@if( !$models->count() )
@alertinfo("We couldn't find any results.")
@else
<div class="pagination-wrap">
<div class="items-count">
Found {{ $models->total() }} items.
</div>
{{ $models->links() }}
</div>
@endif
<style>
.paginati... |
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
package com.ubergeek42.WeechatAndroid.relay
import android.graphics.Typeface
import android.text.Spannable
import android.text.SpannableString
import android.text.Spanned
import androi... |
{-# LANGUAGE OverloadedStrings #-}
module Exam.IO
where
import Exam.Type
import Exam.Parse
import Exam.XML
import System.IO
import qualified Data.ByteString.Lazy.Char8 as BSL
import qualified Data.Text.IO as TI
readAndPrintExam :: FilePath -> IO ()
readAndPrintExam fp = do
readExam fp >>= printExam
return ()
re... |
namespace Files.FileSystems.WindowsStorage.Tests
{
using System;
using System.Diagnostics;
using Microsoft.VisualStudio.TestPlatform.TestExecutor;
using Windows.ApplicationModel.Activation;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;
public sealed partial class App
{
... |
use crate::gen::SchemaGenerator;
use crate::schema::*;
use crate::JsonSchema;
use std::num::*;
macro_rules! nonzero_unsigned_impl {
($type:ty => $primitive:ty) => {
impl JsonSchema for $type {
no_ref_schema!();
fn schema_name() -> String {
stringify!($typ... |
package scala.build.postprocessing
import scala.build.{GeneratedSource, Logger}
case object ByteCodePostProcessor extends PostProcessor {
def postProcess(
generatedSources: Seq[GeneratedSource],
mappings: Map[String, (String, Int)],
workspace: os.Path,
output: os.Path,
logger: Logger
): Unit =... |
# ---
# title: 1028. Recover a Tree From Preorder Traversal
# id: problem1028
# author: Tian Jun
# date: 2020-10-31
# difficulty: Hard
# categories: Tree, Depth-first Search
# link: <https://leetcode.com/problems/recover-a-tree-from-preorder-traversal/description/>
# hidden: true
# ---
#
# We run a preorder depth-firs... |
#!/bin/bash
set -e
echo docker pull continuumio/anaconda3
docker pull continuumio/anaconda3
echo docker build -t pybay-workflow-2a .
docker build -t pybay-workflow-2a .
echo "Entering docker shell, type \"exit\" to return back to host shell"
echo docker run -it --rm -v `pwd`:/host pybay-workflow-2a:latest /bin/bash
... |
---
layout: post
title: oop_Set
comments: true
categories: [Development Environment/Java]
tags: [Java]
---
<br>
# <center> Set </center>
---
<br>
* __Set__
* __HashSet__
* __TreeSet__
* __LinkedHashSet__
<br>
## 1. HashSet
<br>
> set은 순서를 신경쓰지 않고 데이터를 저장한다
> 순서가 필요없고 중복은 불허한다
```java
import java.util.HashSet;
... |
/**
* Format a value to a valid price
*
* @param value
* @param decimalPlaces
*/
export const formatPrice = (value: number, decimalPlaces: number = 2): string =>
`$${Number(value.toFixed(decimalPlaces))}`;
|
#!/usr/bin/bash
set -ue
function test_process() {
if [[ $# -ne 1 ]]; then
actual="invalid parameters -> usage : test_port <PORT>"
return 1
fi
processname=$1
actual=$(ps ax | grep -qie "[ /]${processname}" )
if [ $? != 0 ]; then
actual="${processname} not running"
return 1
fi
actual="${processname} ... |
// This program is free software: you can use, modify and/or redistribute it
// under the terms of the simplified BSD License. You should have received a
// copy of this license along this program. If not, see
// <http://www.opensource.org/licenses/bsd-license.html>.
//
// Copyright (C) 2017, Javier Sánchez Pérez <jsan... |
# -*- ruby -*-
namespace :highway do
desc "Create initial self-signed CA certificate, or resign existing one"
task :h1_bootstrap_ca => :environment do
curve = HighwayKeys.ca.curve
vendorprivkeyfile = HighwayKeys.ca.certdir.join("vendor_#{curve}.key")
outfile = HighwayKeys.ca.certdir.join("vendo... |
package tpo1.tests.menu
import org.openqa.selenium.WebElement
import org.openqa.selenium.support.FindBy
import tpo1.PresentationPage
class InsertMenuTests(page: PresentationPage) : AbstractMenuTestSet("Insert menu", page) {
@FindBy(id = "docs-insert-menu")
override lateinit var menu: WebElement
@FindBy(x... |
import 'dart:ui';
import 'package:flutter/material.dart';
import 'dart:math' as math;
class GraficaCurvas extends StatefulWidget {
List<double> datos;
double max;
double min;
double height;
GraficaCurvas(
{@required this.datos,
@required this.max,
@required this.min,
this.height = 3... |
package readbiomed.annotators.dictionary.pathogens.PrPSc;
import org.apache.uima.analysis_engine.AnalysisEngineDescription;
import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
import org.apache.uima.conceptMapper.DictTerm;
import org.apache.uima.fit.component.JCasAnnotator_ImplBase;
import org.apach... |
import 'package:weather_excercise/core/models/city_weather_model.dart';
import 'package:weather_excercise/utils/network_util.dart';
class OpenWeatherService {
/// Get 5 day forecast by city name, with an interval of 3h
static Future<List<CityWeatherModel>> get5DayWeatherForecast(String cityName) async {
Lis... |
##
#
# CU/Boulder IP host table
#
# for assistance, please contact trouble@boulder
#
# DO NOT EDIT THIS FILE -- IT IS NOT THE MASTER
# It is a distribution copy built from addhost data
#
# Last built: Fri Jun 7 00:06:42 MDT 1991
# on: paleolithic.Colorado.EDU
#
##
127.0.0.1 localhost loghost # manual
128.13... |

# ActionCable in Dart using streams
ActionCable is the default realtime websocket framework and protocol in Rails.
This is a dart port of the client and protocol implementation, which is available in web, dartVM and flutter.
This library is directly inspired ... |
import com.typesafe.sbt.SbtNativePackager.Universal
import sbt.Keys._
import sbt._
object CopyLogback {
def copyLogbackXml(fromProject: Project) = Seq(
Compile / resourceGenerators += Def.task {
copyDummyLogbackXml((fromProject / Compile / resources).value, (Universal / sourceDirectory).value)
}.taskV... |
# Regenerates Lyft project from current directory
function re() {
export INCLUDE_NON_APP_TRANSITIVE=2
export NO_SWIFTLINT=1
make -C $(git rev-parse --show-toplevel) update_dependencies targets=Lyft
}
|
<a name="9.1.0"></a>
# [9.1.0](https://github.com/ngrx/platform/compare/9.0.0...9.1.0) (2020-04-07)
### Bug Fixes
|
# This file needs to be sourced
add_path() {
export PATH=${PATH//":$1:"/:}
export PATH=${PATH/%":$1"/}
export PATH=${PATH/#"$1:"/}
export PATH="$1${PATH:+":$PATH"}"
}
add_ld_path() {
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH//":$1:"/:}
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH/%":$1"/}
expor... |
#!/bin/bash
ulimit -l unlimited
fs=12000
zs=12000
b=1
g=4
budget=50000
#<7.5B
script='bert_proxy_native.py -ll:py 1 --iterations 100 --seq-length 128 --num-heads 32 --hidden-size 4096 --num_layers 36'
ss=7.5b.l18
#$FF_HOME/python/flexflow_python $script -ll:gpu 1 -ll:fsize $fs -ll:zsize $zs -b $b --budget 1000 --ex... |
import { CACHE_MANAGER, HttpService, Inject } from '@nestjs/common';
import { AppLogger } from './../../../logger/app-logger';
import { Dependency } from '../../dependency.interface';
import { Registry } from '../../registry.interface';
import { ComposerStructure } from './composer.structure';
import { SemanticService ... |
package leecode
/**
* 二叉搜索树的最近公共祖先
* @author doive
* on 2019/6/24 11:28
*/
fun main() {
/**
* 二叉搜索树特点
* 左<根<右
*/
fun lowestCommonAncestor(root: TreeNode?, p: TreeNode, q: TreeNode): TreeNode? {
root ?: return null
return when {
(root.`val` - p.`val`) * (root.`val... |
#include <bits/stdc++.h>
using namespace std;
int n;
int waves[100];
int low_tide_pointer;
int high_tide_pointer;
int main(){
std::cin >> n;
for (int i = 0;i < n;i++) {
std::cin >> waves[i];
}
sort(waves, waves + n);
if (n%2 == 0) {
high_tide_pointer = n/2;
low_tide_pointer ... |
package com.bzh.dytt.repository
import android.util.Log
import java.util.concurrent.*
import javax.inject.Inject
import javax.inject.Singleton
class DelayObject<F, E : Runnable>(val flag: F, val data: E? = null) : Delayed {
var startTimeMillis: Long = 0L
override fun toString(): String {
return "Del... |
/*!
* @author electricessence / https://github.com/electricessence/
* Licensing: MIT https://github.com/electricessence/TypeScript.NET/blob/master/LICENSE.md
*/
import { Match, Regex } from "./RegularExpressions";
import { IEnumerator } from "../Collections/Enumeration/IEnumerator";
export declare class RegexMatchEn... |
#!/usr/bin/env python3
# See LICENSE for licensing information.
#
# Copyright (c) 2016-2021 Regents of the University of California
# All rights reserved.
#
import debug
from tech import cell_properties as props
import bitcell_base
class sky130_dummy_bitcell(bitcell_base.bitcell_base):
"""
A single bit cell ... |
//
// LocalTextStorageHelper.h
// AWARE
//
// Created by Yuuki Nishiyama on 1/16/16.
// Copyright © 2016 Yuuki NISHIYAMA. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AWAREDebugMessageLogger.h"
@interface LocalFileStorageHelper : NSObject
- (instancetype) initWithStorageName:(NSString *) st... |
unit DW.iOSapi.Metal;
{*******************************************************}
{ }
{ Kastri }
{ }
{ Delphi Worlds Cross-Platform Library }
... |
import 'package:flutter_webrtc/flutter_webrtc.dart';
import 'package:mediasoup_client_flutter/src/consumer.dart';
import 'package:mediasoup_client_flutter/src/data_consumer.dart';
import 'package:mediasoup_client_flutter/src/data_producer.dart';
import 'package:mediasoup_client_flutter/src/FlexQueue/flex_queue.dart';
i... |
<footer>
<p>2013 © FLATY Admin Template.</p>
</footer> |
# Covis19app


{
$image = Yii::$app->params['baseurl'] . '/uploads... |
---
layout: post
title: Algorithms - Dynamic Programming
date: 2021-03-13 22:30:00 -0700
categories: study-notes
tag: algorithms
---
* content
{:toc}
Last Update: 2020-03-13
## Edit Distance
```python
'''
Given two strings, return the minimum edit distance.
Given:
s1: horse
s2: ros
Return: 3
'''
class Edit... |
#!/bin/bash -e
# Each Metricbeat requires access to Elasticsearch to send Metric information and optionally (but at least one times)
# access to Kibana in order to load the Metricbeat Dashboards into Kibana.
# This script adjusts the configured list of Elasticsearch hosts as required by Metricbeat. In addition it is
... |
/*
* Copyright [2020] [kongpingan]
*
* 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... |
package unboks.passthrough
import org.junit.jupiter.api.extension.ExtendWith
import unboks.util.Ints
import unboks.util.PassthroughAssertExtension
import unboks.util.PassthroughAssertExtension.Companion.trace
import unboks.util.PermutationTest
@ExtendWith(PassthroughAssertExtension::class)
class ClassTests {
privat... |
#!/bin/bash
# This test verifies that flags passed through gc_goopts and gc_link_opts
# attributes in go_library, go_binary, go_test, and cgo_library are actually
# passed to the Go compiler.
#
# Each of the targets listed below is expected to fail, but only if the
# "-u" flag is passed to the compiler or linker (reje... |
export const {
PORT,
HOST,
TIME_WINDOW,
MAX_LIMIT,
PG_WRITER_CONNECTION_STRING,
PG_READER_CONNECTION_STRING,
PG_REMOVER_CONNECTION_STRING,
HTTP_SUCCESS,
HTTP_CREATED,
HTTP_NO_CONTENT,
HTTP_UNAUTHORIZED,
HTTP_FORBIDDEN,
HTTP_ERROR,
SALT_ROUNDS,
} = process.env;
|
package jsdocs
object ExampleJS {
val greeting = "Hello!"
}
|
// good explanation - https://leetcode.com/explore/learn/card/data-structure-tree/134/traverse-a-tree/
/**
* In-order traversal is to traverse the left subtree first.
* Then visit the root. Finally, traverse the right subtree.
* Typically, for binary search tree, we can retrieve all
* the data in sorted order usin... |
-- Limited non-deterministic sample of 1980 publication references
SELECT
wp.source_id,
wp.document_title,
wp.publication_year AS source_year,
wr.cited_source_uid,
ref_wp.document_title AS reference_title,
ref_wp.publication_year AS reference_year
FROM wos_publications wp
JOIN wos_references wr ON wr.source... |
package im.actor.server.values
import akka.actor.{ ActorSystem, ExtendedActorSystem, Extension, ExtensionId, ExtensionIdProvider }
import akka.util.Timeout
import im.actor.config.ActorConfig
final class ValuesExtension(val system: ActorSystem) extends Extension with SyncedSet {
val defaultTimeout = Timeout(A... |
using Microsoft.Graph;
using Newtonsoft.Json;
namespace Fdk.M365Register.ApiApp.Models
{
/// <summary>
/// This represents the entity for logged-in user details.
/// </summary>
public class LoggedInUser
{
/// <summary>
/// Initializes a new instance of the <see cref="LoggedInUser" ... |
# Java Naming Convention > Interface Naming
## PascalCase
- Begin with an uppercase letter
- Avoid acronyms and abbreviations
```java
interface Bookable {
...
}
```
|
using EMBC.ExpenseAuthorization.Api.ETeam.Responses;
using Xunit;
namespace EMBC.Tests.Unit.ExpenseAuthorization.Api.ETeam.Responses
{
public class GetPicklistKeywordsResponseTests
{
[Fact]
public void ParseResponse()
{
string xml = EmbeddedResource.Get<GetPicklis... |
class MonitorEvent < ActiveRecord::Base
belongs_to :incident, inverse_of: :events
has_many :snapshots, foreign_key: 'event_id', inverse_of: :event
# NOTE: the `pingometer_id` field will often not be filled in because it was,
# until recently, available only for the latest event in Pingometer's API.
# Th... |
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module MonadTransformers.StackSpec where
import Control.Monad.Trans
import Control.Monad.Trans.State
import Control.Monad.Trans.Writer
import Test.Hspec
main :: IO ()
main = hspec spec
newtype Stack a = Stack { unStack :: StateT Int (WriterT [Int] IO) a }
deriving (Func... |
package loon.live2d;
import loon.LSystem;
import loon.LTexture;
import loon.LTextureBatch;
import loon.canvas.LColor;
import loon.live2d.framework.L2DModelMatrix;
import loon.live2d.graphics.*;
import loon.opengl.BlendState;
import loon.opengl.GL20;
import loon.opengl.GLEx;
import loon.utils.ListMap;
public class Dra... |
package io.github.cactacea.backend.auth.server.models.requests.session
import com.twitter.finatra.validation.{MethodValidation, Size, ValidationResult}
import io.github.cactacea.backend.auth.server.utils.validations.ValueValidator
import io.swagger.annotations.ApiModelProperty
case class PutUserName(
... |
{-# LANGUAGE OverloadedStrings #-}
module LScheme.Parser.InternalSpec where
import Test.Hspec
import LScheme.Internal.Testing
import LScheme.SchemeVal
import LScheme.Parser.Internal
spec :: Spec
spec = do
describe "parseListLikes" $ do
it "parses (a test)" $
ll "(a test)" `shouldBe` Right (... |
use std::future::{self, Future};
use std::pin::Pin;
use hyper::{
client::HttpConnector,
header::{HeaderMap, HeaderName, HeaderValue},
Body, Request,
};
use serde::de::DeserializeOwned;
use crate::error::{ErrorResponse, StripeError};
use crate::params::{AppInfo, Headers};
use crate::resources::ApiVersion;
... |
import {FindAllStationsHandler} from './find-all-stations.handler';
import {FindSensorsHandler} from './find-sensors.handler';
import {GetSensorDataHandler} from './get-sensor-data.handler';
import {GetStationIndexHandler} from './get-station-index.handler';
export const queryHandlers = [
FindAllStationsHandler,
... |
plugins {
application
}
application {
mainClassName = "com.github.ryandens.consumer.Main"
}
dependencies {
// AutoValue for reducing boilerplate in creating immutable value objects
val autoValueVersion = "1.7"
compileOnly("com.google.auto.value", "auto-value-annotations", autoValueVersion)
ann... |
package example.kieker;
import java.io.IOException;
import java.util.List;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
public class TestStaticOperationExecution {
@Test
public void testRegularExecution() throws IOException {
Instrumentable.staticMethod();
}
}
|
ChangeLog
=========
All notable changes to the project are documented in this file.
[v1.5][] - 2021-09-09
---------------------
### Changes
- Add support for handling IPv4 addresses mapped on IPv6
- Pass through SOCK_STREAM in `recv()`, `recvfrom()` and `recvmsg()`
### Fixes
- Restore IP_PKTINFO option on socket a... |
# DogBook
DogBook ( AngularJs + BS4 + Api + Json)
https://lmsite.github.io/DogBook/
|
package org.broadinstitute.dsde.workbench.avram
import org.broadinstitute.dsde.workbench.avram.model.AvramException
import org.broadinstitute.dsde.workbench.avram.util.AvramResult
trait AvramResultSupport {
/**
* Perform computations represented by an AvramResult and produce the result value. This will
* th... |
#include <Nvim/Blinky.hpp>
nvim::Blinky::Blinky(nvim::DataHolder &dataHolder, nvim::GUIOptions &GUIOptions)
: mDataHolder(dataHolder)
, mGUIOptions(GUIOptions)
, mBlinkPeriod(sf::milliseconds(500))
, mIsON(true)
, mModeChanged(false)
{
setTextOffset(0, 0);
mCursor.setFillColor(s... |
package com.gu.android.mediacodec.mvp.widget;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Color;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.RoundRectShape;
import android.util.AttributeSet;
import android.util.TypedValue;
i... |
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
import java.nio.*;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.... |
// This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
using System;
using System.Collections.Generic;
using NetExtender.Types.Dictionaries.Interfaces;
namespace NetExtender.Types.Maps.Interface... |
import { createColors } from 'colorette';
import { once } from 'events';
import build from 'pino-abstract-transport';
import SonicBoom, { SonicBoomOpts } from 'sonic-boom';
import { isatty } from 'tty';
import util from 'util';
import type { LogDescriptor } from './types.js';
export interface PrettyTransportOptions {
... |
export * from './create-link-type'
export * from './is-link-type'
export * from './link-type.type'
export * from './to/index'
|
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Drawing.Imaging;
using System.Windows.Forms;
namespace IPInformer2
{
public enum TrayIconType
{
Connecting = 0,
NoNetwork = 1,
OK = 2,
Off=3,
Panic=4,
Warning =... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.