Skip to content

Instantly share code, notes, and snippets.

Going to the moon

Lane Rettig lrettig

Going to the moon
Block or report user

Report or block lrettig

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
#!/bin/bash -x
find . -name 'fbjs' -print | grep "\./node_modules/fbjs" -v | xargs rm -rf
jwasinger / ewasm-testnet-cpp-config.json
Last active Jan 22, 2018
View ewasm-testnet-cpp-config.json
"sealEngine": "Ethash",
"params": {
"accountStartNonce": "0x00",
"maximumExtraDataSize": "0x20",
"homesteadForkBlock": "0x00",
"EIP150ForkBlock": "0x00",
"EIP158ForkBlock": "0x00",
"byzantiumForkBlock": "0x00",
"minGasLimit": "0x5208",
hugo-dc /
Last active Apr 27, 2018
cpp-ethereum breakpoints
axic /
Last active Aug 11, 2018
eWASM Roadmap 2017-2018 [Not kept up to date]
axic /
Last active Jul 17, 2019
ewasm “WRC20” token contract coding challenge

ewasm “WRC20” token contract coding challenge

This document describes a simple contract in pseudocode and gives a couple of test cases for it.

The challenge is designed to be fairly easy to implement in a language of choice, compiled to wasm and interacted with. It is loosely based on the ERC20 token standard, named "WRC20", where the W stands for WebAssembly.

External interface

The contract has two features:

guyboltonking / compressed_static_assets.rb
Created Mar 21, 2012
Slightly hacky rails middleware for serving up precompiled gzipped assets
View compressed_static_assets.rb
require 'action_dispatch/middleware/static'
module Middleware
class FileHandler < ActionDispatch::FileHandler
def initialize(root, assets_path, cache_control)
@assets_path = assets_path.chomp('/') + '/'
super(root, cache_control)
def match?(path)
sampablokuper / new_ruby_project_procedure.markdown
Created Nov 24, 2011
A walkthrough for creating a new Ruby project
View new_ruby_project_procedure.markdown

New Ruby software project procedure

First, ensure the following tools are available on the local system and reasonably up to date:

  • Git
  • Git-flow
  • RVM
  • Bash
  • SSH
kndt84 / authorize.js
Last active Mar 20, 2020
Sample code: how to refresh session of Cognito User Pools with Node.js and Express
View authorize.js
const AWS = require('aws-sdk');
const CognitoUserPool = require('amazon-cognito-identity-js-node').CognitoUserPool;
const CognitoUserSession = require('amazon-cognito-identity-js-node').CognitoUserSession;
const CognitoUser = require('amazon-cognito-identity-js-node').CognitoUser;
const CognitoIdToken = require('amazon-cognito-identity-js-node').CognitoIdToken;
const CognitoAccessToken = require('amazon-cognito-identity-js-node').CognitoAccessToken;
const CognitoRefreshToken = require('amazon-cognito-identity-js-node').CognitoRefreshToken;
const cfg = require('config').config;
You can’t perform that action at this time.