- 空きPCの確保
- Ubuntu Server 14.04のインストール
- swap領域の作成( How To Add Swap on Ubuntu 14.04 | DigitalOcean )
- dokkuのインストール(Dokku - The smallest PaaS implementation you've ever seen )
- dokkuを建てたサーバのIPにブラウザでアクセスして、SSH公開鍵を貼り付けて、ホスト名をIP.xip.ioにしてvirtual hostにチェックを入れる。
- Dokku add new ssh key | DigitalOceanを参考にssh鍵を追加できるが、指定するユーザーはパス無しでsudoできる必要がある
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
#TabsToolbar { visibility: collapse !important; } | |
#sidebar-header { display: none; } |
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
body { | |
background: rgba(255, 255, 255, 1.0); | |
} | |
* { | |
font-family: 'Source Sans Pro', 'Helvetica Neue', Arial, sans-serif; | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
color: rgba(0, 0, 0, 1.0); | |
font-size: 16px; | |
line-height: 115%; |
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
import os | |
from chardet.universaldetector import UniversalDetector | |
def check_encode(file_path): | |
detector = UniversalDetector() | |
with open(file_path, mode='rb') as f: | |
for binary in f: | |
detector.feed(binary) | |
if detector.done: |
この記事のあの画像を見てビビッと来てしまったので, 周りにいる人とErgodoxの購入検討をはじめました(随時更新)
➜ FalbaTech
選んでいくスタイル。
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
dev: | |
restart: always | |
build: . | |
ports: | |
- "5000:5000" | |
- "8080:8080" | |
- "8888:8888" | |
- "2222:22" | |
links: | |
- mysql |
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
# | |
# Base | |
# | |
FROM ubuntu:14.04 | |
MAINTAINER yymm yuya.yano.6260@gmail.com | |
RUN apt-get update -y | |
RUN chmod go+w,u+s /tmp |
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
# -*- coding: utf-8 -*- | |
import sys | |
import math | |
def getcolor(colorname): # {{{ | |
colors = { | |
'clear': '\033[0m', | |
'black': '\033[30m', | |
'red': '\033[31m', | |
'green': '\033[32m', |
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
import markdown | |
from markdown import Extension | |
from markdown.postprocessors import Postprocessor | |
import re | |
import requests | |
GIST_RE = r"^http(?:s)?://gist\.github\.com/.+$" | |
class EmbedExtension(Extension): | |
def extendMarkdown(self, md, md_globals): |
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
(function (win, doc, Class) { | |
'use strict'; | |
// Namespace | |
var DelaunayTriangle = {}; | |
var DT = DelaunayTriangle; | |
/*! ----------------------------------------------------- | |
ドロネー三角形分割のためのユーティリティ関数 |
NewerOlder