Skip to content

Instantly share code, notes, and snippets.

View simonmoreau's full-sized avatar

Simon Moreau simonmoreau

View GitHub Profile
@simonmoreau
simonmoreau / readings.py
Created February 24, 2019 14:15
A Python script to send values from an Adafruit DHT22 to an Azure Cosmos DB database
import Adafruit_DHT
import azure.cosmos.cosmos_client as cosmos_client
import time
def reading():
config = {
'ENDPOINT': 'https://bim42db.documents.azure.com:443/',
'PRIMARYKEY': my Azure Cosmos DB Key',
'DATABASE': 'bim42db',
@simonmoreau
simonmoreau / Program.cs
Created September 19, 2020 13:49
A C# console app implementing the Wave Function Collapse algorithm
using System;
using System.IO;
using Microsoft.VisualBasic.FileIO;
using System.Collections.Generic;
using System.Linq;
using ExtensionMethods;
using System.Text;
namespace WFC
{