Skip to content

Instantly share code, notes, and snippets.

View ThiagodePaulaSouza's full-sized avatar
🧪
autotelic

Thiago de Paula Souza ThiagodePaulaSouza

🧪
autotelic
View GitHub Profile
@klemensz
klemensz / hide-header.directive.ts
Last active September 30, 2023 20:35
Hide header on scroll in Ionic 5
import { Directive, HostListener, Input, OnInit, Renderer2 } from '@angular/core';
import { DomController } from '@ionic/angular';
/**
* Moves away the header when scrolling down.
*/
@Directive({
selector: '[appHideHeader]',
})
export class HideHeaderDirective implements OnInit {
<h1 align="center">
<br>
<img src="YOUR_LOGO_URL" alt="YOUR_PROJECT_NAME" width="120">
<br>
<br>
YOUR_PROJECT_NAME
</h1>
<p align="center">A little description about your project</p>
@samuelsonbrito
samuelsonbrito / lm35.c
Last active October 7, 2021 21:08
Lm35 - Arduino
const int LM35 = A0;
double temperatura;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
@fzmaster
fzmaster / fizzbuzz.py
Created December 21, 2010 03:32
Função do problema FizzBuzz
# -*- coding:utf-8 -*-
def executaFizzBuzz(numero):
"""
Autor: fzmaster
Data: 21/12/2010
Problema: Fizz Buzz
http://codingkata.org/katas/unit/fizz-buzz
Esta é a função responsável por converter múltiplos de 3 em 'fizz', múltiplos de 5 em 'buzz' e múltiplos de ambos