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; | |
} |
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
#!/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
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
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
#Add an alias for your build commands for example: | |
alias make='notify make' | |
alias mvn='notify mvn' |
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
#Add an alias for your build commands for example: | |
alias make='notify make' | |
alias mvn='notify mvn' |
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
module InitialValues where | |
import Graphics.Element exposing (..) | |
port timestamp : Int | |
main = | |
show ("Hello" ++ (toString (timestamp + 2))) |
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
import Array | |
import Debug | |
import Random | |
import Matrix | |
planetNames : Array.Array String | |
planetNames = Array.fromList [ | |
"Terra", | |
"Vulcan", | |
"Omicron Persei 8", |
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
import Html exposing (..) | |
import Html.Events exposing (onClick) | |
import Http | |
import Json.Decode as Json exposing((:=)) | |
import StartApp.Simple as StartApp | |
type alias Model = | |
{ name : String | |
, amount : Int |
OlderNewer