Skip to content

Instantly share code, notes, and snippets.

View tsenart's full-sized avatar
🎯
Focusing

Tomás Senart tsenart

🎯
Focusing
View GitHub Profile
@tsenart
tsenart / before.go
Last active November 6, 2015 14:51 — forked from felixge/before.go
var sleep time.Duration
known := map[string]struct{}{}
for {
time.Sleep(sleep)
ips, _ := readIPs("ips.json")
for _, ip := range ips {
if _, ok := known[ip]; !ok {
known[ip] = struct{}{}
doSomething(ip)
}
@tsenart
tsenart / LICENSE.txt
Created May 19, 2011 18:11 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
Copyright (c) 2011 YOUR_NAME_HERE, YOUR_URL_HERE
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions: