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:
class Solution(object): | |
def partitionDisjoint(self, A): | |
""" | |
:type A: List[int] | |
:rtype: int | |
""" | |
if not A: | |
return 0 | |
left = A[:1] | |
right = A[1:] |
brew install [email protected] | |
bundle config build.libv8 --with-system-v8 | |
bundle config build.therubyracer --with-v8-dir=$(brew --prefix [email protected]) | |
bundle install |
I hereby claim:
To claim this, I am signing this object:
driver.execute_script "$(document).on('page:load', function () { window.turbolink = true; });" | |
driver.execute_script "$(document).on('page:before-change', function () { window.turbolink = false; });" | |
wait = Selenium::WebDriver::Wait.new(:timeout => 10) | |
wait.until { driver.execute_script 'return window.turbolink;' } |
Sequel.migration do | |
up do | |
# Table: Burndown Project | |
# String: Name - The name of the project | |
# String: Description - Short description of the project | |
create_table(:burndown_project) do | |
primary_key :id | |
String :name | |
String :description | |
end |
// Node.js CheatSheet. | |
// Download the Node.js source code or a pre-built installer for your platform, and start developing today. | |
// Download: http://nodejs.org/download/ | |
// More: http://nodejs.org/api/all.html | |
// 0. Synopsis. | |
// http://nodejs.org/api/synopsis.html | |
As configured in my dotfiles.
start new:
tmux
start new with session name:
browser = Watir::Browser.new :ie | |
browser.goto http://yourlegacyaspdotnetpage | |
browser.text_field(:id => 'this_field will_force_a_post_back').set ('This is gonna suck') | |
browser.send_keys :tab | |
Watir::Wait.until { browser.ready_state.eql? "complete" } | |
# Rest of your code |
# Install AGS in Fedora 20 | |
# https://github.com/adventuregamestudio/ags/blob/master/debian/README.md | |
# Change this to whatever you use for home dir apps | |
cd ~/app | |
git clone git://github.com/adventuregamestudio/ags.git | |
cd ags | |
sudo yum -y install python-devel freetype-devel libvorbis-devel allegro-devel allegro libtheora libtheora-devel dumb-devel dumb | |
make --directory=Engine | |
sudo make --directory=Engine install |