Skip to content

Instantly share code, notes, and snippets.

View humamfauzi's full-sized avatar
💭
Wandering Around

Humam Fauzi humamfauzi

💭
Wandering Around
View GitHub Profile
@humamfauzi
humamfauzi / resume.json
Last active February 21, 2023 13:40
Resume.json
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Humam Fauzi",
"label": "Software Engineer",
"image": "",
"summary": "Software engineer with specialty in product engineering, cloud services, and backend programs. Hands on experience in building scalable and performant web applications. Passionate about building products that solve real problems and improve people's lives.",
"website": "https://humamf.com",
@humamfauzi
humamfauzi / main.go
Created October 9, 2022 14:57
Distributed task
// You can edit this code!
// Click here and start typing.
package main
import (
"fmt"
"strconv"
)
func main() {
@humamfauzi
humamfauzi / main.rs
Created August 8, 2021 12:02
Collection of Data Type, Tuple and Struct
fn main() {
let height = 1.2;
let width = 5.1;
let area = calculate_area(height, width);
println!("rectangle area {}", area);
let prop: (f32, f32) = (1.2, 5.1);
let area = calculate_area_tuple(prop);
println!("rectangle area tuple {}", area);
@humamfauzi
humamfauzi / main.rs
Created August 6, 2021 12:39
Celcius to Farenheit Temperature Conversion In Rust
fn main() {
let celcius_example: f32 = 100.;
let conversion: f32 = converter(celcius_example, "F");
println!("example {}", conversion);
let farenheit_example: f32= 212.;
let conversion: f32 = converter(farenheit_example, "C");
println!("example {}", conversion);
@humamfauzi
humamfauzi / main.py
Created May 18, 2021 13:37
Example of connecting machine learning with an API in Python
from flask import Flask, jsonify, request
from gevent.pywsgi import WSGIServer
from keras.models import model_from_json
import numpy as np
import json
import joblib
import base64
app = Flask(__name__)
current_model = "dummy"
@humamfauzi
humamfauzi / main.go
Created May 14, 2021 12:52
Staircase Problem with Arbitrary Steps
package main
import (
"fmt"
)
var count int64
func Fibonacci(number int64) int64 {
count++
@humamfauzi
humamfauzi / binary_tree.go
Created May 2, 2021 14:13
Implementation of Binary Tree Search
package main
import (
"fmt"
)
type Leaf struct {
Number int64
Right *Leaf
Left *Leaf
@humamfauzi
humamfauzi / main.go
Created April 17, 2021 14:25
Go Methods and Inheritance
package main
import (
"fmt"
)
// We create a normat struct that represent normal inovice
type Invoice struct {
Id string
Amount int
@humamfauzi
humamfauzi / note.md
Created April 17, 2021 10:43
Why Kivy does not work on docker

install python with KivyMD

===== using python alpine base image

  1. cd /home
  2. mkdir workspace
  3. apk add --no-cache jpeg-dev zlib-dev
  4. apk add --no-cache --virtual .build-deps build-base linux-headers && pip install pillow
  5. apk add mesa-dev
  6. pip install kivymd
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.