<?php
namespace App\Http\Controllers;
class MyController extends Controller
{
public function update(BBJUpdateRequest $request, MyService $myService)
{
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
// ==UserScript== | |
// @name ECU Bitbucket Improvements | |
// @namespace https://greasyfork.org/en/scripts/458896 | |
// @homepageURL https://gist.github.com/raveren/3bd55656272143f667e9cfd7e7171c52 | |
// @license MIT | |
// @version 1.3.0 | |
// @author raveren | |
// @description Changes page titles to be informative, makes branch name click to copy, and links PHPStorm from diff line | |
// @require https://code.jquery.com/jquery-3.7.1.min.js | |
// @match https://bitbucket.org/ecu1/internal-www/pull-requests* |
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
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 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 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 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 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 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 Aliexpress show all orders | |
// @namespace none | |
// @version 0.1 | |
// @date 2019-12-11 | |
// @description Add new option to the 'Display items per page:' dropdown | |
// @author raveren | |
// @match *.aliexpress.com/orderList.htm* | |
// @match *.aliexpress.com/order_list.htm* | |
// @icon https://ae01.alicdn.com/images/eng/wholesale/icon/aliexpress.ico |
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
////////////////////////////////////////////////////////////////////////////////////////// | |
//////////////////////////////// DEFINITIONS ////////////////////////////////////////////// | |
///////////////// YOU CAN CHANGE CODE AT THE BOTTOM /////////////////////////////////////// | |
////////////////////////////////////////////////////////////////////////////////////////// | |
const display = [ | |
1, 1, 1, 0, 1, 1, 1, | |
1, 1, 1, 0, 1, 1, 1, | |
1, 1, | |
1, 1, 1, 0, 1, 1, 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
// ==UserScript== | |
// @name Link File to InteliJ IDE From Github | |
// @namespace https://gist.github.com/raveren/c213f683abe9635a2cf2c4486856ab9e | |
// @version 0.4 | |
// @description Adds a monitor icon next to file name, click it to open your Intelij Ide (Remote Call plugin required) | |
// @author raveren | |
// @match https://github.com/*/files* | |
// @match https://github.com/*/pull* | |
// @require https://greasyfork.org/scripts/2199-waitforkeyelements/code/waitForKeyElements.js?version=6349 | |
// @require https://code.jquery.com/jquery-3.1.0.slim.min.js |
NewerOlder