This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
function importNode(node, allChildren, doc) { | |
var a, i, il; | |
doc = doc || document; | |
try { | |
return doc.importNode(node, allChildren); | |
} catch (e) { | |
switch (node.nodeType) { | |
case document.ELEMENT_NODE: | |
var newNode = doc.createElementNS(node.namespaceURI, node.nodeName); | |
if (node.attributes && node.attributes.length > 0) { |
.video-container{ | |
width: 100%; | |
position: relative; | |
padding: 56.3% 0 0 0; //56.3% = 16:9 ratio | |
} | |
.video-container > .video{ | |
position: absolute; | |
top: 0; | |
} |
#!/bin/bash | |
# Performs a "safe" merge, confirming the commits to be merged, the merge | |
# strategy, any conflicts, etc. | |
# Useage: | |
# $ git safemerge master | |
# Commits: | |
# * bc911ef Fix bug in widget | |
# * e80f8d1 Clean things up | |
# | |
# Changes: |
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
with a hat tip to Sublime Text 2 Shortcuts
⌘; | autocomplete |
⌘⌥B | instant replay |
⌘⌥E | search across all tabs |
<html> | |
<head> | |
<title>Wordnik demo from JavaScript</title> | |
<script src="http://static.smallpicture.com/bootstrap/js/jquery-1.9.1.min.js"></script> | |
<script> | |
var baseUrl = "http://api.wordnik.com/v4/word.json/"; | |
var apiKey = "a2a73e7b926c924fad7001ca3111acd55af2ffabf50eb4ae5"; //demo key from developer.wordnik.com | |
function getSynonyms (theWord, callback) { | |
var url = baseUrl + theWord + "/relatedWords?useCanonical=true&relationshipTypes=synonym&limitPerRelationshipType=100&api_key=" + apiKey; | |
var jxhr = $.ajax ({ |
import ui | |
# Mapping based on http://www.upsidedowntext.com/unicode | |
CHARMAP = {'!': '\xc2\xa1', '"': ',,', | |
"'": ',', '&': '\xe2\x85\x8b', | |
')': '(', '(': ')', ',': "'", | |
'.': '\xcb\x99', | |
'1': '\xc6\x96', | |
'0': '0', '3': '\xc6\x90', | |
'2': '\xe1\x84\x85', |
Linux installation notes (tested under Ubuntu 14.04LTS/12.04LTS), assuming VirtualBox is already installed on host.
This is a guide on how to email securely.
There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.