From 3f4277fafe7a6b95358d7d627659e9fc23e7b15d Mon Sep 17 00:00:00 2001 From: qiisziilbash Date: Tue, 10 Dec 2019 12:13:04 -0700 Subject: [PATCH 1/3] django start project steps reordered, in order to install django in venv instead of /usr --- backend/django.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/django.py b/backend/django.py index ccb74eb..b485c1e 100644 --- a/backend/django.py +++ b/backend/django.py @@ -99,12 +99,12 @@ django-admin version # display the current django version # ***************************************************************************** -# 1. $ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py; python3 get-pip.py -# 2. $ pip install django -# 3. $ pip install virtualenv -# 4. $ mkdir django-projects -# 5. $ cd django-projects -# 6. $ virtualenv venv -# 7. $ source venv/bin/activate +# 1. $ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py; python3 get-pip.py +# 2. $ pip install virtualenv +# 3. $ mkdir django-projects +# 4. $ cd django-projects +# 5. $ virtualenv venv +# 6. $ source venv/bin/activate +# 7. $ pip install django # 8. $ django-admin startproject myproject # 9. $ python manage.py runserver From a0aa12efa7682727aa2414f8074918e79af78fc9 Mon Sep 17 00:00:00 2001 From: Kerollos Magdy Date: Thu, 12 Dec 2019 13:13:15 +0200 Subject: [PATCH 2/3] Fix a typo --- tools/vscode.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/vscode.md b/tools/vscode.md index da185c8..d68a786 100644 --- a/tools/vscode.md +++ b/tools/vscode.md @@ -4,7 +4,7 @@ ### HTML & CSS -- `CSScomb`: Codeing style formatter for CSS, Less, SCSS and Saas. +- `CSScomb`: Coding style formatter for CSS, Less, SCSS and Saas. - `Puglint`: Linter and style checker for pug. From e28a4a9cec370f30dd22e850b7c36d380f1907c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20St=C3=BCmmel?= <7893682+janstuemmel@users.noreply.github.com> Date: Tue, 21 Jan 2020 18:57:12 +0100 Subject: [PATCH 3/3] Fix php cheatsheet, for loop iterates over all values, not just n-1 values --- languages/php.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/languages/php.php b/languages/php.php index 572cf93..beb1291 100644 --- a/languages/php.php +++ b/languages/php.php @@ -24,7 +24,7 @@ foreach($arr as $key => $value) { } // For -for($i = 0; $i < count($arr) - 1; $i++) { +for($i = 0; $i < count($arr); $i++) { $key = $i; $value = $arr[$i]; } @@ -338,4 +338,4 @@ class ClassWithLogger * Use the LoggerAwareTrait in this class. */ use LoggerAwareTrait; -} \ No newline at end of file +}