Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
# Audio in/out | |
sudo killall coreaudiod | |
# Camera | |
sudo killall VDCAssistant | |
sudo killall AppleCameraAssistant | |
# Bluetooth | |
## Unfortunately, I don't know yet how to tackle it from the CLI, but... | |
# Option + Shift + Click on BT button on Status Bar > Debug > Reset the Bluetooth Module |
This file contains 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
license: gpl-3.0 |
This file contains 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
public enum Operacao { | |
SOMA ("+") { | |
@Override | |
Integer executa(Integer a, Integer b) { | |
return a + b; | |
} | |
}, | |
SUBTRACAO ("-") { | |
@Override | |
Integer executa(Integer a, Integer b) { |
This file contains 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 checkout master | |
git checkout -b temp | |
git rebase -i stable | |
# Time to select/remove/squash commits | |
git checkout stable | |
git pull . temp | |
git branch -d temp |
This file contains 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 tdd.kata; | |
public class Calculadora { | |
public Integer add(String string) { | |
if (string.equals("")) return 0; | |
else if(string.equals("1")) return 1; | |
String delimitador = "[,|\n]"; | |
This file contains 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
Show hidden characters
{ | |
"auto_match_enabled": true, | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme", | |
"ensure_newline_at_eof_on_save": true, | |
"font_face": "Monaco", | |
"font_options": | |
[ | |
"subpixel_antialias" |
This file contains 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 Comparer | |
DEFAULT_CONFIG = { | |
folders: [:app, :lib], | |
formats: [:erb, :rb, :js, :css, :coffee] | |
} | |
end | |
class Application |
This file contains 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
# usage: (after download this file to your repo folder) | |
# $ cd git_repo | |
# $ ruby git_log.rb >> release_notes.txt | |
require 'time' | |
class Commit | |
def rows | |
@rows ||= [] | |
end |
NewerOlder