I hereby claim:
- I am adrienlucas on github.
- I am adrienlucas (https://keybase.io/adrienlucas) on keybase.
- I have a public key ASCu32wHMOVwGIyjYn8HN2oWjHucMDFQuqgzU-cqGpdX3wo
To claim this, I am signing this object:
<?= "<?php\n" ?> | |
namespace <?= $namespace; ?>; | |
<?= $use_statements; ?> | |
<?php if ($is_standalone) { ?> | |
#[AsController()] | |
<?php } ?> | |
class <?= $class_name; ?><?= !$is_standalone ? ' extends AbstractController': '' ?> |
<?php | |
namespace App\Controller; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpKernel\Attribute\AsController; | |
use Symfony\Component\Routing\Annotation\Route; | |
use Twig\Environment; | |
#[AsController] |
// "Copilot More PHP Context" | |
// Adds the content of the imported PHP classes as a comment to the end of the opened file | |
// in order to provide more context to the Copilot plugin. | |
// This Groovy script is meant to be used with the IntelliJ IDE Console plugin. | |
import java.io.File | |
import com.intellij.openapi.actionSystem.AnAction | |
import com.intellij.openapi.actionSystem.AnActionEvent | |
import com.intellij.openapi.actionSystem.CommonDataKeys | |
import com.intellij.openapi.command.WriteCommandAction |
I hereby claim:
To claim this, I am signing this object:
import jQuery from 'jquery'; | |
it('stacks several promises with one rejection', () => { | |
const p1 = new jQuery.Deferred(); | |
const p2 = new jQuery.Deferred(); | |
const p3 = new jQuery.Deferred(); | |
const stack = jQuery.when(...promises); | |
expect(stack.state()).toBe('pending'); |
<?php | |
/** | |
* Generate a true random integer. | |
* To be used as a rand() replacement as it behave exactly the same. | |
* | |
* int true_rand(void) | |
* int true_rand(int $min, int $max) | |
* | |
* It uses the HotBits webservice from FourmilLab as randomness provider | |
* based on radioactive decay. See https://www.fourmilab.ch/hotbits/. |
<?php | |
class HackableObject { | |
protected $obj; | |
public function __construct($obj){ | |
$this->obj = $obj; | |
} | |
# Deprecated, use gibo instead : https://github.com/simonwhitaker/gibo | |
/build/ | |
/composer.phar | |
vendor/* | |
app/bootstrap* | |
web/uploads/* | |
web/bundles/* | |
*/logs/* | |
*/cache/* |
xinput disable `xinput list | grep "Touchscreen" | sed -E 's/^.*id=([0-9]+).*$/\1/'` |