Skip to content

Instantly share code, notes, and snippets.

View sweetlearn's full-sized avatar

Abdulwahed Mansour sweetlearn

View GitHub Profile
@sweetlearn
sweetlearn / md5_hash_decrypt.py
Created May 14, 2020 00:10 — forked from miodeqqq/md5_hash_decrypt.py
Python MD5 decrypt.
# -*- coding: utf-8 -*-
import hashlib
import sys
import time
# Using: ./hash.py hashcode
# For example: ./hash.py 9743a66f914cc249efca164485a19c5c
def timing(f):
@sweetlearn
sweetlearn / django_model_graph.sh
Created February 1, 2018 06:58 — forked from perrygeo/django_model_graph.sh
Generate UML diagram of django app models
apt-get install python-pygraphviz
pip install django-extensions
# add 'django_extensions' to INSTALLED_APPS in settings.py
python manage.py graph_models trees -o test.png
@sweetlearn
sweetlearn / repeatable_content.html
Created January 13, 2018 08:06 — forked from kshepp/repeatable_content.html
Django Header, Navbar, and Footer
<!-- This loads of all of files that you call below from your 'static' folder -->
{% load staticfiles %}
<!--The static folder consists of your bootstrap files (.css, .js, fonts, etc)-->
<!--When you load the static folders is calls all those folders in the static files without having to code each one in individually-->
<html>
<head>
<!--This is the meta information which is good for SEO-->
{% block head-meta %}
<meta charset="utf-8">
@sweetlearn
sweetlearn / first.py
Created February 16, 2017 05:41
python turtle example
#import turtle
import turtle
wn = turtle.Screen()
wn.bgcolor("red")
tess = turtle.Turtle()
tess.shape("turtle")
tess.color("blue")
tess.penup() # This is new
size = 30