This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am stevehorn on github. | |
* I am stevehorn (https://keybase.io/stevehorn) on keybase. | |
* I have a public key ASCtva-AnhGiTmxDGDd6x1laV0k7fmmdS6ZmKN5fZRtYaQo | |
To claim this, I am signing this object: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log(`CHILD process id: ${process.pid}`); | |
setTimeout(() => { | |
console.log('child timeout'); | |
}, 5000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Want to use this test setup | |
describe("Topography Controls", function () { | |
beforeEach(function () { | |
loadFixtures("NFocusMap.html"); | |
this.dummyMap = new GoogleMapWrapper(null); | |
spyOn(this.dummyMap, 'addControlsRightTop'); | |
spyOn(this.dummyMap, 'setOverlay'); | |
this.classUnderTest = new ClassUnderTest(this.dummyMap); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Repository hgrc file | |
[paths] | |
default = http://somehwere.over.the.rainbow.com/hg/repository | |
another = http://bitbucket.org/repository |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'This language is tortured, I tell you | |
Dim variable As New Dictionary(Of String, Boolean) From {{"Dumb", True}, {"Idiotic", True}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;Executed by typing fx<space> | |
:*:fx :: | |
;Send left curly | |
SendEvent function() {{} | |
Send {Enter} | |
;Send right curly | |
SendEvent {}} | |
Send {Up} | |
Send {End} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.instance_eval { | |
def pie | |
"mmmm" | |
end | |
} | |
puts String.pie | |
String.class_eval { | |
def cake |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
steve@steve-ubuntu:~/Documents/Code/sample_blog$ sudo gem install padrino | |
ERROR: Error installing padrino: | |
bundler requires RubyGems version >= 1.3.6 | |
steve@steve-ubuntu:~/Documents/Code/sample_blog$ gem update --system | |
Updating RubyGems | |
Nothing to update | |
steve@steve-ubuntu:~/Documents/Code/sample_blog$ gem -v | |
1.3.7 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with something as ( | |
select * from some_table | |
) | |
select * from something | |
select * from something --fail |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Code under test | |
function Foo() { | |
this.do_something_interesting = function() { | |
var dependency = new CanYouMockMe(); | |
if(dependency.i_want_stubbed() === true) { | |
//do stuff based on condition | |
} else { | |
//do stuff if false | |
} | |
} |
NewerOlder