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
| gulp.watch ('css/**/*.css', function(e){ | |
| // Only new or renamed | |
| if(e.type !== 'deleted'){ | |
| gulp.start('inject'); | |
| } | |
| }); |
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 | |
| /** | |
| * Fix the code: Add, Remove or Change 1 character to make this code print 3 pound signs "£££" | |
| * Here's the broken code that will run forever (do NOT uncomment this and run it!)... | |
| */ | |
| //$n = 3; | |
| //for( $i = 0; $i < $n; $i-- ){ | |
| // print "£"; | |
| //} |
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
| // rotateByN() moves a chunk of an array from the start to the end | |
| Array.prototype.rotateByN = function(n) { | |
| var arrReturn = [], | |
| i, | |
| iLimit = this.length; | |
| // Add everything above n | |
| for( i = n; i < iLimit; i++){ | |
| arrReturn.push( this[i] ); |