Skip to content

Instantly share code, notes, and snippets.

André Tagliati tagliati

  • São Paulo, SP, Brasil
Block or report user

Report or block tagliati

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View settings.json
{
"workbench.colorTheme": "Dracula",
"window.zoomLevel": 0,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 18,
"editor.lineHeight": 24,
"editor.rulers": [80, 120],
"editor.formatOnSave": true,
"workbench.iconTheme": "vscode-icons",
View .vimrc
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
set number
execute pathogen#infect()
syntax on
filetype plugin indent on
@tagliati
tagliati / gist:4247170
Created Dec 9, 2012
taking pictures with laser trigger
View gist:4247170
const int analogInPin = A0; // Analog input pin that the potentiometer is attached to
int sensorValue = 0; // value read from the pot
void setup() {
// initialize serial communications at 9600 bps:
//Serial.begin(9600);
pinMode(9,OUTPUT);
}
@tagliati
tagliati / gist:4246395
Created Dec 9, 2012
Reading LDR value.
View gist:4246395
const int analogInPin = A0; // Analog input pin that the potentiometer is attached to
int sensorValue = 0; // value read from the pot
void setup() {
// initialize serial communications at 9600 bps:
Serial.begin(9600);
}
@tagliati
tagliati / gist:4160433
Created Nov 28, 2012
Simple arduino code to shoot using chdk
View gist:4160433
/*
Camera shooter.
Simple code to use in a usb remote control using chdk
Using TwoPress switch mode
*/
void setup() {
// pin 13 is just to view the status of trigger cycle
pinMode(13, OUTPUT);
// trigger pin
@tagliati
tagliati / binary_counter.pde
Created Mar 17, 2012
Binary leds sequency - I Arduino Hack Day [ES]
View binary_counter.pde
int pins[] = {13,3,4};
int pin;
int inPin = 7;
int num = 0;
int val = 0;
int led = 0;
int maxnum = 0;
int delaytime = 300;
int pinCount = sizeof(pins);
@tagliati
tagliati / marcha_imperial
Created Feb 11, 2012
Marcha imperial para arduino
View marcha_imperial
int ledPin = 13;
//led for visualization (use 13 for built-in led)
int speakerPin = 11;
//speaker connected to one of the PWM ports
#define c 261
#define d 294
#define e 329
#define f 349
View rspec-syntax-cheat-sheet.rb
# RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
You can’t perform that action at this time.