This file contains 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 | |
/** | |
* Bulk Refund Orders | |
* | |
* This script expects a csv file with following columns: | |
* - Order ID 1002 | |
* - Reason for refund 'Item was oversold.' | |
* - Amount to refund '34.56' | |
* - Refund payment true/false | |
* - Restock item true/false |
This file contains 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
/* | |
JS - Remove Duplicate Elements (If More Than One) | |
E.g. Removing duplicate breadcrumb items if there are intentially multiple copies of elements | |
Reference Link: http://stackoverflow.com/questions/2822962/jquery-remove-duplicate-elements | |
*/ |
This file contains 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 | |
/* | |
List_Custom_Post_Type_Posts_with_AJAX class. | |
Shows how to create a widget with a dropdown list of posts for a given post type and | |
then retrieve HTML specific to the selected post via AJAX to insert into the page. | |
Yes, the name of the class is insanely long in hopes that you'll be forced to think | |
about what would be a better name. |
This file contains 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
/* | |
JS - Snap To Section | |
Snaps elements to the section as users scroll | |
Reference Link: http://stackoverflow.com/questions/6800404/scrollable-panel-snap-to-elements-on-scroll | |
*/ |
This file contains 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
/* | |
JS - Media Match Function | |
Use JavaScript's matchMedia Method to detect the type of device you are using, and invoke/activate functions based on those criteria. | |
Reference Links: | |
http://davidwalsh.name/orientation-change | |
http://davidwalsh.name/device-state-detection-css-media-queries-javascript | |
http://www.slideshare.net/DavidKnight5/howto-match-media-25008199 |
This file contains 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
/* | |
Gmail/Google Reader Sidebar Scroll Shadows | |
------------------------------------------- | |
Neat effect that mimics the scroll shadows that appear in the GOogle sitde bar and visually cues users to scroll up or down depending on their position. | |
Credit goes to Lea Verou for this awesome find. | |
Source: | |
Lea's Talk: http://www.youtube.com/watch?v=3ikye7Qc7Ak | |
Code Source: http://lea.verou.me/more-css-secrets/#slide9 | |
This file contains 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
/* | |
JS - Style Before and After Elements | |
Reference Site: http://davidwalsh.name/ways-css-javascript-interact | |
*/ | |
// Get the color value of .element:before | |
var color = window.getComputedStyle( |
This file contains 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
/* | |
Back To Top Script (and CSS) | |
Your Classic Back To Top Script that everyone has come to love. Had to make one for one of my projects that was way to long | |
so I decided to learn how to do it from scratch following a tutorial on net.tutsplus.com | |
Reference: | |
http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-implement-a-sticky-back-to-top-button/ |
This file contains 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 | |
class Controller | |
{ | |
public $load; | |
public $model; | |
function __construct() | |
{ |
NewerOlder