I hereby claim:
- I am ShawnMilo on github.
- I am shawnmilo (https://keybase.io/shawnmilo) on keybase.
- I have a public key whose fingerprint is CA9E 61AD 5D8A 1DAF 2354 EFED BD07 0528 6606 5487
To claim this, I am signing this object:
| tellme | |
| ====== | |
| :date: 2013-04-02 | |
| :tags: computing, Ubuntu | |
| :category: computing | |
| :slug: tellme | |
| :author: Shawn Milochik | |
| :email: [email protected] | |
| :summary: "tellme" when you're done |
| from uuid import UUID | |
| def validate_uuid4(uuid_string): | |
| """ | |
| Validate that a UUID string is in | |
| fact a valid uuid4. | |
| Happily, the uuid module does the actual | |
| checking for us. |
| package main | |
| // Delete *.pyc files. | |
| // Basically does this: | |
| // find . -name '*.pyc' -exec rm {} \; | |
| import ( | |
| "log" // for writing errors and quitting if something breaks | |
| "os" // for command-line args and getting file info | |
| "path/filepath" // for walking a directory tree |
| package main | |
| import ( | |
| "fmt" // for printing | |
| "os/exec" // for executing system commands | |
| ) | |
| func main() { | |
| // exec.Command() is a function that returns a |
| package main | |
| // Using filenames or filename patters (using glob symbols), find filenames | |
| // with spaces in the names and replace the spaces with underscores. | |
| import ( | |
| "log" | |
| "os" | |
| "path" | |
| "path/filepath" |
| """ | |
| Clean up unnecessary whitespace in a file. | |
| Also fix tabs-to-spaces. | |
| """ | |
| # Must be called from within vim; can't run stand-alone. | |
| import vim | |
| def remove_trailing_spaces(buff): | |
| """ |
I hereby claim:
To claim this, I am signing this object:
| package main | |
| import ( | |
| "encoding/csv" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "log" | |
| "math" | |
| "net/http" |
| diff --git migrate.go migrate.go | |
| index 2659631..0ff1ada 100644 | |
| --- migrate.go | |
| +++ migrate.go | |
| @@ -22,6 +22,14 @@ const ( | |
| Down | |
| ) | |
| +var tableName = "gorp_migrations" | |
| + |
| package main | |
| import ( | |
| "flag" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| "path/filepath" | |
| "time" |