Skip to content

Instantly share code, notes, and snippets.

View gregoriokusowski's full-sized avatar

Gregório Chalinski Kusowski gregoriokusowski

View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gregoriokusowski
gregoriokusowski / concave-split-planck.stl
Last active August 11, 2019 17:19
Concave Split Planck
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gregoriokusowski
gregoriokusowski / osx.sh
Last active April 21, 2020 14:32
Those fixes I have to google everytime I don't want to restart the machine to "fix it"
# 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
@gregoriokusowski
gregoriokusowski / .block
Created July 17, 2016 03:33 — forked from mbostock/.block
Heatmap (Canvas, JSON)
license: gpl-3.0
@gregoriokusowski
gregoriokusowski / Teste.java
Last active September 25, 2015 02:26
Abtract methods on java enums
public enum Operacao {
SOMA ("+") {
@Override
Integer executa(Integer a, Integer b) {
return a + b;
}
},
SUBTRACAO ("-") {
@Override
Integer executa(Integer a, Integer b) {
@gregoriokusowski
gregoriokusowski / gist:4634474
Created January 25, 2013 13:32
Since we started to use a branching model to control every stuff we send to production, we use the interactive rebase into a temp branch in order choose commits, keep their reference and check the code before check it to the stable branch.
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
@gregoriokusowski
gregoriokusowski / Calculadora.java
Created August 9, 2012 15:41
String Calculator Kata realizado na Prime Systems em POA. 06/09/2011.
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]";
{
"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"
@gregoriokusowski
gregoriokusowski / comparer.rb
Created April 27, 2012 12:39
Script to compare apps. ( Used when creating a engine to avoid duplicate code on two projects. )
class Comparer
DEFAULT_CONFIG = {
folders: [:app, :lib],
formats: [:erb, :rb, :js, :css, :coffee]
}
end
class Application
@gregoriokusowski
gregoriokusowski / git_log.rb
Created February 13, 2012 11:15
Simple release-notes from your git log ('per-week' approach)
# 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