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
http://gbayer.com/development/moving-files-from-one-git-repository-to-another-preserving-history/ | |
http://stackoverflow.com/questions/2314652/is-it-possible-to-move-rename-files-in-git-and-maintain-their-history | |
http://stackoverflow.com/questions/3142419/how-can-i-move-a-directory-in-a-git-repo-for-all-commits |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#!/usr/bin/python -u | |
import sys, json | |
from pygments import highlight | |
from pygments.lexers import JsonLexer | |
from pygments.formatters import Terminal256Formatter | |
while True: | |
line = sys.stdin.readline() | |
if line.strip(): |
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 | |
namespace MyApp; | |
class HtmlHandler implements ViewHandler | |
{ | |
public function __invoke(Response $response) | |
{ | |
foreach ($response->getHeaders() as $header) | |
header($header); |
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 | |
class CompaniaAerea | |
{ | |
protected $politicaOverbooking; | |
public function fazReserva(Voo $voo, $numPassageiros) | |
{ | |
if (!$this->politicaOverbooking->permitida($voo, $numPassageiros)) | |
throw new Exception('BLA'); |
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
; services.ini | |
[userService MyApp\Service\UserService] | |
options = [appContainer] | |
serviceLocator = [this] | |
; application.ini | |
; App configuration | |
url = "http://www.google.com" | |
db_host = "127.0.0.1" |
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 | |
abstract class ServiceLocator | |
{ | |
protected static $locator; | |
public static function load(ServiceLocator $locator) | |
{ | |
self::$locator = $locator; | |
} |
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 | |
function leSerialize() | |
{ | |
for ($i = 0; $i < 1000; $i++) | |
unserialize('O:8:"stdClass":0:{}'); | |
} | |
function leNew() | |
{ |