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
| find $1 -type f -exec stat --format '%Y :%y %n' "{}" \; | sort -nr | cut -d: -f2- | head |
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
| public function __set($name, $value) { | |
| try { | |
| $setterGetter = $this->setterGetter($name, 'set'); | |
| } catch (\Exception $e){ | |
| if($e->getCode() == 3000){ | |
| $stack = debug_backtrace(); | |
| if(isset($stack[0]['file'])){ | |
| $fileName = $stack[0]['file']; | |
| if(!array_key_exists($fileName, self::$fileCache)){ |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd" | |
| backupGlobals="false" | |
| colors="true" | |
| bootstrap="vendor/autoload.php"> | |
| </phpunit> |
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
| !.gitignore | |
| .buildpath | |
| .project | |
| .settings/ | |
| composer.lock | |
| vendor/ |
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
| # Настройка докера | |
| eval "$(boot2docker shellinit)" |
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
| // Источник: http://stackoverflow.com/questions/6401714/php-order-array-by-date?answertab=active#tab-top | |
| $data = array( | |
| array( | |
| "title" => "Another title", | |
| "date" => "Fri, 17 Jun 2011 08:55:57 +0200" | |
| ), | |
| array( | |
| "title" => "My title", | |
| "date" => "Mon, 16 Jun 2010 06:55:57 +0200" | |
| ) |
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
| $('#ID').get(0).focus(); |
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
| location.search.replace('?','').split('&').reduce(function(s,c){var t=c.split('=');s[t[0]]=t[1];return s;},{}) |
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
| sudo /Applications/CCleaner.app/Contents/MacOS/CCleaner |
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
| ssh -L ПОРТ_ДЛЯ_ЛОКАЛЬНОГО_ОБРАЩЕНИЯ:УДАЛЕННЫЙ_ХОСТ:УДАЛЕННЫЙ_ПОРТ user@host |