Skip to content

Instantly share code, notes, and snippets.

@ahmadtech199
ahmadtech199 / git.md
Created August 16, 2020 07:01 — forked from etoxin/git.md
GIT Bash Commands

search (regex)

git grep "regex"

list all branches

git branch -a
@ahmadtech199
ahmadtech199 / python venv cheetSheet.md
Created April 22, 2020 13:30 — forked from alzaabi98/python venv cheetSheet.md
This Gist to help developers remember commands for creating and managing python virtual environments using venv

1. Create new environment

python -m venv projcetA_env

2. Activate environment

windows : Go inside your folder project that has projectA_venv

projectA_venv\Scripts\activate.bat

Mac

source projectA_venv/bin/activate

@alzaabi98
alzaabi98 / python venv cheetSheet.md
Last active May 18, 2020 03:08
This Gist to help developers remember commands for creating and managing python virtual environments using venv

1. Create new environment

python -m venv projcetA_env

2. Activate environment

windows : Go inside your folder project that has projectA_venv

projectA_venv\Scripts\activate.bat

Mac

source projectA_venv/bin/activate

@lmcneel
lmcneel / remove-node-modules.md
Last active April 21, 2024 19:39
How to remove node_modules after they have been added to a repo

How to remove node_modules

Create a .gitignore file

  1. Check for an existing .gitignore file in the project directory
ls -a
@joepie91
joepie91 / express-server-side-rendering.md
Last active February 20, 2024 20:52
Rendering pages server-side with Express (and Pug)

Terminology

  • View: Also called a "template", a file that contains markup (like HTML) and optionally additional instructions on how to generate snippets of HTML, such as text interpolation, loops, conditionals, includes, and so on.
  • View engine: Also called a "template library" or "templater", ie. a library that implements view functionality, and potentially also a custom language for specifying it (like Pug does).
  • HTML templater: A template library that's designed specifically for generating HTML. It understands document structure and thus can provide useful advanced tools like mixins, as well as more secure output escaping (since it can determine the right escaping approach from the context in which a value is used), but it also means that the templater is not useful for anything other than HTML.
  • String-based templater: A template library that implements templating logic, but that has no understanding of the content it is generating - it simply concatenates together strings, potenti
@tzmartin
tzmartin / ios.settings.schemes.md
Created January 13, 2016 18:27
iOS Settings URL Scheme List

Settings URL schemes:

Note: < i=OS 5.1 use prefs:. > 5.1 use app-settings:

  • app-settings:root=General&path=About
  • app-settings:root=General&path=ACCESSIBILITY
  • app-settings:root=AIRPLANE_MODE
  • app-settings:root=General&path=AUTOLOCK
  • app-settings:root=General&path=USAGE/CELLULAR_USAGE
  • app-settings:root=Brightness