This file contains 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 main | |
import ( | |
"bytes" | |
"fmt" | |
"strconv" | |
"sync" | |
"testing" | |
) |
This file contains 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
tests = %w( | |
лошадь | |
horse | |
horse123 | |
h0rse | |
лошадb | |
slоn | |
) | |
This file contains 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
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) |
This file contains 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
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} |
This file contains 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
% cat .git/hooks/pre-commit | |
#! /usr/bin/env ruby | |
puts "pre-commit hook: checking for forgotten debug statements" | |
debug_statements = [ | |
'binding.pry', | |
'console.log', | |
':focus', | |
'focus: true', |
This file contains 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
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; |
This file contains 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
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 \ |
OlderNewer