GitHub recently changed the repository's default branch name from master to main, challenging millions of developers' muscle memory:
git checkout master
error: pathspec 'master' did not match any file(s) known to git
git checkout main
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Mastodon Verification Gist</title> | |
| </head> | |
| <body> | |
| <p> | |
| I'm David Stosik. This is my Mastodon verification gist! | |
| </p> | |
| <ul> |
| //************************************************************************************************************************** | |
| //************************************************************************************************************************** | |
| // CLEANER-STABLER-DATA-COLLECTION | |
| //************************************************************************************************************************** | |
| //************************************************************************************************************************** | |
| // Wifi libraries | |
| #include <SPI.h> | |
| #include <WiFiNINA.h> |
GitHub recently changed the repository's default branch name from master to main, challenging millions of developers' muscle memory:
git checkout master
error: pathspec 'master' did not match any file(s) known to git
git checkout main
| diff --git i/.rubocop.yml w/.rubocop.yml | |
| index 1369eedefc..9335038ac7 100644 | |
| --- i/.rubocop.yml | |
| +++ w/.rubocop.yml | |
| @@ -1,5 +1,6 @@ | |
| require: | |
| - rubocop-rails | |
| + - "./lib/rubocop-cookpad.rb" | |
| AllCops: |
| class ColonMethodDefinition < Cop | |
| MSG = 'Do not use `::` for defining class methods.' | |
| def on_defs(node) | |
| return unless node.loc.operator.source == '::' | |
| add_offense(node, location: :operator) | |
| end | |
| def autocorrect(node) |
| class NewNewPrimesRetrievalService | |
| def self.process(max) | |
| new(max).process | |
| end | |
| def initialize(max) | |
| @max = max | |
| end | |
| def process |
| #include <pebble.h> | |
| #include <time.h> | |
| Window *my_window; | |
| TextLayer *min_layer; | |
| static GFont s_time_font; | |
| static BitmapLayer *s_background_layer; | |
| static GBitmap *s_background_bitmap; | |
| static void update_time() { |
I hereby claim:
To claim this, I am signing this object: