As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
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 | |
| /** | |
| * | |
| * Gmail attachment extractor. | |
| * | |
| * Downloads attachments from Gmail and saves it to a file. | |
| * Uses PHP IMAP extension, so make sure it is enabled in your php.ini, | |
| * extension=php_imap.dll |
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
| $('#myModal').on('loaded.bs.modal', function (e) { | |
| $('#myModal').removeData(); | |
| }); | |
| $(document).ready(function(){ | |
| $('body').on('hidden.bs.modal', '.modal', function () { | |
| $(this).removeData('bs.modal'); | |
| }); | |
| }); |
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
| // Input it initial amount | |
| // Interest as a number, e.g. 5% is 1.05 on a yearly basis | |
| // Length as number of years | |
| // Name of this calculation | |
| // Addition determines whether the input variable is one time or a yearly contribution | |
| function compound( input, interest, length, name, addition ) { | |
| var accumulated = input | |
| for ( i=0; i < length; i++ ) { | |
| accumulated *= interest | |
| if ( addition ){ |