Skip to content

Instantly share code, notes, and snippets.

@skywinder
skywinder / README.txt
Created Apr 14, 2021
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.1+commit.df193b15.js&optimize=false&runs=200&gist=
View README.txt
REMIX EXAMPLE PROJECT
Remix example project is present when Remix loads very first time or there are no files existing in the File Explorer.
It contains 3 directories:
1. 'contracts': Holds three contracts with different complexity level, denoted with number prefix in file name.
2. 'scripts': Holds two scripts to deploy a contract. It is explained below.
3. 'tests': Contains one test file for 'Ballot' contract with unit tests in Solidity.
SCRIPTS
@skywinder
skywinder / gitkraken.zsh
Last active Apr 12, 2021 — forked from dersam/gitkraken.zsh
Here is a single line to add kraken support in `.zshrc`
View gitkraken.zsh
# Open GitKraken using the current repo directory in the cli.
alias kraken='open -na "GitKraken" --args -p "$(git rev-parse --show-toplevel)"'
# Now you can 'git kraken'!
View Petr Korolev's GitHub Stats
⭐ Total Stars: 1,026
➕ Total Commits: 11,761
🔀 Total PRs: 414
🚩 Total Issues: 376
📦 Contributed to: 53
View I'm an early 🐤
🌞 Morning 289 commits ████▊░░░░░░░░░░░░░░░░ 23.1%
🌆 Daytime 559 commits █████████▍░░░░░░░░░░░ 44.7%
🌃 Evening 275 commits ████▌░░░░░░░░░░░░░░░░ 22.0%
🌙 Night 128 commits ██▏░░░░░░░░░░░░░░░░░░ 10.2%
@skywinder
skywinder / firefox-profile.gitignore
Last active Jul 23, 2020
gitignore for Firefox profile
View firefox-profile.gitignore
cookies.sqlite
cookies.sqlite-wal
favicons.sqlite-wal
logins.json
places.sqlite-wal
prefs.js
storage/
datareporting/
webappsstore.sqlite
webappsstore.sqlite-wal
View Keybase.md

Keybase proof

I hereby claim:

  • I am skywinder on github.
  • I am skywinder (https://keybase.io/skywinder) on keybase.
  • I have a public key ASBH3KfAmCW74oEm9_fABXahqfMv0DKBdTlCa0SsFlh_MQo

To claim this, I am signing this object:

View Keybase.md

Keybase proof

I hereby claim:

  • I am skywinder on github.
  • I am skywinder (https://keybase.io/skywinder) on keybase.
  • I have a public key ASBH3KfAmCW74oEm9_fABXahqfMv0DKBdTlCa0SsFlh_MQo

To claim this, I am signing this object:

@skywinder
skywinder / verify_transform_constrained
Created Mar 11, 2019
Decompression Petr -> Felix
View verify_transform_constrained
cargo run --release --bin verify_transform_constrained
Finished release [optimized] target(s) in 0.12s
Running `target/release/verify_transform_constrained`
Will verify and decompress a contribution to accumulator for 2^25 powers of tau
Calculating previous challenge hash...
Hash of the `challenge` file for verification:
442064d3 e63b077b b82a3268 9d7cfb54
470391c7 5d03d9e8 0bb39c6d 84aa063f
e876fbc7 e07c7ea6 a09d3582 7333be41
2925944f d0f7a0dc 8280d5d4 0016aa8f
View [Matter Labs] Trusted Setup - compute_constrained
time cargo run --release --bin compute_constrained
Compiling powersoftau v0.2.0 (/Users/pk/repo/powersoftau)
Finished release [optimized] target(s) in 2.44s
Running `target/release/compute_constrained`
Will contribute to accumulator for 2^25 powers of tau
In total will generate up to 67108863 powers
Type some random text and press [ENTER] to provide additional entropy...
<DELETED>
@skywinder
skywinder / create_fat_framework.sh
Last active Oct 14, 2018
Export “fat” Cocoa Touch Framework (for Simulator and Device)
View create_fat_framework.sh
#run this script from Product page in your project Derived Data folder
framework_name="${$(basename $(find ./Debug-iphoneos -type d -name '*.framework' -maxdepth 1))%.*}" && \
cp -R Debug-iphoneos/$framework_name.framework ./$framework_name.framework && \
lipo -create -output "$framework_name.framework/$framework_name" \
"Debug-iphonesimulator/$framework_name.framework/$framework_name" \
"Debug-iphoneos/$framework_name.framework/$framework_name"