Skip to content

Instantly share code, notes, and snippets.

(ns excel-oekaki.core
(:import
(java.io File FileOutputStream FileInputStream)
(java.awt Color)
(javax.imageio ImageIO)
(org.apache.poi.xssf.usermodel XSSFWorkbook XSSFColor)
(org.apache.poi.ss.usermodel CellStyle)
))
@philopon
philopon / gist:5868182
Last active December 19, 2015 00:19
click to playなどポップアップ回避
:javascript <<EOM
var btn = document.getElementById('notification-popup-box');
document.getElementById('liberator-statusline').appendChild(btn);
EOM
:style chrome://* <<EOM
#urlbar {
width: 0px !important;
height: 0px !important;
overflow: hidden !important;
@philopon
philopon / arib.txt
Last active September 20, 2018 03:42
0x7A21 U+26CC # 事故
0x7A22 U+26CD # 故障車
0x7A23 U+2757 # 障害物
0x7A24 U+26CF # 工事
0x7A25 U+26D0 # 凍結
0x7A26 U+26D1 # 作業
0x7A28 U+26D2 # 通行止め、閉鎖
0x7A29 U+26D5 # 片側交互運行
0x7A2A U+26D3 # チェーン規制
0x7A2B U+26D4 # 進入禁止
//
// Tesseract.mm
//
// Created by philopon on 2013/08/22.
// Copyright (c) 2013年 philopon. All rights reserved.
//
#import "Tesseract.h"
#include <tesseract/baseapi.h>
@philopon
philopon / web-mode.el
Last active December 22, 2015 23:39
web-mode.elがdefaultをキーワードとして食うので回避。 defalut.*をキーワードとして使う言語 is 何 なので、他に影響があるかわからぬ
--- web-mode.el.orig 2013-09-13 18:15:30.000000000 +0900
+++ web-mode.el 2013-09-13 18:22:28.000000000 +0900
@@ -4017,7 +4017,7 @@
(queues (make-hash-table :test 'equal))
(opened-blocks 0)
(col-num 0)
- (regexp "[\]\[}{)(]\\|\\(break\\|case\\|default\\)")
+ (regexp "[\]\[}{)(]\\|\\(break\\|case\\|default[ \t\n\r]\\)")
(num-opened 0)
close-char n queue arg-inline arg-inline-checked char lines)
#!/bin/sh
## install rdkit 2013.06_1 to $RDBASE
TARGET=$HOME/package
RDBASE=$TARGET/RDKIT_2013_09_1-g++-4.8
# install gcc48
brew tap homebrew/versions
brew install gcc48
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
global_paths = "/etc/paths"
global_paths_d = "/etc/paths.d"
user_paths = os.path.join(os.environ['HOME'], ".paths")
user_paths_d = os.path.join(os.environ['HOME'], ".paths.d")
#!/bin/bash
# $ uname -a
# Darwin MBA2011Mid.local 13.0.0 Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
# インストール先
SRC=$HOME/src
BOOST=boost_1_50_0
RSTUDIO=rstudio-rstudio-ca19c52
@philopon
philopon / playCoverUpload.py
Created December 24, 2013 17:39
ローカルの音楽ファイルのアートワークをGoogle Play Musicに設定するやつ
#!/usr/bin/env python
# coding: UTF-8
MUSIC_DIR = "/Full/Path/To/Music"
GOOGLE_ID = 'hogehoge@gmail.com'
GOOGLE_PASSWORD = 'password'
class PictureData(object):
def __init__(self, album_artist, artist, album, title, data):
self.album_artist = album_artist
@philopon
philopon / eff-test.hs
Created January 16, 2014 08:36
extensible-effectsでいろいろ試した。
{-#LANGUAGE NoMonomorphismRestriction, DeriveDataTypeable, TypeOperators#-}
import Control.Applicative
import Control.Monad
import Control.Concurrent (threadDelay)
import Control.Eff
import Control.Eff.State.Strict
import Control.Eff.Lift
import Control.Eff.Fail