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
| git pull # Pull first or lose ANY commits upstream | |
| git branch -m master main # Rename branch locally | |
| echo | |
| echo "Change GitHub default branch to 'main'." | |
| echo | |
| echo "Is GitHub Default Branch 'main'?" | |
| echo | |
| read -p "Press ENTER to continue" | |
| echo |
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
| const transpose = function (matrix) { | |
| // in Matrix math size is defined as m X n | |
| // m and n are for transposed matrix | |
| const m = matrix[0].length; | |
| const n = matrix.length; | |
| return [...Array(m)].map((el, i) => | |
| [...Array(n)].map((el, j) => matrix[j][i]) | |
| ); | |
| }; |
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
| require 'pry' | |
| class Player | |
| attr_accessor :lives, :player, :guesses, :correct | |
| def initialize(player) | |
| @player = player | |
| @lives = 3 | |
| @guesses = 0 | |
| @correct = 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
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| margin: 0px; | |
| padding: 0px; | |
| } | |
| </style> | |
| </head> |