Skip to content

Instantly share code, notes, and snippets.

View chelm's full-sized avatar

Christopher Helm chelm

View GitHub Profile
@chelm
chelm / map.geojson
Created August 27, 2013 19:56
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chelm
chelm / map.geojson
Created August 21, 2013 20:17
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chelm
chelm / map.geojson
Last active December 20, 2015 18:48
via:geojson.io
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<meta charset="utf-8">
<style>
.graticule {
fill: none;
stroke: #999;
}
.states {
@chelm
chelm / index.html
Last active December 11, 2015 03:48
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<script src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
body{
background:white;
window.log=function(){log.history=log.history||[];log.history.push(arguments);if(this.console){console.log(Array.prototype.slice.call(arguments))}};
F1.Maker.current_map.addFeatures(2, [{geometry:{type:'Point',coordinates:[0,5]}}], false, true)
F1.Maker.current_map.saveLayerFeatures(2)
[root@ip-10-38-19-9 ~]# rabbitmqctl list_exchanges
Listing exchanges ...
state_transition.exchange topic
amq.rabbitmq.trace topic
amq.rabbitmq.log topic
map_preview_map.exchange topic
amq.match headers
log.exchange topic
amq.headers headers
refiner.exchange topic
/**
*
* Base64 encode / decode
* http://www.webtoolkit.info/
*
**/
var Base64 = {
// private property
require 'rubygems'
require 'mongo'
limit = ARGV[0].to_i || 1000
db = Mongo::Connection.new('db.more-eyes.t-sciences.com').db('MoreEyesDev')
db.authenticate('moreeyes', 'Fun$tu55')
coll = db.collection('ACSP')
start = Time.now
puts "Sending... #{Time.now}"