Skip to content

Instantly share code, notes, and snippets.

@eddy-geek
eddy-geek / hat-trie_setup_log
Created June 23, 2014 10:03
LDFLAGS="-L/opt/Python-2.7/lib/python2.7/config/" pip install hat-trie
------------------------------------------------------------
/data2/me/python-dj-ldap/bin/pip run on Mon Jun 23 11:46:15 2014
Downloading/unpacking hat-trie
Getting page https://pypi.python.org/simple/hat-trie/
URLs to search for versions for hat-trie:
* https://pypi.python.org/simple/hat-trie/
Analyzing links from page https://pypi.python.org/simple/hat-trie/
Found link https://pypi.python.org/packages/source/h/hat-trie/hat-trie-0.1.tar.gz#md5=0bb6ca4109f141486161ce6891c673ee (from https://pypi.python.org/simple/hat-trie/), version: 0.1
Downloading hat-trie-0.1.tar.gz
[1] 27203
PY2 ___ 15:06:15 27203 INFO : serving on localhost:11166
PY2 ___ 15:06:17 27203 DEBUG : Client connected
___ PY3 15:06:17 27224 DEBUG : Writing 'b'gAJjZGF0ZXRpbWUKZGF0ZXRpbWUKcQBjX2NvZGVjcwplbmNvZGUKcQFYDAAAAAfDngcRDwYRBQrCkHECWAYAAABsYXRpbjFxA4ZxBFJxBYVxBlJxBy4=''
PY2 ___ 15:06:17 27203 DEBUG : Raw query 'gAJjZGF0ZXRpbWUKZGF0ZXRpbWUKcQBjX2NvZGVjcwplbmNvZGUKcQFYDAAAAAfDngcRDwYRBQrCkHECWAYAAABsYXRpbjFxA4ZxBFJxBYVxBlJxBy4=
'
---------------- PickleTools ---------------
0: \x80 PROTO 2
2: c GLOBAL 'datetime datetime'
21: q BINPUT 0
@eddy-geek
eddy-geek / gist:4532911
Created January 14, 2013 20:07
kwin-script-winactivateorlaunch.js
// qdbus org.kde.plasma-desktop /MainApplication showInteractiveKWinConsole
// plasmapkg -t kwinscript -l
// ls ~/.kde/share/apps/kwin/scripts
var windowGroups = new Object();
function WindowType(classname, title) {
this.classname = classname;
this.title = title;
}
; ticker - A Simple Time Tracker
; track your time usage on a daily basis
#InstallKeybdHook
#InstallMouseHook
Menu, Tray, Icon, %A_WinDir%\system32\shell32.dll, 44
Menu, Tray, Tip, ticker - A Simple Time Tracker`nPress right control to see details
SetWorkingDir, C:\Users\%A_UserName%\Documents
SetTimer, CheckTime, 60000 ; updates every 1 minute
;
; Keyboard Layout definition for
; Portable Keyboard Layout
; http://pkl.sourceforge.net
;
[informations]
layoutname = Development
layoutcode = dev
localeid = 00000409
@eddy-geek
eddy-geek / toggle_edit.ts
Created February 16, 2017 21:45
ngx-datatable-column + toggle does not work
import { Component } from '@angular/core';
@Component({
selector: 'column-toggle-demo',
template: `
<div>
<h3>Column Toggling</h3>
<div style='float:left;width:75%'>
<ngx-datatable
class='material'
@eddy-geek
eddy-geek / README.md
Last active October 11, 2017 19:15
Demographic Statistics_By_Zip_Code - README is empty

README is empty

@eddy-geek
eddy-geek / lafayette_install.py
Created May 22, 2018 16:32 — forked from fabi1cazenave/lafayette_install.py
Qwerty-Lafayette installer for XKB
#!/usr/bin/env python3
import os
import shutil # backups...
import textwrap # dedent hard-coded symbol strings
from lxml import etree
from lxml.builder import E
XKB = '/usr/share/X11/xkb/'
NAME = 'lafayette'
LAYOUTS = {'fr': [{
@eddy-geek
eddy-geek / kttest
Created July 15, 2018 21:08
kodetravel xkb test
partial alphanumeric_keys modifier_keys
xkb_symbols "dev" {
name[group1]= "KodeTravel (kode)";
key.type[group1] = "EIGHT_LEVEL";
key <AD01> { [ q, Q, 0x1007067, 0x10000b6 ] };
key <AD02> { [ w, W, egrave, ediaeresis ] };
key <AD03> { [ e, E, eacute, Greek_epsilon ] };
key <AD04> { [ r, R, ecircumflex, registered ] };
// based on a keyboard map from an 'xkb/symbols/gb' file
default partial alphanumeric_keys
xkb_symbols "basic" {
// Describes the differences between a very simple en_US
// keyboard and a very simple U.K. keyboard layout defined by
// the SVR4 European Language Supplement and sometimes also
// known as the IBM 166 layout.