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
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/id_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/github_rsa | |
| ssh-keygen -t rsa -b 4096 -N '' -C "[email protected]" -f ~/.ssh/mozilla_rsa |
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
| #!/bin/bash | |
| # generate new personal ed25519 ssh key | |
| ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "rob thijssen <[email protected]>" | |
| # generate new host cert authority (host_ca) ed25519 ssh key | |
| # used for signing host keys and creating host certs | |
| ssh-keygen -t ed25519 -f manta_host_ca -C manta.network | |
| eval "$(ssh-agent -s)" |
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 hanoi(disks, i, k) { | |
| let tmp; | |
| if (disks === 1) console.log( `Disk (${disks}): pin_${i} -> pin_${k}` ); | |
| else { | |
| tmp = 6 - i - k; | |
| hanoi(disks - 1, i, tmp); | |
| console.log( `-Disk (${disks}): pin_${i} -> pin_${k}` ); | |
| hanoi(disks - 1, tmp, k); | |
| } |
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
| let out = document.querySelector('.out') | |
| document.querySelector('button').onclick = () => { | |
| let dateStart = document.querySelector('#start-date').value; | |
| let dateEnd = document.querySelector('#end-date').value; | |
| dateStart = Date.parse(dateStart) | |
| dateEnd = Date.parse(dateEnd) | |
| for (let i = dateStart; i < dateEnd; i = i + 24*60*60*1000){ |
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 cache = new WeakMap() | |
| function cacheUser(user) { | |
| if (!cache.has(user)) { | |
| cache.set(user, Date.now()) | |
| } | |
| return cache.get(user) | |
| } | |
| let alex = {name: 'Alex',} |
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 { | |
| background: url("https://cdn.freecodecamp.org/testable-projects-fcc/images/survey-form-background.jpeg"); | |
| background-position: center center; | |
| background-repeat: no-repeat; | |
| background-attachment: fixed; | |
| background-size: cover; | |
| } |
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
| /* | |
| * Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/ | |
| */ | |
| /* Smartphones (portrait and landscape) ----------- */ | |
| @media only screen | |
| and (min-device-width : 320px) | |
| and (max-device-width : 480px) { | |
| /* Styles */ | |
| } |
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
| <!--[if lt IE 9]> | |
| <script src="libs/html5shiv/es5-shim.min.js"></script> | |
| <script src="libs/html5shiv/html5shiv.min.js"></script> | |
| <script src="libs/html5shiv/html5shiv-printshiv.min.js"></script> | |
| <script src="libs/respond/respond.min.js"></script> | |
| <![endif]--> |