Skip to content

Instantly share code, notes, and snippets.

@kjohnston
kjohnston / gist:9277473
Last active August 29, 2015 13:56
iShowU Pro Settings & Positioning

iShowU Pro Settings & Positioning

I record screencasts to present deliverables and training materials to clients and colleagues and use iShowU Pro to do this. It's a great app at a fair price, but getting the settings dialed-in so that you can produce good quality screencasts that are reasonable file sizes takes some tinkering. This is how I do it.

Configuration

As the app will warn you upon initial launch, you'll need to grant it access to control your computer here:

Security

@alexch
alexch / bench.rb
Created May 20, 2009 23:29 — forked from nex3/bench.rb
#!/usr/bin/env ruby
# Alex's changes:
# * erector and erector_mixin
# * each template now includes a loop and a variable (this affects HAML quite a lot)
# * automated comparison and benchmarking
# * make sure variable is truly being interpolated
# # of iterations = 10000
# user system total real
@petros
petros / CampfireIcons.txt
Created January 25, 2011 23:36
Campfire icons
:sunny:
:zap:
:leaves:
:lipstick:
:cop:
:wheelchair:
:fish:
:hammer:
:moneybag:
:calling:
@gustin
gustin / sl_2012_notes.md
Created October 3, 2012 14:13 — forked from rbxbx/sl_2012_notes.md
Notes from strangeloop 2012 "The Higher Order Rubyist" talk

The Higher Order Rubyist

BUILT-INS

Obviously, when looking to program functionally in a given language, the first place one should look is within the language itself. Luckily, while not a Functional language (by any stretch of the word), Ruby has many facilities that enable it to act like one.

  • Enumerable
@elskwid
elskwid / Marked.sublime-build
Created November 19, 2012 21:38
Modify Markedapp build for sublime to include command palette entry
{
"cmd": ["open","-a","/Applications/Marked.app","$file"],
"selector": "text.html.markdown",
"variants": [
{
"cmd": ["open","-a","/Applications/Marked.app","$file"],
"name": "Open in Marked"
}
]
}
@supernullset
supernullset / monsterAttack.rs
Created January 6, 2013 14:59
MonsterAttack
use core::rand::{Rng};
struct Monster {
name: ~str,
health: HealthPoints,
mut speed: int,
mut charisma: int,
mut max_attack: int,
position: Position
spawn = require('child_process').spawn
Q = require 'q'
# A capistrano command wrapper providing various helper methods for easier usage.
#
# Dependencies:
# child_process
# q: 0.9.x
class Capistrano
args = []
@elskwid
elskwid / protomodel.rb
Created May 8, 2013 04:46
Protomodel
# Example of prototyping models with a mix of ActiveRecord and Virtus
#
# Useful with large models where some fields are in flux during spiking/dev
# and you don't want or need to run migrations to try ideas out.
class A < ActiveRecord::Base
# ...
# belongs_to
# has_many
@elskwid
elskwid / modules.rb
Created May 21, 2013 22:32
Playing with modules and bindings
class Configuration
attr_reader :name
def initialize(name)
@name = name
end
end
class ModuleBuilder
casper = require('casper').create
logLevel: 'debug'
fs = require('fs')
username = casper.cli.args[0]
password = casper.cli.args[1]
currentProblem = 1
problemCount = 173
getProblem = (number) ->