Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

ehza ehzawad

🎯
Focusing
View GitHub Profile
View vimrc
set nocompatible
" long live vim
set encoding=utf-8
set secure
" When writing buffer encoding to utf-8
set fileencoding=utf-8
set ff=unix
" Script Encoding When writing to buffer
scriptencoding utf-8
View normaldistribution.mlx
x = [0.1462, 0.1504, 0.1546, 0.1588, 0.1630, 0.1672, 0.1714, 0.1756, 0.1798];
mu = 0.1630;
sigma = 0.0084;
p = normcdf(x,mu,sigma)
View alex_net_for_image_classification.m
parentDir = '~/Desktop/omg_deep_learning/';
dataDir = 'ehza_datasets_COVID';
allImages = imageDatastore(fullfile(parentDir, dataDir),'IncludeSubfolders',true, 'LabelSource', 'foldername');
rng default;
[imgsTrain, imgsValidation] = splitEachLabel(allImages, 0.8, 'randomized');
disp(['Number of training images: ', num2str(numel(imgsTrain.Files))]);
disp(['Number of validation images: ', num2str(numel(imgsValidation.Files))]);
View google_net_for_image_classification.m
parentDir = '~/Desktop/omg_deep_learning/';
dataDir = 'ehza_datasets_COVID';
allImages = imageDatastore(fullfile(parentDir, dataDir),'IncludeSubfolders',true, 'LabelSource', 'foldername');
[imgsTrain, imgsValidation] = splitEachLabel(allImages, 0.80, 'randomized');
disp(['Number of training images: ', num2str(numel(imgsTrain.Files))]);
disp(['Number of validation images: ', num2str(numel(imgsValidation.Files))]);
net = googlenet;
View confusion_matrix.m
trueLabels = imgsValidation.Labels;
[YPred, probs] = classify(trainedAN, augimgsValidation);
accuracy = mean(YPred == trueLabels);
plotconfusion(trueLabels, YPred)
View repetoire.rtf
HASH KEY
keycap_star
KEYCAP 0
KEYCAP 1
KEYCAP 2
KEYCAP 3
KEYCAP 4
KEYCAP 5
KEYCAP 6
KEYCAP 7
View hello_emoji.py
import emoji_data_python as lolled
# print(len(lolled.emoji_data))
# print(type(lolled.emoji_data))
# print(lolled.emoji_short_names['hearts'].__dict__)
# print(type(lolled.__dict__))
hello_emojis = lolled.emoji_data
# print(hello_emojis)
View hello_emoji.py
import emoji_data_python as lolled
# print(len(lolled.emoji_data))
# print(type(lolled.emoji_data))
# print(lolled.emoji_short_names['hearts'].__dict__)
# print(type(lolled.__dict__))
print(lolled.__dict__)
print(len(lolled.__dict__))
View visa_interview_process.rtf
Hey guys, I need your serious help whoever can help me figure out what's wrong in my profile and how should I improve it before next Visa interview:
Also, people who are sharing their experiences are all whose visa have gotten approved, but if you ask me within all my visits to Visa Interview centre, I have seen candidates who are getting rejected frequently also, so its a myth that everybody who applied for fall 2020 visa got approvals. The percentage ratio may lie around 65-35% for approval and rejection respectively.
Visa Interview Attempt 1:
Location: Delhi Embassy
Date: 24th August 2020
I was having an afternoon slot, while my other friends were having early morning slots, so they went early and then called me up saying that their interview is already done as officers are taking interviews before time only, so they asked me to come early irrespective of slot. I went directly inside after security checks and then to the Interview Counter as soon as I entered the US Embassy, there was no waiting queue. Bec
View locusfile.py
from locust import User, HttpUser, TaskSet, task, between
class MyTasks(TaskSet):
@task
def load_user_profile(self):
self.client.get("/polls")
wait_time = between(5, 15)
class MyWebsiteUser(HttpUser):
You can’t perform that action at this time.