Skip to content

Instantly share code, notes, and snippets.

View bradtgmurray's full-sized avatar

Brad Murray bradtgmurray

  • Beeper
  • Waterloo, Ontario
View GitHub Profile
set nocompatible
set et
set sw=4
set ts=4
set sts=4
function! SetupTintinEnv(...)
set sw=2 ts=4 sts=2
80114b0: e8df f003 tbb [pc, r3]
80114b4: 1b140b02 .word 0x1b140b02
alias buildtags="rm -f cscope.out && find . -name \*.c -o -name \*.h > cscope.files && cscope -b -R"
struct Thing {};
typedef boost::shared_ptr<Thing> ThingPtr;
ThingPtr GetThing();
void DoStuffWithThing(Thing* barePtr);
void main()
{
@bradtgmurray
bradtgmurray / gist:1770041
Created February 8, 2012 14:31
Simple xmonad config
import XMonad
import XMonad.Config.Gnome
main = xmonad gnomeConfig
[bmurray@bmurray-pc3-linux-vm crap]$ g++ test.cpp && ./a.out
Cprime
B
A
[bmurray@bmurray-pc3-linux-vm crap]$ cat test.cpp
#include <stdio.h>
class A
{
public:
GET /WMPNSSv4/3961218477/0_e0JEMTg0MkZDLTMyMkItNEU4RS04NTVCLTlDODZCMzkxMjYwNn0uMC4wMUZGREE2NA.avi HTTP/1.1
User-Agent: Xenon
Connection: Keep-alive
Host:192.168.99.100
HTTP/1.1 401 Unauthorized
Server: Microsoft-HTTPAPI/2.0
Date: Wed, 04 Aug 2010 03:01:35 GMT
Connection: close
Content-Length: 0
FILE *dbgFile;
0000 0.40971 35.00 0.41828 20.00
0005 0.35551 40.00 0.40268 20.00
0010 0.33368 56.00 0.38968 20.00
0015 0.31049 58.00 0.37576 25.00
0020 0.28144 65.00 0.36067 35.00
0025 0.24901 73.00 0.35756 33.33
0030 0.20638 84.00 0.34571 36.67
0035 0.16988 86.00 0.32606 48.33
0040 0.14360 88.00 0.30260 51.67
0045 0.12393 92.00 0.27956 56.67
NeuralNet::NeuralNet(int numInputs, int numHidden, int numOutput)
{
// Add an additional input as the bias node
mNumInputs = numInputs + 1;
mNumHidden = numHidden;
mNumOutputs = numOutput;
mWin = new Matrix::Matrix(mNumInputs, mNumHidden);
mWout = new Matrix::Matrix(mNumHidden, mNumOutputs);