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:
;;; org-airmail.el - Support for links to Airmail 3 messages in Org | |
(require 'org) | |
(org-add-link-type "airmail" 'org-airmail-open) | |
(defun org-airmail-open (url) | |
"Visit the Airmail message referenced by URL. | |
URL should be a vaid Airmail message url retrieved from Airmail with | |
'Copy Message Link'." |
# aeris_response.py | |
# response_dict is the dictionary returned from a requests.Response.json() method | |
# call. | |
# | |
# Details regarding the response fields can be found at: | |
# https://www.aerisweather.com/support/docs/api/reference/endpoints/observations/#response | |
response_dict = { | |
"success": True, | |
"error": None, |
<!DOCTYPE html> | |
<!-- Contrbuted by GS --> | |
<html><head></head><body> | |
<?php | |
while (list($var,$value) = each ($_ENV)) { | |
echo "$var => $value <br />"; | |
} | |
?> | |
</body></html> |
m = [[1,2,3],[4,5,6],[7,8,9]] | |
m_t = list(map(list,zip(*m))) | |
# m_t is now -> [[1,4,7], [2,5,8], [3,6,9]] |
""" | |
linecodes.py | |
Credit: StackOverflow via Bas Swinckels | |
URL: https://stackoverflow.com/a/20037521/845744 | |
""" | |
import matplotlib.pyplot as plt | |
import numpy as np | |
def my_lines(ax, pos, *args, **kwargs): | |
if ax == 'x': |
# Makefile | |
# | |
# Converts Markdown to other formats (HTML, PDF, DOCX, RTF, ODT, EPUB) using Pandoc | |
# <http://johnmacfarlane.net/pandoc/> | |
# | |
# Run "make" (or "make all") to convert to all other formats | |
# | |
# Run "make clean" to delete converted files | |
# Convert all files in this directory that have a .md suffix |
#!/usr/bin/env python3 | |
import argparse | |
def read(f): | |
"""Reads the contents of param=value file and returns a dict""" | |
d = {} | |
with open(f,'r') as fin: | |
for item in fin.readlines(): |
/* See: http://jsfiddle.net/oh16h7cj/ */ | |
function addRowHandlers() { | |
var table = document.getElementById("tableId"); | |
var rows = table.getElementsByTagName("tr"); | |
for (i = 0; i < rows.length; i++) { | |
var currentRow = table.rows[i]; | |
var createClickHandler = | |
function(row) | |
{ | |
return function() { |
# -*- coding: utf-8 -*- | |
# Author: Forrest Smith | |
import RPi.GPIO as io | |
import time | |
class USSensor(): | |
'''Simple class for interfacing an HC-SR04''' | |
def __init__(self, echo=None, trigger=None): |