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
| diff --git a/iPhoneTrackingAppDelegate.m b/iPhoneTrackingAppDelegate.m | |
| index 1d22ecb..4af2bcf 100644 | |
| --- a/iPhoneTrackingAppDelegate.m | |
| +++ b/iPhoneTrackingAppDelegate.m | |
| @@ -146,7 +146,7 @@ | |
| return NO; | |
| } | |
| - const float precision = 100; | |
| + const float precision = 10000; |
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 logging | |
| from math import exp | |
| from random import random | |
| from time import sleep | |
| from time import time | |
| from uuid import uuid1 | |
| from redis.exceptions import WatchError |
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
| #!/usr/bin/env python | |
| # kd-tree index and nearest neighbour search | |
| # includes doctests, run with: python -m doctest kdtree.py | |
| class KDTree(object): | |
| """ | |
| kd-tree spatial index and nearest neighbour search | |
| http://en.wikipedia.org/wiki/Kd-tree | |
| """ |
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
| -module(netmask). | |
| -export([in_network/3]). | |
| in_network(Net, CIDR, IP) | |
| when is_binary(Net), is_binary(IP), is_integer(CIDR) -> | |
| <<NetworkPrefix:CIDR/bits, _/bits>> = Net, | |
| case IP of | |
| <<NetworkPrefix:CIDR/bits, _Host/bits>> -> | |
| in_net; | |
| _ -> not_in_net |
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
| -module(date_util). | |
| -compile(export_all). | |
| epoch() -> | |
| now_to_seconds(now()) | |
| . | |
| epoch_hires() -> | |
| now_to_seconds_hires(now()) | |
| . |
NewerOlder