Skip to content

Instantly share code, notes, and snippets.

@ashton
ashton / .ctags
Last active July 30, 2019 14:21
ctags config
--options=/Users/matheus.ashton/vim/ctags-patterns-for-javascript/ctagsrc
--exclude=.git
--exclude=log
--exclude=tmp
--exclude=build
--exclude=dist
--exclude=elm-stuff
--langdef=Elm
--langmap=Elm:.elm
@ashton
ashton / keymap.cson
Last active January 3, 2019 02:23
Atom Sync Settings
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap:
@ashton
ashton / .slate.js
Created June 29, 2013 19:39
Mine Slate config
var hyper_keystroke = ":ctrl,cmd,shift,alt";
var window_keystroke = ":w,ctrl,cmd,shift,alt";
var layout_keystroke = ":l,ctrl,cmd,shift,alt";
/****
Configs
****/
slate.config("windowHintsShowIcons", true);
slate.config("windowHintsIgnoreHiddenWindows", false);
slate.config("defaultToCurrentScreen", true);
@ashton
ashton / .gitconfig
Created March 7, 2013 14:57
Arquivo de configuração do git com algumas customizações
[user]
name = Matheus Ashton
email = matheusashton@gmail.com
[color]
ui = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
@ashton
ashton / Morse.cpp
Created January 26, 2011 17:53
Morse Lib for morse code translation
/**
Morse.cpp - Library for morse code translating.
Created by Matheus Ashton Silva, January 24th, 2011.
Release under CC license http://creativecommons.org/
**/
#include "WProgram.h"
#include "Morse.h"
Morse::Morse(int ledPin, int buzzPin, int buttonPin, const LiquidCrystal& lcd) : _lcd( lcd ) {
@ashton
ashton / LED_RBG.cpp
Created January 24, 2011 01:30
Variação de Matiz com LED RGB e Arduino
#define bPin 9
#define gPin 10
#define rPin 11
int r, g, b;
int hue;
void setup() {
pinMode(rPin, OUTPUT);
pinMode(gPin, OUTPUT);
@ashton
ashton / Termometro.cpp
Created January 24, 2011 01:29
Termômetro feito com display LCD, LM35 e Arduino
#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);
void setup() {
lcd.begin(16,2);
lcd.print("Temperatura:");
}
void loop() {
int leitura = analogRead(A0);