This file contains 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
export ANDROID_NDK_HOME="/home/sayan/Android/Sdk/ndk/21.3.6528147" | |
export ANDROID_HOME="/home/sayan/Android/Sdk" | |
export ANDROID_CMAKE="/home/sayan/Android/Sdk/cmake/3.10.2.4988404/bin/cmake" | |
export ANDROID_NINJA="/home/sayan/Android/Sdk/cmake/3.10.2.4988404/bin/ninja" | |
$ANDROID_CMAKE -GNinja -DCMAKE_SYSTEM_PREFIX_PATH="/home/sayan/Android/Sdk/ndk/21.3.6528147/platforms/android-29/arch-arm/usr/lib" -DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake -DANDROID_ABI=armeabi-v7a -DANDROID_NATIVE_API_LEVEL=23 -DANDROID_ARM_NEON=ON -DOPENCV_EXTRA_MODULES_PATH="/run/media/sayan/Data/Programmer/android-opencv/opencv_contrib-4.3.0/modules/" -DWITH_PYTHON=OFF .. | |
$ANDROID_NINJA -j8 |
This file contains 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 <iostream> | |
void task(effort) { | |
std::cout << | |
"You made someone happy!😃"; | |
} |
This file contains 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 random | |
if bool(random.getrandbits(1)): | |
print("Start a new Project 🧐") | |
else: | |
print("So it is anime time 😌") |
This file contains 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 | |
def test_abnormal_char(EMAIL, CODE): | |
test_url = 'https://finance.yahoo.com/news/why-amd-stock-keep-climbing-160125203.html?.tsrc=rss' | |
data = {"article": test_url} | |
headers = {'User-Auth': 'email=' + EMAIL + ';code=' + CODE} | |
response = requests.post("http://localhost:8080/clean-text", data=data, headers=headers).json() | |
return response['full_text'] |
This file contains 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 config | |
import csv | |
import sys | |
import smtplib | |
import datetime | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
from email.mime.image import MIMEImage | |
def generate_mail(recipient_mail, timestamp, objects): |
This file contains 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
def h2rgb(h): | |
s = 1 | |
v = 1 | |
h = (h % 360) /60 | |
i = int(h) | |
ff = h - i | |
if i == 0: | |
x = v * (1 - s) |