THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| urlencode() { | |
| # urlencode <string> | |
| old_lc_collate=$LC_COLLATE | |
| LC_COLLATE=C | |
| local length="${#1}" | |
| for (( i = 0; i < length; i++ )); do | |
| local c="${1:$i:1}" | |
| case $c in |
| import javafx.application.Application; | |
| import javafx.beans.property.*; | |
| import javafx.event.*; | |
| import javafx.geometry.*; | |
| import javafx.scene.Node; | |
| import javafx.scene.Scene; | |
| import javafx.scene.control.*; | |
| import javafx.scene.layout.*; | |
| import javafx.scene.paint.Color; | |
| import javafx.scene.shape.Rectangle; |
| #!/bin/bash | |
| # Script for installing tmux on systems where you don't have root access. | |
| # tmux will be installed in $HOME/local/bin. | |
| # It's assumed that wget and a C/C++ compiler are installed. | |
| # exit on error | |
| set -e | |
| TMUX_VERSION=1.8 |
| cd repository | |
| git checkout --orphan orphan_name | |
| git rm -rf . | |
| rm '.gitignore' | |
| echo "#Title of Readme" > README.md | |
| git add README.md | |
| git commit -a -m "Initial Commit" | |
| git push origin orphan_name |
| !! cd /usr/lib/urxvt/perl; git clone https://github.com/muennich/urxvt-perls . | |
| !! Perl extensions | |
| URxvt.perl-ext-common: default,clipboard,matcher,keyboard-select | |
| !! URLs | |
| URxvt.keysym.C-U: perl:url-select:select_next | |
| URxvt.url-launcher: /usr/bin/firefox -new-tab | |
| URxvt.underlineURLs: True | |
| URxvt.matcher.button: 1 |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| git clean -xfd | |
| git submodule foreach --recursive git clean -xfd | |
| git reset --hard | |
| git submodule foreach --recursive git reset --hard | |
| git submodule update --init --recursive |
| const I = x => x | |
| const K = x => y => x | |
| const A = f => x => f (x) | |
| const T = x => f => f (x) | |
| const W = f => x => f (x) (x) | |
| const C = f => y => x => f (x) (y) | |
| const B = f => g => x => f (g (x)) | |
| const S = f => g => x => f (x) (g (x)) | |
| const S_ = f => g => x => f (g (x)) (x) | |
| const S2 = f => g => h => x => f (g (x)) (h (x)) |
| // ==UserScript== | |
| // @name RoughScroll | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description Disables smooth scrolling on ALL websites | |
| // @author Hayden Schiff (oxguy3) | |
| // @match *://*/* | |
| // @grant none | |
| // ==/UserScript== | |
| /* jshint -W097 */ |
| -- Create animated GIFs with mpv | |
| -- Requires ffmpeg. | |
| -- Adapted from http://blog.pkh.me/p/21-high-quality-gif-with-ffmpeg.html | |
| -- Usage: "g" to set start frame, "G" to set end frame, "Ctrl+g" to create. | |
| local msg = require 'mp.msg' | |
| -- Set this to the filters to pass into ffmpeg's -vf option. | |
| -- filters="fps=24,scale=320:-1:flags=lanczos" | |
| filters="fps=15,scale=540:-1:flags=lanczos" |