This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# vendor/plugins/redmine_gist/init.rb | |
# | |
require 'redmine' | |
require 'open-uri' | |
Redmine::Plugin.register :redmine_gist do | |
name 'Redmine Gist embed plugin' | |
author 'Yasushi Abe <yasushi.abe@gmail.com>' | |
description 'This is a plugin for Redmine' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 00236C Apple, Inc | |
5 080074 CASIO COMPUTER CO. LTD. | |
9 0000EB MATSUSHITA COMM. IND. CO. LTD. | |
1 001FC4 Motorola CHS | |
1 001A16 Nokia Danmark A/S | |
2 001CD6 Nokia Danmark A/S | |
1 001EA4 Nokia Danmark A/S | |
1 002265 Nokia Danmark A/S | |
9 001987 Panasonic Mobile Communications Co., Ltd. | |
1 0018AF Samsung Electronics Co., Ltd. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util._ | |
import org.jruby._ | |
import org.jruby.javasupport._ | |
import org.jruby.runtime._ | |
import org.jruby.runtime.builtin._ | |
import org.jruby.runtime.callback._ | |
implicit def javaStr2Ruby(s:String)(implicit runtime: Ruby) = | |
RubyString.newUnicodeString(runtime, s) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Toby DiPasquale <toby@cbcg.net> | |
require 'fileutils' | |
require 'rubygems' | |
require 'sequel' | |
require 'jekyll/filters' | |
module Jekyll | |
module Typo | |
class <<self | |
include Jekyll::Filters |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(display-supports-face-attributes-p '(:underline t)) | |
(tty-no-underline) | |
(tty-set-up-initial-frame-faces) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define RX_DESC_MIN 64 | |
#define RX_DESC_MAX 255 | |
#define RX_DESC_DEF 64 | |
VELOCITY_PARAM(RxDescriptors, "Number of receive descriptors"); | |
#define TX_DESC_MIN 16 | |
#define TX_DESC_MAX 256 | |
#define TX_DESC_DEF 64 | |
VELOCITY_PARAM(TxDescriptors, "Number of transmit descriptors"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DB=$1 | |
if [ "x$DB" == "x" -o ! -f "$DB" ]; then | |
exit | |
fi | |
echo $DB | |
sqlite3 $DB 'vacuum' | |
for i in `sqlite3 $DB .schema | grep -o 'INDEX [^ ]*' | sed -e 's/^INDEX \([^ ]*\)/\1/'` | |
do | |
echo $i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby -Kn | |
fn=ARGV[0].to_s | |
bn=fn.sub(/\.flv$/,'') | |
vn="#{$$}_track1.h264" | |
an="#{$$}_track2.aac" | |
out="#{bn}.mp4" | |
fps=ARGV[1] | |
if not File.exists? fn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ls src/main/webapp/**/*.jsp | sed -e 's!^\(.*\)$!encoding//\1=UTF-8^M!' >> .settings/org.eclipse.core.resources.prefs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CmdUtils.CreateCommand({ | |
names: ["hatena bookmark comment", "hateb comment"], | |
icon: "http://b.hatena.ne.jp/favicon.ico", | |
author: {name: "Yasushi Abe", email: "yasushi.abe@gmail.com"}, | |
preview: function(pblock, args) { | |
if (!this._url()) { | |
pblock.innerHTML="show hatena bookmark comments."; | |
return; | |
} | |
pblock.innerHTML="Loading comments..."; |