This file contains 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
# Ruby | |
class Rubyish | |
def a_method(some_string, some_hash) | |
@message = some_string | |
@transform = some_hash | |
puts @message | |
end | |
def another_method | |
@transform.each_pair do |key, val| |
This file contains 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
Instructions: | |
In sublime, in the menu find Preferences => Settings - User. | |
This will open a file, and while this is not the file we want, it is in the correct directory. | |
NOTE: Please be careful to follow these in the correct order, rather than risk overwriting your user settings! | |
Do File -> Save As, and resave the file as Pry.sublime-snippet | |
Delete the content and paste the first file below in that file, and save. | |
Do File -> Save As, and resave the file as Pry-Remote.sublime-snippet |
This file contains 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
// TODO: Would love VERBOSE to be given via environment var | |
// TODO: Should probably have assertIdentity (===) too. Trivial to add. | |
// TODO: I would like passing tests to appear as full-stops on one line in quiet mode. | |
var VERBOSE = true; | |
function describe(desc, desc_fn) { | |
desc_fn(function(it_desc, it_fn) { | |
it_fn({ | |
assertEqual: function(expected, actual) { |
This file contains 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
#!/usr/bin/env ruby | |
average_pause_mins = 1 | |
phrases = [ | |
"Can we try taking smaller steps to reach this solution?", | |
"I think that might need a refactor", | |
"This is looking good", | |
"Are the tests passing yet?", | |
"I wish we could automate this, what do you think?", |
NewerOlder