I hereby claim:
- I am unleashed on github.
- I am unleashed (https://keybase.io/unleashed) on keybase.
- I have a public key whose fingerprint is 33E0 ED94 CC4D 3300 0F56 B35A CE22 9595 A73A 83B0
To claim this, I am signing this object:
require 'benchmark' | |
loops = 1_000_000 | |
str = 'whatever/string/like/this' | |
Benchmark.bm do |x| | |
x.report 'michal1' do | |
loops.times do | |
str.split('/').reduce([]){ |acc, v| acc.push(([acc.last].compact + [v]).flatten) } |
# Info: | |
# | |
# A performance benchmark of `Set` vs `Array` on a 5 integer element data set*. | |
# | |
# S: a class INSTANTIATED containing a Set INSTANTIATED for each `include?` query | |
# A: a class INSTANTIATED with an already instantiated Array for each `include?` query | |
# SS: an already instantiated class with an already instantiated Set for each `include?` query | |
# AA: an already instantiated class with an already instantiated Array for each `include?` query | |
# | |
# For pure comparison purposes of Set and Array, you should only pay attention to SS and AA benchmarks. |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
mkdir ./gpgbackup | |
gpg --export -a > ./gpgbackup/pubring.asc | |
gpg --export-secret-keys -a > ./gpgbackup/secring.asc | |
gpg --export-ownertrust -a > ./gpgbackup/ownertrust.asc | |
tar cvjf ./gpgbackup.tar.bz2 ./gpgbackup | |
rm -rf ./gpgbackup | |
gpg --symmetric --output ./gpgbackup.tar.bz2.crypt ./gpgbackup.tar.bz2 | |
rm ./gpgbackup.tar.bz2 | |
md5sum ./gpgbackup.tar.bz2.crypt > ./gpgbackup.tar.bz2.crypt.md5 |
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
Token for proof: | |
[Verifying my OpenPGP key: openpgp4fpr:33e0ed94cc4d33000f56b35ace229595a73a83b0] |
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
Token for proof: | |
[Verifying my OpenPGP key: openpgp4fpr:33e0ed94cc4d33000f56b35ace229595a73a83b0] |
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account. | |
Token for proof: | |
[Verifying my OpenPGP key: openpgp4fpr:33e0ed94cc4d33000f56b35ace229595a73a83b0] |
#!/bin/bash | |
# | |
# This script receives a parameter, the revision from which to take | |
# the committer information, and applies that committer information | |
# to the current HEAD. | |
# | |
# N.B.: The machinery uses git commit --amend, so if you have staged | |
# changes you will add them to the commit! This is solvable, but not | |
# worth the effort. |
#!/bin/bash | |
# | |
# gist-go - Get a Github Gist | |
# Copyright (c) 2019 Alejandro Martinez Ruiz <alex flawedcode org> | |
# | |
# Downloads latest version of files in a Github gist, optionally outputting them to stdout. | |
# Files will by default be written to the current working directory, unless you | |
# specify --stdout (or -o) as first parameter. | |
# | |
# Usage: |
#!/bin/bash | |
if test -x "$(pwd)/istiooc"; then | |
ISTIOOC=$(pwd)/istiooc | |
else | |
ISTIOOC=${HOME}/istiooc | |
fi | |
NAMESPACE=${NAMESPACE:-bookinfo} | |
DEPLOYMENT=${DEPLOYMENT:-productpage-v1} |