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
}
import ui
w, h = ui.get_screen_size()
view = ui.View(name= 'Flex', bg_color='black',frame=(0,0,w,h))
total_rows = 10
total_columns=3
class CreateUIObject():
def __init__(self, obj_name, obj_type, row_num, col_num,text_str):
@annaleighsmith
annaleighsmith / system_specs.ipynb
Last active October 22, 2021 17:06
system_specs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@annaleighsmith
annaleighsmith / polygon_api_cycler.ipynb
Last active October 22, 2021 17:09
polygon_api_cycler
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@annaleighsmith
annaleighsmith / linear_regression_helper.ipynb
Last active October 22, 2021 17:08
linear_regression_helper
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@annaleighsmith
annaleighsmith / tkinter_classes.py
Created August 1, 2021 04:05 — forked from dat-adi/tkinter_classes.py
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")