Skip to content

Instantly share code, notes, and snippets.

View totakke's full-sized avatar
🌵

Toshiki Takeuchi totakke

🌵
View GitHub Profile
@totakke
totakke / ios-status-bar-crop.sh
Last active April 26, 2016 07:10
A cropping script for iOS screenshots
#!/bin/sh
#
# A cropping script for iOS screenshots
#
# This shell script crops an iOS screenshot without the status bar. It
# automatically detects a display size of a screenshot, and cuts its status bar
# using ImageMagick. It currently supports portrait screenshots of 3.5 and 4
# inch iPhone.
#
# Usage:
@totakke
totakke / test.py
Created April 9, 2014 11:56
Python 3 compatible MeCab-python example code
#!/usr/bin/python
# -*- coding: utf-8 -*-
from __future__ import print_function
import MeCab
import sys
import string
sentence = "太郎はこの本を二郎を見た女性に渡した。"
@totakke
totakke / sort-clojurecup-apps.js
Last active December 24, 2015 08:59
Sorts Clojure Cup apps by voting counts.
// Sort Clojure Cup 2014 apps by voting counts.
//
// Usage:
// Open `http://clojurecup.com/apps.html`.
// Input the address bar
// `javascript: var addScript=function(src){var script=document.createElement('script');script.src=src;script.type='text/javascript';document.querySelector('head').appendChild(script)};addScript('https://code.jquery.com/jquery-2.1.1.js');setTimeout(function(){addScript('https://rawgit.com/totakke/6773809/raw/********/sort-clojurecup-apps.js');},1000);" type="text/javascript"></script>');`.
(function() {
var countVotes = function(text) {
@totakke
totakke / obdgpslogger-gpsd3.9-fltk1.3.2.patch
Last active December 17, 2015 07:48
Patch for building obdgpslogger v0.16 (http://icculus.org/obdgpslogger/) with gpsd v3.9 and fltk v1.3.2.
diff --git src/gui/maindisplay.fl src/gui/maindisplay.fl
index 09be746..339bca4 100644
--- src/gui/maindisplay.fl
+++ src/gui/maindisplay.fl
@@ -30,8 +30,8 @@ decl {\#include "convertwindow.h"} {}
decl {\#include "gpsdwizard.h"} {public
}
-decl {class obdconvertwindow;} {public
-}