Skip to content

Instantly share code, notes, and snippets.

@sethamclean
sethamclean / walk generator
Created March 10, 2014 22:21
filepath.walk go routine generator
package main
import (
"path/filepath"
"fmt"
"os"
)
func main(){
location := "../gocode/"
class MyFunc
constructor: ->
@name = "default name"
return "Hello from MyFunc(). this.name = " + @name
$get: ->
@name = "new name"
"Hello from MyFunc.$get(). this.name = " + @name
app = angular.module("app", [])
@waxzce
waxzce / git-gitolite-clone
Created September 15, 2012 17:56
Clone all git repo from a gitolite
#!/bin/bash
# USAGE : git gitolite-clone <user@host>
GITOLITE_URL=$1
GOGO=0
for i in $(ssh $GITOLITE_URL info)
do
if [ $GOGO -eq 1 ] ; then
if [[ $i != "R" && $i != "W" ]] ; then
@pitch-gist
pitch-gist / gist:2999707
Created June 26, 2012 22:21
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>