Skip to content

Instantly share code, notes, and snippets.

View 844196's full-sized avatar

Masaya Takeda 844196

  • 株式会社ヴァジラ・アヌッタラ ヒタ アビヴッディ精密機器工業
  • Sapporo, Japan
  • 18:33 (UTC +09:00)
  • X @efumaxay
View GitHub Profile

名前を言ってはいけないあのプラギン

u(ry

現代日本語圏エンジニアにおいてのヴォルデモートのような存在。名前を言うだけで呪われる。

呪われると以下のようなことが起きる

  • ブログを書くと「俺様にバグ報告するのだ!」とコメントを書かれる
  • Twitter でしつこい @ スパムがくるようになる
@jcxplorer
jcxplorer / uuid.js
Created February 12, 2011 16:58
UUID v4 generator in JavaScript (RFC4122 compliant)
function uuid() {
var uuid = "", i, random;
for (i = 0; i < 32; i++) {
random = Math.random() * 16 | 0;
if (i == 8 || i == 12 || i == 16 || i == 20) {
uuid += "-"
}
uuid += (i == 12 ? 4 : (i == 16 ? (random & 3 | 8) : random)).toString(16);
}
@earlonrails
earlonrails / mock_tcp_socket.rb
Created December 13, 2011 01:57
Mock tcp socket for spec tests with ruby!!!
require 'socket'
require 'mocks'
TCP_NEW = TCPSocket.method(:new) unless defined? TCP_NEW
#
# Example:
# mock_tcp_next_request("<xml>junk</xml>")
#
class FakeTCPSocket
@rummelonp
rummelonp / zsh_completion.md
Last active February 22, 2023 15:06
zsh の補完関数の自作導入編

zsh の補完関数の自作導入編

あまり深く理解してないので識者のツッコミ大歓迎

補完を有効にする

取り敢えず最低限だけ

# 補完を有効にする
@mollifier
mollifier / zshrc_useful.sh
Last active July 8, 2024 09:22
少し凝った zshrc
# 少し凝った zshrc
# License : MIT
# http://mollifier.mit-license.org/
########################################
# 環境変数
export LANG=ja_JP.UTF-8
# 色を使用出来るようにする
@17g
17g / grep_menuitem.vim
Last active August 26, 2018 21:43
NerdTreePluginのgrep_menuitem.vimって便利だけど実行後にこっそりカレントディレクトリが変更されてしまってる。。 スペースなどが入った場合もそのまま検索できるようにしたかった。 なので少し付け加え。 Forked from https://gist.github.com/masaakif/414375
"shove this in ~/.vim/nerdtree_plugin/grep_menuitem.vim
"
"A really rough integration of :grep with nerdtree. Adds a 'g' menu item that
"prompts the user for a search pattern to use with :grep. :grep is run on the
"selected dir (using the parent if a file is selected)
"
" Originally written by scrooloose
" (http://gist.github.com/205807)
" Forked by masaakif
" (http://gist.github.com/205807)
@Kuniwak
Kuniwak / vim_intro.txt
Last active June 2, 2022 03:48
Vimの起動時に表示されるAA。vim-splashを入れて g:splash#path にこのファイルを指定するとhappy。 ライセンスはパブリックドメインです。ご自由にお使いください。【推奨環境】background=dark guifont=SourceCodePro-Regular
..
.::::.
___________ :;;;;:`____________
\_________/ ?????L \__________/
|.....| ????????> :.......'
|:::::| $$$$$$"`.:::::::' ,
,|:::::| $$$$"`.:::::::' .OOS.
,7D|;;;;;| $$"`.;;;;;;;' .OOO888S.
.GDDD|;;;;;| ?`.;;;;;;;' .OO8DDDDDNNS.
'DDO|IIIII| .7IIIII7' .DDDDDDDDNNNF`
@tdkn
tdkn / .vimrc
Last active April 10, 2016 16:18
bin/neoinstall 使用時の エラー(not found in 'runtimepath': "autoload/vimproc.vim")について
" https://github.com/tdkn/dotfiles/blob/master/.vimrc
"------------------------------------------------------
"---------------
" Bundler
"---------------
if has('vim_starting')
set nocompatible " Be iMproved
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
#!/bin/bash
FG="\033[38;05;21m"
CLS="\033[0m"
echo -e "${FG}\
■■■■■ ■■■■■■■■ ■■■■■ ■■■■■\n\
■■■■■ ■■■■■■■■■■ ■■■■■■ ■■■■■■\n\
■■■ ■■■ ■■■ ■■■■■■ ■■■■■■\n\
■■■ ■■■■■■■■ ■■■■■■■ ■■■■■■■\n\
@sasairc
sasairc / robots.sh
Last active August 29, 2015 14:10
折り返し付き
#!/bin/bash
LAST=0
R="$(tput smso)$(tput setaf 1) $(tput rmso)"
W="$(tput smso)$(tput setaf 7) $(tput rmso)"
if $(which sleepenh >/dev/null 2>&1); then
SLEEP='sleepenh'
else
SLEEP='sleep'