Skip to content

Instantly share code, notes, and snippets.

Avatar

Anna anna-smith97

View GitHub Profile
@anna-smith97
anna-smith97 / months.go
Created Apr 23, 2022
learning go, one of my first little bits of code
View months.go
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
}
View iphone-ui.py
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):
View system_specs.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View polygon_api_cycler.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View linear_regression_helper.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@anna-smith97
anna-smith97 / tkinter_classes.py
Created Aug 1, 2021 — forked from dat-adi/tkinter_classes.py
Here's an implementation of working with Classes in Tkinter.
View tkinter_classes.py
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")