Skip to content

Instantly share code, notes, and snippets.

View timothy-allan's full-sized avatar

tim.allan.london timothy-allan

View GitHub Profile
/**************************************************************************
This is an example for our Monochrome OLEDs based on SSD1306 drivers
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/category/63_98
This example is for a 128x64 pixel display using I2C to communicate
3 pins are required to interface (two I2C and one reset).
Adafruit invests time and resources providing this open
from itertools import permutations
# create a list of numValues pixel lists
numValues = 9
singleResult = [ [1] * i + [0] * (numValues - i) for i in range(1, numValues) ]
print(singleResult)
def generate_permutations(list_to_permute):
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 27 21:12:20 2020
@author: timallan
"""
from itertools import permutations
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Apr 19 19:57:38 2020
@author: timallan
"""
import random
import time
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 9 09:17:05 2019
'''
from PIL import Image, ImageDraw
import random
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 9 09:17:05 2019
@author: timallan
"""
from PIL import Image, ImageDraw
import random
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 9 09:17:05 2019
@author: timallan
"""
from PIL import Image, ImageDraw
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 9 09:17:05 2019
@author: timallan
"""
from PIL import Image, ImageDraw
import random
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 9 09:17:05 2019
@author: timallan
"""
from PIL import Image, ImageDraw
import random
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 9 09:17:05 2019
@author: timallan
"""
from PIL import Image, ImageDraw
import random