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
[ | |
{ | |
"source":"event", | |
"query":"Patrick Thomas and Tim Blane", | |
"score":0.99937725 | |
}, | |
{ | |
"source":"event", | |
"query":"Prints and the Pursuit of Knowledge in Early Modern Europe", | |
"score":0.9981272 |
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
float Q_rsqrt( float number ) | |
{ | |
long i; | |
float x2, y; | |
const float threehalfs = 1.5F; | |
x2 = number * 0.5F; | |
y = number; | |
i = * ( long * ) &y; // evil floating point bit level hacking [sic] | |
i = 0x5f3759df - ( i >> 1 ); // what the fuck? [sic] |
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
import com.google.common.collect.Lists; | |
import java.lang.ref.ReferenceQueue; | |
import java.lang.ref.SoftReference; | |
import java.util.List; | |
public class SoftReferenceTest { | |
private static final boolean KEEP_SOFT_REF = false; |
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
mdadm --create --verbose /dev/md0 --level=raid10 --layout=f2 --metadata=1.2 --chunk=256 --raid-devices=16 /dev/sdX1 /dev/sdX2 ... | |
blockdev --setra 65536 /dev/md0 | |
mkfs.xfs -d su=256k,sw=8 /dev/md0 |
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
mdadm --create --verbose /dev/md0 --level=raid0 --metadata=1.2 --chunk=256 --raid-devices=16 /dev/sdX1 /dev/sdX2 ... | |
blockdev --setra 65536 /dev/md0 | |
mkfs.xfs -d su=256k,sw=16 /dev/md0 |
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
$ lein deps | |
Downloading: org/clojure/clojure/1.1.0/clojure-1.1.0.pom from central | |
Downloading: org/clojure/clojure/1.1.0/clojure-1.1.0.pom from clojure | |
Downloading: org/clojure/clojure/1.1.0/clojure-1.1.0.pom from clojure-snapshots | |
Downloading: org/clojure/clojure/1.1.0/clojure-1.1.0.pom from clojars | |
Downloading: org/clojure/clojure/1.1.0/clojure-1.1.0.pom from central | |
Downloading: org/clojure/clojure-contrib/1.1.0/clojure-contrib-1.1.0.pom from central | |
Downloading: org/clojure/clojure-contrib/1.1.0/clojure-contrib-1.1.0.pom from clojure | |
Downloading: org/clojure/clojure-contrib/1.1.0/clojure-contrib-1.1.0.pom from clojure-snapshots | |
Downloading: org/clojure/clojure-contrib/1.1.0/clojure-contrib-1.1.0.pom from clojars |
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
(defproject blackjack "0.1" | |
:dependencies [[org.clojure/clojure "1.1.0"] | |
[org.clojure/clojure-contrib "1.1.0"]] | |
:namespaces [helloworld]) |
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
$ lein deps | |
Downloading: org/clojure/clojure/1.1.0/clojure-1.1.0.pom from central | |
Downloading: org/clojure/clojure/1.1.0/clojure-1.1.0.pom from clojure | |
Downloading: org/clojure/clojure/1.1.0/clojure-1.1.0.pom from clojure-snapshots | |
Downloading: org/clojure/clojure/1.1.0/clojure-1.1.0.pom from clojars | |
Downloading: org/clojure/clojure/1.1.0/clojure-1.1.0.pom from central | |
Downloading: org/clojure/clojure-contrib/1.1.0/clojure-contrib-1.1.0.pom from central | |
Downloading: org/clojure/clojure-contrib/1.1.0/clojure-contrib-1.1.0.pom from clojure | |
Downloading: org/clojure/clojure-contrib/1.1.0/clojure-contrib-1.1.0.pom from clojure-snapshots | |
Downloading: org/clojure/clojure-contrib/1.1.0/clojure-contrib-1.1.0.pom from clojars |
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
//per David Beazley's suggestion modified the import statements | |
//yielding a ~25% improvement | |
from math import * | |
import time | |
radius = 6371 | |
def distance(latA, lngA, latB, lngB): | |
latAr = radians(latA) | |
lngAr = radians(lngA) |
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
//per David Beazley's suggestion modified the import statements | |
//yielding a ~25% improvement | |
from math import * | |
import time | |
radius = 6371 | |
def distance(latA, lngA, latB, lngB): | |
latAr = math.radians(latA) | |
lngAr = math.radians(lngA) |