Skip to content

Instantly share code, notes, and snippets.

View aitsalaheddine's full-sized avatar

Eddie Youssef aitsalaheddine

  • Moon
View GitHub Profile
@aitsalaheddine
aitsalaheddine / django_crash_course.MD
Created July 14, 2020 14:04 — forked from bradtraversy/django_crash_course.MD
Commands for Django 2.x Crash Course

Django Crash Course Commands

# Install pipenv
pip install pipenv
# Create Venv
pipenv shell
@aitsalaheddine
aitsalaheddine / pdocrash.php
Created January 7, 2018 21:16 — forked from bradtraversy/pdocrash.php
PDO & Prepared Statements Snippets
<?php
$host = 'localhost';
$user = 'root';
$password = '123456';
$dbname = 'pdoposts';
// Set DSN
$dsn = 'mysql:host='. $host .';dbname='. $dbname;
// Create a PDO instance
@aitsalaheddine
aitsalaheddine / css-media-queries-cheat-sheet.css
Created October 22, 2017 11:32 — forked from bartholomej/css-media-queries-cheat-sheet.css
CSS Media Query Cheat Sheet (with Foundation)
/*------------------------------------------
Responsive Grid Media Queries - 1280, 1024, 768, 480
1280-1024 - desktop (default grid)
1024-768 - tablet landscape
768-480 - tablet
480-less - phone landscape & smaller
--------------------------------------------*/
@media all and (min-width: 1024px) and (max-width: 1280px) { }
@media all and (min-width: 768px) and (max-width: 1024px) { }