Skip to content

Instantly share code, notes, and snippets.

@annaleighsmith
annaleighsmith / months.go
Created April 23, 2022 00:53
learning go, one of my first little bits of code
func main() {
now := time.Now()
m := make(map[int]string)
_ = now
_ = m
for i := 0; i < 13; i++ {
for i, month := range []string{"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"} {
i += 1
m[i] = month
}
@dat-adi
dat-adi / tkinter_classes.py
Created January 24, 2021 09:51
Here's an implementation of working with Classes in Tkinter.
import tkinter as tk
from tkinter import ttk
class windows(tk.Tk):
def __init__(self, *args, **kwargs):
tk.Tk.__init__(self, *args, **kwargs)
# Adding a title to the window
self.wm_title("Test Application")
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@creikey
creikey / top-1000-nouns.txt
Created December 30, 2019 17:25
Top 1000 English Nouns
time
way
year
work
government
day
man
world
life
part
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AnthonyFJGarner
AnthonyFJGarner / mean_reversion.ipynb
Last active June 2, 2024 21:53
A Simple Mean Reversion System in Simple Python Code
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.