// comment
/*
comments
*/
This file contains hidden or 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
"use strict"; | |
const charString = "〇一二三四五六七八九零壱弐参肆伍陸質捌玖壹貳參十百千拾佰仟陌阡"; | |
const chars1 = [ | |
"〇", "一", "二", "三", "四", "五", "六", "七", "八", "九", | |
"零", "壱", "弐", "参", "肆", "伍", "陸", "質", "捌", "玖", | |
void 0, "壹", "貳", "參" | |
]; |
This file contains hidden or 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 a=prompt("\u6587\u5b57(\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u6539\u884c)");if(null!==a){var c=document.querySelectorAll("h2")[1].children[1],b=document.createElement("div");b.textContent=a;a=b.innerHTML.split(",").join("<br>");c.innerHTML=a}})(); |
This file contains hidden or 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 download(uid) { | |
var url = ""; | |
var metadata = null; | |
return new Promise((resolve, reject) => { | |
amznMusic.data.getServerSongForPlayer(result => { | |
if (!result) { | |
reject(); | |
return; |
This file contains hidden or 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
// Q.1 | |
// for loop | |
function sumForLoop(arr) { | |
var ret = 0; | |
for (let i = 0; i < arr.length; ++i) { | |
ret += arr[i]; | |
} | |
return ret; | |
} | |
// while loop |
This file contains hidden or 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 list, toDragon; | |
list = [["bug", "dragon"], ["Bug", "Dragon"], ["バグ", "ドラゴン"], ["ばぐ", "どらごん"], ["バグ", "ドラゴン"]]; | |
(toDragon = function(node) { | |
if (node.nodeValue !== null) { | |
[].forEach.call(list, function(item) { | |
node.nodeValue = node.nodeValue.split(item[0]).join(item[1]); | |
}); | |
} | |
[].forEach.call(node.childNodes, function(child) { |
This file contains hidden or 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 (href, target) { | |
href = "http://aclog.koba789.com/"; | |
target = location.href.split("/").slice(2); | |
if (!target[target.length - 1]) target.pop(); | |
if (target.length === 3) { | |
href += target[2]; | |
} else if (target.length === 4) { | |
if (target[3] === "recent") { | |
href += target[2] + "/timeline"; | |
} else if (target[3] === "oldest") { |
This file contains hidden or 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 _if(val) { | |
function _true() { | |
return { | |
_else: function () {}, | |
_elseif: function () {return _true} | |
}; | |
} | |
function _false() { | |
return { | |
_else: function (cb) {cb()}, |
This file contains hidden or 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
using System; | |
using System.Runtime.InteropServices; | |
using System.Collections; | |
using System.Windows.Forms; | |
using System.Drawing; | |
namespace DragDrop | |
{ | |
[Guid("17DF9AAF-10AF-4917-A9E3-37609089120F")] | |
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)] |
This file contains hidden or 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
var fso = new ActiveXObject("Scripting.FileSystemObject"); | |
var ado = (function() { | |
if (typeof window === "undefined") { | |
return new ActiveXObject("ADODB.Stream"); | |
} else { | |
var _GetObject = (typeof GetObject === "function") ? GetObject : (function() { | |
var script = window.document.createElement("script"); | |
script.setAttribute("language", "VBScript"); | |
script.innerHTML = "Function GetObjectHelper(name)\nSet GetObjectHelper = GetObject(name)\nEnd Function"; | |
window.document.body.appendChild(script); |
NewerOlder