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 base64 | |
import json | |
import random | |
import struct | |
import time | |
vector_96 = tuple(random.uniform(0.0, 1.0) for _ in range(96)) | |
vector_96_csv = ','.join(str(x) for x in vector_96) | |
vector_96_json = json.dumps(vector_96) | |
vector_96_byte_buffer = struct.pack("96f", *vector_96) |
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
# Create a table and add data in CQL 3 | |
CREATE TABLE UserTweets | |
( | |
tweet_id bigint, | |
user_name text, | |
body text, | |
timestamp timestamp, | |
PRIMARY KEY (user_name, tweet_id) | |
); |
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
*.py[cod] | |
# C extensions | |
*.so | |
# Packages | |
*.egg | |
*.egg-info | |
dist | |
build |
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
Hi Toula, | |
Hope you had a nice weekend. | |
Just wondering if you had any luck locating information about Stewart Duff Drive not being a public road ? | |
I was also wondering if the Airport could release some information on how it arrived at the "estimate" that 30% of the traffic flow was not airport traffic (as reported here http://www.stuff.co.nz/dominion-post/news/7175091/Airport-drop-and-dash-or-you-ll-pay-cash) | |
Thanks | |
Aaron |
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
From: aaron morton | |
Subject: Fwd: Wellington Airport Website feedback: Airport Service, Aaron Morton | |
Date: 28 June 2012 3:39:04 PM NZST | |
To: [email protected] | |
Hi, | |
I understand you are the Councillor for the Eastern suburbs. I live in Miramar and received the following response from the airport in response to an enquiry about the proposed road changes. | |
I have asked them for evidence to support their claim that "Stewart Duff Dive is not a public road but part of the airport, ". |
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
while true; do date; diff <(nodetool -h localhost netstats) <(sleep 5 && nodetool -h localhost netstats); done |
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 class NanoTest | |
{ | |
/** | |
* usage: NanoTest - run for 100ms and count unique results from System.nanoTest() | |
* NanoText x - run for x ms and count unique results from System.nanoTest() | |
* @param args | |
*/ | |
public static void main(String[] args) | |
{ | |
final long duration = (args.length > 0 ? Long.parseLong(args[0]) : 100); |
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
aarons-MBP-2011:ReferenceLibrary aaron$ curl keys.gnupg.net | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head><title>Document has moved</title></head> | |
<body><h1>Document has moved</h1> | |
<p>This document has moved to <a href="http://mud.stack.nl/">http://mud.stack.nl/</a>.</p></body></html> | |
aarons-MBP-2011:ReferenceLibrary aaron$ |
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
Using | |
distribute==0.6.25 | |
pip 1.0.2 | |
Works in dev when using this in the pip requirements file (relative source reference)... | |
-e packages/mas_common | |
-e packages/mas_hooks | |
Fails when... | |
* building sdist for the packages |
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
"".join("{0:x}".format(ord(c)) for c in "thekey") |
NewerOlder