- Copy the contents of kdialog to
/usr/local/bin/kdialog
- Copy the contents of
chrome_chooser.py
to~/.config/ranger/plugins/chrome_chooser.py
- Optionally map appropriately
- Run chrome with
XDG_CURRENT_DESKTOP=KDE
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
import random | |
class TicTacToe: | |
def __init__(self, playerX, playerO): | |
self.board = [' ']*9 | |
self.playerX, self.playerO = playerX, playerO | |
self.playerX_turn = random.choice([True, False]) | |
def play_game(self): |
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
#!/bin/bash | |
set -e | |
if [ ! -d "$STAGING_DIR" ]; then | |
echo "STAGING_DIR needs to be set to your cross toolchain path"; | |
exit 1 | |
fi | |
ARCH=${ARCH:-mipsel} | |
NODE=${NODE:-0.10.33} |
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
/*-----------------------------------------------------------. | |
/ ColorBlind correction / | |
'-----------------------------------------------------------*/ | |
// Daltonize (source http://www.daltonize.org/search/label/Daltonize) | |
// Modified to simulate color blindness. | |
float4 Daltonize( float4 input, float2 tex ) | |
{ | |
// RGB to LMS matrix conversion | |
float3 L = (17.8824f * input.r) + (43.5161f * input.g) + (4.11935f * input.b); | |
float3 M = (3.45565f * input.r) + (27.1554f * input.g) + (3.86714f * input.b); |