View gist:05a11cbbb404184493b2353f4041a6bc
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
diff --git a/src/Latte/Compiler/TemplateGenerator.php b/src/Latte/Compiler/TemplateGenerator.php | |
index c522437b..b7fe0e91 100644 | |
--- a/src/Latte/Compiler/TemplateGenerator.php | |
+++ b/src/Latte/Compiler/TemplateGenerator.php | |
@@ -197,7 +197,7 @@ private static function buildParams( | |
? implode('', $res) . 'unset($ʟ_args);' | |
: "extract($cont);" . (str_contains($cont, '$this') ? '' : "unset($cont);"); | |
- return $extract . "\n" | |
+ return $extract |
View vzdump-hook-script.pl
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/perl -w | |
use strict; | |
my $remote = 'carol@office.growjob.com::carol/dump'; | |
my $phase = shift; | |
if ($phase eq 'backup-end') { |
View js
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
if(status == cookieconsent.status.deny) { | |
$('script[cookieconsent=enabled]').each(function() { | |
console.log("Cookie disabled: " + $(this).data("cookietype")); | |
$(this).remove(); | |
}); | |
} else { | |
$('script[cookieconsent=disabled]').each(function() { | |
scriptOrigin = $(this); | |
script = scriptOrigin.clone(); | |
script.attr('type', 'text/javascript'); |
View gist:535aae8426891b267092203af96c216b
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
0x0c5331b568bb5f75d304a4df00e086c5aed9e3eb |
View gist:d97a25b9ddcc195036da
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 Metis\Tester; | |
use Nette\Object; | |
use Tracy\Dumper; | |
class TestingServer extends Object { | |
public $onOutput; |