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
| <script> | |
| // Define as tags - PODE ALTERAR | |
| var tags = [ | |
| { label: "NEW", href: "/new", size: 50 }, | |
| { label: "Motion", href: "/motion", size: 36 }, | |
| { label: "Art direction", href: "art-direction", size: 28 }, | |
| { label: "Illustration", href: "/illustration", size: 28 }, | |
| { label: "Design", href: "/design", size: 20 }, | |
| { label: "Product", href: "/product", size: 20 }, | |
| { label: "Disney", href: "/disney", size: 20 }, |
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
| async function tryHard<T>(fn: () => Promise<T>, attempts = 3): Promise<T> { | |
| try { | |
| return await fn() | |
| } catch (error) { | |
| if (attempts > 0) { | |
| return await tryHard(fn, attempts - 1) | |
| } else { | |
| throw error | |
| } | |
| } |
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
| const { execSync } = require('child_process'); | |
| const packageName = 'react-hot-loader'; | |
| const currentVersion = '1.3.0'; | |
| const allVersions = eval(execSync(`npm view ${packageName} versions`).toString()); | |
| const currentVersionIndex = allVersions.indexOf(currentVersion); | |
| const forwardVersions = allVersions.slice(currentVersionIndex); | |
| forwardVersions.forEach(version => { |
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
| #loading { | |
| @extend %screen; | |
| display: flex; | |
| flex-direction: column; | |
| justify-content: center; | |
| text-align: center; | |
| background: linear-gradient(rgb(255, 211, 0), rgb(239, 78, 35)); | |
| font-size: 33px; | |
| color: #fff; |
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
| http://constant.co.za/fix-permissions-on-xampp-osx/ |
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
| commands: | |
| 01-update-composer: | |
| command: export COMPOSER_HOME=/root && /usr/bin/composer.phar self-update | |
| option_settings: | |
| - namespace: aws:elasticbeanstalk:application:environment | |
| option_name: COMPOSER_HOME | |
| value: /root | |
| container_commands: |
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
| var values = [0,0,0,0]; | |
| document.addEventListener('keydown', function(e) { | |
| if (!e.ctrlKey && !e.altKey && !e.shiftKey) { | |
| switch (e.which) { | |
| case 38: values[0]++; e.preventDefault(); break; //right | |
| case 39: values[0]++; e.preventDefault(); break; //up | |
| case 37: values[0]--; e.preventDefault(); break; //left | |
| case 40: values[0]--; e.preventDefault(); break; //down | |
| } | |
| } |
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
| <!doctype html> | |
| </html> | |
| <head> | |
| <title>Calculadora de font-size responsivo</title> | |
| <style type="text/css"> | |
| body { | |
| font-family: sans-serif; | |
| max-width: 700px; | |
| margin: 30px auto; |