Skip to content

Instantly share code, notes, and snippets.

View sweinberg's full-sized avatar

swein sweinberg

View GitHub Profile
@sweinberg
sweinberg / Bitcoin Donate Button
Created May 2, 2013 05:35
A simple 'Donate' button that displays a dialog box with a copy-n-pasteable Bitcoin address, for easy sending from a wallet.
<!DOCTYPE html>
<html>
<head>
<style>
.text {
color:#333333;
font-family:arial;
font-size:35px;
# Play a short melody
import sound
import time
notes = 'E3', 'E3', 'F3', 'G3', 'G3', 'F3', 'E3', 'D3', 'C3', 'C3', 'D3', 'E3', 'E3', 'D3', 'D3', 'E3', 'E3', 'F3', 'G3', 'G3', 'F3', 'E3', 'D3', 'C3', 'C3', 'D3', 'E3', 'D3', 'C3', 'C3'
for note in notes:
sound.play_effect('Piano_' + note)
time.sleep(0.5)

Keybase proof

I hereby claim:

  • I am sweinberg on github.
  • I am samw (https://keybase.io/samw) on keybase.
  • I have a public key whose fingerprint is 9FB2 1888 8BDA CF7B 2A50 3391 6568 97E9 60C3 D6A7

To claim this, I am signing this object:

@sweinberg
sweinberg / Articles.py
Created March 8, 2014 23:12
Open Wikipedia pages in Articles. Requires Pythonista.
import clipboard
import string
import sys
import webbrowser
try:
article = sys.argv[1]
except IndexError:
article = clipboard.get()
Verifying that +samw is my Bitcoin username. You can send me #bitcoin here: https://onename.io/samw
body{
background: #282c36;
color: #ffffff}
td{
background: #282c36}
div{
background: #282c36;
color: #ffffff}