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
" e2esound color scheme based on ir_black | |
set background=dark | |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif | |
let g:colors_name = "e2esound" |
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
<?php | |
class Bowling | |
{ | |
public $score = 0; | |
public function hit($val) | |
{ | |
$this->score += $val; | |
} |
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
#encoding: utf-8 | |
require 'nokogiri' | |
require 'open-uri' | |
url = 'http://www.town.nakanojo.gunma.jp/gikai/gikaidayori/top.html' | |
base = 'http://www.town.nakanojo.gunma.jp/gikai/gikaidayori/' | |
name = '中之条議会だより' | |
html = Nokogiri::HTML(open(url)) |
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
#encoding: utf-8 | |
require 'nokogiri' | |
require 'open-uri' | |
url = 'http://www1.town.higashiagatsuma.gunma.jp/www/contents/1320623094013/index.html' | |
base = 'http://www1.town.higashiagatsuma.gunma.jp/' | |
name = '広報ひがしあがつま' | |
html = Nokogiri::HTML(open(url)) |
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
#encoding: utf-8 | |
require 'nokogiri' | |
require 'open-uri' | |
url = 'http://www1.town.higashiagatsuma.gunma.jp/www/contents/1204215018844/index.html' | |
base = 'http://www1.town.higashiagatsuma.gunma.jp/' | |
name = '東吾妻議会だより' | |
html = Nokogiri::HTML(open(url)) |
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
<div id="hoge"> | |
<!--/#hoge--></div> | |
<!-- ↓ change --> | |
<div id="hoge"> | |
<!--/#hoge--></div> |
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
shell zsh | |
hardstatus alwayslastline "[%02c] %`%-w%{=b bw}%n %t%{-}%+w" | |
startup_message off | |
escape ^Z^Z | |
vbell off | |
altscreen on | |
# 起動時にwindow開く | |
screen -t db 1 | |
screen -t log 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
# key-mode | |
set -g status-keys vi | |
set-window-option -g utf8 on | |
# prefix を C-z に変更する | |
set-option -g prefix C-z | |
unbind-key C-b | |
bind-key C-z send-prefix | |
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
^application\/((?:(?!cache|errors|logs|views).+\/.+)).*\.php$ |
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
<?php | |
if ( ! function_exists('file_suffix')) | |
{ | |
function file_suffix($file, $format='Ymdhis') | |
{ | |
$CI = get_instance(); | |
$file_path = FCPATH . ltrim($file, '/'); | |
if (file_exists($file_path)) { |