- Make testing new releases easy for me. No tedious reinstalling of my common apps
- Some graphical customizations for nerdcred
- Ability to patch things
- Deeper understanding
- Be as vanilla as possible for easy version upgrade
package list | |
var List map[string]string = make(map[string]string) |
<!-- SNIP --> | |
<ul id="sources" class="meta_categories"> | |
<?php | |
function getFormattedCategory($category, $show_count) { | |
$link = get_category_link($category->term_id); | |
$result = "<a href=\"".$link."\">".$category->name."</a>"; | |
if($show_count) { | |
$result .= "(".$category->count.")"; | |
} | |
if($category->category_description != "") { |
# Colors | |
COLOR_WHITE='\033[1;37m' | |
COLOR_LIGHTGRAY='\033[0;37m' | |
COLOR_GRAY='\033[1;30m' | |
COLOR_BLACK='\033[0;30m' | |
COLOR_RED='\033[0;31m' | |
COLOR_LIGHTRED='\033[1;31m' | |
COLOR_GREEN='\033[0;32m' | |
COLOR_LIGHTGREEN='\033[1;32m' | |
COLOR_BROWN='\033[0;33m' |
#if UNITY_EDITOR | |
private static void _init(string AppId) {} | |
private static void _authorize(int permissions) {getInstance().loggedOut();} | |
private static void _logout() {getInstance().loggedOut();} | |
private static void _graphRequest(string methodname, string[] param, string method) {getInstance().requestFailed("Not implemented");} | |
private static void _deleteSession() {} | |
#elif UNITY_IPHONE | |
[System.Runtime.InteropServices.DllImport("__Internal")] | |
extern static private void _init(string AppId); | |
[System.Runtime.InteropServices.DllImport("__Internal")] |
include $(GOROOT)/src/Make.inc | |
TARG=testcase | |
CGOFILES=\ | |
testcase.go\ | |
CGO_OFILES=\ | |
testcase.o\ |
//... | |
func conditionalFailf(w http.ResponseWriter, fail bool, code int, format string, v ...interface{}) bool { | |
if fail { | |
log.Printf(format, v...) | |
http.Error(w, fmt.Sprintf(format, v...), code) | |
} | |
return fail | |
} |
package main | |
import "fmt" | |
func main() { | |
fmt.Println("Hello World") | |
} |
#!/bin/bash | |
PLATFORMS=${PLATFORMS:-"darwin/amd64 linux/amd64"} | |
APPNAME=${1:-$(basename `pwd`)} | |
README=${2:-README.md} | |
VERSION=$(cat $README | tail -n4 | grep -i Version | cut -d' ' -f2) | |
for platform in $PLATFORMS; do | |
export GOOS=$(echo $platform | cut -d/ -f1) | |
export GOARCH=$(echo $platform | cut -d/ -f2) |
#!/bin/bash | |
cd $GOROOT/src | |
./clean.bash | |
for GOOS in darwin linux openbsd freebsd netbsd plan9; do | |
for GOARCH in 386 amd64; do | |
GOOS=$GOOS GOARCH=$GOARCH CGO_ENABLED=0 ./make.bash --no-clean | |
done | |
done | |
unset GOOS |