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:
[user] | |
name = Pavan Kumar Sunkara | |
email = [email protected] | |
username = pksunkara | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
[sendemail] | |
smtpencryption = tls |
class ExampleJob < ApplicationJob | |
queue_as :default | |
def perform(user) | |
# do some work | |
# HACK: get around limitations in devise/warden when rendering | |
# views outside the context of a formal http request | |
renderer = ::ApplicationController.renderer.new | |
renderer_env = renderer.instance_eval { @env } |
This is a collection of the most common commands I run while administering Postgres databases. The variables shown between the open and closed tags, "<" and ">", should be replaced with a name you choose. Postgres has multiple shortcut functions, starting with a forward slash, "". Any SQL command that is not a shortcut, must end with a semicolon, ";". You can use the keyboard UP and DOWN keys to scroll the history of previous commands you've run.
http://www.postgresql.org/download/linux/ubuntu/ https://help.ubuntu.com/community/PostgreSQL
gem 'browserify-rails'
gem 'react-rails'
Browserify-rails allows to use browserify within assets pipeline. React-rails is here only to allow to use #react_component
(and thus, prerendering).
Note that jquery-rails
can be removed from Gemfile, the npm version of jquery
and jquery-ujs
will be used instead.
import React, { PropTypes } from 'react'; | |
import { findDOMNode } from 'react-dom' | |
import getOffset from 'dom-helpers/query/offset'; | |
let ScrollSpy = React.createClass({ | |
childContextTypes: { | |
$scrollSpy: PropTypes.shape({ | |
anchor: PropTypes.func, | |
activeTarget: PropTypes.string | |
}) |
# Shortcut for assigning a heredoc to a variable. | |
# http://stackoverflow.com/a/8088167 | |
define() { | |
# read will have exit status 1 whenever it assigns to a variable or it gets to EOF. | |
read -r -d '' "${1}" || true | |
} | |
_other_aws_common_stuff() { | |
export AWS_DEFAULT_PROFILE="${AWS_PROFILE}" | |
local SCRIPT |
2013-09-28 15:54:13.369 iOSFontListTest[3753:60b] Font Family Names ( | |
"Academy Engraved LET", | |
"Al Nile", | |
"American Typewriter", | |
"Apple Color Emoji", | |
"Apple SD Gothic Neo", | |
Arial, | |
"Arial Hebrew", | |
"Arial Rounded MT Bold", | |
Avenir, |