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
[Background] | |
ImageFile= | |
MaskFile= | |
OverlayFile= | |
[Options] | |
HandsImage= | |
ShowMajorTicks=0 | |
ShowMinorTicks=0 | |
ShowTickNumbers=0 | |
ShowCaption=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
<!DOCTYPE html> | |
<meta charset="utf-8" /> | |
<title>Euske's Color Scheme</title> | |
<body> | |
<h1>Euske's Color Scheme</h1> | |
<table> | |
<tr> | |
<td>Low contrast</td> | |
<td bgcolor="#ffbbff"><code>#ffbbff</code></td> | |
<td bgcolor="#aaaaff"><code>#aaaaff</code></td> |
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 pygame | |
def set_gamma(img, gamma): | |
buf = img.get_buffer() | |
gmap = bytes( min(255, int(255*pow(i/255, gamma))) for i in range(256) ) | |
buf.write(buf.raw.translate(gmap), 0) | |
return | |
img = pygame.image.load("in.jpg") | |
set_gamma(img, 0.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
### Keybase proof | |
I hereby claim: | |
* I am euske on github. | |
* I am euske (https://keybase.io/euske) on keybase. | |
* I have a public key ASB-WZHzfT8Q3qyqWR4buSinp6Z7U_Or-8Shvi45aPmA4wo | |
To claim this, I am signing this object: |
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 | |
# mckick.py - Minecraft kick server | |
# | |
# usage: | |
# $ python mckick.py 'server maintenance!' | |
# | |
import sys, struct, socket | |
def main(argv): | |
args = argv[1:] |
NewerOlder