CTRL+P | go to file |
CTRL+R | go to methods |
CTRL+G | go to line |
CTRL+⇧+P | package control |
CTRL+⇧+N | new window (useful for new project) |
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 all images of a folder | |
$folder = 'images/'; | |
$types = array('png','jpg','jpeg','gif'); | |
$openfolder = opendir($folder); | |
while ($file = readdir($openfolder)) | |
{ | |
if( in_array(strtolower(substr($file,-3)),$types) OR |
A script easy to implement in own enviroment.
A Pen by Alexander Schmidt on CodePen.
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
<select> | |
<option>year</option> | |
<?php | |
$range = 100; | |
$limit = 18; | |
$current = date('Y'); | |
$eldest = $current - $range; | |
$recent = $current - $limit; | |
foreach (range($recent, $eldest) as $year) |
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
$('#zip').blur(function() { | |
var city = $('#city'); | |
if (!city.val()) { | |
$.getJSON('http://www.geonames.org/postalCodeLookupJSON?&country=DE&callback=?', {postalcode: this.value }, function(response) { | |
if (!city.val() && response && response.postalcodes.length && response.postalcodes[0].placeName) { | |
city.val(response.postalcodes[0].placeName); | |
} | |
}) | |
} | |
}); |
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
<div id="smartphone">Smartphone</div> | |
<div id="tablett">Tablett</div> | |
<div id="desktop">Desktop</div> |
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
<div class="search"> | |
<form action="" method="post" class="form-inline"> | |
<img src="http://placehold.it/24x24" /> | |
<input name="searchword" id="mod-search-searchword" maxlength="20" class="inputbox search-query" size="20" value="Suchen..." onblur="if (this.value=='') this.value='Suchen...';" onfocus="if (this.value=='Suchen...') this.value='';" type="text"> <input name="task" value="search" type="hidden"> | |
<input name="option" value="com_search" type="hidden"> | |
<input name="Itemid" value="143" type="hidden"> | |
</form> | |
</div> |
2 divs, 1 content, 1 image, transition effect on hover, pure css, no js
A Pen by Alexander Schmidt on CodePen.
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
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
OlderNewer