Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Daniel Himmelstein dhimmel

🎯
Focusing
View GitHub Profile
@adrianshort
adrianshort / 500isbn13s.csv
Created Sep 30, 2011
500 ISBN-13s - sample data
View 500isbn13s.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
9780006281436
9780006281443
9780006499152
9780006499480
9780006532286
9780006547747
9780006547754
9780007117536
9780007134724
9780007139842
@viking
viking / install-package-version.R
Created Dec 20, 2011
Install a specific version of an R package (hack)
View install-package-version.R
# Looks in the CRAN archive for the specified package and version. If
# the specified version is NULL or the same as the most recent version
# of the package, this function simply calls install.packages(). Otherwise,
# it looks at the list of archived source tarballs and tries to install
# an older version instead.
install.package.version <- function(
package,
version = NULL,
repos = getOption('repos'),
@dashed
dashed / github-pandoc.css
Created Sep 26, 2013
GitHub-like CSS for pandoc standalone HTML files (perfect for HTML5 output). Based on Marked.app's GitHub CSS. Added normalize.css (v2.1.3) in the prior to GitHub css.
View github-pandoc.css
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
View README.md
@mitchwongho
mitchwongho / Docker
Last active Jun 15, 2021
Docker 'run' command to start an interactive BaSH session
View Docker
# Assuming an Ubuntu Docker image
$ docker run -it <image> /bin/bash
View github-pages-https-lets-encrypt.md
View bitcoin-paper-errata-and-details.md

A description of known problems in Satoshi Nakamoto's paper, "Bitcoin: A Peer-to-Peer Electronic Cash System", as well as notes on terminology changes and how Bitcoin's implementation differs from that described in the paper.

Abstract

The longest chain not only serves as proof of the sequence of events witnessed, but proof that it came from the largest pool of CPU power.

@cgreene
cgreene / NICTA_xenome_license.txt
Last active Nov 10, 2016
The license for Xenome software, which is related to this blog post: https://medium.com/@greenescientist/when-software-goes-missing-f6a0dffd68e5
View NICTA_xenome_license.txt
[NON-COMMERCIAL] SOFTWARE LICENSE AGREEMENT
PLEASE READ THIS SOFTWARE LICENSE AGREEMENT CAREFULLY BEFORE DOWNLOADING,
INSTALLING OR USING NATIONAL ICT AUSTRALIA LIMITED (NICTA) SUPPLIED SOFTWARE. BY
DOWNLOADING, INSTALLING OR USING THE SOFTWARE YOU ARE CONSENTING TO BE BOUND BY
THIS LICENSE. IF YOU DO NOT AGREE TO ALL OF THE TERMS OF THIS LICENSE, THEN DO
NOT DOWNLOAD, INSTALL OR USE THE SOFTWARE.
This License Agreement is entered into between National ICT Australia Limited
(ABN 62 102 206 173) (herein referred to as "Licensor") and you, the Licensee.
@sorce
sorce / send_counterparty_from_trezor.py
Last active Nov 5, 2019
Create, sign and send a counterparty transaction from an address controlled by a trezor
View send_counterparty_from_trezor.py
#!/usr/bin/env python
'''
if you find this script helpful and would like to give some crypto to
the cause, we would be very happy to receive it :)
donate bitcoin / counterparty: 3L19gTtMMJHpkAjYVduUZETdduwAfM7NGR
'''
import sys
import json
import requests
from requests.auth import HTTPBasicAuth
@dhimmel
dhimmel / bitcoin-random-outcomes.ipynb
Last active Jan 29, 2018
Using Bitcoin to randomly determine a future outcome involving untrusted parties
View bitcoin-random-outcomes.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.