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
class StableDiffusionClient { | |
constructor(fetch) { | |
this.fetch = fetch; | |
this.settings = {}; | |
} | |
get width() { return this.settings.width || 768; } | |
get height() { return this.settings.height || 512; } | |
parse(prompt, preset_pos, preset_neg) { |
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
from ortools.sat.python import cp_model | |
class SolverCallback(cp_model.CpSolverSolutionCallback): | |
def __init__(self, vars): | |
super().__init__() | |
self.example_solutions = list() | |
self.num_solutions = 0 | |
self.max_keep_solutions = 100 | |
self.max_show_solutions = 100 | |
self.vars = vars |
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
// ==UserScript== | |
// @name KAIST PMS Blocker | |
// @namespace http://0xF.kr/ | |
// @version 0.1 | |
// @description Automatically closes PMS page | |
// @author JiminP | |
// @match http://143.248.113.1/CPopupRequest | |
// @grant none | |
// ==/UserScript== |
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
local metal = { ["7"] = "panel_ul", ["8"] = "panel_u", ["9"] = "panel_ur", | |
["4"] = "panel_l", ["5"] = "panel_c", ["6"] = "panel_r", | |
["1"] = "panel_dl", ["2"] = "panel_d", ["3"] = "panel_dr", | |
["<"] = "panel_fs", [">"] = "panel_bs", | |
E = "panel_k1", F = "panel_k2", B = "panel_k3", | |
o = "block", ["="] = "girder_h", ["|"] = "girder_v", | |
w = "warning", [":"] = "back", ["'"] = "back_d", ["-"] = "ledge" } | |
local black = { o = "black", ["<"] = "black_ul", [">"] = "black_ur", | |
s = "black_s", ["-"] = "black_ledge" } |
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
local metal = { ["7"] = "panel_ul", ["8"] = "panel_u", ["9"] = "panel_ur", | |
["4"] = "panel_l", ["5"] = "panel_c", ["6"] = "panel_r", | |
["1"] = "panel_dl", ["2"] = "panel_d", ["3"] = "panel_dr", | |
["<"] = "panel_fs", [">"] = "panel_bs", | |
E = "panel_k1", F = "panel_k2", B = "panel_k3", | |
o = "block", ["="] = "girder_h", ["|"] = "girder_v", | |
w = "warning", [":"] = "back", ["'"] = "back_d", ["-"] = "ledge" } | |
function start() | |
ApplyTiles(metal, 0, 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
#!/usr/bin/env node | |
/* | |
Instruction | |
1. Download raw (100x100 png) image files. | |
2. Execute ./classify.js foo.png bar.png baz.png | |
3. The output is the concatenation of characters reperesenting classes of each images. | |
4. ...? | |
5. Profit!!! |
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
태초에 가는 것이 교실 그렇게 말하기 전에 아이카는 내 자리에서 그에서 들어갔다. | |
"......으음......." | |
"--이런 목소리가 전혀 들었다. | |
"......." | |
그리고 그것을 한 순간....... 아무래도 하나를 보여진 후, 솔직히 본 시도는 그렇게 말했다. | |
"......하지만 근 상 인시는 시도는 고개를 하는 것이 이어진 한 가슴 확인이 그렇게 말하면서 말하면서 그렇지 않았다. | |
"그래도 고개를 돌렸다. | |
"이걸 보였다. | |
"--"어, 어, 아무리 시도의 목소리가 한 번 말을 그렇게 한 것 같았다. | |
"어서 자신의 분위기가 말하면서 그렇게 정령을 있는 것이 내밀었다. |
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
// ==UserScript== | |
// @name SDVX.IN ADBLOCK BLOCKER BLOCKER | |
// @namespace http://0xF.kr/ | |
// @version 0.1 | |
// @description SDVX.IN Adblock blocker blocker | |
// @author JiminP | |
// @match http://sdvx.in/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ |
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
// ==UserScript== | |
// @name YouTube Flash Player Replacer | |
// @namespace http://0xF.kr/script/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author JiminP | |
// @match https://namu.wiki/w/* | |
// @grant none | |
// ==/UserScript== | |
/* jshint -W097 */ |
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(window){ | |
var JMap = function JubeatMap(o, print_min){ | |
var music_title = o.m.title ? o.m.title : | |
o.s.m ? o.s.m.split('/').pop().split('.')[0] : | |
o.s.bga ? o.s.bga : ""; | |
this.metadata = { | |
'music': o.s.m || null, 'bga': o.s.bga || null, | |
'title': music_title, 'level': o.m.level || 10, | |
'difficulty': o.m.dif || 3, 'artist': o.m.artist || null, | |
'jacket': o.m.jacket || null |
NewerOlder