Skip to content

Instantly share code, notes, and snippets.

View matallo's full-sized avatar

Carlos Matallín matallo

View GitHub Profile
@olivierlacan
olivierlacan / launch_sublime_from_terminal.markdown
Created September 5, 2011 15:50
Launch Sublime Text 2 from the Mac OS X Terminal

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

You can find more (official) details about subl here: http://www.sublimetext.com/docs/2/osx_command_line.html

Installation

@jboner
jboner / latency.txt
Last active June 2, 2024 06:32
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@aitor
aitor / gist:5029549
Last active December 14, 2015 04:39
Proposal for DareConf 2013 http://dareconf.com

Digital Legacies and Death

Primary theme: Vulnerability and courage

Talk description

I want to talk about Death.

If there is one thing that has caused fear in every living creature from dawn of history to present day is death. Fear and pain are the basis for our self-preservation instincts but accepting our own mortality is so hard that we've created a whole set of "immortality systems" -national identities, art, religion, work and social structures- to delude ourselves (cf. Ernest Becker) and forget we're mortal.

@demimismo
demimismo / gist:5414443
Last active December 16, 2015 09:39
Install CartoDB-ready gdal on OSX using brew

Install CartoDB-ready gdal on OSX using brew

First of all, remove your previous version of gdal (if any):

brew uninstall gdal --force

Next, you need to remove any references to sqlite and spatialite from brew's gdal formula:

@mkhatib
mkhatib / geo.js
Created May 24, 2013 02:55
A Javascript utility function to generate number of random Geolocations around a center location and in a defined radius.
/**
* Generates number of random geolocation points given a center and a radius.
* @param {Object} center A JS object with lat and lng attributes.
* @param {number} radius Radius in meters.
* @param {number} count Number of points to generate.
* @return {array} Array of Objects with lat and lng attributes.
*/
function generateRandomPoints(center, radius, count) {
var points = [];
for (var i=0; i<count; i++) {
@jbenet
jbenet / simple-git-branching-model.md
Last active April 9, 2024 03:31
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

This is my default career advice for people starting out in geo/GIS, especially remote sensing, adapted from a response to a letter in 2013.

I'm currently about to start a Geography degree at the University of [Redacted] at [Redacted] with a focus in GIS, and I've been finding that I have an interest in working with imagery. Obviously I should take Remote Sensing and other similar classes, but I'm the type of person who likes to self learn as well. So my question is this: What recommendations would you give to a student who is interested in working with imagery? Are there any self study paths that you could recommend?

I learned on my own and on the job, and there are a lot of important topics in GIS that I don’t know anything about, so I can’t give comprehensive advice. I haven’t arrived anywhere; I’m just ten minutes ahead in the convoy we’re both in. Take these recommendations critically.

Find interesting people. You’ll learn a lot more from a great professor (or mentor, or friend, or conference) o

```
-title: "Captain Cook"
-author: "@andrewxhill"
-vizjson: "http://andrew.cartodb.com/api/v2/viz/4ffc80c6-f005-11e3-a32e-0e73339ffa50/viz.json"
- steps: 256
-baseurl: "http://{s}.api.cartocdn.com/base-midnight/{z}/{x}/{y}.png"
```
# Captain Cook
```
@andrewxhill
andrewxhill / cartodb-utils.py
Last active June 11, 2021 15:27
command-line python interface for manipulating data on CartoDB
import os
import urllib
import urllib2
import base64
import json
import sys
import argparse
try:
import requests
except ImportError:
#!/bin/bash
# Configuration #############################################
# For Slack tokens go to https://api.slack.com/#auth
SLACK_TOKEN=""
# In seconds
AWAY_AFTER=120
CHECK_EVERY=10