Andy Eschbacher, Map Scientist, CartoDB
@MrEPhysics | eschbacher@cartodb.com
# Title: Fancyimage tag for Jekyll | |
# Authors: Devin Weaver (photos_tag.rb), Brian M. Clapper (img_popup.rb), Patrick Paul (this gist) | |
# Description: Takes full size image, automagically creates thumbnail at specified size, +fancybox | |
# | |
# Adapted from: | |
# http://tritarget.org/blog/2012/05/07/integrating-photos-into-octopress-using-fancybox-and-plugin/ | |
# (photos_tag.rb) https://gist.github.com/2631877 | |
# (img_popup.rb) https://github.com/bmc/octopress-plugins/ | |
# | |
# Syntax {% photo filename [tumbnail] [title] %} |
Andy Eschbacher, Map Scientist, CartoDB
@MrEPhysics | eschbacher@cartodb.com
var BuildTemplate = ' \ | |
<h2 class="small-caps">build</h2> \ | |
'; | |
var BuildV = BaseV.extend({ | |
className: 'btn-group-vertical', | |
initialize: function(o){ | |
this.__player = o.player; |
These notes come straight from Jennifer's presentation; slides at https://docs.google.com/file/d/0B2HGtAJEbG8PdzVPdHcwekI2V2M/edit
In my recent post analyzing 1.1 billion NYC taxi and Uber trips, I included a section about privacy concerns which showed how precise latitude/longitude coordinates of taxi pickups and drop offs could potentially be used to reveal personal information about where people live, work, socialize, etc.
I wrote that if the Taxi & Limousine Commission wanted to avoid disclosing personal information, they would have to remove latitude/longitude from the dataset, perhaps replacing them with coarser census tract location data. Now it seems like maybe census tracts are still too precise.
I hadn't previously investigated how well census tracts uniquely identify pickups and drop offs, but **it turns out that if you
Hello Github,
Pull requests are not serving me well on large reviews. Here are some problems and suggested enhancements that would make me happy.
with recursive thread as ( | |
select id, in_reply_to_status_id, 0 as depth | |
from tweets | |
where in_reply_to_status_id is null | |
union | |
select tweets.id, tweets.in_reply_to_status_id, 1 + thread.depth as depth | |
from thread join tweets on tweets.in_reply_to_status_id = thread.id) | |
select * from thread order by depth desc |
# encoding: UTF-8 | |
Capistrano::Configuration.instance(:must_exist).load do | |
namespace :rails do | |
desc "Open the rails console on one of the remote servers" | |
task :console, :roles => :app do | |
hostname = find_servers_for_task(current_task).first | |
exec "ssh -l #{user} #{hostname} -t 'source ~/.profile && #{current_path}/script/rails c #{rails_env}'" | |
end | |
end |
This is a small collection of scripts showing how to use require.js. It's only one of several ways of setting up a require.js project, but it's enough to get started.
At its core, require.js is about three things:
The following files show how these are achieved.
# MODEL | |
class Case < ActiveRecord::Base | |
include Eventable | |
has_many :tasks | |
concerning :Assignment do | |
def assign_to(new_owner:, details:) | |
transaction do |