Skip to content

Instantly share code, notes, and snippets.

View cesarmarinhorj's full-sized avatar

Cesar Marinho cesarmarinhorj

View GitHub Profile
@cesarmarinhorj
cesarmarinhorj / StencilJS_integration_with_ReactJS.md
Created July 13, 2024 14:00 — forked from tsukhu/StencilJS_integration_with_ReactJS.md
My First Stencil Web Component and integration with React JS

First experience with StencilJS

  • Setup the StencilJS development environment by cloning https://github.com/ionic-team/stencil-component-starter.git
  • The starter comes with a sample web component called my-component. I have used this as a sample and tried to see if I can integrate this with my existing ReactJS app https://github.com/ERS-HCL/react-snack-app .
  • The main goal was to see
    • Evaluate the requirements to integrate with an existing React JS app.
    • See if it works on all browsers after this integration
  • Step 1 - Build Web Component
  • Build the stencil component starter project (after the initial setup steps)
@cesarmarinhorj
cesarmarinhorj / fib.rkt
Created June 30, 2024 15:43 — forked from Olical/fib.rkt
A fast, recursive, typed fibonacci program written in Racket.
#lang typed/racket
(: fib (-> Number Number))
(define (fib n)
(fib-iter 0 1 n))
(: fib-iter (-> Number Number Number Number))
(define (fib-iter a b n)
(if (= n 0) a
(fib-iter b (+ a b) (- n 1))))
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#