Skip to content

Instantly share code, notes, and snippets.

View m7salam's full-sized avatar

Mohamed Hussein m7salam

View GitHub Profile
@bradtraversy
bradtraversy / myscript.sh
Last active February 22, 2026 04:29
Basic Shell Scripting
#! /bin/bash
# ECHO COMMAND
# echo Hello World!
# VARIABLES
# Uppercase by convention
# Letters, numbers, underscores
NAME="Bob"
# echo "My name is $NAME"
@TohidN
TohidN / import-imdb-dataset-pandas.py
Created April 10, 2017 15:19
Read IMDB's dataset files using Pandas as CSV files. this dataframes then can be merged using "movie" column.
import pandas as pd
dataset_path_movies = '/movies.list.gz'
dataset_path_keywords = '/keywords.list.gz'
dataset_path_genres = '/genres.list.gz'
dataset_path_ratings = '/ratings.list.gz'
print("Opening Keyword File.")
cols_keywords = ['movie', 'keyword']
@PurpleBooth
PurpleBooth / README-Template.md
Last active March 12, 2026 19:44
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@erickgnavar
erickgnavar / login_mixins
Created December 2, 2013 19:50
Django login required mixins
import json
from django.contrib.auth.decorators import login_required
from django.http import HttpResponse
from django.utils.decorators import method_decorator
class LoginRequiredMixin(object):
@method_decorator(login_required)
def dispatch(self, request, *args, **kwargs):
@zspine
zspine / countries.csv
Last active January 12, 2026 14:23
Country Code, ISO and Nationality ( Please use https://mledoze.github.io/countries/ )
CCA2 Name CCA3 Nationality
AD Andorra AND Andorran
AE United Arab Emirates ARE Emirati
AF Afghanistan AFG Afghan
AG Antigua and Barbuda ATG Antiguan, Barbudan
AI Anguilla AIA Anguillian
AL Albania ALB Albanian
AM Armenia ARM Armenian
AN Netherlands Antilles ANT Dutch
AO Angola AGO Angolan