Skip to content

Instantly share code, notes, and snippets.

View ghulamMustafaRaza's full-sized avatar
🎯
Focusing

Ghulam Mustafa Raza Qadri ghulamMustafaRaza

🎯
Focusing
View GitHub Profile
@ghulamMustafaRaza
ghulamMustafaRaza / 1game.c
Last active August 9, 2023 17:50
c practice
#include <cs50.h>
#include <stdio.h>
#include <string.h>
char selectWinner(char board[3][3], char players[2]);
void printBoard(char board[3][3]);
int main(void)
{
printf("Hey, welcome to tic toc toe, rules are simple, there are three rows (1,2,3), and three cols (1,2,3) everytime we ask you for the input do select one of em between, a1-c3. \n");
@ghulamMustafaRaza
ghulamMustafaRaza / gist:511ed62d05c8065725db20c14c8c9c90
Created April 5, 2019 06:42
Udemy Details Scrapper JavaScript
var sections = new Array(...document.querySelectorAll('.ud-component--clp--curriculum>div')).filter(a => !a.className);
var more = document.querySelector('.section-container.section-container--more-sections')
more && more.click()
sections.map(section => {
let a = section.querySelector('a');
let lacturesC = section.querySelector('.lectures-container.collapse');
if (lacturesC.classList.contains('in')) a.click()
})
setTimeout(() => {
var results = sections.map(section => {
@ghulamMustafaRaza
ghulamMustafaRaza / initialJavascript_VsCodeStackSetup.sh
Last active January 19, 2019 09:41
INITIAL SETUP OF JAVASCRIPT, PYTHON, GIT, VSCODE, DOCKER, DOCKER-COMPOSE & GO-LANG DEVELOPMENT SETUP FOR DEBIAN BASED LINUX, eg. UBUNTU, DEEPIN, ELEMENTRY-OS, DEBIAN AND GNOME
echo "################# ADD NODE SOURSE ################"
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
echo "################# INSTALL MODULES ################"
sudo apt-get install -y nodejs python git >> /dev/null && echo "Successfully Installed MODULES" || echo "There was an error while installing MODULES"
echo "################# ADD CODE SOURSE ################"
sudo add-apt-repository -y "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" >> /dev/null
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EB3E94ADBE1229CF >> /dev/null
sudo apt update
echo "################# INSTALL VS-CODE ################"
sudo apt -y install code >> /dev/null && echo "Successfully Installed VS-CODE" || echo "There was an error while installing VS-CODE"