This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| #!/bin/sh | |
| echo "recursively removing .svn folders from" | |
| pwd | |
| rm -rf `find . -type d -name .svn` |
| package main | |
| import "fmt" | |
| func main() { | |
| a := make([]int, 1, 100) | |
| a[0] = 10 | |
| fmt.Printf("a:%v, &a[0] %p, &a %p\n\n", a, &a[0], &a) | |
| b := append(a, 20) |
| #!/usr/bin/env python | |
| # -*- coding: utf8 -*- | |
| # author: amoblin <[email protected]> | |
| import sys, re, urllib2, os, urllib | |
| beauty_url = "http://huaban.com/favorite/beauty/" | |
| #beauty_url = "http://huaban.com/" | |
| pin_re = '<a href="/pins/(.+?)/"' |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| ) | |
| func bye(s string) { | |
| log.Println("bye:", s) | |
| } |
| // project | |
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| for i := 0; i < 5; i++ { |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer