Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Amanzon immersiveView for Opera10.10
// @include http://www.amazon.co.jp/exec/obidos/ASIN/*
// ==/UserScript==
(function() {
opera.addEventListener('BeforeScript', function(e) {
if (e.element.src.indexOf('immersiveView') >= 0) {
e.element.text = e.element.text.replace('jQuery("<img>").attr("src",currentDetailImageUrl);', 'jQuery("<img>").load(function(){}).attr("src",currentDetailImageUrl)');
}
}, false);
@miya2000
miya2000 / test
Created April 15, 2014 23:00
Excel2013: Odd FormulaR1C1 When Activating Graph sheet.
Sub Test()
Sheet1.Activate
ShowR1C1ToA1 ("=RC[-1]") ' [=A1]
Graph1.Activate
ShowR1C1ToA1 ("=RC[-1]") ' [=XFD1]
End Sub
if (x < 0) { /**/ }
else if (x === 0) { /**/ }
else if (x > 0) { /**/ }
else { /**/ }
<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ assembly name="System.Core" #>
<#@ assembly name="EnvDTE" #>
<#@ import namespace="System.Linq" #>
<#@ output extension=".txt" #>
<#
var dte = ((IServiceProvider)this.Host).GetService(typeof(EnvDTE.DTE)) as EnvDTE.DTE;
var runContextTest = dte.Commands.Item("{1E198C22-5980-4E7E-92F3-F73168D1FB63}", 885);
// ==UserScript==
// @name tugino renkyu for Opera10.10
// @include http://misc.tokyoenvious.net/holidays/holidays.html
// ==/UserScript==
(function() {
if (parseFloat(opera.version()) >= 12) return;
if (!window.console) {
// ==UserScript==
// @name fastladder - prevent click scroll.
// @description prevent scroll on click feed.
// @author miya2000
// @namespace http://d.hatena.ne.jp/miya2000/
// @version 1.0.0
// @inclide http://fastladder.com/reader/
// @inclide http://reader.livedoor.com/reader/
// ==/UserScript==
// ==UserScript==
// @name hatebu - rewite id-call.
// @description rewite id-call link from the user page to the user bookmark on the entry page.
// @author miya2000
// @namespace http://d.hatena.ne.jp/miya2000/
// @include http://b.hatena.ne.jp/entry/*
// ==/UserScript==
(function() {
function main(){
var as = document.evaluate('\/\/a[starts-with(@href,"http://b.hatena.ne.jp/")][starts-with(text(),"id:")]', document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null);
// ==UserScript==
// @name fastladder - prevent overscroll
// @description prevent overscroll on Opera.
// @author miya2000
// @namespace http://d.hatena.ne.jp/miya2000/
// @version 1.0.0
// @include http://fastladder.com/reader/
// @include http://reader.livedoor.com/reader/
// ==/UserScript==
(function(){
@miya2000
miya2000 / UnitTest1.cs
Created August 5, 2015 10:48
protected access modifier difference between Java and C#.
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTestProject1
{
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
@miya2000
miya2000 / CodeFixProvider.cs
Created August 5, 2015 16:27
nest ".ValueChanged.cs" file.
[ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(ValueChangedGaneratorCodeFixProvider)), Shared]
public class ValueChangedGaneratorCodeFixProvider : CodeFixProvider
{
// snip.
public sealed override async Task RegisterCodeFixesAsync(CodeFixContext context)
{
var root = await context.Document.GetSyntaxRootAsync(context.CancellationToken).ConfigureAwait(false);
var diagnostic = context.Diagnostics.First();