Skip to content

Instantly share code, notes, and snippets.

import Web3 from 'web3';
import HDWalletProvider from '@truffle/hdwallet-provider';
const tokenId = 1; // YOUR TOKEN ID
const seed = 'YOUR SEEDPHRASE WITHOUT 0x';
const provider = new Web3.providers.HttpProvider('https://YOUR_ETHEREUM_RPC_NODE');
const localKeyProvider = new HDWalletProvider({
privateKeys: [seed],
providerOrUrl: provider,
@nhodges
nhodges / install_diablo2_on_mac.md
Created September 5, 2020 07:03 — forked from whipowill/install_diablo2_on_mac.md
Install Diablo II on Mac OSX

Install Diablo II on Mac OSX

These are the instructions for using Terminal to install the Windows version of the game onto your machine. You can then easily copy the game multiple times for different mods you might want to play.

In this guide you'll end up with:

  • A version of the unadulterated game
  • A single-player install w/ PlugY

Install Wine

@nhodges
nhodges / file-input-image-data-url.html
Created July 14, 2017 05:20
Read file input (image) as data URL
<form id="form1" runat="server">
<input type='file' id="imgInp" />
<img id="blah" src="#" alt="your image" />
</form>
<script type="text/javascript">
function readURL(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();

Keybase proof

I hereby claim:

  • I am nhodges on github.
  • I am nuri (https://keybase.io/nuri) on keybase.
  • I have a public key ASD7t3PcvmV4onldYrihSiT3iGfD8o0qYPCgCfzX-h6ebwo

To claim this, I am signing this object:

@nhodges
nhodges / package.json
Created September 17, 2016 06:40
Angular 2 on Rails Meta
{
"name": "boilerplate",
"version": "0.0.1",
"scripts": {
"start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\" ",
"lite": "lite-server",
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"typings": "typings"
@nhodges
nhodges / keybase.md
Created June 15, 2016 08:41
keybase.md

Keybase proof

I hereby claim:

  • I am nhodges on github.
  • I am nuri (https://keybase.io/nuri) on keybase.
  • I have a public key whose fingerprint is 57FB 51AE FE98 6B11 F3A7 725B B21B 8C9E 8E90 F748

To claim this, I am signing this object:

---
# ^^^ YAML documents must begin with the document separator "---"
#
#### Example docblock, I like to put a descriptive comment at the top of my
#### playbooks.
#
# Overview: Playbook to bootstrap a new host for configuration management.
# Applies to: production
# Description:
# Ensures that a host is configured for management with Ansible.
=Navigating=
visit('/projects')
visit(post_comments_path(post))
=Clicking links and buttons=
click_link('id-of-link')
click_link('Link Text')
click_button('Save')
click('Link Text') # Click either a link or a button
click('Button Value')
@nhodges
nhodges / markdown.css
Last active August 29, 2015 14:19 — forked from imjasonh/markdown.css
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}