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:
# | |
# Working with branches | |
# | |
# Get the current branch name (not so useful in itself, but used in | |
# other aliases) | |
branch-name = "!git rev-parse --abbrev-ref HEAD" | |
# Push the current branch to the remote "origin", and set it to track | |
# the upstream branch | |
publish = "!git push -u origin $(git branch-name)" |
return View.extend({ | |
initialize: function () { | |
this.el.attr("draggable", "true") | |
this.el.bind("dragstart", _.bind(this._dragStartEvent, this)) | |
}, | |
_dragStartEvent: function (e) { | |
var data | |
if (e.originalEvent) e = e.originalEvent | |
e.dataTransfer.effectAllowed = "copy" // default to copy |
The BBC has a server-side image service which provides developers with multiple sized versions of any image they request. It works in a similar fashion to http://placehold.it/ but it also handles the image ratios returned (where as placehold.it doesn't).
The original BBC News process (and my re-working of the script) follows roughly these steps...
div
s within the page (which have a class of delayed-image-load
) into a transparent GIF using a Base64 encoded string.
width
& height
HTML attributes of the image to the required sizediv
has custom data-attr
set server-side to the size of the imageimage-replace
onto each newly created transparent imagesetTimeout
to unblock the UI thread and which calls a function resizeImages
which enhances the image-replace
images so their source is now set to a URL whe# lol redhat | |
su | |
# Install deps | |
yum install libyaml libyaml-devel openssl libxml2-devel bison libxslt-devel openssl-devel tcl tk libffi tcl-devel tk-devel libffi-devel | |
# Download Ruby | |
cd /usr/local/src/ | |
wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p392.tar.gz | |
tar -xvzf ruby-1.9.3-p392.tar.gz |
#!/bin/bash | |
## | |
# Backup Folders to Git | |
# | |
# Creates a local cached backup of the source folder using rsync and then | |
# synchronises that and the database with Git. | |
# | |
# It is assumed you have rsync installed on the server. | |
# |
/* spacing helpers | |
p,m = padding,margin | |
a,t,r,b,l,h,v = all,top,right,bottom,left,horizontal,vertical | |
s,m,l,n = small(5px),medium(10px),large(20px),none(0px) | |
*/ | |
$spacing-none: 0; | |
$spacing-small: 5px; | |
$spacing-medium: 10px; | |
$spacing-large: 20px; |