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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "", | |
"Parameters" : { | |
}, | |
"Resources" : { | |
}, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>try mithril</title> | |
<style type="text/css" media="screen"> | |
#header { | |
height: 80px; | |
width: 100%; | |
} |
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 | |
command=$1 | |
elb_name=$2 | |
id=`curl http://169.254.169.254/latest/meta-data/instance-id 2>/dev/null` | |
if [ -z $id ]; then | |
exit 1 | |
fi |
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
inherit_from: .rubocop_todo.yml | |
AllCops: | |
Exclude: | |
- db/schema.rb | |
- tmp/**/* | |
- .bundle/**/* | |
- bin/* | |
- config/initializers/*.rb |
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
// 絶対URLのドメインを書き換える(未完) | |
// 変換対象の属性 | |
// [action],[background],[src],[href] | |
// その他URIが入りうる属性 | |
// [cite],[classid],[data],[longdesc],[profile],[usemap] | |
function replaceDomain(newDomain) { | |
var uriAttrs = "[action],[background],[src],[href]"; | |
var list = uriAttrs.split(',').map(function(item) { | |
return item.substring(1, item.length-1); | |
}); |
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
# See http://help.github.com/ignore-files/ for more about ignoring files. | |
# | |
# If you find yourself ignoring temporary files generated by your text editor | |
# or operating system, you probably want to add a global ignore instead: | |
# git config --global core.excludesfile '~/.gitignore_global' | |
# Ignore bundler config. | |
/.bundle | |
# Ignore the default SQLite database. |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>jquery-context-menu demo</title> | |
<style> | |
.boxes { | |
overflow: hidden; | |
} | |
.box { |
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
; hello-os | |
ORG 0x7c00 ; このプログラムがどこに読み込まれるのか | |
; 以下は標準的なFAT12フォーマットフロッピーディスクのための記述 | |
JMP SHORT entry | |
DB 0x90 | |
DB "HELLOIPL" ; ブートセクタの名前を自由に書いてよい(8バイト) | |
DW 512 ; 1セクタの大きさ(512にしなければいけない) | |
DB 1 ; クラスタの大きさ(1セクタにしなければいけない) |
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
set nocompatible | |
set number | |
set showmode | |
set ruler | |
set showcmd | |
set showmatch | |
set laststatus=2 | |
set statusline=[%{&fileencoding}][\%{&fileformat}]\ %F%m%r%=<%c:%l> | |
syntax on |