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 | |
| /** | |
| * Converts the input `$title` into the Title Case as specified by the American Psychological Association (APA) | |
| * https://apastyle.apa.org/style-grammar-guidelines/capitalization/title-case | |
| * | |
| * Expands on the function originally written by Thomas Rutter | |
| * https://www.sitepoint.com/title-case-in-php/ | |
| * | |
| * @param string $title The title string to convert | |
| * |
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
| // ------------------- | |
| // To mass follow | |
| // ------------------- | |
| // 1. Open instagram page (eg. https://www.instagram.com/visatoronto/) utilizing google chrome | |
| // 2. Click 'xxx followers' on instagram page, this will open up a modal containing user's followers | |
| // 3. Open google chrome developer tools by either (1) right clicking on the screen and clicking 'inspect' | |
| // OR (2) Command + Option + J | |
| // 4. Click on the 'console' method in dev tools | |
| // 5. First paste the following code to instantiate jquery and press enter |
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
| defaults write com.oracle.workbench.MySQLWorkbench NSRequiresAquaSystemAppearance -bool yes | |
| echo "MySQL Workbench fixed successfully. Restart application" |
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
| # Apache configuration file | |
| # httpd.apache.org/docs/2.2/mod/quickreference.html | |
| # Note .htaccess files are an overhead, this logic should be in your Apache | |
| # config if possible: httpd.apache.org/docs/2.2/howto/htaccess.html | |
| # Techniques in here adapted from all over, including: | |
| # Kroc Camen: camendesign.com/.htaccess | |
| # perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/ | |
| # Sample .htaccess file of CMS MODx: modxcms.com | |
| # This is the free sample of .htaccess from 6GO s.r.l. | |
| # @author Claudio Ludovico Panetta (@Ludo237) |
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
| // Copyright (c) 2015, Brad Conte (http://bradconte.com) | |
| // All rights reserved. | |
| // | |
| // Redistribution and use in source and binary forms, with or without | |
| // modification, are permitted provided that the following conditions are met: | |
| // * Redistributions of source code must retain the above copyright | |
| // notice, this list of conditions and the following disclaimer. | |
| // * Redistributions in binary form must reproduce the above copyright | |
| // notice, this list of conditions and the following disclaimer in the | |
| // documentation and/or other materials provided with the distribution. |