フロントエンドを楽にするために
Qiitaを支えたい技術 at 時雨祭
- HN: mizchi
- Qiitaの方からきました(入社半年たったらしい)
- Reactオジサンはそろそろ飽きてきた
- Angularに興味が無いのでこっちにきた
" Vim color file | |
" Converted from Textmate theme Predawn using Coloration v0.4.0 (http://github.com/sickill/coloration) | |
set background=dark | |
highlight clear | |
if exists("syntax_on") | |
syntax reset | |
endif |
var getIP = function (req) { | |
if (req.headers['x-forwarded-for']) { | |
return req.headers['x-forwarded-for']; | |
} | |
if (req.connection && req.connection.remoteAddress) { | |
return req.connection.remoteAddress; | |
} | |
if (req.connection.socket && req.connection.socket.remoteAddress) { | |
return req.connection.socket.remoteAddress; | |
} |
{ | |
"name": "my-app", | |
"version": "1.0.0", | |
"description": "My test app", | |
"main": "src/js/index.js", | |
"scripts": { | |
"jshint:dist": "jshint src/js/*.js", | |
"jshint": "npm run jshint:dist", | |
"jscs": "jscs src/*.js", | |
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js", |
回答してみた。
自分の立場
10分ぐらいで答えた。間違ってるのがあるのもわかってるけどリアルさ重視というナの手抜きです。
###作りたいものリスト
This is a curated set of conventions and best practices for Stylus, an expressive, dynamic, robust and advanced CSS preprocessor. Frustrated with there not being a set of conventions set in place (that could be easily found), I set forth to find out on my own.
#!/bin/bash | |
LANG=ja_JP.utf8 | |
pid=$$ | |
date=`date '+%Y-%m-%d-%H_%M'` | |
outdir="." | |
if [ $# -le 1 ]; then |
var Iconv, iconv, httpRequest; | |
httpRequest = require('httpclient').httpRequest; | |
Iconv = require('iconv').Iconv; | |
//iconv = new Iconv('SHIFT_JIS', 'UTF-8//TRANSLIT//IGNORE'); | |
iconv = new Iconv('CP932', 'UTF-8//TRANSLIT//IGNORE'); | |
function gsURL (uri) { | |
return function (_uri) { | |
if (_uri && _uri !== uri) uri = _uri; |