Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Dan the Cleaner
// @namespace Not Found
// @description Makes alpha bloggers's blogs more easy to read.
// @include http://blog.livedoor.jp/dankogai/*
// ==/UserScript==
(function () {
var url = "http://www.google.co.jp/search?ie=euc-jp&oe=utf-8&q=";
var replacer = function (matchedString, dan, offset, originalString) {
;;; gravatar.el --- gravatar fetch/store functions
;; Copyright (C) 2008 Iwata
;; Author: Iwata <iratqq@gmail.com>
;; Keywords: faces, tools, extensions, mail
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
@koichiro
koichiro / codelist.css
Created December 21, 2008 07:45
Source code embedded plugin for tDiary
/* codelist.css
* Source code embedded plugin for tDiary
* Original Copyright (C) 2005 bashi <http://www.cc.ariake-nct.ac.jp/~bashi/d/?date=20051010#p01>
* Modified Copyright (C) 2007,2008 Koichiro Ohba <koichiro@meadowy.org>
* License under GPL2.
*/
span.classdef, span.moduledef {
color: #44aa44;
font-weight: bold;
typedef char *rl_compentry_func_t PARAMS((const char *, int));
READLINE_DLL_IMPEXP rl_compentry_func_t *rl_completion_entry_function;
READLINE_DLL_IMPEXP char**
rl_completion_matches (text, entry_function)
const char *text;
rl_compentry_func_t *entry_function;
{
....snip...
class HogeController < ActionController::Base
def show
error_code = 505
respond_to do |format|
format.xml { render "error", :status => error_code }
format.html { render "error", :status => 500 }
end
end
end
Index: ext/readline/readline.c
===================================================================
--- ext/readline/readline.c (revision 22951)
+++ ext/readline/readline.c (working copy)
@@ -124,6 +124,14 @@
}
static VALUE
+readline_s_refresh_line(self)
+{
Index: ext/readline/readline.c
===================================================================
--- ext/readline/readline.c (revision 23097)
+++ ext/readline/readline.c (working copy)
@@ -929,7 +929,24 @@
#endif /* HAVE_RL_FILENAME_QUOTE_CHARACTERS */
}
+/*
+ * call-seq:
class Main {
static class JCheckboxWithLabel extends JCheckbox {
public JLabel label;
public JCheckboxWithLabel(String label) {
super();
label = new JLabel(label);
}
}
static public void main(String[] args) {
Index: src/sysdep.c
===================================================================
--- src/sysdep.c (revision 4248)
+++ src/sysdep.c (working copy)
@@ -201,6 +201,10 @@
#include <utime.h>
#endif
+
+#if _MSC_VER >= 1400
# -*- coding: utf-8 -*-
gem 'rubytter', '>= 0.6.5'
require 'rubytter'
module Termtter
class ActiveRubytter
def initialize(data)
self.attributes = data
end