Skip to content

Instantly share code, notes, and snippets.

View orleika's full-sized avatar
🏠
Working from home

Koki Yasuda orleika

🏠
Working from home
  • HackathonMonster
  • Tokyo, Japan
View GitHub Profile
<% extend 'layout' %>
<div class="wrapper">
<header role="banner">
<h1></h1>
</header>
<main role="main">
</main>
<footer role="contentinfo">
</footer>
</div>
@orleika
orleika / projectEuler.js
Created February 2, 2015 09:41
paizaオンラインハッカソン4 Lite
process.stdin.resume();
process.stdin.setEncoding('utf8');
var input_lines = '';
var parseInt10 = function (v) {
return parseInt(v, 10);
}
process.stdin.on('data', function (chunk) {
@orleika
orleika / getIP.js
Created January 25, 2015 13:47
Node.jsでの接続元IPアドレス取得
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;
}
@orleika
orleika / index.html
Last active October 21, 2015 06:55
HTMLテンプレート
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta name="description" content="">
<meta property="og:type" content="">
<meta property="og:title" content="">
<meta property="og:description" content="">
<meta property="og:site_name" content="">