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
| server { | |
| listen 80 default_server; | |
| server_name example.com www.example.com; | |
| access_log /srv/www/example.com/logs/access.log; | |
| error_log /srv/www/example.com/logs/error.log; | |
| root /srv/www/example.com/public; | |
| index index.php index.html; |
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 | |
| /** | |
| * Zend Framework Controller Plugin to allow post output processing | |
| * | |
| * @version 1 | |
| * @author Ashley White, http://www.needathinkle.com/ | |
| * @license http://creativecommons.org/licenses/by-sa/3.0/ | |
| */ | |
| final class Thinkle_Controller_Plugin_PostProcess extends Zend_Controller_Plugin_Abstract { | |
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 urls = ['put', 'your', 'page', 'urls', 'here']; | |
| page.onConsoleMessage = function (msg) { | |
| if(msg.indexOf('SCRAPE-RESULT:') >= 0) { | |
| var fn = 'file_name_to_write_to.txt'; | |
| console.log('writing file', fn) | |
| fs.write(fn, msg.replace('SCRAPE-RESULT:', ''), 'w'); | |
| } |
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
| /** | |
| * Paginating through elements with MooTools | |
| * | |
| * Use: | |
| * new ThinklePaginator(el, options); | |
| * | |
| * @link www.needathinkle.com/tumblr/18254885740 | |
| * @version 2 | |
| * @author Ashley White, www.needathinkle.com | |
| * @license @license http://creativecommons.org/licenses/by-sa/3.0/ |
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
| /* mobile (portrait and landscape) ----------- */ | |
| @media only screen and (min-device-width : 320px) and (max-device-width : 480px) { | |
| } | |
| /* mobile (landscape) ----------- */ | |
| @media only screen and (min-width : 321px) { | |
| } |
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
| /** | |
| * Pretty scrolling divs for mootools. | |
| * | |
| * Use: | |
| * new ScrollBar(el); | |
| * | |
| * @link www.needathinkle.com/tumblr/12258839049 | |
| * @version 2 | |
| * @author Ashley White, www.needathinkle.com | |
| * @license @license http://creativecommons.org/licenses/by-sa/3.0/ |
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 | |
| /** | |
| * Cascading module directory file structure | |
| * | |
| * @version 1 | |
| * @author Ashley White, www.needathinkle.com | |
| * @license @license http://creativecommons.org/licenses/by-sa/3.0/ | |
| */ |
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 | |
| /** | |
| * @version 1 | |
| * @author Ashley White, http://www.needathinkle.com/ | |
| * @license http://creativecommons.org/licenses/by-sa/3.0/ | |
| */ | |
| require 'mailchimp/MCAPI.class.php'; | |
| include 'krumo/class.krumo.php'; |
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 | |
| /** | |
| * @version 1 | |
| * @author Ashley White, http://www.needathinkle.com/ | |
| * @license http://creativecommons.org/licenses/by-sa/3.0/ | |
| */ | |
| final class Thinkle_Service_SongKick_Venue { | |
| const VENUE_URI = 'http://www.songkick.com/venues/%d/calendar'; |
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 | |
| /** | |
| * A simple cron to get the newest .tar.gz file from a backup folder and upload to Google Docs. | |
| * | |
| * @version 1 | |
| * @author Ashley White, http://www.needathinkle.com/ | |
| * @license http://creativecommons.org/licenses/by-sa/3.0/ | |
| */ |
NewerOlder