Skip to content

Instantly share code, notes, and snippets.

View matthew-black's full-sized avatar
🚲

Matthew Black matthew-black

🚲
View GitHub Profile
@matthew-black
matthew-black / Installing the Pebble app on iOS with Sideloadly.md
Created May 19, 2022 16:34 — forked from robonxt/Installing the Pebble app on iOS with Sideloadly.md
Installing the Pebble app on iOS with Sideloadly - Rebble (Now)Official Installation Guide by robonxt

Installing the Pebble app on iOS with Sideloadly

Looking for download links? Go to the end of the guide (See links below)!


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.

(written by robonxt, last updated on March 30, 2022)

@matthew-black
matthew-black / ughCodewars.js
Created October 1, 2021 21:00
I hate this, tbh.
// 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
@matthew-black
matthew-black / rails http status codes
Created November 12, 2017 20:46 — forked from mlanett/rails http status codes
HTTP status code symbols for Rails
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
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 :)"