Skip to content

Instantly share code, notes, and snippets.

View eagletmt's full-sized avatar

Kohei Suzuki eagletmt

View GitHub Profile
diff -r 23f5c4975e67 common/content/tabs.js
--- a/common/content/tabs.js Mon Jun 13 20:33:33 2011 +0200
+++ b/common/content/tabs.js Fri Jun 17 14:28:38 2011 +0900
@@ -595,7 +595,9 @@
else
return -1;
- if (position > last)
+ if (length == 1)
+ position = 0;
@eagletmt
eagletmt / 0001-YouTube-stfetch.patch
Created April 30, 2011 15:02
patches for stella.js
diff --git a/stella.js b/stella.js
index c0719a2..223de97 100644
--- a/stella.js
+++ b/stella.js
@@ -964,35 +964,11 @@ Thanks:
set volume (value) (this.player.setVolume(value), this.volume),
fetch: function (filepath) {
- function _fetch (id, t) {
- let url =
diff --git a/recpt1/recpt1.c b/recpt1/recpt1.c
index 0e3b1c8..5ab13be 100644
--- a/recpt1/recpt1.c
+++ b/recpt1/recpt1.c
@@ -75,6 +75,8 @@ typedef struct msgbuf {
boolean f_exit = FALSE;
/* prototypes */
+ISDB_T_FREQ_CONV_TABLE *searchrecoff(char *channel);
+void calc_cn(int fd, int type);
/*
* 現在のページ (http://$username.tumblr.com/post/$id のような) を reblog するコマンドを提供する Vimperator plugin
* _libly.js 必須
* 全面的に http://coderepos.org/share/browser/lang/javascript/userscripts/reblogcommand.user.js を参考にした
*/
(function() {
commands.addUserCommand(['reblog'], 'reblog this post', function() reblog(buffer.URI), { argCount: '0' });
let libly = liberator.plugins.libly;
// ==UserScript==
// @name pixiv vertical listing
// @namespace http://d.hatena.ne.jp/eagletmt/
// @include http://www.pixiv.net/tags.php*
// @include http://www.pixiv.net/search.php*
// @include http://www.pixiv.net/bookmark_new_illust.php*
// @description こんなかんじに縦に表示 http://gyazo.com/361f385af3df45064658f8ed671f8e0c
// ==/UserScript==
(function() {
// ==UserScript==
// @name Titech Portal Auto Login
// @namespace http://d.hatena.ne.jp/eagletmt/
// @description 東工大ポータルに自動的にログインします
// @author eagletmt <[email protected]>
// @include https://portal.nap.gsic.titech.ac.jp/GetAccess/Login*
// @match https://portal.nap.gsic.titech.ac.jp/GetAccess/Login*
// @license MIT License
// ==/UserScript==
@eagletmt
eagletmt / proxy_command.js
Created February 7, 2011 14:38
a Vimperator plugin which provides commandline interface for proxy settings
/*
* Commandline interface for proxy settings.
* This requires revision >= 4430 for subCommands.
*
* examples:
* - display current proxy type
* :proxy
* - do not use proxy
* :proxy direct
* - manual proxy configuration
@eagletmt
eagletmt / gist:798124
Created January 27, 2011 05:46
stopinsert after narrowing (unite.vim)
let s:direnter = {
\ 'description' : 'enter directory',
\ 'is_quit' : 0,
\ }
function! s:direnter.func(candidate)
call unite#take_action('narrow', a:candidate)
call unite#redraw()
stopinsert
3
endfunction
diff -ur src.orig/article/articleview.cpp src/article/articleview.cpp
--- src.orig/article/articleview.cpp 2010-11-04 23:32:39.123342300 +0900
+++ src/article/articleview.cpp 2010-11-05 00:17:48.593342292 +0900
@@ -13,6 +13,9 @@
#include "dbtree/interface.h"
#include "dbtree/articlebase.h"
+#include "dbtree/node.h"
+
+#include "dbimg/imginterface.h"
@eagletmt
eagletmt / clang_complete.vim
Created October 30, 2010 15:52
neocomplcache plugin to complete in C/C++ using clang
" original: http://github.com/Rip-Rip/clang_complete
" File: clang_complete.vim
" Author: Xavier Deguillard <[email protected]>
" Modified by: eagletmt <[email protected]>
"
" Description: Use of clang to complete in C/C++.
"
" Configuration: Each project can have a .clang_complete at his root,
" containing the compiler options. This is useful if