Skip to content

Instantly share code, notes, and snippets.

(function(){
var user = 'miya2000', password = '?????????';
var follows = '6489432'; // csv
var xhr = new XMLHttpRequest();
xhr.open('POST', 'http://stream.twitter.com/1/statuses/filter.json', true, user, password);
xhr.setRequestHeader('Content-Type' , 'application/x-www-form-urlencoded');
xhr.onreadystatechange = onReadyStateChange;
xhr.send('follow=' + follows);
// ==UserScript==
// @name Google Suggest Oopera gkbr
// @include http://www.google.co.jp/*
// ==/UserScript==
(function() {
function main() {
var qn = document.getElementsByName('q');
for (var i = 0; i < qn.length; i++) {
qn[i].addEventListener('keypress', function(e) { if (e.keyCode == 38 || e.keyCode == 40) e.preventDefault(); }, false);
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Oppai
{
class Oppai
{
static void Main(string[] args)
(function(){
alert(f1(f2)(f3)(4));
function f1(f) {
alert('f1');
return f;
}
function f2(f) {
alert('f2');
(function(){
function X(a, b) {
this.a = a;
this.b = b;
}
var a = new X(1, 1);
var b = new X(1, 1);
alert('[first] ' + (a == b));
X.prototype.toString = function() {
public CodeCompileUnit TestGenerate()
{
DeclarationCreator D = new DeclarationCreator();
return D
.Unit()
.Namespace("SuperCodeDom.Hogehoe")
.Import("System")
.Import("System.Linq")
.Type("Hoge")
.Type("Fuga")
using System;
using System.Security.Permissions;
using System.Security;
using System.Diagnostics;
using System.Threading;
using System.Security.Principal;
namespace ConsoleApplication1
{
class Program
@if(0)==(0) ECHO OFF
CScript.exe //NoLogo //E:JScript "%~f0" %*
GOTO :EOF
@end
// zip compress command in wsh.
// @see http://scripting.cocolog-nifty.com/blog/2008/06/zip_3cb0.html
// @see http://n-arai.cocolog-nifty.com/blog/2008/04/activeserverpag_d5bc.html
if (WScript.Arguments.Count() < 2) {
// ==UserScript==
// @name nicovideo - wnp
// @description windowised nicovideo player.
// @author miya2000
// @namespace http://d.hatena.ne.jp/miya2000/
// @version 1.0.7
// @include http://www.nicovideo.jp/*
// @exclude http://www.nicovideo.jp/watch/*
// @exclude http://*http*
// ==/UserScript==
// ==UserScript==
// @name nicovideo - fix restorePlayer for Opera10.
// @author miya2000
// @namespace http://d.hatena.ne.jp/miya2000/
// @include http://www.nicovideo.jp/watch/*
// @exclude http://*http*
// ==/UserScript==
javascript:(function F() {
if (Element.scrollTo) {
var org_scrollTo = Element.scrollTo;