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
| /* | |
| adds events to the mouse and left / right keys | |
| http://brandonaaron.net/code/mousewheel/docs | |
| */ | |
| $(document).bind('mousewheel', function(e, delta) { | |
| if(delta > 0) { | |
| stopSlideshow(); | |
| rotateImages(0); | |
| } | |
| else { |
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 | |
| /* Placehold transparent image | |
| * image.php/{title}-{width}x{height}-{hexcolor}.[png|jpeg|gif|webp|xbm|wbmp|gd|gd2] | |
| * | |
| * @require: php_gd2, | |
| */ | |
| header('Last-Modified: ' . gmdate('D, d M Y H:i:s T', filemtime(__FILE__))); | |
| if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && |
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
| /* | |
| * HTML5 Boilerplate | |
| * | |
| * What follows is the result of much research on cross-browser styling. | |
| * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal, | |
| * Kroc Camen, and the H5BP dev community and team. | |
| * | |
| * Detailed information about this CSS: h5bp.com/css | |
| * | |
| * ==|== normalize ========================================================== |
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
| /* | |
| .js-type {font-weight:700} | |
| .js-variable, .js-type{color: #228} | |
| .js-keyword{color: #708} | |
| .js-string {color:#a22} | |
| .js-punctuation {color:#666} | |
| .js-atom {color:#281} | |
| .js-comment, .js-comment * {color: #A70!important} | |
| */ | |
| String.prototype.hightlight = function(){ |
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
| var d=document, | |
| w={ | |
| 'window':0,'d':0,'d.forms':0, | |
| 'form':1,'input':1,'table':1,'a':1, | |
| '/./':0,'!1':0,'0xf0':0,'070':0,'0.90':0,'""':0,"''":0,'Array()':0,'Math':0 | |
| } | |
| for(k in w){ | |
| if(w[k]) | |
| k = d.createElement(k); | |
| v=eval(k); |
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
| #!/bin/bash | |
| ## Originally written by aysiu from the Ubuntu Forums | |
| ## This is GPL'ed code | |
| ## So improve it and re-release it | |
| ## Define portion to make Thunar the default if that appears to be the appropriate action | |
| makethunardefault() | |
| { | |
| ## I went with --no-install-recommends because |
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
| // shim for String.prototype.normalize https://github.com/walling/unorm | |
| export default str => str.normalize('NFKD') | |
| .replace(/[\u0300-\u036f]/g, "") // remove accents | |
| .replace(/\u0142/g, "l"); // ł is a letter in itself | |
| /* | |
| const normalize = import('normalize.js') | |
| console.log(normalize('ąśćńżółźćęāēūīšģķļ')) | |
| */ |
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
| <?=(@$days=intval((time()-strtotime("15.10.2011"))/86400))?"Pirms ".$days.((substr($days,-1)==1&&substr($days,-2)!=11)?" dienas":" dienām"):"Šodien";?> | |
| <?=(@$days=intval((time()-strtotime("15.10.2011"))/86400))?$days.((substr($days,-1)&&substr($days,-1)>4)?" дней":(substr($days,-1)==1?" день":" дня"))." назад":"Сегодня";?> |
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 | |
| function error($e) | |
| { | |
| switch($e['type']) | |
| { | |
| case E_ERROR: // 1 // | |
| return '<div class="alert alert-error"><a class="close" data-dismiss="alert" href="#">×</a><p><i class="icon-code icon-cog"></i>'.$e['message'].' on line '.$e['line'].'</p></div>'; | |
| case E_WARNING: // 2 // | |
| return '<div class="alert alert-warning"><a class="close" data-dismiss="alert" href="#">×</a><p><i class="icon-code icon-cog"></i>'.$e['message'].' on line '.$e['line'].'</p></div>'; | |
| case E_PARSE: // 4 // |
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
| ## Symfony2 | |
| ## Clear Cache | |
| rm -rf app/cache/* | |
| rm -rf app/logs/* |