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("foo"); |
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
get = -> { | |
secret_callback = -> { | |
secret_squirrly_function = -> {secret_callback(err, res, body)} | |
# Do something asynchronous | |
setTimeout secret_squirrly_function, 5000 | |
# and return a function | |
(callback) -> {secret_callback = callback} | |
} | |
} |
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
#!/bin/bash | |
# | |
# DESCRIPTION: | |
# | |
# Set the bash prompt according to: | |
# * the branch/status of the current git repository | |
# * the branch of the current subversion repository | |
# * the return value of the previous command | |
# | |
# USAGE: |
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
{ "_id" : "7183414623122970455", "name" : "Bob", "items" : [ { "id" : 29 }, {"id" : 37 } ], "itemCount" : 2 } | |
{ "_id" : "-1843045741878739623", "name" : "Jim", "items" : [ { "id" : 93 }, { "id" : 51 }, { "id" : 42 }, { "id" : 11 } ], "itemCount" : 4 } | |
... |
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
public class Comment { | |
private final String author; | |
private final String body; | |
public Comment(String author, String body) { | |
this.author = author; | |
this.body = body; | |
} |
NewerOlder