Skip to content

Instantly share code, notes, and snippets.

View wuthmone's full-sized avatar

Wut Hmone Hnin Hlaing wuthmone

View GitHub Profile
@wuthmone
wuthmone / samplerand.py
Created October 5, 2018 02:41
Generate th random number
import requests as rq
import json
from random import randint
INT_MAX = 29 # Global
starting_point = randint(0, INT_MAX) # Get the starting number
array_num = ['0'] * 29 # Create list of value '0' of len 29
# Make changes on required position
@wuthmone
wuthmone / python_setup_envs.sh
Last active February 9, 2018 10:02
Python Environment setups for Ubuntu or other Linux OS
# Install python3 on Ubuntu
mkvirtualenv --python=/usr/bin/python3.6 ACE2
sudo apt-get install python3
# Install python-pip3 on Ubuntu
sudo apt-get install python3-pip
# Install the require library with pip3 ( requirements.txt must be in same directory )
@wuthmone
wuthmone / opencv_3_4_python3_5.sh
Last active October 21, 2023 16:20
OpenCV 3.4.0 with Python 3.5 installation on Ubuntu 17.04
# OpenCV 3.4.0 with Python 3.5 installation on Ubuntu 17.04
# Last Tested Date: 5th Jan 2018 12:23 PM
# Authour : Wut Hmone Hnin Hlaing
# Update and Upgrade required library
sudo apt-get update
sudo apt-get upgrade
# Necessary packages
@wuthmone
wuthmone / opencv3.3.0_python3.5_ubuntu17.05_installaion.sh
Created October 26, 2017 04:32
OpenCV 3.3.0 with Python 3.5 installation on Ubuntu 17.04
# OpenCV 3.3.0 with Python 3.5 installation on Ubuntu 17.04
# Last Tested Date: 26th Oct 2017 12:23 PM
# Authour : Wut Hmone Hnin Hlaing
# Update and Upgrade required library
sudo apt-get update
sudo apt-get upgrade
# Necessary packages
# Installation
sudo apt install mysql-server
# Start the server
sudo mysql -u root -p
#show dbs
SHOW DATABASES;
# Create DB
@wuthmone
wuthmone / MongoDB Notes.sh
Last active November 25, 2017 09:42
MongoDB Notes
##Installaion (Ubuntu 17.04)
sudo apt install mongodb-clients
sudo apt install mongodb-server
https://www.howtoforge.com/tutorial/install-mongodb-on-ubuntu-16.04/
@wuthmone
wuthmone / peopledetect.cpp
Created May 16, 2017 02:57 — forked from foundry/peopledetect.cpp
OpenCV Hog Descriptor trial
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/highgui/highgui.hpp"
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "openCVUtils.h"
using namespace cv;
@wuthmone
wuthmone / stringTotime.cpp
Last active June 1, 2017 08:34
C++ Method to convert from Time t to String.
#include <stdlib.h> // for std::rand
#include <iomanip>
#include <time.h>
#include <stdio.h>
#include <ctime>
#include <string>
#include <sstream>
#include <iostream>
using namespace std;
#!/bin/bash
function printMatrix {
A=( $@ )
for j in {0..1}
do
i=$j
echo -n "|"
while [ $i -lt ${#A[@]} ] ; do
printf " %2d " ${A[$i]}
#!/bin/bash
declare -a key # declare key as array
echo "Please key in four key"
read key[0,1,2,3]
i=0