Skip to content

Instantly share code, notes, and snippets.

View MostafaNawara's full-sized avatar
:octocat:

Mostafa Nawara MostafaNawara

:octocat:
View GitHub Profile

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

Folder Structure

Motivations

  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
@MostafaNawara
MostafaNawara / JS Quiz Answer Explanations.md
Created November 18, 2018 03:44 — forked from MattSurabian/JS Quiz Answer Explanations.md
My attempt to explain the answers for David Shariff's feelings hurting JS quiz found at: davidshariff.com/js-quiz/

Are your feelings hurt?

If you rushed through David Shariff's JS Quiz or are just new to JS they might be. I know mine were. After I dried my eyes, I took the quiz again, this time very slowly trying to get at the meat behind each answer. Below is my attempt to explain each question's answer and offer some interesting permutations so that others can move beyond their hurt feelings and come out the other side better JS developers.

I initially thought I'd turn this into a blog post but think it's probably better as a gist.

Question #1

Don't over think it.

var foo = function foo() {
@MostafaNawara
MostafaNawara / webdev_online_resources.md
Created July 17, 2018 11:15 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@MostafaNawara
MostafaNawara / formspree.html
Created June 17, 2017 15:28 — forked from jannecederberg/formspree.html
JS: Ajax send forms using the most excellent Formspree » http://formspree.io #snippet
<form id="contact-form" action="//formspree.io/[email protected]" method="post">
<input type="text" name="Name" placeholder="Name" required>
<input type="email" name="Email" placeholder="Email" required>
<textarea name="Message" cols="30" rows="6" placeholder="Message" required></textarea>
<!-- CONFIG -->
<input class="is-hidden" type="text" name="_gotcha">
<input type="hidden" name="_subject" value="Subject">
<input type="hidden" name="_cc" value="[email protected]">
<!-- /CONFIG -->
<input class="submit" type="submit" value="Send">
@MostafaNawara
MostafaNawara / gitlab-ci.yml
Created April 14, 2017 15:31
Publish your create-react-app website via Gitlab CI. #gitlab #git #deploy #ci
image: node:6.5.0 # can be upgraded, depending on your node version used
pages:
stage: deploy
script:
- npm install
- npm run build
- rm -rf public
- mv build public
artifacts:
@MostafaNawara
MostafaNawara / browserify_for_webpack_users.markdown
Created February 7, 2017 11:51
browserify for webpack users

browserify for webpack users

There's been a strange explosion in misinformation about browserify recently, particularly in comparisons to webpack.

Generally speaking, most of this confusion stems from how webpack is more willing to pull features into its core to ease discoverability while browserify is more likely to push features out to userland instead.

I think that longer-term, separability has more benefits from a maintenance and

@MostafaNawara
MostafaNawara / index.html
Created December 26, 2016 10:56 — forked from dreyescat/index.html
Webpack config to expose bundle in a variable in the global context
<html>
<head>
</head>
<body>
<script src="lib/yourlib.js"></script>
<script>
window.onload = function () {
EntryPoint.run();
};
</script>
@MostafaNawara
MostafaNawara / gist:4b90351a914aed80130715909c80b1d6
Created December 18, 2016 01:20 — forked from learncodeacademy/gist:5f84705f2229f14d758d
Getting Started with Vagrant, SSH & Linux Server Administration
@MostafaNawara
MostafaNawara / gist:1206f744cac8f8230f9acb12bfb271e0
Created December 18, 2016 01:09 — forked from learncodeacademy/gist:5850f394342a5bfdbfa4
SSH Basics - Getting started with Linux Server Administration

###SSH into a remote machine###

ssh [email protected]
#or by ip address
ssh [email protected]

exit: exit ###Install Something###

#If it's a new server, update apt-get first thing