I hereby claim:
- I am ahmdrz on github.
- I am ahmdrz (https://keybase.io/ahmdrz) on keybase.
- I have a public key ASAH3-rAevNfyxYlhRVMs-val6CiQPFOQgDyVi5kwreljQo
To claim this, I am signing this object:
query="nature" | |
if [ $# -eq 1 ]; then | |
query=$1 | |
fi | |
base_dir=$HOME/.local/unsplash/ | |
mkdir -p $base_dir |
I hereby claim:
To claim this, I am signing this object:
// test project main.go | |
package main | |
import ( | |
"fmt" | |
"net/http" | |
"strconv" | |
"time" | |
"net/url" |
package main | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"regexp" | |
) | |
func getTitle(url string) (string, error) { |
// | |
// Please read http://codepodu.com/subdomains-with-golang/ | |
// It's just copy and paste :smile: | |
// | |
// | |
// URLs : | |
// http://admin.localhost:8080/admin/pathone | |
// http://admin.localhost:8080/admin/pathtwo | |
// http://analytics.localhost:8080/analytics/pathone | |
// http://analytics.localhost:8080/analytics/pathtwo |
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
type Test struct { | |
Name string | |
} |
package main | |
import ( | |
"strconv" | |
) | |
func ValidateIranianCode(code string) bool { | |
ToInt := func(str string) int { | |
if icode, err := strconv.Atoi(str); err == nil { | |
return icode |
// test project main.go | |
package main | |
import ( | |
"crypto/sha1" | |
"fmt" | |
"time" | |
) | |
func main() { |
package sample | |
import ( | |
"bytes" | |
"fmt" | |
"io" | |
"mime/multipart" | |
"net/http" | |
"os" | |
) |
// http://rosettacode.org/wiki/Levenshtein_distance#Go | |
package main | |
import "fmt" | |
func levenshtein(s, t string) int { | |
if s == "" { return len(t) } | |
if t == "" { return len(s) } | |
if s[0] == t[0] { |