Skip to content

Instantly share code, notes, and snippets.

@ethode
ethode / 01-directory-structure.md
Created May 17, 2021 01:05 — forked from tracker1/01-directory-structure.md
Anatomy of a JavaScript/Node project.

Directory structure for JavaScript/Node Projects

While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.

Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.

Directories

  • lib/ is intended for code that can run as-is
  • src/ is intended for code that needs to be manipulated before it can be used
@ethode
ethode / .htaccess
Created March 13, 2020 14:07 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/

Keybase proof

I hereby claim:

  • I am ethode on github.
  • I am lightspeed7 (https://keybase.io/lightspeed7) on keybase.
  • I have a public key ASA_tSQyju44jREK3EOVe3xmYCENgZJh76QB5YOquKKqlQo

To claim this, I am signing this object:

@ethode
ethode / jcycles.info
Last active December 21, 2016 21:23 — forked from juampynr/mymodule.info
Drupal 7 Views 3 custom field handler
dependencies[] = ctools
; Views Handlers
files[] = views/jcycles_handler_handlername.inc