Skip to content

Instantly share code, notes, and snippets.

@tsupo
tsupo / OAuthBase.cs
Created March 15, 2010 23:04
OAuth library for Twitter and Jaiku (Twitter's xAuth ready)
/* forked http://oauth.googlecode.com/svn/code/csharp/OAuthBase.cs */
using System;
using System.Security.Cryptography;
using System.Collections.Generic;
using System.Text;
using System.Web;
namespace OAuth
{
// ==UserScript==
// @name Favorize
// @namespace http://tyoro.orz.ne.jp/
// @description 色んな所にFavoritesの☆ボタンをつける。
// @include http://twitter.1x1.jp/*
// @include http://kichiku.oq.la/*
// @include http://twwatcher.blog20.fc2.com/*
// @include http://sho-ten.twitlife.jp/*
// @include http://search.twitter.com/*
// @include http://pcod.no-ip.org/yats/*
@tsupo
tsupo / testTest.html
Created February 15, 2011 11:02
sample html with test script for tumblen3 Version15Feb2011
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>test page for Tumblen3</title>
</head>
<body>
<script type="text/javascript">
@tsupo
tsupo / autoClose.cpp
Created February 18, 2011 07:03
Internet Explorer の JavaScript のエラーダイアログを自動的に閉じる
/*
* Internet Explorer の JavaScript のエラーダイアログを自動的に閉じる
* written by Hiroshi Tsujimura 18 Feb 2011 / 22 Feb 2011
*/
#include <windows.h>
#include <stdio.h>
volatile bool cont = true;
HWND parent = NULL;
@tsupo
tsupo / test.txt
Created April 28, 2011 08:21
test
begin 644 webkit_test_20110428.zip
M4$L#!`H``````/"(G#X````````````````5````=V5B:VET5&5S=#0N,C`Q
M,3`T,C@O4$L#!`H``````&J)G#X````````````````A````=V5B:VET5&5S
M=#0N,C`Q,3`T,C@O=V5B:VET5&5S=#0O4$L#!!0````(`$U+FCZVR0OX70$`
M`&L#```D````=V5B:VET5&5S=#0N,C`Q,3`T,C@O=V5B:VET5&5S=#0N<VQN
MI9'!3L,P#(;/J]1WJ,IE2$N5KNW8#AS:M($#H(DB3ERZ-9T"89F2%)#&GHP#
MC\0KD(JLVMB$8$@YV+\=^[/]\?9N6Y=T*KCDE7)NJ:P+YN2J+BEW<LYJ1?G<
MP921GH.Y>"QT#A&R$7W?@]"VCKY]ZD-?JV/![\E4==TECC,89@B"`/H8^'X:
M@`2'"8`0P1"?C#*<H)5[[)PZ[C.9/%!U0Z0*W=Z6>[=A>U.YT-6;C*4/X1"%
M80JB`4Y!&.$8C*)^'\`X0(%^,<3)RK6M;%X:(MLZ8WQ2,-OJ?!FY%O4XW?6P
begin 644 webKitTest20110513.zip
M4$L#!`H``````.A.JSX````````````````7````5T5"2TE47W1E<W1?=V]R
M:VEN9S`P,B]02P,$"@``````Z$ZK/@```````````````!X```!714)+251?
M=&5S=%]W;W)K:6YG,#`R+W=E8FMI="]02P,$"@``````T$ZK/@``````````
M`````"(```!714)+251?=&5S=%]W;W)K:6YG,#`R+W=E8FMI="YN970O4$L#
M!`H``````"^2K3X```````````````!$````5T5"2TE47W1E<W1?=V]R:VEN
M9S`P,B]W96)K:70N;F5T+W=E8FMI=&1O=&YE="UW96)K:71D;W1N970M,38P
M83(R,R]02P,$"@``````XDZK/@```````````````$@```!714)+251?=&5S
M=%]W;W)K:6YG,#`R+W=E8FMI="YN970O=V5B:VET9&]T;F5T+7=E8FMI=&1O
M=&YE="TQ-C!A,C(S+V)I;B]02P,$"@``````)WJM/@```````````````$X`
@tsupo
tsupo / MainForm.cs.diff
Created May 13, 2011 10:10
patch for "webkitdotnet-webkitdotnet-160a223/WebKitBrowserTest/MainForm.cs"
*** webkit.net/webkitdotnet-webkitdotnet-160a223/WebKitBrowserTest/MainForm.cs Fri Mar 18 00:16:04 2011
--- WEBKIT_test_working002/webkit.net/webkitdotnet-webkitdotnet-160a223/WebKitBrowserTest/MainForm.cs Fri May 13 15:17:01 2011
***************
*** 78,84 ****
// navigation bar events
navigationBar.Back += () => { currentPage.browser.GoBack(); ActivateBrowser(); };
navigationBar.Forward += () => { currentPage.browser.GoForward(); ActivateBrowser(); };
! navigationBar.Go += () => { currentPage.browser.Navigate(navigationBar.UrlText); ActivateBrowser(); };
navigationBar.Refresh += () => { currentPage.browser.Reload(); ActivateBrowser(); };
navigationBar.Stop += () => { currentPage.Stop(); ActivateBrowser(); };
@tsupo
tsupo / WebKitBrowserCore.cs.diff
Created May 13, 2011 10:20
patch (hint) for webkitdotnet-webkitdotnet-160a223/WebKitCore/WebKitBrowserCore.cs
*** webkit.net/webkitdotnet-webkitdotnet-160a223/WebKitCore/WebKitBrowserCore.cs Fri Mar 18 00:16:04 2011
--- WEBKIT_test_working002/webkit.net/webkitdotnet-webkitdotnet-160a223/WebKitCore/WebKitBrowserCore.cs Wed May 11 10:17:26 2011
***************
*** 870,877 ****
if (loaded)
{
// prepend with "http://" if url not well formed
! if (!Uri.IsWellFormedUriString(url, UriKind.Absolute))
! url = "http://" + url;
@tsupo
tsupo / WebKitBrowserEx.cs
Created May 13, 2011 10:25
an idea of expansion of WebKit.NET's WebKitBrowser control
// Copyright (c) 2011, Hiroshi Tsujimura
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
@tsupo
tsupo / nt_MD.diff
Created May 16, 2011 06:42
OpenSSL 1.0.0d for Win32-no_asm (with Visual C++ 6 or later)
*** ms/nt.mak Mon May 16 14:28:11 2011
--- ms/nt_MD.mak Mon May 16 15:12:49 2011
***************
*** 17,23 ****
# Set your compiler options
PLATFORM=VC-WIN32
CC=cl
! CFLAG= /MT /Ox /O2 /Ob2 -DOPENSSL_THREADS -DDSO_WIN32 -W3 -WX -Gs0 -GF -Gy -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -D_CRT_SECURE_NO_DEPRECATE -DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_JPAKE -DOPENSSL_NO_DYNAMIC_ENGINE
APP_CFLAG= /Zi /Fd$(TMP_D)/app
LIB_CFLAG=/Zl /Zi /Fd$(TMP_D)/lib