Skip to content

Instantly share code, notes, and snippets.

View babakbandpey's full-sized avatar

Babak Bandpey babakbandpey

View GitHub Profile
@bradtraversy
bradtraversy / vsc_js_snippets.json
Last active February 13, 2026 09:02
VSCode JavaScript Snippets
{
"Console Log": {
"prefix": "cl",
"body": "console.log($1);",
"description": "Console Log"
},
"Named Function": {
"prefix": "nfn",
"body": ["function ${1:functionName}($2) {", " $3", "}"],
"description": "Named Function"
@tulik
tulik / .htaccess
Created May 18, 2017 12:36
Symfony: htaccess to hide app.php or app_dev.php
DirectoryIndex app.php
#DirectoryIndex app_dev.php
<IfModule mod_rewrite.c>
RewriteEngine On
# Redirect to URI without front controller to prevent duplicate content
# (with and without `/app.php`). Only do this redirect on the initial
# rewrite by Apache and not on subsequent cycles. Otherwise we would get an
# endless redirect loop (request -> rewrite to front controller ->