Skip to content

Instantly share code, notes, and snippets.

using System.Linq;
using System.Text;
using System.Diagnostics;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
// ==UserScript==
// @name Booooooooogle
// @include http://www.google.co.jp/*
// @include http://www.google.com/*
// ==/UserScript==
(function() {
opera.addEventListener('BeforeEvent', function(e) {
if (e.event.type == 'keypress' && e.event.keyCode == 13) {
e.preventDefault();
}
// ==UserScript==
// @name jQuery - fix window height (for jQuery version 1.2.x.)
// ==/UserScript==
(function() {
function main() {
if (typeof jQuery == 'undefined') return;
if (!/^1\.2\./.test(jQuery.fn.jquery)) return;
var height_ = jQuery.fn.height;
jQuery.fn.height = function() {
if ( this[0] == window && jQuery.browser.opera && jQuery.browser.version >= 9.50)
var GOOGLE_READER_PROXY_URL = 'http://www.google.com/reader/atom/feed/'
function feedRequest(href, feedCallback) {
httpRequest(href, callback);
function callback(e) {
if (e.status == '403') {
postError('feed access denied. [' + e.status + '] ' + e.statusText);
if (href.indexOf(GOOGLE_READER_PROXY_URL) != 0) {
var url = GOOGLE_READER_PROXY_URL + encodeURIComponent(href);
postError('retry to Google Reader [' + url + ']');
feedRequest(url, feedCallback);
package ttt;
import java.io.File;
import org.eclipse.jgit.api.Git;
import org.eclipse.jgit.storage.file.FileRepository;
public class JGitTest {
public static void main(String[] args) throws Exception {
using System;
namespace EnumName.enums
{
public static class Hoge
{
public enum Value
{
Aaa,
Bbb
package doltengtest.action;
import static org.hamcrest.CoreMatchers.*;
import static org.junit.Assert.assertThat;
import javax.annotation.Resource;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.seasar.framework.mock.servlet.MockHttpServletResponse;
// ==UserScript==
// @name yahoo comics
// @include http://comics.yahoo.co.jp/*
// @include http://view.books.yahoo.co.jp/*
// ==/UserScript==
window.opera.defineMagicVariable('flagBrowser', function (curVal) { return true; }, function (newVal) { });
window.opera.defineMagicFunction('CheckBrowser', function () { return true; });
// ==UserScript==
// @name Scrolloo
// @description Yet anther scrollbar and scroll utilities.
// @namespace http://www.hatena.ne.jp/miya2000/scrolloo
// @version 1.00 Beta
// @include *
// ==/UserScript==
//*
(function(f) {
//for debug.
Index: ReflectiveConnectionConfig.java
===================================================================
--- ReflectiveConnectionConfig.java (リビジョン 373)
+++ ReflectiveConnectionConfig.java (作業コピー)
@@ -149,22 +149,14 @@
*
* @see org.seasar.dolteng.eclipse.preferences.ConnectionConfig#getDriverPath()
*/
- public String getDriverPath() {
- return driverPath;