I hereby claim:
- I am stulentsev on github.
- I am stulentsev (https://keybase.io/stulentsev) on keybase.
- I have a public key ASAHjuCvisMwyIgXMFulA_a6Bq9BCF8TWwp3KaPqXv3tago
To claim this, I am signing this object:
using System; | |
using FortniteReplayReader; | |
using Unreal.Core.Models.Enums; | |
using System.Threading.Tasks; | |
using Fortnite_API; | |
using Fortnite_API.Objects.V1; | |
using FortniteReplayReader.Models; | |
using System.CommandLine; |
require 'benchmark/ips' | |
require 'set' | |
sizes = [3, 5, 10, 15, 100] | |
sizes.each do |size| | |
Benchmark.ips do |x| | |
range = 1..size | |
array = range.to_a | |
hash = array.each_with_object({}) {|x, memo| memo[x] = x} |
import ( | |
"math/big" | |
"math/rand" | |
"time" | |
) | |
func SplitPQ(pq *big.Int) (p1, p2 *big.Int) { | |
value_0 := big.NewInt(0) | |
value_1 := big.NewInt(1) | |
value_15 := big.NewInt(15) |
tests = %w( | |
лошадь | |
horse | |
horse123 | |
h0rse | |
лошадb | |
slоn | |
) | |
package main | |
import ( | |
"bytes" | |
"fmt" | |
"strconv" | |
"sync" | |
"testing" | |
) |
I hereby claim:
To claim this, I am signing this object:
#include <bits/stdc++.h> | |
using namespace std; | |
vector<string> split_string(string); | |
// Complete the sockMerchant function below. | |
int sockMerchant(int n, vector<int> ar) { | |
A running example of the code from:
This gist creates a working example from blog post, and a alternate example using simple worker pool.
TLDR: if you want simple and controlled concurrency use a worker pool.
RUN echo "https://mirror.yandex.ru/mirrors/alpine/v3.7/main" > /etc/apk/repositories \ | |
&& echo "https://mirror.yandex.ru/mirrors/alpine/v3.7/community" >> /etc/apk/repositories \ | |
&& echo "https://mirror.yandex.ru/mirrors/alpine/v3.5/main" >> /etc/apk/repositories \ |
require 'openssl' | |
require 'jwt' | |
require 'awesome_print' | |
rsa_private = OpenSSL::PKey::RSA.generate 2048 | |
rsa_public = rsa_private.public_key | |
payload = { | |
'data' => 'test', | |
'projects.quote.request' => true, |