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
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
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <schema name="wikipedia" version="1.2"> | |
| <types> | |
| <fieldType name="string" class="solr.StrField" sortMissingLast="true" omitNorms="true"/> | |
| <fieldType name="int" class="solr.TrieIntField" precisionStep="0" omitNorms="true" positionIncrementGap="0"/> | |
| <fieldType name="text" class="solr.TextField" positionIncrementGap="100"> | |
| <analyzer type="index"> | |
| <tokenizer class="solr.WhitespaceTokenizerFactory"/> | |
| <filter class="solr.WordDelimiterFilterFactory" generateWordParts="1" generateNumberParts="1" catenateWords="1" catenateNumbers="1" catenateAll="1" splitOnCaseChange="0" splitOnNumerics="0" stemEnglishPossessive="1"/> |
| run: clean example | |
| ./example | |
| include $(GOROOT)/src/Make.inc | |
| TARG=example | |
| GOFILES=\ | |
| main.go\ | |
| hub.go\ | |
| conn.go |
| run: clean example | |
| ./example | |
| include $(GOROOT)/src/Make.inc | |
| TARG=example | |
| GOFILES=\ | |
| main.go\ | |
| hub.go\ | |
| conn.go |
| #!/bin/bash | |
| # This is a simple build script and will be executed on your CI system if | |
| # available. Otherwise it will execute while your application is stopped | |
| # before the deploy step. This script gets executed directly, so it | |
| # could be python, php, ruby, etc. | |
| tarball="https://go.googlecode.com/files/go1.0.3.linux-amd64.tar.gz" | |
| # Set GOROOT since we don't use GOROOT_FINAL | |
| mkdir -p $OPENSHIFT_HOMEDIR/app-root/data/go |
| /* Tiny web server in Golang for sharing a folder | |
| Copyright (c) 2010 Alexis ROBERT <[email protected]> | |
| Contains some code from Golang's http.ServeFile method, and | |
| uses lighttpd's directory listing HTML template. */ | |
| package main | |
| import ( | |
| "compress/gzip" |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/hex" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net" |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/hex" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net" |
| go run hello_world.go | |
| Hello world! |
| //manifest.json | |
| { | |
| "name": "bookmark-search-export", | |
| "version": "1.0", | |
| "manifest_version": 2, | |
| "description": "This extention will dump all bookmarks", | |
| "browser_action": { | |
| "default_icon": "icon.png" | |
| }, | |
| "background": { |