Skip to content

Instantly share code, notes, and snippets.

Kazuya Takeshima mitukiii

Block or report user

Report or block mitukiii

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View tslint.json
"extends": "tslint:latest",
"rules": {
"array-type": [true, "generic"],
"arrow-parens": [true, "ban-single-arg-parens"],
"curly": [true, "ignore-same-line"],
"interface-name": false,
"max-classes-per-file": false,
"max-line-length": [true, 140],
"member-access": false,
mitukiii / typescript.js
Last active Jan 9, 2019
nuxt 用の ts && tslint の設定
View typescript.js
module.exports = function() {
this.extendBuild(config => {
test: /\.tsx?$/,
loader: 'ts-loader',
options: {
appendTsSuffixTo: [/\.vue$/]
View strong.rb
#!/usr/bin/env ruby
puts ARGV.join(' ') { |cp|
if ('A'..'Z').flat_map(&:codepoints).include?(cp)
cp + '𝘼'.codepoints.first - 'A'.codepoints.first
elsif ('a'..'z').flat_map(&:codepoints).include?(cp)
cp + '𝗮'.codepoints.first - 'a'.codepoints.first
mitukiii / amazon-calc.js
Last active Jun 13, 2017 — forked from polamjag/amazon-calc.js
Amazon で使った金額の合計を出す奴 (2014-2016 年バージョン) (月枚に出すよう変更)
View amazon-calc.js
// Amazon で使った金額の合計を出す奴
// 使い方:
// 1. 全部コピーする (右上の Raw をクリックした先でやるのが楽)
// 2. Amazon の注文履歴ページ ( ) を開く
// 3. F12 または 右クリ→要素の検証 とかで出てくる開発者ツールのコンソール (JavaScript REPL) にペースト
// 4. エンターで実行
// (Firefox はなんか allow pasting とタイプしろみたいなことを言われるので従う)
// 5. しばらく待つと alert で合計金額を表示
View application_service.rb
class ApplicationService
include ActiveModel::Model
def submit(params = {})
params.each do |key, value|
self.public_send("#{key}=", value)
View pict.rb
require 'formula'
class Pict < Formula
head do
url ""
def install
system "make"
bin.install "pict" => "pict"
View markdown_link.js
View now_browsing.js
!function(){var t=document.getSelection().toString(),o=(t?'"'+t+'" / ':"Now Browsing: ")+document.title+" "+location.href,e="tweetbot:///post?text="+encodeURIComponent(o);location.href=e}();
View Emacs.keylayout
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE keyboard PUBLIC "" "file://localhost/System/Library/DTDs/KeyboardLayout.dtd">
<!--Created by Ukelele version 2.2.8 on 2015-04-03 at 16:32 (GMT+9)-->
<!--Last edited by Ukelele version 2.2.8 on 2015-04-03 at 16:35 (GMT+9)-->
<keyboard group="0" id="4139" name="Emacs" maxout="1">
<layout first="0" last="17" modifiers="f4" mapSet="16c"/>
<layout first="18" last="18" modifiers="f4" mapSet="984"/>
<layout first="21" last="23" modifiers="f4" mapSet="984"/>
<layout first="30" last="30" modifiers="f4" mapSet="984"/>
mitukiii / Mac OS X 10_5_ Emacs.xml
Last active Jul 18, 2019
View Mac OS X 10_5_ Emacs.xml
<keymap version="1" name="Mac OS X 10.5+ Emacs" parent="Mac OS X 10.5+">
<action id="$Paste">
<keyboard-shortcut first-keystroke="meta v" />
<keyboard-shortcut first-keystroke="ctrl y" />
<action id="$Redo">
<keyboard-shortcut first-keystroke="shift meta z" />
<keyboard-shortcut first-keystroke="shift alt back_space" />
<keyboard-shortcut first-keystroke="ctrl alt underscore" />
You can’t perform that action at this time.