Skip to content

Instantly share code, notes, and snippets.

View nnnlog's full-sized avatar
💭
I may be slow to respond.

nlog nnnlog

💭
I may be slow to respond.
View GitHub Profile
This file has been truncated, but you can view the full file.
var __UCF_ASSERT__=!0,__UCF_TRACE__=!0,__UCF_COVERAGE__=!0,__UCF_MEASURE__=!0,__UCF_DEBUG__=!0,__UCF_IE6__=!1,sap=window.sap||{};(function(){function UCF_Global(){__UCF_COVERAGE__&&UCF_Global._.UCF_Global++}window.UCF_classes=[],window.UCF_Global=UCF_Global,__UCF_COVERAGE__&&(window.UCF_classes.push("UCF_Global"),UCF_Global._={UCF_Global:0}),UCF_Global._checkLeaks=function(){try{return top.document.location.search.indexOf("CheckLeaks=X")>-1}catch(e){return document.location.search.indexOf("CheckLeaks=X")>-1}}();var ERROR=0;window.ERROR=ERROR;var WARNING=1;window.WARNING=WARNING;var INFO=2;window.INFO=INFO;var DEBUG=3;window.DEBUG=DEBUG;var START=0;window.START=START;var STOP=1;function UCF_Tracer(){__UCF_COVERAGE__&&UCF_Tracer._.UCF_Tracer++}window.STOP=STOP,window.UCF_Tracer=UCF_Tracer,__UCF_COVERAGE__&&(window.UCF_classes.push("UCF_Tracer"),UCF_Tracer._={UCF_Tracer:0}),window._trace=function(e,t,o){UCF_Tracer.trace(e,t,o)},window._tracedelayed=function(e,t,o){UCF_Tracer.tracedelayed(e,t,o)},window._assert=f
@nnnlog
nnnlog / boj_5015_gen.js
Created January 29, 2022 06:49
BOJ 5015 데추주 제너레이터
const {mt_rand, shuffle} = require("./utils");
module.exports = () => {
let ret = ``;
let sz = mt_rand(1, 100);
while (sz--) {
let c = mt_rand(0, 50);
if (c >= 27) ret += "*";
else if (c === 26) ret += ".";
else ret += `${String.fromCharCode("a".charCodeAt(0) + c)}`;
@nnnlog
nnnlog / 클래스카드-리콜
Created September 17, 2020 00:26
클래스카드
let wait = async(s) => {
return new Promise(r => setTimeout(() => r(), s * 1000));
};
(async () => {
while(parseInt(document.querySelector(".unknown_count").innerText)) {
await wait(5);
document.querySelectorAll(".card-quest-item.cc-table.middle.fill-parent-w.back-quest.answer")[parseInt(document.querySelector(".known_count").innerText)].click();
}})();
@nnnlog
nnnlog / 리콜학습
Last active May 1, 2020 02:38
classcard-english
let wait = async() => {
return new Promise(r => setTimeout(() => r(), 3000));
};
(async () => {
while(parseInt(document.querySelector(".unknown_count").innerText)) {
await wait();
document.querySelectorAll(".card-quest-item.cc-table.middle.fill-parent-w.back-quest.answer")[parseInt(document.querySelector(".known_count").innerText)].click();
}})();
@nnnlog
nnnlog / parallel-lecture
Last active April 17, 2020 12:25
EBS 온라인 클래스 관련 코드 모음
function showNewLrnWindow( lctreSn, sttusCode, openDateYn, lctreSeCode ){
if( !fncIsEmpty( lctreSn ) ){
if( sttusCode != '005' || openDateYn != '1' ) {
alert("오픈준비중 입니다.");
return;
}
}
@nnnlog
nnnlog / index.js
Created April 15, 2020 13:13
ElementZero Custom Scripting API test
import * as player from "ez:player";
import * as chat from "ez:chat";
import * as inv from "ez:inventory";
setInterval(() => console.log(Date.now()), 200);
let name_to_player_obj = [];
player.onPlayerJoined(entry => {
console.log(entry);
@nnnlog
nnnlog / download.sh
Last active January 15, 2020 06:26
Optimized PHP7 downloader
#!/bin/bash
DOWNLOAD_URL="https://github.com/NLOGPlugins/bin/raw/master/bin.zip"
LIBRARY_PATH="/root/php_compile/bin"
sudo rm -rf temp.log bin $LIBRARY_PATH && sudo touch temp.log
echo -n "[PHP] downloading..."
curl -L $DOWNLOAD_URL -o bin_.zip >> temp.log 2>&1
echo -n " extracting..."