Skip to content

Instantly share code, notes, and snippets.

View mmmpa's full-sized avatar
👷‍♂️
working

mmmpa mmmpa

👷‍♂️
working
View GitHub Profile
HistoryWard.startBrutally()
window.addEventListener(HistoryWard.PUSHSTATE, ((e)->
console.log 'addEventListener'
console.log e
display.innerHTML = if e.detail.state.param == 'param3'
e.preventDefault()
'not pushState'
else
'pushState: ' + write(e.detail)
fs = require 'fs'
path = require 'path'
changeCase = require 'change-case'
_ = require 'lodash'
module.exports = generateIndexCoffee = (dir)->
container = changeCase.pascalCase(pickDirName(dir))
fs.readdir(dir, (err, files)->
requests = files.map((file)->
server {
listen 80;
server_name outer.mmmpa.net;
autoindex on;
# ファイル表示するときの
location / {
# 最終的にファイルが保存されるパスとか
root /app/outer_uploader/uploaded;
keycode 102 = Zenkaku_Hankaku
remove Lock = Caps_Lock
keysym Caps_Lock = Control_L
add Control = Control_L
skinparam {
noteFontStyle bold
noteFontColor #ffffff
noteBackgroundColor #7f8c8d
noteBorderColor #7f8c8d
activityArrowColor #000000
activityBackgroundColor #eeeeee
activityBorderColor #999999
activityStartColor #000000
@startuml{example.png}
!include color.inc
title <size:18>クーポン発行フロー</size>
(*) --> "発行情報を登録/変更"
--> "情報入力フォーム" as input <<input>>
--> "入力内容の確認"
--> if "" then
note right:入力 OK?
host:
animemap:
host: http://animemap.net/api/table/
format: :xml
api:
get_tokyo:
title: 東京のアニメ一覧
uri: tokyo.xml
http_method: get
get_osaka:
[global]
read raw = Yes
write raw = Yes
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=131072 SO_SNDBUF=131072
min receivefile size = 16384
use sendfile = true
aio read size = 16384
aio write size = 16384
unix charset = UTF-8
yum install -y git nano gcc gcc-c++ openssl-devel readline-devell wget make libffi-devel
wget https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure
make
sudo make install
cd
routes = Rails.application.routes.routes.map do |route|
path = route.path.spec.to_s.gsub(/\(\.:format\)/, "")
params = path.scan(/:([a-zA-Z_]+)/).flatten.collect(&:to_sym)
verb = %W{ GET POST PUT PATCH DELETE }.grep(route.verb).first.downcase.to_sym
action = route.defaults[:action]
controller = route.defaults[:controller]
{
#path: path,
verb: verb,
action: action && action.to_sym,