Skip to content

Instantly share code, notes, and snippets.

@hkurokawa
hkurokawa / postNewReviewsHipchat.sh
Last active March 10, 2016 06:54
Post Google Play App. Reviews to HipChat
verifyCmd() {
for cmd in ${@}; do
if [ -z "$(which $cmd)" ]; then
echo "$cmd not found in PATH: $PATH"
return 1
fi
done
}
: ${GOOGLE_BUCKET_ID?"Need to set GOOGLE_BUCKET_ID"}
#include "stdio.h"
int unique_1(char* str) {
int count[256] = {0};
int i = 0;
while(1) {
char c = str[i];
if (c == '\0') return 1;
if (count[c] > 0) {
return -1;
@hkurokawa
hkurokawa / jsonTime.go
Last active August 29, 2015 14:06
Serialize/Deserialize time.Time to/from JSON
// This code snippet demonstrates how to serialize/deserialize a struct
// who has one or more date fields to/from JSON.
//
// Though, this example implements both encoding.TextMarshaler and json.JSONMarshaler,
// either is necessary to format/parse time.Time in JSON format.
package main
import (
"encoding/json"
"fmt"
@hkurokawa
hkurokawa / file0.txt
Last active August 29, 2015 14:05
モバイルアプリ開発者のための mitmproxy 入門 ref: http://qiita.com/hkurokawa/items/9034274cc1b9e1405c68
pip install mitmproxy