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
| <type>(<optional scope>): <subject> | |
| # Examples: | |
| # type: build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test | |
| # optional scope: provide additional contextual information, like: api, auth, private flow | |
| # subject: short summary of the code changes, ex: make optional to enable public requests | |
| # | |
| # Final result: feat(auth): make optional to enable public requests |
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
| version: '3.3' | |
| services: | |
| db: | |
| container_name: 'local-wordpress-db' | |
| image: 'mysql:5.7' | |
| volumes: | |
| - './data/mysql:/var/lib/mysql' | |
| ports: | |
| - 18766:3306 | |
| environment: |
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
| package-lock=false | |
| unsafe-perm=true | |
| save-prefix=~ | |
| shrinkwrap=false | |
| prefer-offline=true | |
| save=false | |
| audit=false | |
| fund=false |
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
| // NOTE: https://github.com/typicode/husky/issues/390#issuecomment-545855628 | |
| # ~/.huskyrc | |
| export NVM_DIR="$HOME/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" |
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
| # how to run this thingy | |
| # create a file on your mac called setup.sh | |
| # run it from terminal with: sh setup.sh | |
| # heavily inspired by https://twitter.com/damcclean | |
| # https://github.com/damcclean/dotfiles/blob/master/install.sh | |
| #!/bin/bash | |
| set -euo pipefail |
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 isPrivate() { | |
| return new Promise(function (resolve) { | |
| const on = function () { return resolve(true); }; // is in private mode | |
| const off = function () { return resolve(false); }; // not private mode | |
| const testLocalStorage = function () { | |
| try { | |
| if (localStorage.length) off(); | |
| else { | |
| localStorage.x = 1; | |
| localStorage.removeItem('x'); |
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
| <snippet> | |
| <content><![CDATA[ | |
| async.waterfall([ | |
| function (${1:callback}) { | |
| } | |
| ], function (err) { | |
| }); | |
| ]]></content> | |
| <!-- Optional: Set a tabTrigger to define how to trigger the snippet --> |
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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js'></script> | |
| </head> | |
| <body> | |
| <script type='text/javascript'> | |
| var mobileExp = /android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile|o2|opera mini|palm( os)?|plucker|pocket|pre\/|psp|smartphone|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce; (iemobile|ppc)|xiino/i; |