Skip to content

Instantly share code, notes, and snippets.

@lxndrdagreat
lxndrdagreat / paper.py
Created May 23, 2017 17:51
Computes and prints out some interesting math dealing with stacking pieces of paper.
# Pieces of Paper
#
# Take a piece of paper (roughly 0.1mm in thickness),
# double it 100 times.
from decimal import *
paper = Decimal('0.1')
total_pieces_of_paper = 1
for i in range(0, 100):
@lxndrdagreat
lxndrdagreat / main.cpp
Created December 5, 2015 05:04
SFML Tile culling and drawing using sf::VertexArray
#include <SFML/Graphics.hpp>
#include <vector>
#include <iostream>
int main() {
sf::RenderWindow window(sf::VideoMode(640, 480), "Tile Culling");
// our view
sf::View camera;