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
#include QMK_KEYBOARD_H | |
enum custom_keycodes { | |
ADD_VAL = SAFE_RANGE | |
}; | |
bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |
switch (keycode) { | |
case ADD_VAL: | |
if (record->event.pressed) { |
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
Bulbasaur:desktop mbarq$ git branch prevolutions | |
Bulbasaur:desktop mbarq$ git branch | |
* master | |
prevolutions | |
Bulbasaur:desktop mbarq$ git checkout prevolutions | |
Switched to branch 'prevolutions' | |
Bulbasaur:desktop mbarq$ git branch | |
master | |
* prevolutions |
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
Bulbasaur:desktop mbarq$ git remote add origin https://github.com/mbarq/waterPokemon.git | |
Bulbasaur:desktop mbarq$ git push -u origin master | |
Counting objects: 3, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (2/2), done. | |
Writing objects: 100% (3/3), 571 bytes | 0 bytes/s, done. | |
Total 3 (delta 0), reused 0 (delta 0) | |
To https://github.com/mbarq/waterPokemon.git | |
* [new branch] master -> master | |
Branch master set up to track remote branch master from origin. |
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
Bulbasaur:desktop mbarq$ git commit -m "These are some cool water pokemon" | |
[master (root-commit) b05cb8b] These are some cool water pokemon | |
1 file changed, 22 insertions(+) | |
create mode 100644 waterPokemon.rtf |
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
Bulbasaur:desktop mbarq$ git add waterPokemon.rtf | |
Bulbasaur:desktop mbarq$ git status | |
On branch master | |
Initial commit | |
Changes to be committed: | |
(use "git rm --cached <file>..." to unstage) | |
new file: waterPokemon.rtf |
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
Bulbasaur:desktop mbarq$ git init | |
Initialized empty Git repository in /Users/mbarq/Desktop/.git/ |
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
Bulbasaur:desktop mbarq$ ls | |
Bulbasaur untitled folder waterPokemon.rtf |
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
package amoebasinlove; | |
import javax.swing.JOptionPane; | |
public class AmoebasInLove { | |
public static void main(String[] args) { | |
int reply = JOptionPane.showConfirmDialog(null, | |
"Would you like to make an Amoeba Colony?", |
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
import java.util.Random; | |
import javax.swing.JOptionPane; | |
public class GloriousLotteryMachine { | |
public static void main(String[] args) { | |
String game = JOptionPane.showInputDialog( | |
"Welcome to the Glorious Lottery Machine!" | |
+ " To play, please type either:" |
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
class FizzBuzz | |
for x in 1..75 | |
if x % 5 == 0 && x % 3 == 0 | |
puts "FizzBuzz" | |
elsif x % 5 == 0 | |
puts "Buzz" | |
elsif x % 3 == 0 | |
puts "Fizz" | |
else | |
puts x |