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:
on run {input} | |
try | |
set emacs_client_path to "usr/local/bin/" | |
set pathtofile to quoted form of POSIX path of input | |
set frameVisible to do shell script emacs_client_path & "emacsclient -e '(<= 2 (length (visible-frame-list)))'" | |
if frameVisible is "t" then | |
do shell script emacs_client_path & "emacsclient -n " & pathtofile | |
else | |
-- there is a not a visible frame, launch one |
#!/bin/bash | |
while : | |
do | |
clear | |
git --no-pager log --graph --abbrev-commit --decorate --color=always --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) - %C(dim red)%an%C(reset)%C(bold yellow)%d%C(reset)' --all $* | |
sleep 1 | |
done |
while true; do | |
git --no-pager diff | |
sleep 1 | |
clear | |
done |
while true; do | |
git --no-pager diff --cached | |
sleep 1 | |
clear | |
done |
GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.
#!/usr/bin/env python | |
import sys | |
import subprocess | |
def find_pid(port): | |
pid = subprocess.call(['lsof', '-t', '-i', ":{}".format(port)]) | |
return(pid) | |
def kill_all(list_of_ports): |
kill -9 $(lsof -t -i PORTNUMBER) |
ls = log --graph --abbrev-commit --decorate --color=always --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) - %C(dim red)%an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
lsa = log --graph --abbrev-commit --decorate --color=always --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) - %C(dim red)<%an, %cN>%C(reset)%C(bold yellow)%d%C(reset)' --all |
% Author : Dheepak Krishnamurthy | |
% License : BSD 3 Clause | |
import org.zeromq.ZMQ; | |
ctx = zmq.Ctx(); | |
socket = ctx.createSocket(ZMQ.REP); | |
socket.bind('tcp://127.0.0.1:7575'); |