Skip to content

Instantly share code, notes, and snippets.

> arys = [[[:a, 1], [:b, 2]],
[[:c, 3], [:d, 4]],
[[:e, 5], [:f, 6]]]
=> [[[:a, 1], [:b, 2]], [[:c, 3], [:d, 4]], [[:e, 5], [:f, 6]]]
> arys.inject([]) {|r, a| r.concat a}
=> [[:a, 1], [:b, 2], [:c, 3], [:d, 4], [:e, 5], [:f, 6]]
@dastels
dastels / gist:3384290
Created August 18, 2012 04:04
RubyMotion on MountainLion issue
Build ./build/iPhoneSimulator-5.1-Development
Build vendor/Pods
Build settings from command line:
ARCHS = i386
CONFIGURATION_BUILD_DIR = build
SDKROOT = iphonesimulator5.1
=== BUILD NATIVE TARGET Pods OF PROJECT Pods WITH CONFIGURATION Release ===
Check dependencies
Warning: Multiple build commands for output file /Users/dastels/Projects/ZombieWizard/iOS/Primed2/vendor/Pods/build/Pods/CCGLView.h
@dastels
dastels / file1
Created September 7, 2013 16:53
test gist
qqqqq
@dastels
dastels / file1
Created September 7, 2013 18:53
Test
aaaaa
@dastels
dastels / file1
Created September 7, 2013 18:56
dddd
dddd
@dastels
dastels / file1
Created September 7, 2013 18:58
no newline
(+ 1 2)
@dastels
dastels / file1
Created September 7, 2013 19:10
two lines
(+ 1 2)
(+ 2 3)
(+ 1 2 3)
(+ 3 4 5)
(+ 1 2 3)
(+ 3 4 5)
(+ 1 2 3)