Skip to content

Instantly share code, notes, and snippets.

Maciej Lebkowski mlebkowski

Block or report user

Report or block mlebkowski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View docker-compose.yml
version: "3"
build: .docker/php
command: gulp browser-sync --proxy http://backend
working_dir: /app
- 3000:3000
View Rumble


1 DireTide 2 First Floor 3 Kill All Humans! 4 GUARDIAN ANGELS 5 The Lost Cartel 6 Acts of Vengeance 7 Black Lotus 8 Best Of The Best Of The Best

FILES=(cards.xml cards_finalform.xml cards_mythic.xml levels.xml combos.xml missions.xml)
get_diff() {
declare file=$1
export_diff() {
declare project=$1 period=$2 hash=$3
local person="$(git -C "$project" show --format="%an" -s "$hash")"
local target="output/$period/$person/${project#projects/}/$hash.html"
mkdir -p "$(dirname "$target")"
View WatchAdsChore.php
namespace Nassau\CartoonBattle\Services\Farming\Chores;
use Nassau\CartoonBattle\Entity\Game\Farming\UserFarming;
use Nassau\CartoonBattle\Services\Farming\FarmingChore;
use Nassau\CartoonBattle\Services\Game\Game;
class WatchAdsChore implements FarmingChore
View swole-club.txt
Training times and costs:
Level 1
30 minutes
Gun Show:100
Level 2
1 hour
Gun Show:250
View AclModeratorsUpdater.php
class AclModeratorsUpdater
* @var MutableAclProviderInterface
private $provider;
public function __construct(MutableAclProviderInterface $provider)
View ProfileFinder.php
namespace Acme\Services;
use Doctrine\Common\Cache\ArrayCache;
use Doctrine\Common\Cache\Cache;
use Doctrine\ORM\EntityRepository;
use Kunstmaan\AdminBundle\Entity\User;
use Acme\Entity\Profile;
View find-next-item.php
function array_to_entries(array $array) {
return array_map(function ($key, $value) {
return [
"key" => $key,
"value" => $value,
}, array_keys($array), array_values($array));
View OnceTrait.php
Trait OnceTrait {
private $once = [];
protected function once($callback, ...$arguments)
$hash = $this->hashOnceMethod(func_get_args());
You can’t perform that action at this time.