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
| // module.js | |
| /** | |
| * Export Default Class with static methods | |
| * Methods have to be static to use directly on import | |
| */ | |
| export default class { | |
| static color(text) {console.log(`this is color ${text}`)} | |
| static shape(text) {console.log(`this is shape ${text}`)} | |
| } |
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
| @font-face { | |
| font-family: "Mallory"; | |
| src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAASSEABMAAAACmqAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABCQVNFAAEkKAAAAD4AAABQizmURUZGVE0AASRoAAAAHAAAABx6lp9nR0RFRgAAw8AAAACKAAAAukTRSQtHUE9TAADxLAAAMvkAAKz03bTxukdTVUIAAMRMAAAs3QAAT8z/q2FFT1MvMgAAAiQAAABXAAAAYGVvlZZjbWFwAAAIeAAAA1UAAATOkKZXdmN2dCAAABI4AAAAVgAAAJoHoTECZnBnbQAAC9AAAAXDAAAL4j+uHqNnYXNwAADDuAAAAAgAAAAIAAAAEGdseWYAABw0AACN9AABMeAk45KnaGVhZAAAAagAAAA2AAAANgjRvK9oaGVhAAAB4AAAACEAAAAkCTcIi2htdHgAAAJ8AAAF+wAAE+wwfNgCbG9jYQAAEpAAAAmhAAAJ+GCmqohtYXhwAAACBAAAACAAAAAgBkECLW5hbWUAAKooAAADDAAABudtaHIgcG9zdAAArTQAABaDAAAx5X0262lwcmVwAAARlAAAAKEAAACxe7dACQABAAAAAQBBcTUXlF8PPPUAHwPoAAAAANJ48IMAAAAA0nmH2/8h/v0FiwQuAAAACAACAAAAAAAAeNpjYGRgYD7wX4DhBOuW/4r/TrN2MwBFkAHLbwCr6gfOAAAAAAEAAAT7AE0ABwBfAAUAAgA2AEYAdwAAAIkBNgADAAN42mNgYUphnMDAysDA1MUUwcDA4A2hGeMYjBh1gKKMrIzMrIxMzCwKDAzsDEjALcjLn/EAA+9vJuYD/wUYTjAfYPigwMA4GSTH+IVpD5BSYOABACYtDfQAeNrtl39olVUYx7/veSfrB/5AM1db+9F1bs7N6zZj/hhz2pLmnJpw21UnqEzLUsQ/UjNc/6hYWqhJ |
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 scrollUtils = { | |
| getScrollY : function() { | |
| return (window.pageYOffset !== undefined) | |
| ? window.pageYOffset | |
| : (window.scrollTop !== undefined) | |
| ? window.scrollTop | |
| : (document.documentElement || document.body.parentNode || document.body).scrollTop; | |
| }, |
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
| /** | |
| * Sheet (Tab) Name. | |
| * Sheet1 is default | |
| */ | |
| var sheetName = 'Sheet1' | |
| /** | |
| * Get property store | |
| * all users can access within this script (only) |
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
| /** | |
| * Render resources | |
| * Builds out Endurance Resources (FAQ/Glossary) from a js object | |
| * @see views/faq.html.slim & views/glossary.html.slim | |
| */ | |
| /** @ example tempalte | |
| script#template-resources type="text/template" | |
| .accordion__item id="faq{{count}}" |
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
| # Access Mysql | |
| mysql -u mysql_username -p | |
| # ie: mysql -u root -p | |
| # Show db uns/pws (on DO) | |
| cat /root/.digitalocean_password | |
| # Dump db to root on server to current location (gen root after ssh) | |
| mysqldump -u [username] -p [target_database_name] > [exported_database_file_name].sql |
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
| /** | |
| * Debug Helper | |
| * Logs debug info on object context | |
| */ | |
| Handlebars.registerHelper('debug', function(optionalValue) { | |
| console.log('Current Context'); | |
| console.log('===================='); | |
| console.log(this); | |
| }); |
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
| # Refs | |
| # https://dev.mysql.com/doc/refman/8.0/en/connecting.html | |
| # Apache restart mysql | |
| sudo service mysql restart | |
| # Login | |
| mysql -u root -p |
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
| /** | |
| * Post Type Labels | |
| * Utility to handle singular / plural labels of register_post_type(); | |
| * $labels = jumpoff_post_type_labels('Project', 'Projects'); | |
| */ | |
| function jumpoff_post_type_labels( $singular = 'Post', $plural = 'Posts' ) { | |
| $p_lower = strtolower( $plural ); | |
| $s_lower = strtolower( $singular ); | |
| return [ |