Skip to content

Instantly share code, notes, and snippets.

View schasse's full-sized avatar
⚒️
crafting

Sebastian Schasse schasse

⚒️
crafting
View GitHub Profile
@schasse
schasse / fac.rb
Last active August 29, 2015 14:22
fac in ruby
def facc(n)
if (n <= 1)
1
else
n * facc(n - 1)
end
end
(0..10000).each do |n|
puts facc n
#!/usr/bin/env bash
dir=$(dirname $0)
gconfdir=/apps/gnome-terminal/profiles
echo # This makes the prompts easier to follow (as do other random echos below)
########################
### Select a profile ###
########################