Skip to content

Instantly share code, notes, and snippets.

View shotasenga's full-sized avatar

Shota Senga shotasenga

  • Canada
View GitHub Profile
@shotasenga
shotasenga / .eslintrc.json
Created March 25, 2018 18:29
ESLint + Prettier configuration for React Application
{
"parser": "babel-eslint",
"env": {
"browser": true
},
"extends": [
"airbnb",
"prettier"
],
"settings": {
@shotasenga
shotasenga / no-more-blank-on-amazon.user.js
Created February 27, 2018 10:01
GM Script to remove target="_blank" attribute on Amazon
// ==UserScript==
// @name no more BLANK on Amazon
// @namespace http://senta.me/
// @version 0.1.0
// @description Remove target="_blank" on Amazon
// @author @__senta
// @match https?://amazon.co.jp/*
// @grant none
// ==/UserScript==
(function() {
// ==UserScript==
// @name Backlog Gantt Chart Styles
// @namespace http://senta.me/
// @version 0.1.3
// @description Add styled on Backlog.jp to show the ticket IDs
// @author @__senta
// @match https://*.backlog.jp/gantt/*
// @match https://*.backlog.jp/ViewProjectGantt.action*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Tinder Force Like
// @namespace http://senta.me/
// @version 0.1.0
// @description Like all girls/guys on tinder.com
// @author @__senta
// @match https://tinder.com/*
// @grant none
// ==/UserScript==
@shotasenga
shotasenga / backlog-skip-image-preview.user.js
Last active February 9, 2018 03:24
An user script to skip preview on backlog.jp
// ==UserScript==
// @name Skip Image Preview on Backlog
// @namespace http://senta.me/
// @version 0.1
// @description View an image directly instead of the useless preview
// @author @__senta
// @match https://*.backlog.jp/ViewAttachment.action?attachmentId=*
// @grant none
// ==/UserScript==
@shotasenga
shotasenga / lambda_handler.py
Last active July 3, 2020 04:30
Send notification through IFTTT when ARCH ENEMY ticket information has been updated
import json
import urllib.request
from html.parser import HTMLParser
# Define URLs
SOURCE_URL = 'https://www.creativeman.co.jp/event/arch_e2018/'
IFTTT_ENDPOINT = 'https://maker.ifttt.com/trigger/arch_enemy_concert_parsed/with/key/cTU_U2Z-OUABzEYyhS3EFe'
class Parser(HTMLParser):
@shotasenga
shotasenga / combine-images.py
Created June 2, 2017 12:06
combine images from URL
import os, sys, random, string, tempfile
from urllib.request import urlopen
from urllib.parse import urlparse
from shutil import copyfileobj
from PIL import Image
src = sys.argv[1:]
def url_basename (url):
"""
@shotasenga
shotasenga / .env
Created March 20, 2017 17:43
different settings for Larabel by environments (local or VM) When I run phpunit, I want to execute PHP on the host machine but connect to the VM for DB.
APP_ENV=local
APP_DEBUG=true
APP_KEY=lYk7nItv6vZD34lyijQcQr8Hheb9kJpT
## DB settings for Host
DB_HOST=localhost:33060
DB_DATABASE=homestead
DB_USERNAME=homestead
DB_PASSWORD=secret
@shotasenga
shotasenga / install.sh
Created March 16, 2017 05:54
Babel starter
yarn add --dev babel-cli babel-core babel-eslint babel-loader babel-preset-es2015 babel-preset-stage-0 && yarn add babel-polyfill
'use strict';
/**
* shuffle an array
*
* @param {Array} arr
* @return {Array}
*/
export default (arr) => arr.sort( s => .5 - Math.random())