Skip to content

Instantly share code, notes, and snippets.

Avatar
😇
SAO

item4(Kim Jinsu) item4

😇
SAO
View GitHub Profile
@item4
item4 / bookmark.js
Created May 13, 2021
Unlock preventing drag, select, right click
View bookmark.js
// add this to your bookmark
javascript:(() => {
const events = ['contextmenu', 'drag', 'dragstart', 'selectstart', 'copy', 'cut'];
const styles = ['user-select', '-webkit-user-select', '-moz-user-select', '-ms-user-select', 'pointer-events', '-webkit-pointer-events', '-moz-pointer-events', '-ms-pointer-events'];
events.forEach(event => { window.addEventListener(event, e => {e.stopImmediatePropagation();}, true) });
document.querySelectorAll('body, body *').forEach(el => { styles.forEach(style => { el.style[style] = 'auto !important'; }); });
})();
View keybase.md

Keybase proof

I hereby claim:

  • I am item4 on github.
  • I am item4 (https://keybase.io/item4) on keybase.
  • I have a public key ASBOuLJaLMgYJInhmh9XQ3Dmxc544erEsPTxI0LUK-SchQo

To claim this, I am signing this object:

@item4
item4 / b64-redirect.html
Created Sep 13, 2018
b64-redirect for yui
View b64-redirect.html
<!doctype html>
<html>
<script>
window.location.replace(atob(decodeURIComponent(window.location.search.split('=', 2)[1]).replace(/_/g, '/').replace(/-/g, '+')));
</script>
</html>
@item4
item4 / durexmania.aheui
Last active Oct 9, 2015
하루네네님 아희 소스 보고 떠오른 것
View durexmania.aheui
우주메이저☆듀렉스전도사♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♂♀♡먊
삶은밥과야근밥샤주세양♡밥사밥사밥사밥사밥사땅땅땅빵☆따밦내발따밦다빵맣밥밥밥내놔밥줘밥밥밥밗땅땅땅박밝땅땅딻타밟타맣밦밣따박타맣밦밣따박타맣밦밣따박타맣박빵빵빵빵따따따따맣삶몲
Original Source by @harunene // Run it on AheuiChem(http://yoo2001818.github.io/AheuiChem/)
@item4
item4 / toy.py
Last active Aug 29, 2015 — forked from sanxiyn/toy.py
Python subset
View toy.py
"""
a = 1
b = 1
i = 2
n = 10
while i < n
c = a + b
a = b
b = c
i = i + 1
@item4
item4 / bash_profile.sh
Created Jul 1, 2015
Open man page as pdf
View bash_profile.sh
# add it yourself
my_man2() {
man -t $1 | open -f -a /Applications/Preview.app
}
alias man2=my_man2
@item4
item4 / divisor.py2.py
Last active Aug 29, 2015
Library wiki - Get Divisor
View divisor.py2.py
num = 1234
divisors = {x for x in xrange(1, num+1) if num%x == 0}
@item4
item4 / quine.php
Created Jun 23, 2015
Library wiki - Quine
View quine.php
<?php
$c = '$c = @; $c = str_replace(chr(64), chr(39).$c.chr(39), $c); echo "<?php\n".$c;'; $c = str_replace(chr(64), chr(39).$c.chr(39), $c); echo "<?php\n".$c;
@item4
item4 / some.py
Created Jun 19, 2015
Easy gdb command with Python
View some.py
# IDEA by marnitto
import gdb
import os
import sys
class Command(gdb.Command):
def __init__(self, name, func):
super(Command, self).__init__(name, gdb.COMMAND_USER)
@item4
item4 / bye.cpp
Last active Aug 29, 2015
Library wiki - Hello, World!
View bye.cpp
#include <iostream>
int main() {
std::cout << "Byebye, World!" << std::endl;
return 0;
}