Skip to content

Instantly share code, notes, and snippets.

View zekhoi's full-sized avatar
⚠️
ⓘ User is suspected to be a part of an online terrorist organization.

Khoironi Kurnia Syah zekhoi

⚠️
ⓘ User is suspected to be a part of an online terrorist organization.
View GitHub Profile
@zekhoi
zekhoi / conventional_commit_messages.md
Created December 5, 2021 11:31 — forked from qoomon/conventional-commits-cheatsheet.md
Conventional Commit Messages

Conventinal Commit Messages

See how a minor change to your commit message style can make a difference. Examples

Have a look at CLI util git-conventional-commits to ensure this conventions and generate changelogs

Commit Formats

Default

@zekhoi
zekhoi / suspension_rk4.py
Last active May 3, 2022 10:56
Suspension Runge Kutta 4th Python Code
# Import modules
import numpy as np
import matplotlib.pyplot as plt
from math import sin, cos,tan, exp, sqrt
from prettytable import PrettyTable as table
# For analytics
# For D < 0
# Addition function
{
"facebook": "facebook.com/zxkhoi",
"linkedin": "linkedin.com/in/khoironiks",
"steam": "steamcommunity.com/id/zekhoi",
"dribbble": "dribbble.com/zekhoi",
"behance": "behance.net/zekhoi",
"instagram": "instagram.com/zekhoi/",
"medium": "medium.com/@zekhoi",
"github": "github.com/zekhoi",
"dev.to": "dev.to/zekhoi",
@zekhoi
zekhoi / axios.ts
Created April 29, 2022 17:44
Proxy Using AllOrigins Example
import axios from "axios";
const axiosInstance = axios.create({
baseURL: "https://api.allorigins.win/get?url=",
});
const fetchAPI = async ({ categoryId }: BookAPI) => {
try {
const response = await axiosInstance.get("https://jsonplaceholder.typicode.com/posts");
// Maka requestnya dikirim ke https://api.allorigins.win/get?url=https://jsonplaceholder.typicode.com/posts
@zekhoi
zekhoi / ArrayChallenge.js
Created May 3, 2022 10:49
Coderbyte Stock Maximum Profit
function ArrayChallenge(arr) {
// Declare variables
let buy_price = 0
let sell_price = 0
let max_profit = -1
let next_buy_price = true
// Loop every price and calculate it
// console.log(arr)
@zekhoi
zekhoi / bracketCombinations.js
Created May 3, 2022 14:10
Coderbyte - Bracket Combinations
function BracketCombinations(num) {
// code goes here
const factorial = (number) => {
let k = 1
for(let i = number; i >= 1; i--){
k *= i;
}
return k
}