Skip to content

Instantly share code, notes, and snippets.

View Andreolle's full-sized avatar
:octocat:

Andreolle de Sousa Dantas Andreolle

:octocat:
  • São Paulo
  • 14:05 (UTC -03:00)
View GitHub Profile
@Andreolle
Andreolle / MathFunctions.js
Created April 5, 2019 01:31
Functions to find bigger or smallest number in passed args
const getSmallestNumber = (...nums) => Math.min(...nums)
const getBiggerNumber = (...nums) => Math.max(...nums)
// Ex:
// getSmallestNumber(2,1,5,2,6)
// = 1
@Andreolle
Andreolle / responsive-iframe.scss
Created September 27, 2017 15:00
Youtube Iframe responsive
.video-wrapper {
position: relative;
padding-bottom: 56.25%;
height: 0;
overflow: hidden;
max-width: 100%;
iframe, object, embed {
margin-top: 0;
position: absolute;
top: 0;
@Andreolle
Andreolle / gist:278957a8bd511662db001e4d2091f4c4
Last active June 17, 2016 15:22
Regex verifica se está usando uma LID
if (/(.*)\?lid=(.*)/ig.test(window.location.href)) {
console.log("Você está numa LID, escreva seus códigos para Homologação aqui....");
} else {
console.log("Você não está numa LID");
}