This file contains hidden or 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 subprocess import run | |
addons_list = [ | |
"vanderlin/ofxBox2d", | |
"kr15h/ofxPiMapper", | |
"bakercp/ofxLight2D", | |
"kylemcdonald/ofxCv", | |
"Fatdazz/ofxBoids", | |
"Lacty/ofxJoystick" | |
] |
This file contains hidden or 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 | |
xrandr --output GPU-0.DVI-D-0 --pos 0x0 --panning 0x0 --transform none --output GPU-0.HDMI-0 --pos 0x0 --panning 0x0 --transform none --output GPU-0.HDMI-1 --pos 0x0 --panning 0x0 #xrandr reset 3 | |
xrandr --fb 3840x2160 --output GPU-0.HDMI-1 --primary --scale 2x1 --output GPU-0.HDMI-0 --scale 1x1 --output GPU-0.DVI-D-0 --pos 1920x0 --scale 1x1 |
This file contains hidden or 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
Set oShell = CreateObject ("Wscript.Shell") | |
Dim strArgs | |
strArgs = "cmd /c autotwitch.bat" | |
oShell.Run strArgs, 0, false |
This file contains hidden or 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
open Graphics | |
(* union - find *) | |
type t = { | |
rank : int array; | |
parent : int array; | |
} |
This file contains hidden or 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
(* Dice roller program, for r/dailyprogrammer's challenge: https://www.reddit.com/r/dailyprogrammer/comments/8s0cy1/20180618_challenge_364_easy_create_a_dice_roller/ *) | |
Random.self_init() | |
let roll_die max_val = Random.int (max_val + 1) | |
let process_rolls num_rolls max_range = | |
let rec process_rolls_rec num_rolls acc = | |
let roll = roll_die max_range in | |
match num_rolls with |
This file contains hidden or 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
import re, datetime | |
import argparse | |
parser = argparse.ArgumentParser(description='Concert timestamps in file to Wordpress dates') | |
parser.add_argument('filename', type=str, help='File to convert') | |
args = parser.parse_args() | |
def timestamp_to_wordpress_date(timestamp): | |
return datetime.datetime.fromtimestamp(int(timestamp.replace('"', ''))).strftime('%Y-%m-%d %H:%M:%S') |
This file contains hidden or 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
for file in $(ls *.svg); do inkscape -z -e $(basename $file | cut -d'.' -f 1).png -w 1024 -h 1024 $file; done |
This file contains hidden or 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
;; -*- mode: emacs-lisp; lexical-binding: t -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Layer configuration: | |
This function should only modify configuration layer settings." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory | |
;; `+distribution'. For now available distributions are `spacemacs-base' |
This file contains hidden or 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
#include <filesystem> | |
#include <fstream> | |
#include <bitset> | |
#include <cstdint> | |
#include <vector> | |
#include <cstddef> | |
#include <fmt/format.h> | |
#include <fmt/color.h> |
This file contains hidden or 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
GLOB sdist-make: /home/dimitri/gits/conan/setup.py | |
full inst-nodeps: /home/dimitri/gits/conan/.tox/.tmp/package/1/conan-1.19.0.dev0.zip | |
full installed: astroid==2.2.5,beautifulsoup4==4.8.0,bottle==0.12.17,certifi==2019.9.11,chardet==3.0.4,codecov==2.0.15,colorama==0.4.1,conan==1.19.0.dev0,coverage==4.2,deprecation==2.0.7,distro==1.1.0,fasteners==0.15,future==0.17.1,idna==2.8,isort==4.3.21,Jinja2==2.10.1,lazy-object-proxy==1.4.2,MarkupSafe==1.1.1,mccabe==0.6.1,mock==1.3.0,monotonic==1.5,node-semver==0.6.1,nose==1.3.7,packaging==19.2,parameterized==0.7.0,patch==1.16,pbr==5.4.3,pluginbase==0.7,Pygments==2.4.2,PyJWT==1.7.1,pylint==2.3.1,pyparsing==2.4.2,python-dateutil==2.8.0,PyYAML==5.1.2,requests==2.22.0,six==1.12.0,soupsieve==1.9.3,tqdm==4.36.1,typed-ast==1.4.0,urllib3==1.25.5,waitress==1.3.1,WebOb==1.8.5,WebTest==2.0.33,wrapt==1.11.2 | |
full run-test-pre: PYTHONHASHSEED='477153901' | |
full run-test: commands[0] | nosetests | |
EE.....................SS..SSSS.............................................................. |
OlderNewer