Skip to content

Instantly share code, notes, and snippets.

View caraesten's full-sized avatar

Cara Esten Hurtle caraesten

View GitHub Profile
Moroccan Lentils
Vegetarian
Ingredients:
1/2 onion
5 cloves garlic, chopped
1 tbsp sea salt
1 tbsp smoked paprika
@caraesten
caraesten / twitter-replies.js
Last active March 30, 2017 18:31
Make the new Twitter replies more scannable
(function() {
'use strict';
var clearText = function () {
var elements = document.querySelectorAll('.ReplyingToContextBelowAuthor:not(.fixed');
elements.forEach(function(e) {
e.innerHTML = e.innerHTML.replace("Replying to ", "");
e.className += " fixed";
e.style.backgroundColor = '#e9f5f8';
});
};
@caraesten
caraesten / reductions.swift
Last active March 21, 2017 04:53
Which sucks less?
// THIS...
var dictionary = [SettingId: OptionId]()
for (k, _) in getSettings() {
let option: OptionId
if let defaultsOption = UserDefaults.standard.value(forKey: k) as? String {
option = defaultsOption
} else {
option = (getDefaultOptionForSetting(id: k)?.0) ?? ""
}
dictionary[k] = option

Vehicle assembly

  1. Install MapSat GPS radio
  2. Verify sufficient power for electric rover (solar panel or RTG that doesn't fall off in dynamic environments)
  3. Does gear touch the ground when extended?
  4. Did you pack enough delta-v? (No.)
  5. Are you planning on returning?
  6. Is your shit manned or did that little probe body ruin the day?
  7. How many crew do you want?
  8. Did you remember ASAS and SAS?
  9. Is RCS needed?
@caraesten
caraesten / twfb_stats.py
Created September 25, 2011 00:32
Get day-by-day usage statistics for Twitter and Facebook statuses
import fbconsole as fb
import twitter
import datetime
import time
from dateutil.parser import parse
twitter_user = "estenh"
fb.authenticate()