- Game of Thrones characters
- First generation Pokémon,
- 90s TV show characters/catch phrases/references
- Rejected Girl Scout cookie flavours
- Disney characters
- Famous dead people
- Famous living people
- Catastrophic events from history
- Things you find on instagram
- Notable tax protesters
This file contains 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 ( | |
"crypto/rand" | |
"crypto/sha256" | |
"fmt" | |
"time" | |
"code.google.com/p/go.crypto/pbkdf2" | |
) |
This file contains 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 ( | |
"net/http" | |
"github.com/gorilla/mux" | |
) | |
func main() { | |
http.Handle("/", getRouter()) |
This file contains 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
path := strings.TrimRight(os.Getenv("GOPATH"), "/") + "/src/github.com/DramaFever/go-logging/log.go" | |
line := 463 | |
if testing.Coverage() > 0 { | |
path = "github.com/DramaFever/go-logging/_test/_obj_test/log.go" | |
line = 448 | |
} |
This file contains 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
$ cat /proc/meminfo | |
MemTotal: 3800808 kB | |
MemFree: 163492 kB | |
MemAvailable: 2301612 kB | |
Buffers: 147920 kB | |
Cached: 2088052 kB | |
SwapCached: 0 kB | |
Active: 2386304 kB | |
Inactive: 999916 kB | |
Active(anon): 1150640 kB |
This file contains 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
SUBPACKAGES := $(foreach pkg,$(sort $(dir $(shell find . -type f -name '*.go'))),$(patsubst %/,%,${pkg})) | |
# run tests with coverage reports. | |
test: | |
@${GO} vet ./... | |
@mkdir -p coverage | |
@for pkg in ${SUBPACKAGES}; do \ | |
go test $$pkg -v -coverprofile=coverage/$${pkg/\//.}.out; \ | |
done |
This file contains 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
String sdCard = android.os.Environment.getExternalStorageDirectory().getPath(); | |
String root = sdCard + "/com.yourapp/"; | |
public static void makeDir(String dir){ | |
File fileObj = new File(root+dir); | |
fileObj.mkdir(); | |
} |
This file contains 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
public static void sdCardMountCheck() { | |
String state = android.os.Environment.getExternalStorageState(); | |
if(android.os.Environment.MEDIA_MOUNTED.equals(state)) { | |
sdCardReadable = true; | |
sdCardWritable = true; | |
}else if(android.os.Environment.MEDIA_MOUNTED_READ_ONLY.equals(state)) { | |
sdCardReadable = true; | |
sdCardWritable = false; | |
}else{ | |
sdCardReadable = false; |
This file contains 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 com.suchagit.android2cloud.util; | |
import java.io.UnsupportedEncodingException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.apache.http.HttpEntityEnclosingRequest; | |
import org.apache.http.NameValuePair; | |
import org.apache.http.client.entity.UrlEncodedFormEntity; | |
import org.apache.http.client.methods.HttpGet; |
This file contains 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 com.suchagit.android2cloud.util; | |
import java.util.List; | |
import org.apache.http.NameValuePair; | |
import org.apache.http.client.methods.HttpPost; | |
import org.apache.http.message.BasicNameValuePair; | |
public class AddLinkRequest extends HttpPost { | |
OlderNewer