Skip to content

Instantly share code, notes, and snippets.

View Leo7654's full-sized avatar
๐ŸŽฏ
Focusing

Hojin Lee Leo7654

๐ŸŽฏ
Focusing
View GitHub Profile
@Leo7654
Leo7654 / AuthAutofillCapcha.user.js
Last active March 18, 2024 15:39
Auth Autofill Capcha js
// ==UserScript==
// @name Auth Autofill Capcha
// @version 2024-03-10-2
// @description Auth Autofill Capcha
// @author Leo7654
// @updateURL https://gist.github.com/Leo7654/fd499e57a052ff5f0a90ab07b0816b85/raw/fa68198eed37b3545daa343da3669faf6292a8bd/AuthAutofillCapcha.user.js
// @match https://nice.checkplus.co.kr/cert/mobileCert/certification
// @icon https://www.google.com/s2/favicons?sz=64&domain=checkplus.co.kr
// @grant none
// @require https://cdn.jsdelivr.net/npm/tesseract.js@5/dist/tesseract.min.js
const { rxObserver, palette } = require('api/v0.3');
const { iif,pipe,of,merge, timer, from, once } = require('rxjs');
const { switchMapTo,mapTo,filter,windowWhen,delay,mergeMap,map,switchMap, concatMap, take, zip, ignoreElements, startWith } = require('rxjs/operators');
// stream for coloring
const palette$ = from(palette);
const callStt = pipe(
filter(i=>i%3==2),
map(i=> Marble(i+">", i.color)),
@Leo7654
Leo7654 / Vim: Copy selected line to clipboard via visual on OSX
Created January 21, 2019 03:18
Vim: Copy selected line to clipboard via visual on OSX
- Select
v
- Copy
:'<,'>:w !pbcopy
// ==UserScript==
// @name Hack Naver
// @namespace http://tampermonkey.net/
// @downloadURL https://gist.github.com/Leo7654/b2cbebf9616e2620ef27be3e8642699d/raw/6bf20d3fc5faabc1c2b016411c0e6b904509b272/allow_naver.user.js
// @version 0.2
// @description Allow drag Naver
// @author leo
// @match *://*.blog.naver.com/*
// @grant none
// @require http://code.jquery.com/jquery-1.12.4.min.js
@Leo7654
Leo7654 / README.md
Last active October 28, 2020 02:03
[OSX] Copy Screenshots to clipboard
  1. Change folder for screenshot.
defaults write com.apple.screencapture location ~/screens/
killall SystemUIServer
  1. Copy ss2cb.plist to ~/Library/LaunchAgents/.
  2. Copy ss2cb.py to ~/.
  3. Test with Cmd + Shift + 4 & Paste it!
  4. Done!
// ==UserScript==
// @name ๋ณธ์ธ์ธ์ฆ ํ—ฌํผ
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://nice.checkplus.co.kr/CheckPlusSafeModel/checkplus.cb*
// @grant none
// ==/UserScript==
@Leo7654
Leo7654 / Zip.swift
Created March 22, 2017 06:55
zip3 for swift
struct Zip3Generator<A: IteratorProtocol, B: IteratorProtocol, C: IteratorProtocol>: IteratorProtocol {
private var first: A
private var second: B
private var third: C
private var index = 0
init(_ first: A, _ second: B, _ third: C) {
self.first = first
@Leo7654
Leo7654 / shifting_window.js
Created July 27, 2016 08:41
Shifting Window: Finding Maximum elements within 1 hour window.
// Shifting Window
// Finding Maximum elements within 1 hour window.
var inputs = [1, 2, 3, 4, 5, 6, 7, 3599, 3600, 3601, 3602, 3603];
var max = 0;
var _window = [];
for(var t of inputs) {
_window.push(t);
var val = 0;
for(var tt of likeWindow) {
@Leo7654
Leo7654 / Readme.md
Last active January 14, 2024 02:42
์ดˆ๊ธฐ ์Šคํƒ€ํŠธ์—… ๊ฐœ๋ฐœ์ž๋ฅผ ์œ„ํ•œ ๊ธ€

์ดˆ๊ธฐ ์Šคํƒ€ํŠธ์—… ๊ฐœ๋ฐœ์ž๋ฅผ ์œ„ํ•œ ๊ธ€

  • ํ™ˆํด์„ ์ ‘์œผ๋ฉด์„œ ํ™ˆํด์˜ ๊ฐœ๋ฐœ์€ ์–ด๋–ป๊ฒŒ ์ด๋ฃจ์–ด ์กŒ๋Š”์ง€ ๋‚จ๊ฒจ ๋†“๊ณ ์ž ํ•œ๋‹ค.
  • ์šฐ์„  ์ƒ๊ฐ๋‚˜๋Š” ๋Œ€๋กœ ์ผ๊ธฐ ํ˜•์‹์œผ๋กœ ์ ๊ฒ ๋‹ค.

| ์งˆ๋ฌธ์ด๋‚˜ ๋‹ค๋ฅด๊ฒŒ ํ‹€๋ฆฐ๋‹ค๊ณ  ์ƒ๊ฐํ•˜๋Š”๊ฒƒ์ด ์žˆ์œผ๋ฉด ์•Œ๋ ค์ฃผ์‹œ๊ธธ ๋ฐ”๋ž๋‹ˆ๋‹ค.


๐Ÿ“š ์Šคํƒ

@Leo7654
Leo7654 / Readme.md
Last active July 23, 2016 13:59
OSX: copy screenshots to clipboard

Copy ScreenShot To Clipboard For OS X

Why

  • On Os x we just can capture screenshot and save to either file or clipboard not both.
  • So I made script.

How

  1. Change screenshot dir to somewhere.
  2. Make a file clipboard copy script with python.
  3. Register a deamon, watching screenshot dir and run python script.