Skip to content

Instantly share code, notes, and snippets.

View vaachii's full-sized avatar
💭
I may be slow to respond.

shotaro chiba vaachii

💭
I may be slow to respond.
View GitHub Profile
@vaachii
vaachii / machine.js
Created January 16, 2020 11:19
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions

Keybase proof

I hereby claim:

  • I am vaachii on github.
  • I am vaachii (https://keybase.io/vaachii) on keybase.
  • I have a public key ASAuwf7Fr1r0FMJ6WUnzzM0MKU-WnhZbenGkBJPEl4TpbQo

To claim this, I am signing this object:

@vaachii
vaachii / 1417869776.py
Last active August 29, 2015 14:10
[1417869776] Generate a salted SHA-1
# -*- coding: UTF-8 -*-
from hashlib import sha1
from binascii import hexlify
from base64 import b64encode
data = '0123456789abcdef'
try:
with open('/dev/urandom', 'rb') as fh: