Skip to content

Instantly share code, notes, and snippets.

View cesarmarinhorj's full-sized avatar

Cesar Marinho cesarmarinhorj

View GitHub Profile
@cesarmarinhorj
cesarmarinhorj / gist:f69ac237de157a9ad6d4f1cf8f106e58
Created May 17, 2024 12:44
various repositories of janet code
https://codeberg.org/amano.kenji/j3blocks
https://codeberg.org/amano.kenji/j3blocks-extra
https://git.envs.net/iacore/janet-sibilant-web
https://git.envs.net/iacore/janet-signal
https://git.sr.ht/~alect/fantasy-console-carts
https://git.sr.ht/~alect/jaydate
https://git.sr.ht/~alect/junk-drawer
https://git.sr.ht/~alect/secret-santa-jam-2022
https://git.sr.ht/~bakpakin/bee-server
https://git.sr.ht/~bakpakin/jvk
; A REPL-based, annotated Seesaw tutorial
; Please visit https://github.com/daveray/seesaw for more info
;
; This is a very basic intro to Seesaw, a Clojure UI toolkit. It covers
; Seesaw's basic features and philosophy, but only scratches the surface
; of what's available. It only assumes knowledge of Clojure. No Swing or
; Java experience is needed.
;
; This material was first presented in a talk at @CraftsmanGuild in
; Ann Arbor, MI.
@cesarmarinhorj
cesarmarinhorj / Colors
Created February 1, 2024 10:39 — forked from mcgrew/Colors
Allows you to preview colors by moving 3 sliders and gives the hex value for the color you see.
#!/usr/bin/env python
import Tkinter
FONT = ('courier new',24,'bold')
def main():
mainWindow = Tkinter.Tk()
mainWindow.title("Color Preview")
mainFrame = Tkinter.Frame(mainWindow)
@cesarmarinhorj
cesarmarinhorj / simple_calculator.py
Created February 1, 2024 10:34 — forked from hazulifidastian/simple_calculator.py
Python simple calculator using tkinter
from tkinter import Tk, Entry, StringVar, Button
class Expression:
expression = ""
@classmethod
def set(cls, expression):
cls.expression = expression
return cls.expression
@cesarmarinhorj
cesarmarinhorj / ARTHA RENT CAR.py
Created February 1, 2024 10:31 — forked from nafik-cs/ARTHA RENT CAR.py
memudahkan rental mobil
import tkinter
from tkinter import messagebox
class App():
def __init__(self):
self.root = tkinter.Tk()
self.root.title("ATHA RENT CAR")
self.root.geometry("300x200")
self.listnama = []
@cesarmarinhorj
cesarmarinhorj / tkinterlist.py
Created February 1, 2024 10:28 — forked from athiyadeviyani/tkinterlist.py
Python GUI cheatsheet
# BASIC TKINTER CHEATSHEET
# Build basic GUIs with Python
from tkinter import *
from tkinter import scrolledtext
from tkinter import messagebox
from tkinter.ttk import Progressbar
from tkinter import filedialog
from tkinter import Menu
@cesarmarinhorj
cesarmarinhorj / fsharp-tutorial.fs
Created November 11, 2023 13:45 — forked from odytrice/fsharp-tutorial.fs
F# Code Samples
// This sample will guide you through elements of the F# language.
//
// *******************************************************************************************************
// To execute the code in F# Interactive, highlight a section of code and press Alt-Enter in Windows or
// Ctrl-Enter Mac, or right-click and select "Send Selection to F# Interactive".
// You can open the F# Interactive Window from the "View" menu.
// *******************************************************************************************************
// For more about F#, see:

Setup instructions for the 8 hour Domain Modeling Made Functional workshop

Requirements:

  • Git (optional)
  • F#

I will assume that you have git already installed.

Install F#

@cesarmarinhorj
cesarmarinhorj / DomainModelingMadeFunctional_outline.md
Created November 11, 2023 11:40 — forked from swlaschin/DomainModelingMadeFunctional_outline.md
Workshop outline: "Domain Modeling Made Functional"

Workshop: Domain Modeling Made Functional

Functional programming and domain-driven design might not seem to be a good match, but in fact functional programming can be an excellent approach to designing decoupled, reusable systems with a rich domain model. This workshop will show you why.

This will be a hands-on workshop designed for beginners in functional programming. We'll do lots of exercises and build some small projects that take us all the way from high-level design to low-level implementation.

Screen Quick Reference

Basic

Description Command
Start a new session with session name screen -S <session_name>
List running sessions / screens screen -ls
Attach to a running session screen -x
Attach to a running session with name screen -r