Skip to content

Instantly share code, notes, and snippets.

View GSimas's full-sized avatar
🤙
Smooth on the roof

Gustavo Simas GSimas

🤙
Smooth on the roof
View GitHub Profile
@GSimas
GSimas / keybase.md
Created February 10, 2020 20:35
here i am

Keybase proof

I hereby claim:

  • I am gsimas on github.
  • I am simasgs (https://keybase.io/simasgs) on keybase.
  • I have a public key ASDvfzTGiM6CpeycWiLoZmIHpe-6yLBUzGr3cHaMyXgGWAo

To claim this, I am signing this object:

@GSimas
GSimas / code.gs
Created August 1, 2019 14:04
Google Script/Spreadsheet Form
/*
RECEBER ARQUIVOS GOOGLE DRIVE / SPREADSHEETS / FORMULARIO
- - - - - - - - - - - - - - -
Gustavo Simas da Silva
Email: gustavosimassilva@gmail.com
*/
@GSimas
GSimas / EmonLib.cpp
Created September 20, 2017 00:54
Read Current value from SCT013 sensor - calibration may be needed
/*
Emon.cpp - Library for openenergymonitor
Created by Trystan Lea, April 27 2010
GNU GPL
modified to use up to 12 bits ADC resolution (ex. Arduino Due)
by boredman@boredomprojects.net 26.12.2013
Low Pass filter for offset removal replaces HP filter 1/1/2015 - RW
*/
// Proboscide99 10/08/2016 - Added ADMUX settings for ATmega1284 e 1284P (644 / 644P also, but not tested) in readVcc function
@GSimas
GSimas / gist:0d3dadce64ab93dbaf42
Created June 21, 2015 04:10
AS2.0 Functions for Objects Control (Adobe Flash CS5)
var upPressed:Boolean = false;
var downPressed:Boolean = false;
var leftPressed:Boolean = false;
var rightPressed:Boolean = false;
bola.addEventListener(Event.ENTER_FRAME, fl_MoveInDirectionOfKey);
stage.addEventListener(KeyboardEvent.KEY_DOWN, fl_SetKeyPressed);
stage.addEventListener(KeyboardEvent.KEY_UP, fl_UnsetKeyPressed);
function fl_MoveInDirectionOfKey(event:Event)
@GSimas
GSimas / gist:f4dee9794902bc43cd64
Created June 21, 2015 04:09
Action Script 2.0 Function for MouseEvent - Object following mouse
onClipEvent (load) {
_x = 0;
_y = 0;
speed = 5;
}
onClipEvent (enterFrame) {
endX = _root._xmouse;
endY = _root._ymouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
@GSimas
GSimas / Character-Function-AS2.0
Created June 21, 2015 04:07
ActionScript 2.0 Functions for Flash (CS5) Platform Game
stop();
onEnterFrame = function(){
if(Key.isDown(Key.LEFT)){
personagem.direcao = "esquerda";
if(personagem._x <200){
colisao._x +=personagem.vel;
fundo._x +=personagem.vel;
mover._x +=personagem.vel;
magma._x +=personagem.vel;
} else {