Skip to content

Instantly share code, notes, and snippets.

View hstove's full-sized avatar

Hank Stoever hstove

View GitHub Profile
import { pox, deployer, alice, bob, charlie, contracts } from './helpers';
import { beforeAll, describe, expect, test, it } from 'vitest';
import { rov, rovOk } from '@clarigen/test';
import {
pubKeyfromPrivKey,
addressFromPublicKeys,
AddressVersion,
AddressHashMode,
addressToString,
serializePublicKey,
@hstove
hstove / open-in-arxiv-sanity.md
Last active December 23, 2018 18:49
Bookmarklet to open Arxiv paper on arxiv-sanity.com
@hstove
hstove / hankstoever-id.proof.txt
Created October 25, 2018 17:56
Blockstack proof
Verifying my Blockstack ID is secured with the address 1G8XTwZkUzu7DJYDW4oA4JX5shnW8LcpC2 https://explorer.blockstack.org/address/1G8XTwZkUzu7DJYDW4oA4JX5shnW8LcpC2
Verifying my Blockstack ID is secured with the address 1G8XTwZkUzu7DJYDW4oA4JX5shnW8LcpC2 https://explorer.blockstack.org/address/1G8XTwZkUzu7DJYDW4oA4JX5shnW8LcpC2
Verifying my Blockstack ID is secured with the address 1G8XTwZkUzu7DJYDW4oA4JX5shnW8LcpC2 https://explorer.blockstack.org/address/1G8XTwZkUzu7DJYDW4oA4JX5shnW8LcpC2
@hstove
hstove / keybase.md
Created December 19, 2017 23:51
Keybase

Keybase proof

I hereby claim:

  • I am hstove on github.
  • I am hstove (https://keybase.io/hstove) on keybase.
  • I have a public key ASBFHdyG8QXFmMkej0E-yJQPR10e-hFXmSeHeRLyZMXLUwo

To claim this, I am signing this object:

@hstove
hstove / template.rb
Last active August 26, 2017 07:33
A template I use for creating Ruby on Rails apps
gem "bootstrap-sass", '~> 3.3.3'
gem "cancan"
gem "jquery-turbolinks"
gem "haml-rails"
gem "awesome_print"
gem "google-analytics-rails"
gem "ejs"
gem "paper_trail"
gem "nokogiri"
gem "dalli"
#Store('score') # undefined
#Store('score',1)
#Store('score') # 1
#Store('score','',-1) # expires
#Store('score') # undefined
#Store('score', 1) # 1
#Store('score', -> 2 ) # 1 only calls function if 'score' not found
#Store('score','',-1)
#Store('score', -> 2 ) # 2
console.log event._facilitators # => [undefined]
event._facilitators = _.compact(event._facilitators)
console.log _.compact(event._facilitators) # => []
console.log event._facilitators # => [undefined]
@hstove
hstove / sample_user_class.rb
Created January 14, 2013 19:18
sample ruby user class with BCrypt for passwords from https://github.com/ryanb/nifty-generators
class User < ActiveRecord::Base
# new columns need to be added here to be writable through mass assignment
attr_accessible :username, :email, :password, :password_confirmation
attr_accessor :password
before_save :prepare_password
validates_presence_of :email
validates_uniqueness_of :username, :email, :allow_blank => true