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 python | |
# | |
# author: syl20bnr (2013), hlfbt (2024) | |
# goal: Focus the nth window in the current workspace (limited to 10 firsts) | |
# dependencies: i3ipc | |
# | |
# Example of usage in i3 config: | |
# | |
# bindsym $mod+0 exec i3-focus-nth.py -n 0 | |
# bindsym $mod+1 exec i3-focus-nth.py -n 1 |
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
<?php | |
/** | |
* Twig REPL hack | |
* | |
* Arnaud Le Blanc <[email protected]> | |
*/ | |
require 'vendor/twig/twig/lib/Twig/Autoloader.php'; | |
Twig_Autoloader::register(); |
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
# pythoneval.py | |
import sys | |
import re | |
from code import InteractiveInterpreter | |
import znc | |
class pythoneval(znc.Module, InteractiveInterpreter): | |
# module_types makes it unable to load |