Skip to content

Instantly share code, notes, and snippets.

View foriequal0's full-sized avatar
🤓
I may be slow to respond.

SeongChan Lee foriequal0

🤓
I may be slow to respond.
  • Seoul, South Korea
  • 18:18 (UTC +09:00)
View GitHub Profile
@foriequal0
foriequal0 / content-clamp.user.js
Last active June 27, 2020 10:36
Contents clamp
// ==UserScript==
// @name Contents Clamp
// @updateURL https://gist.github.com/foriequal0/12794f45f5ef60249e8ba36f978dfaa4/raw/content-clamp.user.js
// @version 10
// @match http://*/*
// @match https://*/*
// @run-at document-idle
// ==/UserScript==
(function ContentsClamp(){
@foriequal0
foriequal0 / lambda.py
Last active September 7, 2019 14:11
www.weather.go.kr rader prediction crawler
import boto3
from datetime import datetime, timezone
import logging
import urllib.request
logger = logging.getLogger()
logger.setLevel(logging.INFO)
s3 = boto3.resource('s3')
BUCKET_NAME = "weather-go-kr-radar-predict-crawler-images"
@foriequal0
foriequal0 / naver-webtoon-most-recent.user.js
Last active July 10, 2021 15:48
네이버 웹툰 최신회차 바로가기
// ==UserScript==
// @name 네이버 웹툰 최신회차 바로가기 버튼
// @namespace gist.github.com/foreiqual0
// @include https://comic.naver.com/webtoon/list.nhn?*
// @include https://comic.naver.com/webtoon/detail.nhn?*
// @include https://comic.naver.com/bestChallenge/list.nhn?*
// @include https://comic.naver.com/bestChallenge/detail.nhn?*
// @include https://comic.naver.com/challenge/list.nhn?*
// @include https://comic.naver.com/challenge/detail.nhn?*
// @include https://comic.naver.com/webtoon/weekday.nhn
@foriequal0
foriequal0 / .gitconfig
Last active April 26, 2021 14:39
gitconfig
[user]
useConfigOnly = true
[alias]
graph = log --oneline --decorate --graph
ignore = "!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi"
[remote]
pushdefault = origin
[push]
default = simple
[fetch]
@foriequal0
foriequal0 / rusty-lake-beaker.rs
Last active April 27, 2020 04:03
Solve Rusty Lake's beaker puzzle.
use std::cmp::min;
use std::collections::VecDeque;
const BEAKERS: usize = 3;
const INITIAL_STATE: State = State {
beakers: [
Beaker::new(10, 0),
Beaker::new(5, 5),
Beaker::new(6, 6),
@foriequal0
foriequal0 / gssk.user.js
Created February 20, 2019 16:18
곽서심교.js
// ==UserScript==
// @name GSSK
// @namespace gist.github.com/foreiqual0
// @description 곽금주 서울대 심리학과 교수 => 곽서심교
// @include *
// @exclude file://*
// @version 1
// @grant none
// @run-at document-start
// ==/UserScript==
@foriequal0
foriequal0 / redirect-twitter-mobile.user.js
Last active January 12, 2019 18:47
Redirect Twitter mobile
// ==UserScript==
// @name Redirect Twitter mobile
// @version 1
// @grant none
// @match *://twitter.com/*
// @run-at document-start
// ==/UserScript==
let match = /^(\w+):\/\/twitter.com\/(.*)$/.exec(window.location.href);
if (match) {
{
"title": "Disable Cmd-q for FireFox",
"rules": [
{
"description": "Disable Cmd-q for FireFox",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [ "org\\.mozilla\\.firefoxdeveloperedition" ],
#!/bin/bash
set -e
# The touchpad loses its two finger scrolling ability after awaken from hibernate.
PROGNAME=$(basename "$0")
state=$1
action=$2
MODNAME=${PROGNAME#reload-}
function log {
@foriequal0
foriequal0 / brunch-shift-space-unblock.user.js
Last active July 5, 2018 06:56
Brunch Shift+Space unblocker
// ==UserScript==
// @name Brunch Shift+Space unblocker
// @version 1
// @match https://brunch.co.kr/*
// @match http://brunch.co.kr/*
// @run-at document-end
// @grant none
// ==/UserScript==
let html = document.getElementsByTagName('html')[0];