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
-- -*- mode:haskell -*- | |
Config { font = "xft:Ricty:size=12" | |
, bgColor = "#1c1c1c" | |
, fgColor = "#757575" | |
, position = TopSize C 100 16 | |
-- , position = Static { xpos = 37 , ypos = 0, width = 1845, height = 18 } | |
, lowerOnStart = False | |
, overrideRedirect = False | |
, border = NoBorder | |
, borderColor = "#26a69a" |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <limits.h> | |
#include <inttypes.h> | |
#include <math.h> | |
typedef struct { |
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
G:MENU | |
*:lesson_0 | |
B:home row-first finger ngrams drill | |
T:a drill on word pieces including the letters n, a. (29 found) | |
D:a a a ana ana ana nann nann nann nana nana nana ann ann ann aan aan | |
:aan nan nan nan nnan nnan nnan nna nna nna n n n anan anan anan anna | |
:anna anna nan n anna nann anan a ana aan ann nana nnan nna nana aan | |
:anan nnan ann a anna n nann nan nna ana nana a ann nnan nann anna n | |
:nan nna ana aan anan |
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
{"version":1,"keyboard":{"keys":[{"id":0,"legend":"","state":{"x":0.5,"y":1,"r":0,"rx":0,"ry":0,"w":1,"h":1,"x2":0,"y2":0,"w2":0,"h2":0,"a":7},"row":0,"col":0,"keycodes":[{"id":"RESET","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]}]},{"id":1,"legend":"Q","state":{"x":1.5,"y":1,"r":0,"rx":0,"ry":0,"w":1,"h":1,"x2":0,"y2":0,"w2":0,"h2":0,"a":4},"row":0,"col":1,"keycodes":[{"id":"KC_Q","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fields":[]},{"id":"KC_TRNS","fiel |
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
Config { font = "xft:Ricty:size=13:antialias=true" | |
, bgColor = "#1c1c1c" | |
, fgColor = "#FFFFFF" | |
, alpha = 10 | |
, position = TopSize C 100 16 | |
, lowerOnStart = False | |
, overrideRedirect = False | |
, border = NoBorder | |
, commands = [ Run Network "wlp1s0" ["-t" , "Net:<rx>Kb/s <tx>Kb/s " | |
, "-L" , "40" |
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
# -*- coding: utf-8 -*- | |
import requests | |
from pyquery import PyQuery as pq | |
import parser | |
import re | |
import datastore | |
url_re = re.compile(".*/(\d+)/.*", re.M) |
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
#ifndef COMMON_H | |
#define COMMON_H | |
//#ifdef DEVELOP | |
#define DEBUG(...) \ | |
do { \ | |
/*printf("%-22s%4u: ", __FILE__, __LINE__);*/ \ | |
/*printf("%-22s %-32s%4u: ", __FILE__, __func__, __LINE__);*/ \ | |
printf("%s%4u: ", __FILE__, __LINE__); \ | |
printf(__VA_ARGS__); \ |
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 | |
TOOLBOX_DOCKER_IMAGE=$1 | |
TOOLBOX_USER=root | |
machinename=$(echo "${USER}-${TOOLBOX_DOCKER_IMAGE}" | sed -r 's/[^a-zA-Z0-9_.-]/_/g') | |
machinepath="/var/lib/toolbox/${machinename}" | |
if [ ! -d ${machinepath} ] || systemctl is-failed ${machinename} ; then | |
sudo mkdir -p "${machinepath}" |
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 os import path | |
from werkzeug import secure_filename | |
import eventlet | |
from eventlet.green import urllib2 | |
from pyquery import PyQuery as pq | |
from urlparse import urlparse | |
import psyco | |
psyco.full() | |
search_urls = [ |
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
-------------------------------------------------------------------------------- | |
-- __ ____ __ _ -- | |
-- \ \/ / \/ | ___ _ __ __ _ __| | -- | |
-- \ /| |\/| |/ _ \| '_ \ / _` |/ _` | -- | |
-- / \| | | | (_) | | | | (_| | (_| | -- | |
-- /_/\_\_| |_|\___/|_| |_|\__,_|\__,_| -- | |
-- -- | |
------------------------------------------------------------------------------- |