Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
#!/bin/bash | |
# usage: ./wpbackup.sh domain.com | |
DOMAIN="$1"; # domain name to backup | |
BACKUP="$HOME/backups"; # store backups here | |
HOSTPATH="$HOME"; # path where hosted domains are | |
backmeup () { | |
local _N _U _P _H FS FT TD WP; |
#How to transition from EasySIMBL to SIMBL
( ~
is your home directory )
Use SIMBL
checkbox. Quit EasySIMBL.~/Library/ScriptingAdditions/EasySIMBL.osax
if exists.SIMBL
directory and EasySIMBL.osax
located in ~/Library/Containers/
is not needed. Find from Finder or find command like find ~/Library/Containers -name "*SIMBL*" -ls
and remove manually if exists.NOTE: This Gist concerns the old Linode KVM Beta, NOT the current Manager. Please see linode/docs#501 (comment) for more up-to-date instructions.
You will need:
On the KVM source, run the following to create a VM:
COMMON = %w(the of to and a in is | |
it you that he was for on | |
are with as I his they be | |
at one have this from or had | |
by hot but some what there we | |
can out other were all your when | |
up use word how said an each | |
she which do their time if will | |
way about many then them would write | |
like so these her long make thing |
#!/usr/bin/env ruby | |
require 'net/http' | |
def convert_currency(from_curr, to_curr) | |
doc = Net::HTTP.get('www.google.com', "/finance/converter?a=1&from=#{from_curr}&to=#{to_curr}") | |
regexp = Regexp.new("(\\d+\\.{0,1}\\d*)\\s+#{to_curr}") | |
regexp.match doc | |
$1.to_f | |
end |
I like to manipulate data structures. Sometimes the final out put of that manipulation is a string. So I find myself using the pattern of map + join and its starting to feel like the map + flatten of old. Sadly, ruby does not have an answer for this yet, so this is what I've written in the mean time.
def map_join(arr, sep, &block)
arr.map(&block).join(sep)
end
map_join([1, 2, 3, 4, 5], '-') { |x| x ** 2 } #=> '1-4-9-16-25'