Skip to content

Instantly share code, notes, and snippets.

Avatar

Colton J. Provias ColtonProvias

  • Sunnyvale, CA
View GitHub Profile
View bn.js.d.ts
declare module 'bn.js' {
class Red {}
class Mont extends Red {}
export default class BN {
red: Red
constructor (num?: any, base?: number, endian?: string)
static isBN (num: any): num is BN
static max (left: BN, right: BN): BN
static min (left: BN, right: BN): BN
static red (num: BN | string): Red
@ColtonProvias
ColtonProvias / sample.go
Created Sep 25, 2017
msgp generation bug
View sample.go
//go:generate msgp
//msgp:tuple Sample
//msgp:shim uuid.UUID as:[]byte using:uuidToBytes/bytesToUUID
package serialization
import (
"github.com/satori/go.uuid"
)
type Sample struct {
View keybase.md

Keybase proof

I hereby claim:

  • I am ColtonProvias on github.
  • I am coltonprovias (https://keybase.io/coltonprovias) on keybase.
  • I have a public key whose fingerprint is E05F EB23 F824 1DA1 B55F C45E 97ED DF01 7E81 D849

To claim this, I am signing this object:

@ColtonProvias
ColtonProvias / fountain.py
Created Jan 3, 2014
Fountain parser for Python 3.
View fountain.py
"""
fountain.py
Ported to Python 3 by Colton J. Provias - cj@coltonprovias.com
Based on Fountain by Nima Yousefi & John August
Original code for Objective-C at https://github.com/nyousefi/Fountain
"""
COMMON_TRANSITIONS = {'FADE OUT.', 'CUT TO BLACK.', 'FADE TO BLACK.'}
@ColtonProvias
ColtonProvias / gist:5079405
Created Mar 4, 2013
S3 uploader for Python 3
View gist:5079405
"""
S3 Uploader for Python 3
Colton J. Provias
Usage:
f = open('sample.png', 'rb')
contents = f.read()
response, url = upload_to_s3('AWSKEY', 'AWSSECRET', 'mybucket', 'image.png', contents, 'image/png')
"""
You can’t perform that action at this time.