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
(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; |
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 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*[\}\)\]] |
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
chflags -R nouchg |
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
'use strict'; | |
/** | |
* Author: Tomas Green | |
* License: MIT | |
*/ | |
/* | |
Using the database: |
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 | |
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 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
[{ | |
"titel": "This is a title", | |
"description": "This is not a title", | |
"url": "https://www.google.se" | |
},{ | |
"titel": "This is a new title", | |
"description": "This is not a new title", | |
"url": "https://www.microsoft.com" | |
}] |
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
{ | |
"accessToken":"nemuHiGezkQMMLgQigFmUvHkHaCd7tIrLcGSQwcxN2AbUpzeurIie1XOGtQhkraF", | |
"refreshToken":"jPv66wZnJVEugcYyrQtEi3GKRyCE6c7K", | |
"displayName": "Tomas Green", | |
"expires": "2017-06-21T15:29:32Z" | |
} |
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
[{ | |
"id": "1507B534-CA5F-4B6D-97D5-B5B5194710FE", | |
"title": "Nihil explicabo animi maiores necessitatibus et non eveniet.", | |
"body": "Dolorum illum voluptatem labore totam. Est aperiam est et hic. Autem in perspiciatis sed dolorem qui consectetur hic ut officia. Nisi aliquid alias et tempora vero. Fugiat et debitis consequatur officia consequatur iste facere impedit aut. Nihil illum commodi consequatur delectus commodi accusantium laboriosam in nihil.", | |
"created": "2018-03-15T17:03:27", | |
"user": { | |
"id": "492208F5-C6AB-4267-B8ED-8B2E57C3A2B2", | |
"name": "Autumn Pouros", | |
"email": "Dina_Fisher1@yahoo.com" | |
} |
OlderNewer