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.