Skip to content

Instantly share code, notes, and snippets.

View masutaka's full-sized avatar

Takashi Masuda masutaka

View GitHub Profile
@masutaka
masutaka / Gemfile
Last active August 29, 2015 14:02 — forked from tmd45/Gemfile
source 'https://rubygems.org'
ruby '2.1.0'
gem 'i18n'
gem 'activesupport'
gem 'octokit'
@masutaka
masutaka / autoUpdate.php
Last active December 29, 2015 06:28 — forked from Leko/autoUpdate.php
Support :repo. For example it's the following. github "limechat", "1.0.0", :repo => "boxelly/puppet-limechat"
<?php
define("READ_START_SYMBOL", "# ---auto update---");
define("READ_END_SYMBOL", "# ---/auto update---");
//
function notify_update($name, $from, $to) {
echo "updated '".$name."' from ".$from." to ".$to."\n";
}
@masutaka
masutaka / shibuya-el-position-paper.md
Created September 6, 2012 06:23 — forked from ainame/shibuya-el-position-paper.md
masutaka@shibuya.elのポジションペーパーです。

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

Personal

  • 名前

    • 増田 貴士 (Masuda Takashi)
  • Twitter

  • @masutaka

(defvar twinstall-curl-program (executable-find "curl"))
(defvar twinstall-last-url "")
(defvar twinstall-hash-tags "#emacsjp #twinstall")
(defun twinstall-tweet-url (url)
(let* ((name (file-name-nondirectory url))
(text (cond
((string= (concat auto-install-emacswiki-base-url name) url)
(format "EmacsWikiから%sをインストールしました。 %s %s"
name twinstall-hash-tags url))
@masutaka
masutaka / .zaliases
Created September 27, 2011 16:14 — forked from yoshinari-nomura/.zaliases
Small aliases to get along with Emacs buffer.
## Invoke the ``dired'' of current working directory in Emacs buffer.
function dired () {
emacsclient -e "(dired \"${1:a}\")"
}
## Chdir to the ``default-directory'' of currently opened in Emacs buffer.
function cde () {
EMACS_CWD=`emacsclient -e "
(expand-file-name
(with-current-buffer