find ~/Sites -type d -maxdepth 3 -name 'node_modules' | sudo xargs tmutil addexclusion -p
defaults read /Library/Preferences/com.apple.TimeMachine.plist
| var elements = document.querySelectorAll('[data-mailto]'); | |
| for (var i = elements.length - 1; i >= 0; i--) { | |
| var el = elements[i]; | |
| var email = ''; | |
| for (var j = el.children.length - 1; j >= 0; j--) { | |
| if (el.children[j].style.display !== 'none') { | |
| email = el.children[j].innerText + email; | |
| } | |
| } | |
| el.innerHTML = email; |
| function dateDiff(date) { | |
| date = date.split('-'); | |
| var today = new Date(); | |
| var year = today.getFullYear(); | |
| var month = today.getMonth() + 1; | |
| var day = today.getDate(); | |
| var yy = parseInt(date[0]); | |
| var mm = parseInt(date[1]); | |
| var dd = parseInt(date[2]); | |
| var years, months, days; |
| .loader { | |
| @w: 48px; | |
| @m: 16px; | |
| position:fixed; | |
| left:50%; | |
| top:50%; | |
| width:@w + 2 * @m; | |
| height:@w + 2 * @m; | |
| margin-left:-(@w / 2 + @m); | |
| margin-top:-(@w / 2 + @m); |
| <a href="javascript:(function()%7B%24('article%5Bclass*%3D%22Post%22%5D%20img%5Bclass*%3D%22Photo%22%5D').each(function()%7Bwindow.open(%24(this).attr('src')%2C'_blank'%2C''%2C'')%3B%7D)%7D)()">instagram image</a> |
| // get country code of site visitor | |
| function getByVisitor() | |
| { | |
| if (array_key_exists( '__COUNTRY__', $_SESSION )) | |
| { | |
| return $_SESSION[ '__COUNTRY__' ]; | |
| } | |
| elseif ($host=gethostbyaddr(Application::getIP()) and substr($host, -3, 1)=='.' and $country=substr($host, -2) and $country=Countries::make()->findLike('code', $country)->first()->code) | |
| { | |
| return $_SESSION[ '__COUNTRY__' ]=$country; |
| <?php | |
| class Some_Class_To_Parse_Colors_From_Images | |
| { | |
| function logo() | |
| { | |
| $src = 'public/dummy/logo2.png'; | |
| $im = imagecreatefrompng(ROOT . $src); | |
| $w0 = imagesx($im); | |
| $h0 = imagesy($im); |