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
import json | |
from math import radians, cos, sin, acos, sqrt, pi | |
DUBLIN_HQ = {"lat" : 53.3381985, | |
"lon" : -6.2592576} | |
EARTH_RADIUS = 6371 #km | |
FILTER_RADIUS = 100 #km | |
#two points, expected result, floating error epsilon |
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
TESTS = [ | |
([1,[2,3],6],[1,2,3,6]), | |
([2,[[3],1,9]],[2,3,1,9]), | |
([32],[32]), | |
([[[[5]]]],[5]), | |
([[[[[[-1]]]]]],[-1]), | |
([1,[[[[[[[9]]]]]]],[[[[[[9]]]]]]],[1,9,9]), | |
([],[]) | |
] |
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
import java.io.Console; | |
import java.util.regex.Pattern; | |
import java.util.regex.Matcher; | |
public class RegexTestHarness { | |
public static void main(String[] args){ | |
Console console = System.console(); | |
if (console == null) { | |
System.err.println("No console."); |
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
{ | |
"error": { | |
"name": "ValidationError", | |
"status": 422, | |
"message": "The `client` instance is not valid. Details: `email` Email already exists (value: \"a@b.com\").", | |
"statusCode": 422, | |
"details": { | |
"context": "client", | |
"codes": { | |
"email": ["uniqueness"] |
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
Error: Can't set headers after they are sent. | |
at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:335:11) | |
at ServerResponse.header (/Users/andi/xworkspace/woow/loopback-example-passport/node_modules/loopback/node_modules/express/lib/response.js:718:10) | |
at ServerResponse.location (/Users/andi/xworkspace/woow/loopback-example-passport/node_modules/loopback/node_modules/express/lib/response.js:835:8) | |
at ServerResponse.redirect (/Users/andi/xworkspace/woow/loopback-example-passport/node_modules/loopback/node_modules/express/lib/response.js:874:8) | |
at complete (/Users/andi/xworkspace/woow/loopback-example-passport/node_modules/passport/lib/middleware/authenticate.js:241:26) | |
at /Users/andi/xworkspace/woow/loopback-example-passport/node_modules/passport/lib/middleware/authenticate.js:250:15 | |
at pass (/Users/andi/xworkspace/woow/loopback-example-passport/node_modules/passport/lib/authenticator.js:427:14) | |
at Authenticator.transformAuthInfo (/Users/andi/xworkspace/woow/loopback- |
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
10-05 15:38:45.910: E/mono-rt(17633): [ERROR] FATAL UNHANDLED EXCEPTION: System.MethodAccessException: Method `(wrapper dynamic-method) object:dynamic_callback_0 (intptr,intptr)' is inaccessible from method `Cheesebaron.SlidingUpPanel.SlidingUpPanelLayout/SavedState:InitializeCreator ()' |
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
Xamarin Studio Community | |
Version 6.1.1 (build 15) | |
Installation UUID: b3096ed4-0118-4e0d-87f4-a1fe79ffc301 | |
Runtime: | |
Mono 4.6.1 (mono-4.6.0-branch-c8sr0/abb06f1) (64-bit) | |
GTK+ 2.24.23 (Raleigh theme) | |
Package version: 406010003 | |
NuGet |
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
11-07 08:23:48.047: E/Watchdog(3423): !@Sync 1435 [11-07 08:23:48.060] | |
11-07 08:24:12.817: E/ContactsProvider_EventLog(4168): Flush buffer to file cnt : 5 size : 1Kb duration : 117ms lastUpdatedAfter : 180367ms | |
11-07 08:24:18.047: E/Watchdog(3423): !@Sync 1436 [11-07 08:24:18.062] | |
11-07 08:24:48.047: E/Watchdog(3423): !@Sync 1437 [11-07 08:24:48.063] | |
11-07 08:25:18.057: E/Watchdog(3423): !@Sync 1438 [11-07 08:25:18.065] | |
11-07 08:25:48.057: E/Watchdog(3423): !@Sync 1439 [11-07 08:25:48.066] | |
11-07 08:26:18.057: E/Watchdog(3423): !@Sync 1440 [11-07 08:26:18.067] | |
11-07 08:26:20.417: E/BtGatt.GattService(5171): [GSIM LOG]: gsimLogHandler: null, msg: MESSAGE_REPORT_RESULT_4_BATTERY | |
11-07 08:26:48.057: E/Watchdog(3423): !@Sync 1441 [11-07 08:26:48.069] |
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
11-10 10:41:03.688: I/ReschedulableTimer(711): [#CMH#] ReschedulableTimer started | |
11-10 10:41:04.348: D/Sensorhubs(3167): readContextData: 1, 1, 7, 0 | |
11-10 10:41:04.348: D/SensorHubManager(3468): onGetSensorHubDataLocked: library(4) = 1, 1, 7, 0 | |
11-10 10:41:04.348: D/CAE(3468): onGetSensorHubData(SensorHubParserProvider.java:92) - onGetSensorHubData Event [event buffer len :4], AP_WAKEUP | |
11-10 10:41:04.348: I/CAE(3468): parse(SensorHubParserProvider.java:188) - buffer size = 4 | |
11-10 10:41:04.348: I/CAE(3468): parse(SensorHubParserProvider.java:199) - 1, 1, 7, 0, | |
11-10 10:41:04.358: D/CAE(3468): display(ContextProvider.java:375) - ================= AUTO_ROTATION ================= | |
11-10 10:41:04.358: I/CAE(3468): display(ContextProvider.java:391) - Angle=[0] | |
11-10 10:41:04.358: D/SContextService(3468): updateSContext() : event = Auto Rotation | |
11-10 10:41:04.828: D/Sensorhubs(3167): readContextData: 1, 1, 7, -1 |
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
11-10 10:43:39.159: I/CAE(3496): parse(SensorHubParserProvider.java:199) - 1, 1, 7, 0, | |
11-10 10:43:39.159: D/CAE(3496): display(ContextProvider.java:375) - ================= AUTO_ROTATION ================= | |
11-10 10:43:39.159: I/CAE(3496): display(ContextProvider.java:391) - Angle=[0] | |
11-10 10:43:39.159: D/SContextService(3496): updateSContext() : event = Auto Rotation | |
11-10 10:43:39.189: W/ContextImpl(3496): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:830 com.absolute.android.persistservice.a.run:1244 java.lang.Thread.run:818 <bottom of call stack> <bottom of call stack> | |
11-10 10:43:40.089: D/InputReader(3496): Input event(4): value=1 when=92885659000 | |
11-10 10:43:40.089: D/InputReader(3496): Input event(4): value=1 when=92885659000 | |
11-10 10:43:40.089: I/InputReader(3496): Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.28 ] when=92885659000 | |
11-10 10:43:40.089: D/InputReader(3496): lastThreadEndTime = 89293340090, currentThreadStartTime = 8929 |
OlderNewer