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
alert(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 | |
declare(strict_types=1); | |
namespace Vendor\Package\DependencyInjection\Compiler; | |
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface; | |
use Symfony\Component\DependencyInjection\ContainerBuilder; | |
final class RemoveSyliusDoctrineMigrationPass implements CompilerPassInterface |
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 | |
/* | |
* What pattern is this class? | |
*/ | |
declare(strict_types=1); | |
namespace Vendor\Package\Bundle\PickupPointBundle\Pattern; |
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 | |
declare(strict_types=1); | |
if ($url = getenv('PROJECT_URL')) { | |
return [ | |
'kdyby.console' => [ | |
'url' => (new Nette\Http\Url($url))->getAbsoluteUrl(), | |
], | |
]; |
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 | |
declare(strict_types=1); | |
if ($url = getenv('DATABASE_URL')) { | |
$url = new Nette\Http\Url($url); # Expected format "mysql://user:password@localhost:3360/database" | |
$driversMap = [ | |
'mysql' => 'pdo_mysql', | |
'mysqli' => 'mysqli', |
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
# Git and Workflows | |
## Brief "history" | |
- Centrailized / Decentralized / (*Local data model) | |
- Open-source / Proprietary | |
- ~45 of VCS (Vesion-Control Software) | |
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 R; | |
use Tracy; | |
require(__DIR__ . '/Dumper.php'); | |
/** | |
* @todo |
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
rvar gulp = require('gulp'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
expect = require('gulp-expect-file'), | |
cleanCSS = require('gulp-clean-css'), | |
merge = require('merge-stream'), | |
gulpLess = require('gulp-less'), | |
runSequence = require('run-sequence'); // This is intended to be a temporary solution until the release of gulp 4.0 | |
var wwwDir = 'www', |
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
#!/bin/bash | |
sudo apt-get update | |
sudo apt install tasksel | |
sudo tasksel install lamp-server | |
# Check your Web Server | |
sudo systemctl status apache2 |
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
'use strict'; | |
import autocomplete from 'autocomplete.js'; | |
export class Suggestion { | |
constructor(elementId, debug = false) { | |
this.el = $('#' + elementId); | |
this.cache = []; | |
this.debug = debug; |
NewerOlder