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
| [15:10] gregoriokusowski: lunks | |
| [15:10] gregoriokusowski: no git | |
| [15:11] gregoriokusowski: quero commitar tudo numa paulada | |
| [15:11] lunks: git commit -m 'paulada' | |
| [15:13] gregoriokusowski: aí q tá | |
| [15:13] gregoriokusowski: ele não adiciona | |
| [15:13] gregoriokusowski: aí faço git commit -am "paulada" | |
| [15:13] gregoriokusowski: e ele não pega os untracked | |
| [15:13] gregoriokusowski: mas se faço git commit -uam "paulada" | |
| [15:13] gregoriokusowski: n rola |
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
| tenant_model_class = TenantModel | |
| %x[ls app/models/].split("\n").each do |w| | |
| begin | |
| model = w[0...-3].camelize.constantize | |
| k = model | |
| while k != Object | |
| if k == ActiveRecord::Base | |
| unless model.include? tenant_model_class | |
| puts model | |
| end |
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
| # 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 |
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 Comparer | |
| DEFAULT_CONFIG = { | |
| folders: [:app, :lib], | |
| formats: [:erb, :rb, :js, :css, :coffee] | |
| } | |
| end | |
| class Application |
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
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 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 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 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 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 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
| 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 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
| license: gpl-3.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
| # 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 |