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 / requirements.txt
Created May 16, 2016 02:50
千葉市のオープンデータのサイトからオープンデータの一覧をjsonに落とすスクリプト
aiohttp==0.20.2
beautifulsoup4==4.4.1
cchardet==1.0.0
chardet==2.3.0
wheel==0.24.0
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDyiYjFoBjz17Cn/qE36bKTBgv9o2UmAcibCKPMSd8YCCTXaNmfgk6M2G3n6yNcSOekoftD5XT4ctoSBtnFTQOywpr1rbyPXk5mNmkT4r66uhxOQ79UE6laVbcxCeTqHcRtIhzO+1xbKil2RBI8FAiWaJ7th7gXvkzNb3e0WG1hw1c14BRiDt24ktxxQrZpbfrMMkU8kH4YWBynnEVhncpYn1NQX0wOUGeyU+xecy9yg4xn8uPekFYnEbqCAbrNs5LASOF/CvDQBAVMbfNJej3ZPSKaHoVCX+GvxaIBsaGMvYwv/8OPNU2cVcFZ5B79GBMOO/VPrVbuSiOnQ5KcGvxT btm@taro001.local" >> ~/.ssh/authorized_keys
@smellman
smellman / build_sqlite3.bat
Created March 18, 2016 00:51
Electron + sqlite3 for windows
@echo off
cd /d %~dp0
cd /d node_modules\sqlite3
call npm install
call npm run prepublish
call node-gyp configure --module_name=node_sqlite3 --module_path=../lib/binding/node-v47-win32-ia32
call node-gyp rebuild --target=0.36.4 --arch=ia32 --target_platform=win32 --dist-url=https://atom.io/download/atom-shell --module_name=node_sqlite3 --module_path=../lib/binding/node-v47-win32-ia32
cd /d %~dp0
exit /B 0
@smellman
smellman / maps.me.build_memo_osx.md
Last active January 20, 2016 05:55
build memo for Maps.ME in OSX

maps.me memo

build maps.me

install depend packages

brew install boost
brew install qt5
平成 7年度家庭ごみ収集カレンダ ^
(A 2015 Home 容arba窟e c0肌ecuon calenda"
、集
(put out at the 各arba容e sta"on by 8:oo am on c0Ⅱection days)
ま、しこ、』みステーションに出てさ、。
@smellman
smellman / batsu.facebook-messanger.entry.js
Last active December 30, 2015 15:36
Facebook Messengerで起きた罰を探しやすくするUIのエントリポイント
var script = document.createElement('script');script.src = "https://gist.githack.com/smellman/3dd8880ea0854e7d3cd2/raw/3797a4b1dc44271f5a353cdc1697d78faad85d7d/batsu.facebook-messanger.js";document.getElementsByTagName('head')[0].appendChild(script);
@smellman
smellman / batsu.facebook-messanger.js
Created December 30, 2015 14:25
Facebook Messengerで起きた罰を探しやすくするUI
(function() {
// insert jquery
var script = document.createElement('script');
script.src = "http://code.jquery.com/jquery-2.1.4.min.js";
document.getElementsByTagName('head')[0].appendChild(script);
// bootstrap
var bs_link = document.createElement('link');
bs_link.rel = "stylesheet";
bs_link.href = "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css";
document.getElementsByTagName('head')[0].appendChild(bs_link);
@smellman
smellman / style.mss
Created December 25, 2015 18:28
smellman's FOSS4G Advent Calendar 2015 CartoCSS example
#railljpn {
[zoom >= 7] {
::line {
line-width: 1;
[zoom >= 8] { line-width: 2; }
[zoom >= 9] { line-width: 4; }
line-color: #777;
}
}
@smellman
smellman / MainActivity.kt
Created December 25, 2015 14:03
Mapbox Android SDK (mapbox-gl-native) MainActivity.kt
package org.smellman.mapboxandroidsdktest
import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import com.mapbox.mapboxsdk.geometry.LatLng
import com.mapbox.mapboxsdk.views.MapView
import kotlin.properties.Delegates
class MainActivity : AppCompatActivity() {
@smellman
smellman / activity_main.xml
Created December 25, 2015 14:01
Mapbox Android SDK (mapbox-gl-native) activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:mapbox="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<com.mapbox.mapboxsdk.views.MapView
android:id="@+id/mapview"
android:layout_width="fill_parent"