Skip to content

Instantly share code, notes, and snippets.

View ntavish's full-sized avatar

Tavish Naruka ntavish

View GitHub Profile
--- complete-dict - Created by Ryan Kulla using Python 2.6 on Ubuntu Linux 9.04 on July 23rd 2009 ---
--- Python Keywords (These were manually inputted) ---
and
del
for
is
raise
assert
elif
@ntavish
ntavish / quicklog.h
Created November 27, 2011 11:15 — forked from anonymous/quicklog.h
Quicklog: For when printf isn't enough but a full logging library is too much
//quicklog.h
//include it, and just loginfo("hello, %s", "world");
//MIT licence
#include <stdio.h>
#include <time.h>
#ifndef QUICKLOG_H
#define QUICKLOG_H
@ntavish
ntavish / nn.py
Created July 15, 2011 18:15
Neural network demo
#!/usr/bin/python
# Back-Propagation Neural Networks
#
# Written in Python. See http://www.python.org/
# Placed in the public domain.
# Neil Schemenauer <[email protected]>
#
# Changes:
# 2009-01-30 Fix dsigmoid() to use correct derivative rather than an
# approximation. Suggested by Andrew Lionel Blais.