Skip to content

Instantly share code, notes, and snippets.

View trajber's full-sized avatar

Mauro Romano Trajber trajber

  • London
View GitHub Profile
@trajber
trajber / spy.py
Last active August 29, 2015 14:01
A simple utility to parse JSON files.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json, sys
lines=[]
for line in sys.stdin:
stripped = line.strip()
if not stripped: break
lines.append(stripped)
@trajber
trajber / queue.go
Created September 14, 2013 20:11
A simple implementation of a queue in Golang.
package main
import (
"fmt"
)
type Queue struct {
elements []interface{}
}
@trajber
trajber / stack.go
Last active December 23, 2015 02:09
A simple implementation of a stack in Golang.
package main
import (
"fmt"
)
type Stack struct {
elements []interface{}
}