Rank | Who | Followers | Following | Ratio |
---|---|---|---|---|
1 | BTCFoundation | 35407 | 224 | 158.06697 |
2 | learnemacs | 4834 | 414 | 11.676329 |
3 | B1TCOIN | 21869 | 9725 | 2.2487404 |
4 | BitcoinPRBuzz | 13507 | 6483 | 2.0834491 |
5 | magistratic | 58 | 28 | 2.0714285 |
6 | EVRY_ASA | 657 | 364 | 1.8049451 |
7 | erikfossen | 1483 | 868 | 1.7085253 |
8 | klingsen | 386 | 258 | 1.496124 |
This file contains hidden or 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 class ArrayToIntUtil { | |
public static int a2i(int... a) { | |
int result = 0; | |
int f = (int) Math.pow(10, a.length); | |
for (int i : a) result += i * (f /= 10); | |
return result; | |
} | |
public static void main(String... args) { |
This file contains hidden or 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
def partition(partition_count, id_range): | |
""" | |
Partitions an integer range into partition_count partitions of uniform size. | |
id_range specifies the integer range to partition (a tuple (from, to)). | |
""" | |
partition_size = ceil((id_range[1] - id_range[0]) / partition_count) + 1 | |
for x in range(0, partition_count): | |
from_ = int(x * partition_size) + id_range[0] | |
to = min(int(from_ + partition_size - 1), id_range[1]) | |
yield (from_, to) |
This file contains hidden or 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
println("date,msisdn,message") | |
scala.io.Source.fromFile("problem.log").getLines().foreach { line => | |
val m = "^(.{19}).*msisdn='(.{10}).*msg='(.*)', status.*".r.findFirstMatchIn(line).get | |
println(s"""${m.group(1)},${m.group(2)},"${m.group(3)}"""") | |
} |
This file contains hidden or 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
Verifying myself: My Bitcoin username is +haakon. https://onename.io/haakon |
This file contains hidden or 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
/* | |
Enables loops such as this: | |
var i = 10 | |
repeat { | |
print(s"i is $i\n") | |
i = i - 1 | |
} until (i == 0) | |
*/ |
This file contains hidden or 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
// ==UserScript== | |
// @name bt-abonnent | |
// @namespace haakonnilsen.com | |
// @include http://www.bt.no/* | |
// @version 2 | |
// @grant none | |
// ==/UserScript== | |
// Only works with JavaScript disabled. You can use YesScript for this. |
This file contains hidden or 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
// ==UserScript== | |
// @name Sportsfri Bergens Tidende | |
// @namespace http://haakonnilsen.com | |
// @description Bergens Tidende uten sport | |
// @include http://www.bt.no/* | |
// @grant none | |
// ==/UserScript== | |
var boring = "sport|fotball|live|sprek"; | |
var filterRE = new RegExp(boring); |
This file contains hidden or 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
// ==UserScript== | |
// @name Sportsfri Aftenposten | |
// @namespace http://haakonnilsen.com | |
// @description Aftenposten uten sport | |
// @include http://www.aftenposten.no/* | |
// @include https://www.aftenposten.no/* | |
// @include http://www.ba.no/ | |
// @include http://www.bt.no/* | |
// @include https://www.vg.no/ | |
// @grant none |
This file contains hidden or 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
// ==UserScript== | |
// @name bano-nopaywall | |
// @namespace haakonnilsen.com | |
// @include http://www.ba.no/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
function remAll(xpath) { | |
var els = document.evaluate(xpath, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); |
OlderNewer