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
# all php files :: disallow direct access of file | |
# between <?php and ?> | |
defined('_JEXEC') or die; | |
# index.php :: define variable with application | |
# between <?php and ?> | |
$app = JFactory::getApplication(); | |
# index.php :: define variable with document | |
# between <?php and ?> |
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
/* Solo Queries | |
*********************************************/ | |
/* Phones (portrait and landscape) */ | |
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {} | |
/* Phones (landscape) */ | |
@media only screen and (min-width: 321px) {} | |
/* Phones (portrait) */ |
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.prices>(div.plan$*3>div.inner>(div.caption+div.title+div.price+div.check*5+div.action)) |
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.
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> |
OlderNewer