Skip to content

Instantly share code, notes, and snippets.

@gleehokie
gleehokie / gource.md
Created May 26, 2019 22:11
Gource for eosio

From the directory where you've cloned eos from GitHub:

gource --hide dirnames,mouse --title EOSIO --seconds-per-day 0.5 --max-file-lag 0.1 -1280x720 -o gource.ppm
ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i gource.ppm -vcodec libx264 -preset medium -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4
@gleehokie
gleehokie / SignWithK1.swift
Last active September 25, 2018 23:08
Signing with a K1 key in Swift
This code is from Block.one.
Copyright (c) 2018, Respective Authors all rights reserved.
The MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@gleehokie
gleehokie / keybase.md
Created June 15, 2018 21:42
keybase.md

Keybase proof

I hereby claim:

  • I am gleehokie on github.
  • I am glee_hokie (https://keybase.io/glee_hokie) on keybase.
  • I have a public key ASDzr88j3JG1YWjoO3q6rMDCUeQiYQr43cuwKZYwpCENwgo

To claim this, I am signing this object:

@gleehokie
gleehokie / my.token.cpp
Created February 11, 2018 22:16
Single currency EOS.IO token contract
#include <eoslib/eos.hpp>
#include <eoslib/token.hpp>
#include <eoslib/generic_currency.hpp>
typedef eosio::generic_currency<eosio::token<N(my.token), S(8,MYT)> > my_token;
extern "C" {
void apply(uint64_t code, uint64_t action) {
my_token::apply(code, action);
}