Skip to content

Instantly share code, notes, and snippets.

View douglasstarnes's full-sized avatar

Douglas Starnes douglasstarnes

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@douglasstarnes
douglasstarnes / night_light.py
Created April 16, 2020 04:57
Adaptive Night Light for BBC microBit using Micropython
from microbit import *
LIGHT_LEVEL = 255 / 4
ALL_PIXELS = set(list(range(25)))
def square(x, y, side):
pixels_on = set()
for x_offset in range(side):
for y_offset in range(side):
<li class="nav-item">
<a class="nav-link text-dark"
asp-area="" asp-page="/Questions/Index">Questions</a>
</li>
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Question>().HasData(
new List<Question>() {
@douglasstarnes
douglasstarnes / gist:f29a5e9c02bfcf69265cd44f3167af2e
Last active September 2, 2020 20:35
TDevConf interview questions .. not set in stone
What is your 60-90 second elevator pitch about yourself?
What was your first computer?
What is your favorite code/text editor?
What is your least favorite programming language? What would improve it?
How would you explain your job to an elementary school student? A a high school student? A professional outside of technology?
@douglasstarnes
douglasstarnes / App.js
Last active October 19, 2021 13:01
FARM Stack Demo Code
import logo from './logo.svg';
import './App.css';
import {useState, useEffect} from 'react';
import axios from 'axios';
import {BarChart, Bar, YAxis} from 'recharts';
function App() {
@douglasstarnes
douglasstarnes / readme.md
Last active March 21, 2023 17:32
March Mempy Notes

Create new virtual environment

python3.10 -m venv .venv

Associate venv in VS Code

Create requirements.txt

@douglasstarnes
douglasstarnes / readme.md
Last active March 24, 2024 06:09
Stream topics going forward

STREAM TOPICS GOING FORWARD


  • .NET
    • ASP.NET
    • MAUI
  • Python
    • FastAPI
    • Matplotlib
    • pandas
  • PyTorch