Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Kamal Mahmud kamalhm

🎯
Focusing
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
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
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 https://github.com/creationix/nvm#install-script
# Install it on bash first
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash
# Add in your ~/.zshrc the following:
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
View CSS.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Modal Dialog</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
</head>
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");
decorateDivFunction(newDiv);
allDivs[i].appendChild(newDiv);
}
}
View 07event.py
# Fig. 19.15: fig19_15.py
# Event objects.
import threading
import random
import time
class VehicleThread(threading.Thread):
"""Class representing a motor vehicle at an intersection"""
View 1_client_req.py
import zmq
PORT = '4545'
IP = '10.30.0.25'
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
robots.map((user, i) => {
return (
<Card
key={i}
id={robots[i].id}
name={robots[i].name}
email={robots[i].email}/>
);
You can’t perform that action at this time.