$ docker
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
| run as admin then run Set-ExecutionPolicy RemoteSigned |
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
| virtualenv --system-site-packages -p python3 ./venv | |
| pip install -U floyd-cli | |
| floyd init sudopower/restml | |
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> | |
| .grid-container-portfolio-home { | |
| padding-top: 1em; | |
| display: grid; | |
| grid-template-columns: 1fr 1fr 1fr 1fr; | |
| grid-template-rows: 1fr 1fr 1fr; | |
| grid-gap:1em; | |
| grid-template-areas: "main-img main-img sec-img-1 sec-img-2" "main-img main-img sec-img-3 sec-img-4" ". . . ."; | |
| } |
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
| <form id="foo"> | |
| <input type="text" name="name"> | |
| <!-- | |
| .... | |
| --> | |
| </form> | |
| <script> | |
| //callback doesn't run if HTML validation fails | |
| $('form').submit(function(event) { |
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 waitForEl = function(id, callback) { | |
| //if ($('#widget_main_div').length != 0) { | |
| // callback(); | |
| //} else { | |
| // setTimeout(function() { | |
| // waitForEl($("#" + id).is(":visible"), callback); | |
| // }, 1000); | |
| //} | |
| if(content.length !=0){ | |
| callback() |
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
| jQuery("a").click(function(e) { | |
| var leave = confirm("Whoa ! 😮 I dare you press ok"); | |
| if(leave){ | |
| var really = confirm("Ok is for losers ! Cancel is FTW 😎"); | |
| if(really){ | |
| window.close(); | |
| }else{ | |
| event.preventDefault(); | |
| } | |
| } |
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
| <?php | |
| //CHANGE STARTS FROM LINE NO 60, you could replace the file if you're using xampp (pls backup existing one just in case) | |
| /* | |
| * This is needed for cookie based authentication to encrypt password in | |
| * cookie | |
| */ | |
| $cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */ | |
| /* |
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
| ::=============================================================== | |
| :: Download and install cli from https://awscli.amazonaws.com/AWSCLIV2.msi OR https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html | |
| ::=============================================================== | |
| aws configure | |
| ACCESS-KEY:key | |
| SECRET:secret | |
| aws s3 ls s3://bucket-name |
OlderNewer