Skip to content

Instantly share code, notes, and snippets.

@kjam
kjam / twitter_example.html
Created July 21, 2011 15:09
Twitter Search
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$.getJSON('http://search.twitter.com/search.json?q=earthquake&lang=en&callback=?', function(data) {
var data = data.results;
var html = "<ul>";
for(var i=0; i<data.length; i++) {
html += "<li><a href='http://twitter.com/" + data[i].from_user + "'>@"
@kjam
kjam / basic_web_page.html
Created June 24, 2012 15:24
Basic Web Page
<html>
<head>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
//This is where we will put script later.
</script>
</head>
<body>
<h2>Twitter</h2>
@kjam
kjam / twitter_search_with_map.html
Created June 24, 2012 16:24
Twitter Search With Map
<!DOCTYPE html>
<html>
<head>
<title>Twitter + Google</title>
<meta name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta charset="UTF-8">
<style type="text/css">
html, body, #map_canvas {
margin: 0;
$24 for 7.5k / day
$79 for 25k / day
$299 for 100k / day
1 event is 5k disk
- SLAs on any pricetag over $200?
- 30 day retention by default
- .25x price for each 30 days?
- $1 per 1k events/per/day after 100k
from __future__ import print_function
import agate
import xlrd
from xlrd.sheet import ctype_text
text_type = agate.Text()
number_type = agate.Number()
date_type = agate.Date()
import agate
import xlrd
from xlrd.sheet import ctype_text
text_type = agate.Text()
number_type = agate.Number()
boolean_type = agate.Boolean()
date_type = agate.Date()
def remove_bad_chars(val):
import json
import agate
from print_int_table_issue import * #note: to not throw the other error you'll need to comment out the last line
def get_country(country_row):
return country_dict.get(country_row['Country / Territory'].lower())
country_dict = {}
country_json = json.loads(open('earth-cleaned.json', 'rb').read())

Keybase proof

I hereby claim:

  • I am kjam on github.
  • I am kjam (https://keybase.io/kjam) on keybase.
  • I have a public key whose fingerprint is E197 50BD D484 DFF5 671D 7874 1F54 1EC6 1DE7 119B

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.