Skip to content

Instantly share code, notes, and snippets.

View fletcherm's full-sized avatar

Matt Fletcher fletcherm

View GitHub Profile
class AcademicServicesRouter extends Backbone.Router
routes:
'records': 'records'
'financial_aid': 'financial_aid'
'admissions': 'admissions'
initialize: ({@view}) ->
records: => @view.show_records()
financial_aid: => @view.show_financial_aid()
admissions: => @view.show_admissions()
window.Matt = {}
Matt.Printer = (->
message1 = "Yo ho ho"
message2 = "Five dwarves"
print1 = ->
console.log message1
print2 = ->
console.log message2
namespace "Matt.Printer", (exports) ->
message1 = "Yo ho ho"
message2 = "Five dwarves"
exports.print1 = ->
console.log message1
exports.print2 = ->
console.log message2
1) ChildProcess can write to stdin if duplex = true
Failure/Error: out.read.should == "hello world\n"
expected: "hello world\n"
got: "Error opening script file: /var/folders/Te/Tei12WuyEgSxz3cPPmFWvE+++TI/-Tmp-/childprocess-temp.13008.41245 (No such file or directory)\n" (using ==)
Diff:
@@ -1,2 +1,2 @@
-hello world
+Error opening script file: /var/folders/Te/Tei12WuyEgSxz3cPPmFWvE+++TI/-Tmp-/childprocess-temp.13008.41245 (No such file or directory)
# ./spec/childprocess_spec.rb:120
# :1
<div id="ad">
<div id="flipbox">
<img class="banner" src="backwoods-bastard.jpg" alt="Backwoods Bastard ~ By Founder's Brewing" />
<p class="actions">
Drink in the Backwoods lately?
<img class="action yes" src="thumbs_up.png"/>
<img class="action no" src="thumbs_down.png"/>
</p>
</div>
<div id="after">
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(5($){5 L(a){a.3x.1F[a.3r]=3o(a.3n,10)+a.3l}6 j=5(a){3k({3i:"1E.1d.3d 3c 3b",38:a})};6 k=5(){7(/*@2S!@*/19&&(2Q 2N.1w.1F.2K==="2F"))};6 l={2C:[0,4,4],2B:[1u,4,4],2y:[1s,1s,2v],2u:[0,0,0],2t:[0,0,4],2s:[1q,1p,1p],2o:[0,4,4],2n:[0,0,B],2m:[0,B,B],2l:[1b,1b,1b],2j:[0,1c,0],2i:[2h,2g,1o],2e:[B,0,B],2d:[2c,1o,2b],2a:[4,1n,0],27:[24,21,20],1Z:[B,0,0],1Y:[1R,1P,1O],1N:[3s,0,Y],2f:[4,0,4],1Q:[4,2z,0],2E:[0,t,0],22:[26,0,28],29:[1u,1z,1n],2p:[2r,2w,1z],2x:[1h,4,4],2A:[1i,2G,1i],2L:[Y,Y,Y],2M:[4,2O,2W],33:[4,4,1h],34:[0,4,0],35:[4,0,4],36:[t,0,0],39:[0,0,t],3e:[t,t,0],3j:[4,1q,0],3m:[4,W,3t],1H:[t,0,t],1I:[t,0,t],1J:[4,0,0],1K:[W,W,W],1L:[4,4,4],1M:[4,4,0],9:[4,4,4]};6 m=5(a){U(a&&a.1j("#")==-1&&a.1
RSpec.configure do |config|
# RSpec automatically cleans stuff out of backtraces;
# sometimes this is annoying when trying to debug something e.g. a gem
config.backtrace_clean_patterns = [
/\/lib\d*\/ruby\//,
/bin\//,
#/gems/,
/spec\/spec_helper\.rb/,
/lib\/rspec\/(core|expectations|matchers|mocks)/
]
RSpec.configure do |config|
# RSpec automatically cleans stuff out of backtraces;
# sometimes this is annoying when trying to debug something e.g. a gem
config.backtrace_clean_patterns = [
/\/lib\d*\/ruby\//,
/bin\//,
/gems/,
/spec\/spec_helper\.rb/,
/lib\/rspec\/(core|expectations|matchers|mocks)/
]
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line"
>
<stroke
android:color="@color/list_divider"
android:width="1dp"
android:dashGap="0dp"
android:dashWidth="1dp"