Skip to content

Instantly share code, notes, and snippets.

Avatar

Yuval Koren mygzi

  • San Francisco, CA
View GitHub Profile
@mygzi
mygzi / pkce
Created May 20, 2019
Generate PKCE (RFC 7636) secret and challenge on the command line
View pkce
CODE_VERIFIER=`head -c 32 /dev/urandom | base64 | sed -e "s,=,,g" -e "s,+,-,g" -e "s,/,_,g"`
CODE_CHALLENGE=`echo -n $CODE_VERIFIER | openssl dgst -sha256 -binary | base64 | sed -e "s,=,,g" -e "s,+,-,g" -e "s,/,_,g"`
@mygzi
mygzi / .block
Created Sep 10, 2016 — forked from mbostock/.block
Epicyclic Gearing
View .block
license: gpl-3.0
@mygzi
mygzi / app.css
Last active Oct 7, 2015
Performant Angular Chat
View app.css
[ng-cloak]
{
display: none !important;
}
.flex {
display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6 */
display: -moz-box; /* OLD - Firefox 19- (buggy but mostly works) */
display: -ms-flexbox; /* TWEENER - IE 10 */
display: -webkit-flex;
You can’t perform that action at this time.