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 strict; | |
use warnings; | |
use File::Spec; | |
use File::Basename; | |
#return current scipt directory | |
sub get_current_dir { | |
my $dir = dirname(File::Spec->rel2abs(__FILE__)); | |
} |
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/perl | |
# scupdate 2 | |
#by TeddyDD | |
#License: MIT: http://opensource.org/licenses/MIT | |
# Remember to check patch to ksp folder!!!! | |
use strict; | |
use warnings; |
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
def sha1OfFile(filepath): | |
import hashlib | |
with open(filepath, 'rb') as f: | |
return hashlib.sha1(f.read()).hexdigest() |
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/python | |
import sys | |
import os | |
os.system('meld "%s" "%s"' % (sys.argv[2], sys.argv[5])) |
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
### class for input handling. Returns 4 button states | |
var input_name | |
var prev_state | |
var current_state | |
var input | |
var output_state | |
var state_old | |
var semaphore = false |
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
\documentclass[12pt,a4paper]{mwart} | |
\usepackage[utf8]{inputenc} | |
\usepackage{polski} | |
\usepackage[stretch=10]{microtype} | |
\usepackage[margin=3cm]{geometry} | |
\linespread{1.5} | |
\usepackage{lmodern} | |
\begin{document} |
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
-- Boost version: 1.60.0 | |
-- Found the following Boost libraries: | |
-- chrono | |
-- date_time | |
-- filesystem | |
-- regex | |
-- signals | |
-- system | |
-- thread | |
-- 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
int grid = 24; | |
void setup() { | |
size(1600, 900); | |
frameRate(0.3); | |
//noLoop(); | |
} | |
void draw_letter(int strokes, float size, float x, float y) { | |
for (int p = 0; p < strokes; p++) { |
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
i3 https://github.com/khamer/base16-i3/blob/master/themes/base16-solarized-light.config | |
xresources https://github.com/solarized/xresources/blob/master/Xresources.light | |
Firefox (require Color experiment) | |
https://color.firefox.com/?theme=XQAAAAL7AAAAAAAAAABBqYhm849SCiazH1KEGccwS-xNVAWBvuCXoU-oppwsBPRygLYBkMG1E2vhIyoJN9awg1HxriPdSQBKr3z8eJDdEo1EJW9RHCMPU04e4tjV2LZdCxc5uLqcwFh-u3j9LM7TCP4lMhoy2LBdlZOeznYZaBhbrVCEaTemWVJYHyWLUo7dHpXGUCop2ED7K7kLh16sz6WdhMVAzYPdJFbV0L6xYn66_X-V1lvbkmSRzv_q8ngA | |
Userstyles: https://github.com/alphapapa/solarized-everything-css | |
Kakoune - custom theme based on https://github.com/jan-warchol/selenized | |
alternative: https://github.com/robertmeta/nofrils |
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
define-command plug -params 1..2 %{ | |
%sh{ | |
plugdir="/$HOME/.config/kak/src" | |
[ -d $plugdir ] || mkdir -p "$plugdir" | |
repo=$(basename $1) | |
if [ ! -d "$plugdir/$repo" ]; then | |
git clone "https://github.com/$1" "$plugdir/$repo" | |
fi | |
if [ ! -z "$2" ]; then |
OlderNewer