$ sudo apt-get install libreadline5-dev
$ sudo apt-get install lua-5.1 liblua5.1-0-dev
This file contains hidden or 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
#!/Users/pradeep/grok/bin/python | |
# encoding: utf-8 | |
""" | |
cms2yaki.py | |
Created by Pradeep Gowda on 2008-09-22. | |
Copyright (c) 2008 Pradeep Gowda. All rights reserved. | |
""" | |
import sys |
This file contains hidden or 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
''' | |
Equations.py | |
A Yaki plugin to render mathematical equations using | |
l2p http://redsymbol.net/software/l2p/ | |
Pradeep Gowda <[email protected]> | |
2009-04-21 | |
''' | |
import yaki.Engine, yaki.Store | |
import urlparse, re |
This file contains hidden or 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 | |
# encoding: utf-8 | |
""" | |
make_table.py | |
Given a CSV file with a header row, and at-least one row of data, | |
output a SQL `CREATE TABLE` statement by guessing the data type of the columns. | |
Pradeep Gowda <[email protected]> | |
License: Public Domain |
This file contains hidden or 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
[buildout] | |
parts = python libs | |
develop = . | |
eggs = deadparrot | |
[libs] | |
recipe = zc.recipe.egg | |
eggs = zope.interface | |
[python] |
This file contains hidden or 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: mjmalone | |
https://twitter.com/mjmalone/status/1874036416 | |
''' | |
import struct | |
import pytyrant | |
class QueryException(Exception): pass |
This file contains hidden or 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 | |
from __future__ import with_statement | |
import os | |
import sys | |
import string | |
from string import Template | |
from config import * | |
from datetime import date | |
from textile import textile |
This file contains hidden or 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
-- Export into a CSV file from MySQL | |
SELECT * from foologger | |
INTO OUTFILE '/tmp/rrr.csv' | |
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' | |
ESCAPED BY '\\' | |
LINES TERMINATED BY '\n'; | |
where dfd=2 and logtime >= '2009-06-08 05:00:00' and logtime <='2009-06-08 17:00:00' | |
and qhr=1; |
Follow this guide
$ wget -c http://www.kegel.com/crosstool/crosstool-0.43.tar.gz
$ tar -zxf crosstool-0.43.tar.gz
$ cd crosstool-0.43
$ sudo apt-get install patch bison
$ sudo apt-get install build-essential
$ sudo apt-get install flex
$ sudo apt-get install libreadline5-dev
Notes from The C Book.
- To use
exit()
,EXIT_SUCCESS
andEXIT_FAILURE
includestdlib.h
.