Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Facebook disabler
// @namespace eckrel.com
// @include *
// @version 1.0.2
// @grant none
// ==/UserScript==
(function(w){
" write buffer list to file
let g:WriteBuffferListFile = "$HOME/tmp/buffer_list.txt"
function! s:WriteBufferList()
if !exists('g:WriteBuffferListFile')
let g:WriteBuffferListFile = "$HOME/buffer_list.txt"
endif
let date = strftime("%Y/%m/%d %H:%M:%S")
let output = g:WriteBuffferListFile
@tetsutan
tetsutan / bt.txt
Created January 11, 2013 19:23
backtrace of clang_complete crashing.
#0 0x0000000100017b3b in ins_compl_next (allow_get_expansion=1606383760, count=1606383760, insert_match=1606383760) at edit.c:4460
#1 0x000000010001714a in ins_compl_check_keys (frequency=16) at edit.c:4626
#2 0x0000000100021708 in f_complete_check (argvars=0x100000000, rettv=0x10142c910) at eval.c:9241
#3 0x000000010002fd88 in call_func (funcname=0x100000000 "????\a", len=1, rettv=0x7fff5fbf7ae0, argcount=1606384352, argvars=0x7fff5fbf7ae0, firstline=140734799772384, lastline=10, doesrange=0x7fff5fbf7d24, evaluate=1, selfdict=0x0) at eval.c:8320
#4 0x0000000100031d8f in get_func_tv (name=0x1015cb16c "complete_check()", len=1606384832, rettv=0x7fff5fbf7cc0, arg=0xa00000000, firstline=140734799772864, lastline=140734799772864, doesrange=0x7fff5fbf7d24, evaluate=1, selfdict=0x0) at eval.c:8133
#5 0x0000000100038253 in eval7 (arg=0x100000000, rettv=0xa0000000e, evaluate=1606385104, want_string=1606385104) at eval.c:5082
#6 0x000000010003857c in eval6 (arg=0x7fff5fbf8138, rettv=0x10142c910, evaluate=160638
(function(){
mappings.addUserMap([modes.NORMAL,modes.VISUAL],['<C-M-n>'], 'migiidou',
function(){
var n = gBrowser.mCurrentTab._tPos;
if( n == (gBrowser.mTabContainer.childNodes.length - 1)){
return
}
colorscheme desert
cd ~/tmp/txt
function s:set_filename ()
if strlen(bufname("%")) == 0
exec ":e ".strftime("%Y%m%d-%H%M%S.txt", localtime())
endif
// ==UserScript==
// @name OpenAll Redmine
// @namespace org.no-ip.knell
// @include *
// ==/UserScript==
(function(){
var check_redmine = function(){
// ==UserScript==
// @name Auto Full Feed
// @include http://reader.livedoor.com/reader/*
// @include http://fastladder.com/reader/*
// @description auto loading full feed required LDR Full Feed
// @version 0.0.5
// ==/UserScript==
(function(w){
(function(){
var scripts = document.getElementsByTagName('script');
var answer = [];
var submit = function() {
$("#answer").val(answer.join(","));
$("#solve").submit();
@tetsutan
tetsutan / activerecord-mysql2spatial-adapter_with_fixture_patch.rb
Created July 19, 2011 20:37
activerecord-mysql2spatialのfixtureを読んでテストするためのパッチ
# tyano added
module ActiveRecord
module ConnectionAdapters
module Quoting
def quote_with_spatial(value, column = nil)
if(column && column.type == :spatial)