The Pebble app is no longer on the App Store.
No worries! If you have an Apple ID, you can install the app yourself! Just be aware that you have to do this every week for the app to keep working!
If you install the app and don't redo the process after a week, your Pebble will still receive notifications.
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
// seven(times(five())); // must return 35 | |
// four(plus(nine())); // must return 13 | |
// eight(minus(three())); // must return 5 | |
// six(dividedBy(two())); // must return 3 | |
function zero(innerMath=null) { | |
if (innerMath) { | |
return Math.trunc(eval(`0 ${innerMath}`)) | |
} | |
return 0 |
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
HTTP status code symbols for Rails | |
Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
Status Code Symbol | |
1xx Informational | |
100 :continue | |
101 :switching_protocols | |
102 :processing |
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
def number_guesser() | |
number = rand(1000000) | |
puts "Guess a number between 1 and 1,000,000." | |
guess = gets.to_i | |
while guess != number | |
if guess > number + 100000 | |
puts "#{guess} is not the secret number. You're at least 100,000 too high :)" |