<?php
namespace App\Http\Controllers;
class MyController extends Controller
{
public function update(BBJUpdateRequest $request, MyService $myService)
{
This file contains hidden or 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 | |
\Symfony\Component\VarDumper\Dumper\CliDumper::$defaultOutput = 'php://output'; | |
\Symfony\Component\VarDumper\VarDumper::setHandler(function ($var) { | |
$cloner = new \Symfony\Component\VarDumper\Cloner\VarCloner(); | |
$dumper = new \Symfony\Component\VarDumper\Dumper\CliDumper(); | |
$dumper->dump($cloner->cloneVar($var)); | |
}); |
This file contains hidden or 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 | |
/* #################################################################### | |
* Original, changes welcome: | |
* | |
* https://gist.github.com/raveren/eba373d8abb572b0528c73d145103f95 | |
* | |
* More info: | |
* | |
* https://kint-php.github.io/kint/settings/ |
This file contains hidden or 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
-- Define some keyboard modifier variables | |
-- (Node: Capslock bound to cmd+alt+ctrl+shift via Seil and Karabiner) | |
local hyper = {"⌘", "⌥", "⌃", "⇧"} | |
-- Reload config | |
function reloadConfig(paths) | |
doReload = false | |
for _,file in pairs(paths) do | |
if file:sub(-4) == ".lua" then | |
print("A lua file changed, doing reload") |
This file contains hidden or 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
/* | |
rodo laika | |
pradejus rinkti - nustatomas zadintuvas | |
paspaudus sverti - rodo zadintuvo laika (arba 8888 jei dar neivestas) | |
palaikius sverti 5 sek - nustatomas laikas | |
skamba zadintuvas | |
skamba minute - tada snuzina 5 min | |
paspaudus sverti - uzsnuzina 5 min |
This file contains hidden or 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
function change_colors () { | |
h += 1 | |
if (h > 360) { | |
h = 0 | |
} | |
strip.showColor(neopixel.hsl(h, l, s)) | |
strip2.showColor(neopixel.hsl(360 - h, l, s)) | |
basic.pause(10) | |
} | |
function flags () { |
This file contains hidden or 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
// ==UserScript== | |
// @name Bitbucket Enhanced +4 | |
// @namespace https://greasyfork.org/en/scripts/458896 | |
// @homepageURL https://gist.github.com/raveren/3bd55656272143f667e9cfd7e7171c52 | |
// @license MIT | |
// @version 2.1.1 | |
// @author raveren | |
// @description Changes PR page titles to be useful, shows prominent branch name at top with click to copy, adds links to source lines for JetBrains IDEs, asks to confirm exit if you have comments pending. | |
// @match https://bitbucket.org/* | |
// @run-at document-start |
OlderNewer