This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
margin: 0px 15%; | |
margin-bottom: 200px; | |
} | |
small { | |
color: gray; | |
} | |
#tb-header { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict" | |
/** | |
* preencher.js | |
* Matheus Alves | 2017 | |
* | |
* Preencher números de um array | |
* com base no número mais comprido. | |
* | |
* Exemplo: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function destacar(processo) { | |
return processo.replace(/([^0]+\d-\d{2})/, function (numero) { | |
return numero.bold(); | |
}); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin ggl-font($family) { | |
$url: "https://fonts.googleapis.com/css?family=" + $family; | |
@import url(unquote($url)); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (angular) { | |
"use strict"; | |
angular | |
.module("preencher", []) | |
.filter("preencher", preencher); | |
function () { | |
return function (str, pad) { | |
return str |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin gradiente($direcao, $cor, $escuridao) { | |
$cor-escura: darken($cor, $escuridao); | |
background-image: linear-gradient( | |
to $direcao, | |
$cor, | |
$cor-escura | |
); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
body { | |
font-family: sans-serif; | |
} | |
.msg { | |
padding: 2px 6px; | |
border-radius: 2px; | |
font-size: 12px; | |
background-color: #eee; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
class LocalStorage { | |
constructor(prefix) { | |
this.prefix = prefix + "-"; | |
} | |
getItem(name) { | |
return JSON.parse(localStorage.getItem(this.prefix + name)); | |
} | |
hasItem(name) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function () { | |
"use strict"; | |
function addEvent(textarea) { | |
textarea.style.overflow = "hidden"; | |
function updateHeight() { | |
var offset = textarea.offsetHeight - textarea.clientHeight; | |
textarea.style.height = "auto"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
@keyframes change { | |
from {background-color: #eee;} | |
to {background-color: #f4f4f4;} | |
} | |
.img { | |
position: relative; | |
border: solid 2px #ddd; | |
width: 300px; | |
height: 300px; |
OlderNewer