Skip to content

Instantly share code, notes, and snippets.

[color]
diff = auto
status = auto
branch = auto
ui = auto
[log]
date = local
[core]
excludesfile = /Users/dweeks/.gitignore
quotepath = false

Samples of new usage for [continuations in JBBAdditions][].

The relevant source files are:

  • [JBBTypes.h][]
  • [JBB_C_Functions.h][JBB_C_Functions.h]
  • [JBB_C_Functions.m][JBB_C_Functions.h]
  • [Classes/JBBObjectProxy.h][]
  • [Classes/JBBObjectProxy.h][]
  • [Classes/Extensions/NSInvocation+JBBAdditions.h][]
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
#!/usr/bin/env ruby
require 'optparse'
require 'logger'
require 'open-uri'
begin
require 'active_resource'
rescue LoadError => e
# active_resource has probably been installed via rubygems
# which, of course, does not put it on the search path