Skip to content

Instantly share code, notes, and snippets.

View tomoya's full-sized avatar
🏠
Working from home

Tomoya Otake tomoya

🏠
Working from home
View GitHub Profile
@tomoya
tomoya / brew_list.txt
Created January 28, 2020 10:32
brew list -1
adns
aom
autoconf
automake
awscli
bat
bench
cairo
ctags
direnv
Welcome to Atom!
Before you can publish packages, you'll need an API token.
Visit your account page on Atom.io https://atom.io/account,
copy the token and paste it below when prompted.
Press [Enter] to open your account page on Atom.io.
@tomoya
tomoya / init.coffee
Created April 2, 2015 09:39
my:open-finder
{BufferedProcess} = require 'atom'
path = require 'path'
atom.commands.add 'atom-text-editor', 'my:open-finder', ->
editor = atom.workspace.getActiveTextEditor()
cd = path.dirname(editor.getPath())
command = 'open'
args = [cd]
process = new BufferedProcess({command, args})
console.log "open #{cd}"
(defun delete-word (arg)
"Delete characters forward until encountering the end of a word.
With argument, do this that many times."
(interactive "p")
(delete-region (point) (progn (forward-word arg) (point))))
(defun backward-delete-word (arg)
"Delete characters backward until encountering the end of a word.
With argument, do this that many times."
(interactive "p")
@tomoya
tomoya / gist:5918458
Created July 3, 2013 14:32
OSX 10.8 で Command Line Tools インストール前とインストール後の /usr/bin 内のファイル差分
*** /Users/tomoya/tmp/before-clt-usrbin.txt Wed Jul 3 21:11:51 2013
--- /Users/tomoya/tmp/after-clt-usrbin.txt Wed Jul 3 23:06:17 2013
***************
*** 2,8 ****
--- 2,22 ----
2to3-
2to3-2.7
2to32.6
+ BuildStrings
+ CpMac
@tomoya
tomoya / ponto-special.el
Created October 30, 2012 16:15
ぽんとさんのために作りました
;; このようなデータを
;; 532101 18 19
;; 532102 19 20
;; ↓
;; 532101 18 19 1.0555555555555556
;; 532102 19 20 1.0526315789473684
;; このようにします
(defun ponto-special (start end)
(interactive "r")
@tomoya
tomoya / shibuya-el-position-paper.md
Created September 6, 2012 08:30 — forked from ainame/shibuya-el-position-paper.md
shibuya.elのポジションペーパーです。githubアカウントをお持ちの方はforkしてお使いください。

Shibuya.el#1 ポジションペーパー

Personal

;;; inao-mode.el --- major mode for writing inao manuscripts
;; Copyright (C) 2010 SAKURAI Masashi
;; Author: SAKURAI Masashi <m.sakurai at kiwanami.net>
;; Keywords: outlines, convenience
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
@tomoya
tomoya / popup-hatena-profile-image.el
Created August 21, 2011 07:58 — forked from hitode909/popup-hatena-profile-image.el
popup-hatena-profile-image.el
;; popup-hatena-profile-image.el
;; カーソル位置のはてなユーザーのプロフィール画像をポップアップで表示します.
;; idコールする前に,idが合ってるか確認するのに使えます.
(require 'cl)
(require 'url)
(require 'deferred)
(require 'popwin)
(defun popup-hatena-profile-image ()
;; -*- mode: Emacs-Lisp; coding: utf-8-unix -*-
;;; migemo.el - Japanese incremental search trough dynamic pattern expansion
;; $Id: migemo.el.in,v 1.8 2006/09/22 08:43:33 shirai Exp $
;; Copyright (C) Satoru Takabayashi
;; Author: Satoru Takabayashi <[email protected]>
;; Keywords:
;; This file is free software; you can redistribute it and/or modify