Skip to content

Instantly share code, notes, and snippets.

View delphinus's full-sized avatar

JINNOUCHI Yasushi delphinus

View GitHub Profile
curl -L https://jira.dena.jp/jira/rest/api/2/issue/MEDIACS-2221
{"errorMessages":["You do not have the permission to see the specified issue.","Login Required"],"errors":{}}
curl -L https://jira.dena.jp/jira/rest/api/2/issue/MEDIACS-9999
{"errorMessages":["Issue Does Not Exist"],"errors":{}}
@delphinus
delphinus / gist:6c3159d17e3a1e9c9920
Created January 27, 2015 12:00
homebrew vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 27 2015 20:28:32)
MacOS X (unix) version
Included patches: 1-488
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float +mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
set nocompatible
set runtimepath+=~/.vim/bundle/neobundle.vim/
call neobundle#begin(expand('~/.vim/bundle'))
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'jaxbot/github-issues.vim'
call neobundle#end()
filetype plugin indent on
syntax on
NeoBundleCheck
@delphinus
delphinus / 2015-08-08-002710.pl
Created August 7, 2015 15:27
Gist 投稿テスト
#!/usr/bin/env perl
use strict;
use warnings;
say 'Hello, World!';
@delphinus
delphinus / 2015-08-17-234416.txt.vim
Created August 17, 2015 14:44
[vim-devicons] minimal .vimrc
" Note: Skip initialization for vim-tiny or vim-small.
if 0 | endif
if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
@delphinus
delphinus / default.json
Created August 17, 2015 14:50
[vim-devicons] sample default.json
{
"segments": {
"left": [
{
"function": "mode",
"exclude_modes": ["nc"]
},
{
"function": "vim_devicons.powerline.segments.webdevicons",
"priority": 10,
@delphinus
delphinus / gist:1734688
Created February 4, 2012 02:46
post string to Pasterfire.com
curl.exe --data-urlencode "clipboard=%Data%" -d "email=EMAIL_ADDRESS" -d "pwd=PASSWORD" "https://pastefire.com/set.php"
@delphinus
delphinus / mk_color.vim
Created February 4, 2012 08:29
make full color num to 88 color mode
" functions {{{
" returns an approximate grey index for the given grey level
fun <SID>grey_number(x)
if &t_Co == 88
if a:x < 23
return 0
elseif a:x < 69
return 1
elseif a:x < 103
return 2
use DateTime;
my $d = DateTime->new(
year => 2012,
month => 1,
day => 1,
time_zone => 'Asia/Tokyo',
);
print $d->clone->add(months => 3)->ymd . "\n";
print $d->clone->add(days => 90)->ymd . "\n";
use Time::Piece;
#my $d = localtime(time);
my $d = Time::Piece->strptime('2012-01-01', '%Y-%m-%d');
print $d->add_months(3)->ymd . "\n";