This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env run-cargo-script | |
use std::env; | |
use std::fs::File; | |
use std::io::{BufReader, BufRead}; | |
use std::collections::HashMap; | |
use std::vec::Vec; | |
use std::iter::FromIterator; | |
fn main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from collections import namedtuple | |
def get_records(lines): | |
records = [] | |
record = [] | |
for line in lines: | |
if line.isspace(): | |
records.append(record) | |
record = [] | |
else: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Disable Cmd-q for FireFox", | |
"rules": [ | |
{ | |
"description": "Disable Cmd-q for FireFox", | |
"manipulators": [ | |
{ | |
"conditions": [ | |
{ | |
"bundle_identifiers": [ "org\\.mozilla\\.firefoxdeveloperedition" ], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GSSK | |
// @namespace gist.github.com/foreiqual0 | |
// @description 곽금주 서울대 심리학과 교수 => 곽서심교 | |
// @include * | |
// @exclude file://* | |
// @version 1 | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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] |