This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+ | |
set list " show trailing whiteshace and tabs | |
command! -bar -range=% Trim :<line1>,<line2>s/\s\+$//e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"time" | |
"strconv" | |
"fmt" | |
) | |
var NewBase60Vocab [60]string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers | |
import( | |
"fmt" | |
"github.com/levicole/lev.io/models" | |
"github.com/astaxie/beego" | |
"database/sql" | |
_ "github.com/go-sql-driver/mysql" | |
"github.com/coopernurse/gorp" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import( | |
"os" | |
"fmt" | |
"log" | |
"bufio" | |
) | |
func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
func main() { | |
channela := make(chan int) | |
go func() { | |
for { | |
number := <- channela |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%ol | |
("A".."Z").each do |letter| | |
%li= link_to letter, "#" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for D in $(find . -mindepth 1 -maxdepth 1 -type d) ; do | |
pushd .; | |
cd $D; | |
git pull; | |
popd; | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.colophon .quotes blockquote:before {content: "\201C";} | |
.colophon .quotes blockquote:after{content:"\201D"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def strstr(subject, search) | |
si = 0 | |
subject.length.times do |i| | |
if subject[i] == search[si] | |
if search.length == si + 1 | |
@found_at = i - si | |
break | |
end | |
si += 1 | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function test() { | |
alert("its true") | |
} |