This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installation | |
sudo apt install mysql-server | |
# Start the server | |
sudo mysql -u root -p | |
#show dbs | |
SHOW DATABASES; | |
# Create DB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##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/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function printMatrix { | |
A=( $@ ) | |
for j in {0..1} | |
do | |
i=$j | |
echo -n "|" | |
while [ $i -lt ${#A[@]} ] ; do | |
printf " %2d " ${A[$i]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
declare -a key # declare key as array | |
echo "Please key in four key" | |
read key[0,1,2,3] | |
i=0 |
NewerOlder