Skip to content

Instantly share code, notes, and snippets.

View danwakefield's full-sized avatar
🤠
Probably breaking something.

Daniel Wakefield danwakefield

🤠
Probably breaking something.
View GitHub Profile
@danwakefield
danwakefield / index.html
Last active December 22, 2015 15:29
Password toggle with FontAwesome
<html>
<head>
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<script>
var createPasswordToggle = function(toggleTriggerId, passwordId) {
var changeInput = function(old, newType) {
// http://stackoverflow.com/a/9094151
var n = document.createElement('input');
n.type = newType;
if(old.size) n.size = old.size;

Keybase proof

I hereby claim:

  • I am danwakefield on github.
  • I am danwakefield (https://keybase.io/danwakefield) on keybase.
  • I have a public key whose fingerprint is 6044 6D12 6E64 D9A3 0BE2 14DA B5D4 1693 0A0D 0999

To claim this, I am signing this object:

Just some stuff you might like to read / watch on the plane if you are interested.
OP-ED:
http://www.evanmiller.org/four-days-of-go.html
Video:
https://youtu.be/elu0VpLzJL8 -- Go for pythonista's -- 51m
https://youtu.be/woCg2zaIVzQ -- Concurrency + Composition -- 14m
https://youtu.be/B-r3Wf_I2Lk -- General stuff -- 18m
https://www.youtube.com/playlist?list=PLMW8Xq7bXrG58Qk-9QSy2HRh2WVeIrs7e -- Others
@danwakefield
danwakefield / main.go
Last active August 29, 2015 14:18 — forked from creack/main.go
package main
import (
"crypto/rand"
"flag"
"fmt"
"io"
"log"
"net"
"os"

OpenStack Style Guidelines

OpenStack has a set of style guidelines for clarity. OpenStack is a very large code base (over 1 Million lines of python), spanning dozens of git trees, with over a thousand developers contributing every 12 months. As such common style helps developers understand code in reviews, move between projects smoothly, and overall make the code more maintainable.

Step 0

Which Shell to Use

Bash is the only shell scripting language permitted for executables.

Executables must start with #!/bin/bash and a minimum number of flags. Use set to set shell options so that calling your script as bash <script_name> does not break its functionality.