Skip to content

Instantly share code, notes, and snippets.

Avatar

Roger Allen rogerallen

View GitHub Profile
@rogerallen
rogerallen / 0_tweegeemee.txt
Last active Sep 19, 2020
tweegeemee archive 9/13/2020
View 0_tweegeemee.txt
Archive of the code for images posted to https://twitter.com/tweegeemee
Started September 13, 2020
:clisk-random-seed 200913
Learn more at https://github.com/rogerallen/tweegeemee
@rogerallen
rogerallen / solution.txt
Last active Aug 2, 2020
Oregon State West Hall Dorm Math Series
View solution.txt
The series is 2^p - 1 where p are the primes.
Python proof:
>>> for p in [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61]:
... print(p,(2**p)-1)
...
Output:
2 3
3 7
@rogerallen
rogerallen / 0_tweegeemee.txt
Last active Sep 11, 2020
tweegeemee archive 7/22/2020
View 0_tweegeemee.txt
Archive of the code for images posted to https://twitter.com/tweegeemee
Started July 22, 2020
:clisk-random-seed 200722
Learn more at https://github.com/rogerallen/tweegeemee
@rogerallen
rogerallen / 0_tweegeemee.txt
Last active Jul 20, 2020
tweegeemee archive 4/21/2020
View 0_tweegeemee.txt
Archive of the code for images posted to https://twitter.com/tweegeemee
Started April 21, 2020
:clisk-random-seed 200421
Learn more at https://github.com/rogerallen/tweegeemee
@rogerallen
rogerallen / 0_tweegeemee.txt
Last active Apr 18, 2020
tweegeemee archive 3/5/2020
View 0_tweegeemee.txt
Archive of the code for images posted to https://twitter.com/tweegeemee
Started March 5, 2020
:clisk-random-seed 200305
Learn more at https://github.com/rogerallen/tweegeemee
@rogerallen
rogerallen / 0_tweegeemee.txt
Last active Mar 4, 2020
tweegeemee archive 1/24/2020
View 0_tweegeemee.txt
Archive of the code for images posted to https://twitter.com/tweegeemee
Started January 24, 2020
:clisk-random-seed 200124
Learn more at https://github.com/rogerallen/tweegeemee
View snake.cpp
#define SDL_MAIN_HANDLED
#include <SDL.h>
#include <cstdlib>
const int TAIL_MAX = 255;
const int WINDOW_WIDTH = 800;
const int WINDOW_HEIGHT = 800;
const int BLOCK_SIZE = 16;
struct Food {
@rogerallen
rogerallen / 0_tweegeemee.txt
Last active Jan 23, 2020
tweegeemee archive 12/20/2019
View 0_tweegeemee.txt
Archive of the code for images posted to https://twitter.com/tweegeemee
Started December 20, 2019
:clisk-random-seed 191220
Learn more at https://github.com/rogerallen/tweegeemee
@rogerallen
rogerallen / 0_tweegeemee.txt
Last active Dec 19, 2019
tweegeemee archive 11/11/2019
View 0_tweegeemee.txt
Archive of the code for images posted to https://twitter.com/tweegeemee
Started November 11, 2019
:clisk-random-seed 191111
Learn more at https://github.com/rogerallen/tweegeemee
You can’t perform that action at this time.