These instructions assume you're renaming a branch locally and on the server.
git checkout <old_name>
| function* fizzBuzz(start = 1) { | |
| let i = start; | |
| while (true) { | |
| const isFizz = i % 3 === 0; | |
| const isBuzz = i % 5 === 0; | |
| const isFizzBuzz = isFizz && isBuzz; | |
| switch (true) { | |
| case isFizzBuzz: yield 'FizzBuzz'; break; | 
| Cost | Item | 
|---|---|
| $245.99 | Creality Ender 3 Pro | 
| $18.99 | Upgraded Bed Springs, Leveling Dials, Capricorn PTFE Tube | 
| $8.09 | Replacement 0.4mm Brass Nozzles | 
| $16.99 | Glass Build Surface | 
| // Sum of Two | |
| (() => { | |
| // Given two arrays of integers and a desired sum, | |
| // determine whether a pair exists such that each | |
| // value in the pair comes from a different array | |
| // and they add up to the desired sum | |
| // left: an array of integers | |
| // right: an array of integers | |
| // sum: an integer | 
| { | |
| "keyboard": "idobo", | |
| "keymap": "default_d6184be", | |
| "layout": "LAYOUT_ortho_5x15", | |
| "layers": [ | |
| [ | |
| "KC_GRV", | |
| "KC_1", | |
| "KC_2", | |
| "KC_3", | 
| // - Expands the 26x26 table to 256x256 to encrypt ASCII text | |
| // - Uses the Beaufort cipher's method of symmetric encryption/decryption using the table | |
| // - Uses the Autokey cipher's method of expanding the encryption key with the plaintext | |
| // - Base64 encodes the resulting ASCII ciphertext for easier display | |
| const beaufortAutokey = (key) => { | |
| const ascii = () => Array.from({ length: 256 }, (_, i) => String.fromCharCode(i)).join(''); | |
| const shift = (text) => text.length <= 1 ? text : text.slice(1) + text[0]; | |
| const rotate = (text, distance) => Array(distance).fill().reduce(result => shift(result), text); | |
| const base64Encode = (text) => btoa(text); | 
| const fibonacci = (() => { | |
| const memory = [0, 1]; | |
| return (index) => { | |
| if (!Number.isInteger(index) || index < 0) return NaN; | |
| while (memory.length < index + 1) { | |
| const right = memory[memory.length - 1]; | |
| const left = memory[memory.length - 2]; |