Skip to content

Instantly share code, notes, and snippets.

View smellman's full-sized avatar

Taro Matsuzawa aka. btm smellman

View GitHub Profile
@smellman
smellman / pants.rb
Created December 6, 2011 04:42
お姉ちゃん達にパンツの色を聞いてみる
# coding: utf-8
class Cパンツ
def initialize(好み = {})
@色 = 好み[:色] || 0xFFFFFF
@柄 = 好み[:柄] || :無地
end
def 何色?
sprintf("%#x", @色)
@smellman
smellman / patch.diff
Created October 3, 2012 15:16 — forked from tetsuharuohzeki/patch.diff
Preprocesser.py bug fix patch
# HG changeset patch
# Parent 635fcc11d2b16265114d6bbc02768d007f73d66b
# User Taro Matsuzawa <btm@tech.email.ne.jp>
diff --git a/config/Preprocessor.py b/config/Preprocessor.py
--- a/config/Preprocessor.py
+++ b/config/Preprocessor.py
@@ -377,16 +377,18 @@ class Preprocessor:
# Strips blank lines from the output.
def filter_emptyLines(self, aLine):
@smellman
smellman / overpass.geojson
Created March 3, 2017 00:19 — forked from anonymous/overpass.geojson
data exported by overpass turbo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smellman
smellman / overpass.geojson
Created March 4, 2017 06:42 — forked from anonymous/overpass.geojson
data exported by overpass turbo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@smellman
smellman / style.json
Created July 17, 2017 05:49 — forked from anonymous/style.json
Dark Matter
{
"version": 8,
"name": "Dark Matter",
"metadata": {
"mapbox:autocomposite": false,
"mapbox:type": "template",
"mapbox:groups": {
"b6371a3f2f5a9932464fa3867530a2e5": {
"name": "Transportation",
"collapsed": false
@smellman
smellman / style.json
Created July 17, 2017 05:49 — forked from anonymous/style.json
Dark Matter
{
"version": 8,
"name": "Dark Matter",
"metadata": {
"mapbox:autocomposite": false,
"mapbox:type": "template",
"mapbox:groups": {
"b6371a3f2f5a9932464fa3867530a2e5": {
"name": "Transportation",
"collapsed": false
@smellman
smellman / gist:2e51b1cf449c499ad5deec454a16a7bc
Last active March 5, 2019 16:58 — forked from giannisp/gist:ebaca117ac9e44231421f04e7796d5ca
Upgrade PostgreSQL 9.6.5 to 10.0 and Postgis 2.3.x to 2.4.x using Homebrew (macOS)
After automatically updating Postgres to 10.0 via Homebrew, the pg_ctl start command didn't work.
The error was "The data directory was initialized by PostgreSQL version 9.6, which is not compatible with this version 10.0."
Database files have to be updated before starting the server, here are the steps that had to be followed:
# first stop force reload by launchctl
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist
# need to have both 9.6.x and latest 10.0 installed, and keep 10.0 as default
brew unlink postgresql