Skip to content

Instantly share code, notes, and snippets.

View harkce's full-sized avatar
:shipit:
Focusing

Fikri Sundayana harkce

:shipit:
Focusing
View GitHub Profile
@harkce
harkce / universal-switcher
Created May 31, 2022 04:23 — forked from jthodge/universal-switcher
Show macOS app switcher across all monitors
defaults write com.apple.Dock appswitcher-all-displays -bool true
killall Dock
@harkce
harkce / quicksort.go
Created February 13, 2021 10:55
Quicksort
package main
import "fmt"
func quicksort(A []int) []int {
if len(A) < 2 {
return A
}
left := 0
@harkce
harkce / main.go
Last active February 3, 2021 23:30
Graceful shutdown
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"time"
@harkce
harkce / Organization
Created April 22, 2018 06:07
Organization Registration
{
"email_address": "[email protected]",
"password": "qwe123123",
"password_confirm": "qwe123123",
"role": "organization",
"user_data": {
"name": "Habib Fikri",
"position": "HR",
"organization_name": "PT Maju Terus",
"organization_email": "[email protected]",
@harkce
harkce / Student
Created April 22, 2018 06:06
Student registration
{
"email_address": "[email protected]",
"password": "qwe123123",
"password_confirm": "qwe123123",
"role": "student",
"user_data": {
"name": "Habib Fikri",
"birthdate": "1996-03-17",
"address": "Jln. Tubis II No. 9",
"city": "Bandung",