Skip to content
View hello.py
def main():
print("hello")
if __name__ == '__main__':
main()
View gitupdate.py
#!/usr/bin/env python
# A github post-receive hook handler, runs some shell command on each HTTP POST to PORT.
# github-listener.py PORT 'SOME SHELL COMMAND'
import sys
from subprocess import *
from flask import Flask
def system(cmd):
return ''.join(Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE, close_fds=True).communicate())
View onte.md

Onte - OCaml that acts like a Gopher

Onte is a tool for manaing OCaml source code

Usage:

    onte command [arguments]
View ocaml-learn-from-go.md

Editor support

Embrace newer editors like Sublime Text over traditional favourites like vim and Emacs

Gosublime works very well with sublime, which is a very good programmer's text editors by all accounts. OCaml has https://github.com/whitequark/sublime-better-ocaml. The problems with 'better-ocaml' are:

  • it does not recognize opam

OCaml's build system is complicated

View process.py
from bs4 import BeautifulSoup
import requests
from sys import exit
wanted = "#main"
unwanted = "#comments .post-footer .blog-pager .post-feeds .clear"
def main():
count = 0
with open('links4.txt') as lfile:
View business-models.md

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google
View odt2pandoc.py
#!/usr/bin/env python
"""
ODT2PANDOC
==========
ODT2PANDOC is a slight variant of ODT2TXT. Right now, the only differences are that it generates ATX style headers and uses *asterisks* for italics, neither of which is in any way specific to pandoc's extended markdown.
ODT2TXT
=======
View README.md

A home server manifesto

Overall objectives

  • work seamlessly with all Mac products
  • Secure
  • Simple to administer
  • Open Protocols

Backup

View ocaml_replaces_go.md

OCaml as a replacement for Go

What is go good at and how ocaml measures up in terms of being better alternative for Go.

Go was written to do one thing really well - write network applications. Can OCaml Compete here?

Speed of the executable

View gist:8b53713539f7c4869d45

How to install cGit on Nginx (Ubuntu server)

Step-by-step installtion of cGit on nginx without funky rewrite rules.

Pre-requisites

This is for

Something went wrong with that request. Please try again.