Skip to content

Instantly share code, notes, and snippets.


Kamal Mahmud kamalhm

Block or report user

Report or block kamalhm

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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.