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 | |
| date_default_timezone_set('Europe/Stockholm'); | |
| if ($handle = opendir('./')) { | |
| echo "Directory handle: $handle\n"; | |
| echo "Entries:\n"; | |
| while (false !== ($entry = readdir($handle))) | |
| { | |
| $ext = strtolower(pathinfo($entry, PATHINFO_EXTENSION)); | |
| if($ext == "jpg" || $ext == "jpeg") | |
| { |
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
| 'use strict'; | |
| /** | |
| * Author: Tomas Green | |
| * License: MIT | |
| */ | |
| /* | |
| Using the database: |
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
| chflags -R nouchg |
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
| We can all agree that trailing commas in IE7 is a drag. The solutions I've found invovles some kind of automatic removal which feels a little over the top. So I've decived to go the easy way. | |
| This regex can be used with the find function in your text editor. So simple and within your control. | |
| ,(\n|\s*)+(\s*\/\/.*\n)*\s*[\}\)\]] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| (function ($) { | |
| /* Simple jquery script enabling flexible textarea height. This seems to actually work and doens't require anything more than... this */ | |
| $.fn.flexHeight = function () { | |
| var $obj = $(this); | |
| if (!$obj.length) { | |
| return; | |
| } | |
| if ($obj.attr('flexHeightInitialized')) { | |
| $obj.trigger('propertychange'); | |
| return; |
NewerOlder