Skip to content

Instantly share code, notes, and snippets.

View fukubaya's full-sized avatar

Yuichiro FUKUBAYASHI fukubaya

View GitHub Profile
@fukubaya
fukubaya / emacs-24.1-lion-fullscreen-test.patch
Created June 13, 2012 16:29
MaxOSX Lion fullscreen patch for emacs 24.1
--- src/nsterm.m.orig 2012-06-14 01:05:10.000000000 +0900
+++ src/nsterm.m 2012-06-14 01:07:56.000000000 +0900
@@ -5507,6 +5507,7 @@
[win setAcceptsMouseMovedEvents: YES];
[win setDelegate: self];
[win useOptimizedDrawing: YES];
+ [win setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
sz.width = FRAME_COLUMN_WIDTH (f);
sz.height = FRAME_LINE_HEIGHT (f);
@fukubaya
fukubaya / tanzaku.js
Created July 6, 2012 16:48
通常のテキストから縦書き短冊風テキストを生成するスクリプト
/*
* tanzaku.js
*
* Created by FUKUBAYASHI Yuichiro on 2012/07/06
* Copyright (c) 2012, FUKUBAYASHI Yuichiro
*
* last update: <2012/07/07 02:08:54>
*/
TANZAKU = {
@fukubaya
fukubaya / gist:3342910
Created August 13, 2012 18:18 — forked from tmd45/gist:1369167
MITライセンス表示文章の雛形(英語+日本語)
The MIT License
Copyright (c) {year} {copyright holders}
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH T
@fukubaya
fukubaya / openchrome.js
Created September 25, 2012 17:35
iOSのSafariで開いているページをChromeで開くためのブックマークレット
javascript:(function(){location.href=window.location.href.replace(/^http/,"googlechrome");})();
@fukubaya
fukubaya / get_auth.sh
Created October 25, 2012 16:58
Get auth token from radiko server
#!/bin/sh
playerurl=http://radiko.jp/player/swf/player_3.0.0.01.swf
#
# access auth1_fms
#
auth1_fms=`/usr/local/bin/wget -q \
--header="pragma: no-cache" \
@fukubaya
fukubaya / radiko.ksh
Created October 25, 2012 17:01
Record radiko streaming and add to iTunes
#!/bin/ksh
#-----------------------------------------------------------------
# $1:ID (必須)
# TBS TBSラジオ
# QRR 文化放送
# LFR ニッポン放送
# NSB ラジオNIKKEI
# INT INTERFM
# FMT TOKYO FM
# BAYFM78 BayFm
@fukubaya
fukubaya / rec_99ann.sh
Created October 25, 2012 17:10
Sample script of recording radiko program
#!/bin/sh
ID="LFR"
OFILE="99ann"
TIME="125"
date=`date -v-1d +%Y年%m月%d日`
TITLE="${date} ナインティナインのオールナイトニッポン"
@fukubaya
fukubaya / gr_sketch.ino
Last active December 10, 2015 01:58
control full color LED (EP204K-35G1R1B1-CA) with the Arduino compatible board GR-SAKURA (http://japan.renesas.com/products/promotion/gr/index.jsp).
/*
* gr_sketch.ino
*
* Created by FUKUBAYASHI Yuichiro on 2012/12/19
* Copyright (c) 2012, FUKUBAYASHI Yuichiro
*
* last update: <2012/12/23 21:00:36>
*/
#include <rxduino.h>
@fukubaya
fukubaya / hagaki.js
Last active December 10, 2015 10:28
/*
* hagaki.js
*
* Created by FUKUBAYASHI Yuichiro on 2013/01/01
* Copyright (c) 2013, FUKUBAYASHI Yuichiro
*
* last update: <2013/01/01 01:18:12>
*/
TANZAKU = {
N_PER_LINE:26,
@fukubaya
fukubaya / mail_form_shortcut.js
Created May 5, 2013 21:36
make a bookmarklet for mail form of sakusaku website. https://www.tvk-yokohama.com/saku2/mail_form.html
/*
* mail_form_shortcut.js
*
* Created by FUKUBAYASHI Yuichiro on 2013/05/06
* Copyright (c) 2013, FUKUBAYASHI Yuichiro
*
* last update: <2013/05/06 06:18:00>
*/
$(document).ready(function(){
var p = {