Skip to content

Instantly share code, notes, and snippets.

@jeremytregunna
jeremytregunna / linked-list.ll
Created August 14, 2011 00:18
Linked List in LLVM IR
;; Linked list implementation
;; I compile it like this on Mac OS X:
;
; llvm-as linked-list.ll
; llc linked-list.bc
; as linked-list.s -o linked-list.o
; ld /usr/lib/crt1.o linked-list.o -o linked-list -lSystem -macosx_version_min 10.6
;; Type aliases
%free_func = type void (i8*)*
@12spokes
12spokes / jasmine-fixtures.rb
Created December 2, 2010 17:36
Create jasmine fixtures from your view specs in RSpec 2.
# More than inspired by JB Steadman - http://pivotallabs.com/users/jb/blog/articles/1152-javascripttests-bind-reality-
#
# Adds a save_fixture method to Rspec 2's ViewExampleGroups which takes the
# rendered and stores it in a js_dom fixture file to be used with jasmine.
#
# Simply drop this into spec/support.
#
# Then, at the end of a view spec that you want to save as a fixture, simply call
# save_fixture('name_of_fixture_file')
#