Skip to content

Instantly share code, notes, and snippets.

View radarek's full-sized avatar

Radosław Bułat radarek

View GitHub Profile
$ RUBY=rbx; $RUBY --version && $RUBY -rbenchmark apohllo.rb
rubinius 2.0.0dev (1.8.7 f7440cf0 yyyy-mm-dd JI) [x86_64-apple-darwin10.7.0]
1 runs:
speed-up: threads 1.490/1.430 = 1.042
efficiency: 104.212%
speed-up: procs 1.490/0.980 = 1.520
efficiency: 152.004%
2 runs:
speed-up: threads 1.903/0.989 = 1.924
efficiency: 96.217%

Screencasting Framework

The following document is a written account of the Code School screencasting framework. It should be used as a reference of the accompanying screencast on the topic.

Why you should care about screencasting?

You're probably aren't going to take the time to read this document if you're not interested, but there are a lot of nice side effects caused by learning how to create quality screencasts.

  1. Communicating more effectively - At Envy Labs we produce screencasts for our clients all the time. Whether it's demoing a new feature or for a presentation for an invester, they're often much more effective and pleasent than a phone call or screen sharing.
@radarek
radarek / gist:6549850
Last active December 22, 2015 23:49 — forked from oki/gist:6549739
%h5 Formularz
%pre
- form_url = lead_form_url(host: AppConfig.app.hostname)
%p
= String.new(render(partial: 'order_form', locals: { form_url: form_url, form_key: @landing_page_form.key }))
radarek@gitmachine:/tmp/foo$ cat a.rb
require_relative 'b'
class A
def foo
puts 'foo!'
end
end
radarek@gitmachine:/tmp/foo$ cat b.rb
group :test
gem 'pry'
gem 'pry-doc'
gem 'pry-nav'
gem 'pry-rails'
gem 'pry-rescue'
gem 'pry-stack_explorer'
end
tmuxinator + per project .tmuxinator file + bundler binstubs = doesn't work with 2 projects at the same time
set -g default-terminal "screen-256color"
setw -g mode-keys vi
set-option -g set-titles on
set-option -g set-titles-string '[#S:#I #H] #W' # use screen title
# copy, paste buffer
bind p paste-buffer
bind [ copy-mode
bind p paste-buffer
bind -t vi-copy v begin-selection
require 'benchmark'
# [ 1, 2, 3, ..., 10_000 ]
array = (1..10000).to_a
# { 1=>1, 2=>2, ..., 10_000=>10_000 }
hash = Hash[(0..9999).zip(1..10000)]
LOOPS = 1000
set -g default-terminal "screen-256color"
setw -g mode-keys vi
set-option -g set-titles on
set-option -g set-titles-string '[#S:#I #H] #W' # use screen title
# copy, paste buffer
bind p paste-buffer
bind [ copy-mode
bind p paste-buffer
bind -t vi-copy v begin-selection
class Bob
def hey(message)
if empty?(message)
"Fine. Be that way!"
elsif yelling?(message)
"Woah, chill out!"
elsif question?(message)
"Sure."
else
"Whatever."