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
(function () { | |
var q = location.search; | |
if (q.startsWith('?')) { | |
q = q.substr(1).split('&'); | |
var p = {}; | |
q.forEach(function (x) { var y = x.split('='); p[y[0]] = y[1]; }); | |
console.log(p); | |
var h = location.hostname; | |
var langmap = { en: 'en-us', ja: 'ja-jp' }; | |
if (h.indexOf('google') >= 0) { |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="author" content="Katsuya Iida"> | |
<title>JavaScript Object properties</title> | |
</head> | |
<body> | |
<h1>JavaScript Object properties</h1> | |
<table border="2" style="font: 12px monospace"> |
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
javascript:(function () { | |
var MAX_LINK_DEPTH = 3; | |
var MIN_PIXELS = 100000; | |
var MAX_RATIO = 3.0; | |
var LINK_DELAY = 3000; | |
var imagePat = /.*\.(png|jpg|jpeg|gif)$/; | |
/** | |
* Checks if the image is good enough to keep. | |
* @param {HTMLImgElement} elem The element. |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] | |
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,1d,00,1d,00,3a,00,\ | |
00,00,00,00 |
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
param([switch]$Upper, [switch]$Lower, [switch]$Number, [int]$Length = 8) | |
function Make-CharArray($FirstChar, $LastChar) | |
{ | |
$FirstIndex = [char]::ConvertToUtf32($FirstChar, 0) | |
$LastIndex = [char]::ConvertToUtf32($LastChar, 0) | |
$Chars = $FirstIndex..$LastIndex | ForEach-Object { [char]::ConvertFromUtf32($_) } | |
return $Chars | |
} | |
$UpperChars = Make-CharArray 'A' 'Z' |
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
<style> | |
* { | |
margin: 0px; | |
padding: 0px; | |
border: none; | |
} | |
table { | |
table-layout: fixed; | |
width: 100vw; | |
border-spacing: 0px 0px; |
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
/// @param {number} length | |
/// @param {boolean} useUpper | |
/// @param {boolean} useLower | |
/// @param {boolean} useNumber | |
/// @return {string} Generated password. | |
/// Generate password | |
function generateRandomPassword(length, useUpper, useLower, useNumber, useSymbol, easy) { | |
if (typeof length === "undefined") length = 12; | |
if (typeof useUpper === "undefined") useUpper = true; | |
if (typeof useLower === "undefined") useLower = true; |
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
javascript:void(window.location=window.location.href.replace("/ja-jp/","/en-us/").replace("/ja/","/en/")) |