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
/** | |
* 共通エラーページ | |
*/ | |
protected function renderHttpException(\Symfony\Component\HttpKernel\Exception\HttpException $e) | |
{ | |
$status = $e->getStatusCode(); | |
return response()->view("errors.common", ['exception' => $e], $status); | |
} |
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
/** | |
* オレが考えたSocialiteのサンプルコード(いまのところ) | |
*/ | |
// Social Login | |
Route::prefix('login/{provider}')->where(['provider' => '(facebook|twitter|github|line)'])->group(function () { | |
Route::get('/', [App\Http\Controllers\Auth\LoginController::class, 'redirectToProvider'])->name('login.redirect'); | |
Route::get('/callback', [App\Http\Controllers\Auth\LoginController::class, 'handleProviderCallback'])->name('login.callback'); | |
}); |
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
// vxlan-to-http-request (http-requests-mirroring) | |
// https://github.com/aws-samples/http-requests-mirroring/blob/main/main.go | |
// getのみmirrorする | |
// Original Copyright 2012 Google, Inc. All rights reserved. | |
// | |
// Use of this source code is governed by a BSD-style license | |
// that can be found in the LICENSE file in the root of the source | |
// tree. |
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 Slack Code Syntax Highlighter | |
// @namespace M_Ishikawa | |
// @version 0.1 | |
// @description Click code block, highlight it. | |
// @author Masayuki Ishikawa | |
// @match https://*.slack.com/* | |
// @grant none | |
// ==/UserScript== |
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
/** | |
* githubのプロフィールページからContribution activityのサマリーをテキストで出力 | |
* "Show more activity" で開いて表示されている分を取得する | |
*/ | |
(function () { | |
const commits = new Map(); | |
const openedSet = new Set(); | |
const reviewedSet = new Set(); | |
document.querySelectorAll('div.TimelineItem-body > details.Details-element.details-reset').forEach(function (c) { | |
type = c.querySelector('summary > span').textContent.trim().match(/^(.*) /); |
OlderNewer