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
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.factory import Factory | |
from kivy.uix.boxlayout import BoxLayout | |
kv = """ | |
<Test>: | |
orientation: 'vertical' | |
Button: |
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
__author__ = "atrament" | |
__all__ = "talkative", "timed", "Memoize", "mro_list" | |
from time import time | |
from functools import wraps | |
def talkative(message=""): | |
"""decorator for custom trace of a function""" |
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 sh | |
mkdir ~/.fonts && cd ~/.fonts ; | |
wget http://download.damieng.com/fonts/redistributed/DroidFamily.zip && | |
unzip DroidFamily.zip && rm DroidFamily.zip ; | |
wget http://users.teilar.gr/~g1951d/Symbola.zip && | |
unzip Symbola.zip && rm Symbola.zip |
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 bash | |
# launch a desktop output stuff ! | |
# conky stuff might use some tweaking with some window managers | |
# basically use conky to detect what is the real desktop window on your desktop | |
WINDOW=0x$(conky -i 1 2>&1 | head -n 1 | awk '{print $4}' | sed -e 's/(//' -e 's/)//') | |
ITVAL=5 # update interval (seconds) | |
# prepare some named pipes. (in tmp) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
def verbal(some_class): | |
"""intended as a class decorator allowing to list all attributes and where | |
they come from""" | |
def tell(inst): | |
print( | |
"{:>16}: {}\n" | |
.format("instance", | |
", ".join(a | |
for a in vars(inst) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 operator as op | |
def eval_safer(s): | |
"""basic parsinig an evaluation of expressions.""" | |
ops = {'*': op.mul, | |
'+': op.add, |
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 | |
# launch a desktop output stuff ! | |
# requires : an internet connection, | |
# curl | |
# remind (and a .reminders file) | |
# fortune (and custom fortune at ~/.fortunes/cusfor) | |
# ~/planning and ~/todo | |
# t command-line twitter client | |
# Font 'Noto-Mono' free as in whatever from google |
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
sudo aptitude install libglib2.0-dev libgdk-pixbuf2.0-dev libcairo2-dev libx11-dev libxcb-cursor-dev libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-util0-dev libxcb-keysyms1-dev libxcb-icccm4-dev libxcb-xkb-dev libxkbcommon-dev libxkbcommon-x11-dev libcairo2-dev libstartup-notification0-dev x11proto-core-dev libxdg-basedir-dev libxcb-xrm-dev |