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:
This article has been given a more permanent home on my blog. Also, since it was first written, the development of the Promises/A+ specification has made the original emphasis on Promises/A seem somewhat outdated.
Promises are a software abstraction that makes working with asynchronous operations much more pleasant. In the most basic definition, your code will move from continuation-passing style:
getTweetsFor("domenic", function (err, results) {
// the rest of your code goes here.| #Session controller provides a token | |
| #/controllers/api/sessions_controller.rb | |
| class Api::SessionsController < Devise::SessionsController | |
| before_filter :authenticate_user!, :except => [:create] | |
| before_filter :ensure_params_exist, :except => [:destroy] | |
| respond_to :json | |
| def create | |
| resource = User.find_for_database_authentication(:email => params[:user_login][:email]) | |
| return invalid_login_attempt unless resource |
| #!/usr/bin/env python | |
| import urllib | |
| import pprint | |
| import amazonproduct | |
| from BeautifulSoup import BeautifulSoup | |
| from review import db | |
| AWS_KEY = 'YOUR_AWS_KEY' | |
| SECRET_KEY = 'YOUR_AWS_SECRET_KEY' | |
| API_PAGE_LIMIT = 10 |
If Animal and Fozzie wanted to pair on Animals machine and they both have access to shared.muppets.com then they could use the following setup
~/.ssh/configHost tunnel_from_muppets
Hostname space.muppets.com
RemoteForward 1235 localhost:22
As configured in my dotfiles.
start new:
tmux
start new with session name:
| require 'net/http' | |
| p = Net::HTTP.get(URI.parse('http://bukk.it')) | |
| regexp = /href=\"(.*?\..*?)\"/ | |
| images = p.scan(regexp).flatten | |
| image = images[rand(images.length)] | |
| puts "http://bukk.it/" + image |
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/hierarchical-bar-chart |
| 56k: "https://123.campfirenow.com/images/56k.gif" | |
| bell: ":bell:" | |
| bezos: ":laughing::thought_balloon:" | |
| bueller: "anyone?" | |
| butts: ":open_hands: :smoking:" | |
| clowntown: "https://123.campfirenow.com/images/clowntown.gif" | |
| cottoneyejoe: ":notes::hear_no_evil::notes:" | |
| crickets: "hears crickets chirping" | |
| dadgummit: "dad gummit!! :fishing_pole_and_fish:" | |
| dangerzone: "https://123.campfirenow.com/images/dangerzone.png" |