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 python3 | |
#-*- coding:utf-8 -*- | |
from Crypto.Cipher import AES | |
import argparse | |
import base64 | |
from getpass import getpass | |
import os | |
import shutil | |
import subprocess | |
import sys |
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
<snippet> | |
<text><![CDATA[BOOST_WARN(${1:predicate}); | |
$0]]></text> | |
<tag>WARN</tag> | |
<description>BOOST_WARN</description> | |
</snippet> | |
<snippet> | |
<text><![CDATA[BOOST_WARN_BITWISE_EQUAL(${1:left}, ${2:right}); | |
$0]]></text> | |
<tag>WARN_BITWISE_EQUAL</tag> |
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
from django.conf.urls import patterns, include, url | |
urlpatterns = patterns('', | |
url(r'^$', 'ajax.views.home', name='home'), | |
url(r'^data/', 'ajax.views.data', name='data'), | |
) |
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
#compdef nkf | |
arguments=( | |
"(-j -e -s -w -w80 -w8 -w16 -w16B0 -w16B -w16L -w16L0)-j[JIS コードを出力する。(デフォルト)]" | |
"(-j -e -s -w -w80 -w8 -w16 -w16B0 -w16B -w16L -w16L0)-e[EUC コードを出力する。]" | |
"(-j -e -s -w -w80 -w8 -w16 -w16B0 -w16B -w16L -w16L0)-s[Shift_JIS コードを出力する。]" | |
"(-j -e -s -w -w80 -w8 -w16 -w16B0 -w16B -w16L -w16L0)"{-w,-w80}'[UTF8 コードを出力する。 (BOM 無し)]' | |
"(-j -e -s -w -w80 -w8 -w16 -w16B0 -w16B -w16L -w16L0)-w8[UTF8 コードを出力する。]" | |
"(-j -e -s -w -w80 -w8 -w16 -w16B0 -w16B -w16L -w16L0)"{-w16,-w16B0}'[UTF16 コードを出力する。 (Big Endian / BOM 無し)]' | |
"(-j -e -s -w -w80 -w8 -w16 -w16B0 -w16B -w16L -w16L0)-w16B[UTF16 コードを出力する。 (Big Endian / BOM 有り)]" |
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
#include <array> | |
#include <iostream> | |
using namespace std; | |
int main () { | |
array<int, 3> a({1, 2, 3}); | |
for (int i = 0; i < a.size(); i++) | |
cout << a[i] << endl; | |
return 0; | |
} |
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
scriptencoding utf-8 | |
"""""""""""""""" | |
" キーバインド " | |
"""""""""""""""" | |
" 挿入モードで使うと殴りたくなるキー対策 | |
nnoremap OA gi<Up> | |
nnoremap OB gi<Down> | |
nnoremap OC gi<Right> |
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
for D in $(find $(pwd) -name .git -type d | xargs -n1 dirname); cd $D && echo -e "\e[37;44;1m" && pwd && echo -e "\e[m" && git pull |
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
import getpass | |
import json | |
import sys | |
import requests | |
def main(): | |
username = input('Basic Auth Username: ') | |
password = getpass.getpass('Basic Auth Password: ') |
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/bash | |
cd $(dirname $0) | |
render_source() { | |
local -r generator=./$(basename $1) | |
local -r package=$2 | |
local -r project_root=$3 | |
cat <<EOS |
OlderNewer