Skip to content

Instantly share code, notes, and snippets.

View koo5's full-sized avatar
💭
github sucks

koo5

💭
github sucks
View GitHub Profile
@koo5
koo5 / gist:4703971
Last active December 12, 2015 03:08
otherwise if path is "/post":
if method is "post":
if there is an id of user in table of users:
let old nick be nick corresponding to id of user in table of users;
if old nick is not user nick:[user changed googleID nickname]
say "old nick: [old nick], new nick: [user nick], updating nick...[line break]";
choose row with id of user in table of users;
now nick corresponding to id of user in table of users is user nick;
write file of users from table of users;
else:
<?php
echo('<?xml version="1.0" encoding="ISO-8859-15"?>' . "\n");
echo('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">');
?>
<html>
<head>
<title>Server status</title>
<meta http-equiv="Refresh" content="60"/>
<style type="text/css">
body {
@koo5
koo5 / s
Created May 22, 2013 02:13
i7bitcoin
bitcoin by kook
"i need to get laid"
app is a kind of room
display is a kind of container
function is a kind of
<a href="http://www.freediff.com/"></a><br>
<a href="pohoda.txt"></a><br>
<a href="fio.txt"></a><br>
<?php
#vypis z pohody,text,ansi nebo oem dalo to samy
#zaklikavaj se sloupecky, zakliknout vsechny, viz niz
@koo5
koo5 / if_node.py
Last active December 18, 2015 02:39
#!/usr/bin/python
# -*- coding: utf-8 -*-
class if_node():
node_name = "if"
node_doc = "conditional evaluation"
def __init__():
@koo5
koo5 / bla
Created June 16, 2013 23:19
language.py
bla
@koo5
koo5 / gist:6398295
Created August 31, 2013 13:49
it.py
#!/usr/bin/env python
import pyglet
window = pyglet.window.Window(resizable=True)
document = pyglet.text.document.FormattedDocument()
layout = pyglet.text.layout.IncrementalTextLayout(document, window.width, window.height, multiline=True)
caret = pyglet.text.caret.Caret(layout)
window.push_handlers(caret)
loop forever:
if user is in flow:
disconnect instant messaging
how to tell if user is in flow:
90% of last 20 minutes
module(?) history:
spent:
kook@kook:~/kurva_pica/pyglet-1.2alpha1/examples$ ./text_input.py
Traceback (most recent call last):
File "./text_input.py", line 145, in <module>
window = Window(resizable=True)
File "./text_input.py", line 62, in __init__
TextWidget('', 200, 100, self.width - 210, self.batch),
File "./text_input.py", line 28, in __init__
font = self.document.get_font(0)
File "/usr/lib/pymodules/python2.7/pyglet/text/document.py", line 660, in get_font
return iter[position]
the lemon ssh cilent is a program
the lemon ssh client alias is ssh
to display ssh:
if there are active connections:
display list of connections
to display list of connections:
create
gui window
listbox