Skip to content

Instantly share code, notes, and snippets.

@Goheeca
Goheeca / setpath.bat
Created February 20, 2015 21:37
Executor which is setting the path variable from the file for a command (for Windows)
@echo off
setlocal enabledelayedexpansion
set PATH=
if not "%~1" == "" (
for /f "Tokens=* Delims=" %%x in (%1) do (
if [!PATH!] == [] (
set PATH=!PATH!%%x
) else (
set PATH=!PATH!;%%x
@Goheeca
Goheeca / threads.lisp
Last active November 17, 2019 18:35
Bordeaux Threads test
(require :asdf)
(require :bordeaux-threads)
(defun color-formatter (color)
(format nil "~a[~am~~?~a[m" #\Esc color #\Esc)) ; The formatter function wants a simple-string.
(defun message (color i thread)
(let ((color-format (color-formatter color))
(thread-name (bt:thread-name thread)))
(format t "~&Hello for the ~? time from the ~? thread.~%"
// ==UserScript==
// @name Toggler based on nicknames
// @namespace GHC
// @version 0.2
// @description to get rid of bullshits and tldrs
// @match http://danyk.cz/kniha/kniha.php*
// @require http://code.jquery.com/jquery-2.1.0.min.js
// @require http://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.0/jquery.cookie.js
// @copyright 2014+, Goheeca
// ==/UserScript==