I hereby claim:
- I am antoligy on github.
- I am antoligy (https://keybase.io/antoligy) on keybase.
- I have a public key whose fingerprint is B5E9 8AE7 DDB8 B82E B375 E2CF DE20 36C6 B4D2 F38E
To claim this, I am signing this object:
| <?php // Why does syntax highlighting need this? | |
| use eZ\Publish\Core\MVC\Symfony\Security\User as EzUser; | |
| use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken; | |
| use Symfony\Component\HttpFoundation\Request; | |
| use Symfony\Component\HttpFoundation\Session\Session; | |
| $securityContext = $container->get('security.context'); | |
| $router = $container->get('router'); | |
| $requestStack = $container->get('request_stack'); |
I hereby claim:
To claim this, I am signing this object:
| // Reduce a list by cancelling pairs of values. | |
| // e.g. cancelByPair('LLLRLRLRLR', 'L', 'R') === 'LL' | |
| function cancelByPair(list, firstValue, secondValue) { | |
| // First filter out all of these values, and count them as we go. | |
| let count = 0; | |
| const cancelledList = list.filter(c => { | |
| switch (c) { | |
| case firstValue: | |
| count++ |
| const SITEMAP_CACHE_KEY = 'sitemap-cached-pages-v1' | |
| self.addEventListener('install', event => { | |
| event.waitUntil(cacheSitemap()) | |
| }) | |
| const cacheSitemap = _ => caches.open(SITEMAP_CACHE_KEY) | |
| .then(cache => | |
| cacheSitemap() | |
| .then(urls => urls.map(u => u.toString())) |
| #include "inspircd.h" | |
| /** | |
| * m_gender_pronouns.cpp | |
| * Introduces two new commands, SETGENDER and SETPRONOUN, | |
| * allowing a user to specify their gender identity and | |
| * preferred gender pronouns. | |
| * | |
| * Copyright (c) 2017 Alex Wilson <[email protected]> | |
| * |
import $$ from '$$'
$$('p').forEach(a => a.innerText = "yolo")| #!/usr/bin/env php | |
| <?php | |
| include_once('autoload.php'); | |
| ini_set("memory_limit", "-1"); | |
| ini_set("date.timezone", "Europe/London"); | |
| $cli =& eZCLI::instance(); | |
| $script =& eZScript::instance(); | |
| $script->startup(); |
| #!/bin/bash | |
| # | |
| # Replaces an entire directory of symlinked files with their originals. | |
| # | |
| find -L $1 -xtype l -exec bash -c 'cp --remove-destination "$(readlink -f "{}")" "{}"' \; |
| SET @key = 'test123456789'; | |
| SET @username = 'admin'; | |
| SET @del = '\n'; | |
| SET @hash = MD5(CONCAT(@username,@del,@key)); | |
| UPDATE ezuser SET password_hash=@hash WHERE login=@username; |
Gophers are friendly creatures but it’s not that easy to communicate with them. They have their own language and they don’t understand English.
Create a program that starts a http server. This server should be able to translate English words into words in the gophers' language. Don't worry, the gophers' language is pretty easy.
The language that the gophers speak is a modified version of English and has a few simple rules.