$ su -
# visudo
以下を追記
user_name ALL=(ALL:ALL) ALL
<div id="errors" style=" | |
background: #c00; | |
color: #fff; | |
display: none; | |
margin: -20px -20px 20px; | |
padding: 20px; | |
white-space: pre-wrap; | |
"></div> | |
<div id="root"></div> | |
<script> |
.column, .stream-item { | |
background: #000000; | |
} | |
.column:nth-child(1) { | |
width: 500px; | |
} | |
.js-stream-item-content { | |
padding: 5px; |
from urllib.request import urlopen | |
from bs4 import BeautifulSoup | |
import re | |
from urllib.parse import urljoin | |
# すでに訪れたページのリスト | |
visitedPages = set() | |
set encoding=utf-8 | |
set fileencodings=iso-2022-jp,iso-2022-jp-2,utf-8,euc-jp,sjis | |
set backspace=indent,eol,start | |
set writebackup | |
set noswapfile | |
syntax off | |
set nonu | |
set nowrap | |
set noautoindent | |
set undodir=~/.vim/undodir |
#!/usr/bin/env python | |
# ファイルを指定文字列に連番を付加したファイル名で置換する | |
import sys | |
import os | |
usage = "Usage %s [FILES] [PREFIX]" %(sys.argv[0]) | |
if (len(sys.argv) == 1): | |
print(usage) | |
sys.exit() |
#!/bin/bash | |
# convert markdown to html and preview the output | |
usage="usage: $0 [FILE]" | |
if [ $# = 0 ]; then | |
echo "$usage" 1>&2 | |
exit 0 | |
fi | |
source_filename=$(basename $1) |
(* | |
* 日付の妥当性チェックとか曜日計算とか | |
*) | |
(* うるう年か調べる *) | |
let isUru y= | |
if (y mod 4) = 0 then | |
not(y mod 100 = 0 && not(y mod 400 = 0)) | |
else false;; |
#!/bin/bash | |
# 2 通りのリスト記法 | |
list1=( | |
hello | |
hoge | |
foo | |
bar | |
) | |
echo "--list1" |
#!/bin/bash | |
# 実行ファイルの出力先ディレクトリ | |
out_dir=~/bin | |
compiler=gcc | |
usage="usage: $0 [FILE] [ARGUMENTS]" | |
if [ $# = 0 ]; then | |
echo "$usage" >&2 |