-
名前
- 長田洸明 (NAGATA Hiroaki)
-
SNSなど
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun my:chomp (str) | |
(replace-regexp-in-string "[\n\r]+$" "" str)) | |
(defun my:git-project-p () | |
(string= | |
(my:chomp | |
(shell-command-to-string "git rev-parse --is-inside-work-tree")) | |
"true")) | |
(defun my:tmux-do-command-for-file (filepath command) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun my:chomp (str) | |
(replace-regexp-in-string "[\n\r]+$" "" str)) | |
(defun my:git-project-p () | |
(string= | |
(my:chomp | |
(shell-command-to-string "git rev-parse --is-inside-work-tree")) | |
"true")) | |
(defun my:tig-blame-current-file () |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
notify_start_time=0 | |
notify_end_time=0 | |
notify_threshold=10 | |
notify_threshold2=30 | |
notify_prev_command="" | |
notify_flag=0 | |
function notify_preexec { | |
notify_flag=1 | |
notify_start_time=`date +'%s'` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; np.el --- post region to no-paste | |
;; Copyright (C) 2012-2013 NAGATA Hiroaki (handlename) | |
;;; Commentary: | |
;; (defvar np:endpoint "API ENDPOINT") | |
;; (defvar np:username "USERNAME") | |
;; (defvar np:password "PASSWORD") | |
;; (global-set-key (kbd "C-c C-p") 'np:post-region) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
notify_start_time=0 | |
notify_end_time=0 | |
notify_threshold=10 | |
notify_prev_command="" | |
notify_flag=0 | |
function notify_preexec { | |
notify_flag=1 | |
notify_start_time=`date +'%s'` | |
notify_prev_command="$2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use feature 'say'; | |
use Data::Dumper; | |
sub intersect { | |
my @lists = grep { scalar @$_ } @_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
tmux new-window "$*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
tmux split-window -h "$*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Canything < Formula | |
url 'https://github.com/keiji0/canything/zipball/master' | |
sha1 '85d243ee8f98b393e165ce16def61640949431dd' | |
homepage 'https://github.com/keiji0/canything' | |
version '20110511' | |
def patches; | |
DATA; |