- Retweets/favorites (both amount and by whom)
- Scores from Klout/PeerIndex
- Topics
- Whilelist
- Tweets/second (the less activity the less strict)
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 long CalculateChecksum(long value) | |
{ | |
long sum = 0; | |
for (int i = 0; value != 0; i++) | |
{ | |
for (var j = (value % 10) * (2 - i % 2); j != 0; j /= 10) | |
{ | |
sum += j % 10; | |
} | |
value /= 10; |
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 interface IApplication | |
{ | |
IResponse Respond(IRequest request); | |
} | |
public interface IRequest | |
{ | |
string Method { get; } | |
string Uri { get; } |
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
[Bb]in | |
[Oo]bj | |
*.suo | |
*.user |
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
var uri = new Uri("http://example.com/?"); | |
var uriBuilder = new UriBuilder(uri); | |
for (int i = 0; i < 10; i++) | |
{ | |
uriBuilder.Query = uriBuilder.Query; | |
} | |
// uriBuilder.Uri.AbsoluteUri == "http://example.com/???????????" |
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
You can use this for all sorts of crazy. It seems it will continue at the exact character position where it left, so you can both prepend and append stuff while it's running. |
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
% chruby 1.9.2 | |
% echo "pid = Process.spawn('sh -c \"exit 0\"'); _, status = Process.wait2(pid); warn status.inspect; warn status == 0; warn status.exitstatus == 0" | ruby | |
#<Process::Status: pid 50482 exit 0> | |
true | |
true | |
% echo "pid = Process.spawn('sh -c \"exit 0\"'); _, status = Process.wait2(pid); warn status.inspect; warn status == 1; warn status.exitstatus == 1" | ruby | |
#<Process::Status: pid 50454 exit 0> | |
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
touch foo | |
chmod u+x foo | |
echo 'require "fileutils"; FileUtils.cp("foo", "foo-1.9.2")' | (chruby 1.9.2 && ruby) | |
echo 'require "fileutils"; FileUtils.cp("foo", "foo-1.9.3")' | (chruby 1.9.3 && ruby) | |
ls -l |
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 ( | |
"log" | |
"net/http" | |
"strconv" | |
"time" | |
"gopkg.in/antage/eventsource.v1" | |
) |
OlderNewer