Skip to content

Instantly share code, notes, and snippets.

View tsuemura's full-sized avatar

Takuya Suemura tsuemura

View GitHub Profile
@tsuemura
tsuemura / romantable.txt
Created December 14, 2021 04:58
Google 日本語入力 AZIK + something
: ー
; っ
a あ
ba ば
bd べん
be べ
bh ぶう
bi び
bj ぶん
bk びん
@tsuemura
tsuemura / amazon_url_mizikaku_suruyatu.js
Created August 31, 2019 04:35
AmazonのURLを短くするやつ
javascript:(function(){location.href=location.href.match(/https*:\/\/[a-z.]*\//)[0]+location.href.match(/dp\/[A-Z0-9]{10}/)[0]})()
@tsuemura
tsuemura / cursor.ahk
Last active December 20, 2019 05:45
Windows買ったとき用メモ
F13 & A::Send,{Blind}{Left}
F13 & S::Send,{Blind}{Down}
F13 & W::Send,{Blind}{Up}
F13 & D::Send,{Blind}{Right}
F13 & J::Send,{Esc}
~j up::
Input, jout, I T0.1 V L1, {j}
if(ErrorLevel == "EndKey:J"){
SendInput, {BackSpace 2}
Send,{Esc}
@tsuemura
tsuemura / ja-SR.js
Last active November 16, 2019 06:52
CodeceptJS神龍語翻訳ファイル
module.exports = {
I: '我が名は神龍',
actions: {
waitForElement: '要素が表示されるまで待ってやろう',
waitForClickable: 'クリック可能になるまで待ってやろう',
waitForVisible: '要素が見えるようになるまで待ってやろう',
waitForText: 'テキストが表示されるまで待ってやろう',
refresh: 'ページを更新してやろう',
amOnPage: 'URLにアクセスしてやろう',
click: 'クリックしてやろう',
@tsuemura
tsuemura / fetchmail_helper.js
Created January 2, 2019 10:12
CodeceptJS: Fetch Email From Mandrill Using Custom Helper
const mandrill = require('mandrill-api/mandrill')
const sleep = require('sleep-promise')
require('dotenv').config()
class FetchMail extends Helper {
_before() {
this.apiKey = process.env.MANDRILL_API_KEY
this.client = new mandrill.Mandrill(this.apiKey)
}
@tsuemura
tsuemura / gist:a926b85c275038bd6dec8c952e26b2b7
Created March 31, 2018 18:20
replace full url to Laravel's "asset()" helper
('https?://[\w/:%#\$&\?\(\)~\.=\+\-]+/)(\S*') // from
'{{ asset('/$2) }} // to
@tsuemura
tsuemura / gist:eeef28bbd94fe90dbd69100c6c6cee25
Created September 27, 2017 15:40
Install Ubuntu with xfce-desktop On SAMSUNG Chromebook Plus
sudo sh -e ~/Downloads/crouton -r xenial -t xfce-desktop
@tsuemura
tsuemura / webdav_filecheck.py
Last active March 28, 2021 14:50
PythonでBasic認証付きのWebDAVにアクセスするサンプル
import requests
import xml.etree.ElementTree as ET
def filecheck():
user = 'username'
password = 'password'
url = 'https://example.com/dav'
req = requests.Request('PROPFIND', url, headers={'Depth': '1'},auth=(user,password))
prepped = req.prepare()