Skip to content

Instantly share code, notes, and snippets.

View mikispag's full-sized avatar

Michele Spagnuolo mikispag

View GitHub Profile
@molnarg
molnarg / angularjs-sandbox-escape.md
Last active August 3, 2017 08:46
An AngularJS Template Expression Sandbox Escape

An AngularJS Template Expression Sandbox Escape

Short Proof of Concept

<!doctype html>
<html>
@mikispag
mikispag / population_simulation.py
Last active December 19, 2015 22:38
A simple simulation of a population. In a country where people only want boys, every couple continues to have children until they have a boy. If they have a girl, they have another child. If they have a boy, they stop. Breakups, accidents and new relationships are generated stochastically.
#!/usr/bin/env python2
import random
from collections import Counter
import numpy as np
import matplotlib.pyplot as plt
from matplotlib import rcParams
rcParams.update({'figure.autolayout': True})
MAX_T = 300
MIN_AGE_RELATIONSHIP = 14