Skip to content

Instantly share code, notes, and snippets.

Hey there

Kamal Mahmud kamalhm

Hey there
View GitHub Profile
kamalhm / profiles.json
Created May 11, 2020
Windows Terminal Settings
View profiles.json
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see:
"$schema": "",
"defaultProfile": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}",
kamalhm / find_and_move.bat
Created Oct 3, 2019
Windows: Command to find all mkv in subfolder and move them
View find_and_move.bat
for /r "C:\Users\KHM\Downloads\" %x in (*.mkv) do move "%x" "C:\Users\KHM\Downloads\familyguy\"
kamalhm / How to install NVM on ZSH
Created Aug 29, 2019
Step to install NVM on ZSH
View How to install NVM on ZSH
# Find the latest version on
# Install it on bash first
$ curl -o- | bash
# Add in your ~/.zshrc the following:
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/" ] && . "$NVM_DIR/"
View CSS.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Modal Dialog</title>
<link rel="stylesheet" href="">
<script src=""></script>
<script src=""></script>
<script src=""></script>
View FE_Javascript.html
function appendChildren(decorateDivFunction) {
var allDivs = [...document.getElementsByTagName("div")];
for (var i = 0; i < allDivs.length; i++) {
var newDiv = document.createElement("div");
# Fig. 19.15:
# Event objects.
import threading
import random
import time
class VehicleThread(threading.Thread):
"""Class representing a motor vehicle at an intersection"""
import zmq
PORT = '4545'
IP = ''
context = zmq.Context()
print("Menghubungkan ke server...")
socket = context.socket(zmq.REQ)
socket.connect("tcp://{ip}:{port}".format(ip=IP, port=PORT))
tambah = input(
"Terhubung dengan server, apakah anda ingin mengirim pesan ? y/n \n")
if tambah == 'y':
View map.js, i) => {
return (
You can’t perform that action at this time.