Skip to content

Instantly share code, notes, and snippets.

var polygon = ee.Geometry.Polygon([[
[-119.33364769821117, 46.05123532178373],
[-119.3233620672313, 45.869732769408905],
[-119.04111088542663, 45.873079023065166],
[-119.0396574679861, 46.045448840018565]
]]);
var landsat8 = ee.ImageCollection("LANDSAT/LC8_L1T_TOA_FMASK");
//
// Masking Clouds with Fmask
@aldenks
aldenks / move-todo-done.vim
Last active November 24, 2015 15:29
Use vim as a todo / done list. Set up your todo list in a left vertical split and your done list in the right split.
" Todo Mappings
" Example gif https://twitter.com/aldenks/status/669175868321832960
" Moves an item from a todo list on the left of a split
" to the top of a 'done' list in the split to the right
map > dd<C-w>lggP<C-w>h
" Moves an item from a 'done' list back over to the top
" of a todo list in a split to the left and leaves the cursor
" over in the todo side
map < dd<C-w>hggP
@aldenks
aldenks / fish shell: docker-machine env default
Last active January 13, 2016 21:11
Fish shell command to configure shell for default vm
eval (docker-machine env default | sed 's/export/set -x/g' | sed 's/=/ /g' | tr '\n' ';')
@aldenks
aldenks / widehub.js
Last active August 9, 2021 12:44
Wide github diffs on demand
/**
* Put this in a bookmark, click it when you want to make github pull request diffs extra wide!
* There's a million extensions that do this, but this is only on demand and small enough you
* you can understand it and trust it with access to your github.
*/
javascript: document.body.classList.toggle('full-width');