Skip to content

Instantly share code, notes, and snippets.

View tagliati's full-sized avatar
🐼

André Tagliati tagliati

🐼
  • São Paulo, SP, Brasil
View GitHub Profile
@tagliati
tagliati / gist:1d76e7590db9fec7ebb944f7a1ee0258
Last active December 25, 2022 13:19
ender3 start end gcode
; start gcode
G92 E0 ; Reset Extruder
G28 ; Home all axes
G29;
G0 Z0;
G92 Z1.4; //para subir reduza o numero?
G1 Z2.0 F3000 ; Move Z Axis up little to prevent scratching of Heat Bed
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
G1 X0.1 Y200.0 Z0.3 F1500.0 E15 ; Draw the first line
G1 X0.4 Y200.0 Z0.3 F5000.0 ; Move to side a little
{
"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",
@tagliati
tagliati / .vimrc
Last active October 18, 2018 15:36
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 December 9, 2012 21:44
taking pictures with laser trigger
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 December 9, 2012 18:32
Reading LDR value.
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 November 28, 2012 10:43
Simple arduino code to shoot using chdk
/*
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 March 17, 2012 20:08
Binary leds sequency - I Arduino Hack Day [ES]
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 February 11, 2012 20:42
Marcha imperial para arduino
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
# 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")