This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| """nhl-rank.py: An utility to rank games by a team in a certain year without revealing the results. | |
| The data source and its copyright: https://sportsdatabase.com/ | |
| """ | |
| __author__ = "Lex Vorona" | |
| import sys, getopt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.sample; | |
| import org.openjdk.jmh.annotations.Benchmark; | |
| import org.openjdk.jmh.annotations.BenchmarkMode; | |
| import org.openjdk.jmh.annotations.Fork; | |
| import org.openjdk.jmh.annotations.Measurement; | |
| import org.openjdk.jmh.annotations.Mode; | |
| import org.openjdk.jmh.annotations.OutputTimeUnit; | |
| import org.openjdk.jmh.annotations.Param; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package processor | |
| import ( | |
| "fmt" | |
| "time" | |
| "github.com/Jeffail/benthos/v3/lib/log" | |
| "github.com/Jeffail/benthos/v3/lib/metrics" | |
| "github.com/Jeffail/benthos/v3/lib/processor" | |
| "github.com/Jeffail/benthos/v3/lib/types" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| from Xlib import display | |
| from time import sleep | |
| from os import system | |
| # My screen setup has a vertical display with a large dead zone: | |
| # | |
| # +----------------+ | |
| # | | | |
| # DEAD | | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| macro_rules! assert_impls {( | |
| #[rustc_on_unimplemented(message = $message:expr $(,)?)] | |
| $T:ty : $($trait:tt)+ | |
| ) => (const _: () = { | |
| #[allow(unused)] | |
| use __poormans_specialization::Fallback as _; | |
| mod __poormans_specialization { | |
| pub(super) | |
| struct Wrapper<T : ?::core::marker::Sized>(T); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import argparse | |
| import random | |
| LADDER_PLAYERS = 1000 | |
| LADDER_GAMES = 1000000 | |
| TOURNAMENTS = 20 | |
| def win_probability(race1, race2, imbalance, rematch): |
OlderNewer