Skip to content

Instantly share code, notes, and snippets.

View montaro's full-sized avatar
🎧
wired

Ahmed Refaey montaro

🎧
wired
View GitHub Profile
@wojteklu
wojteklu / clean_code.md
Last active November 15, 2024 07:19
Summary of 'Clean code' by Robert C. Martin

Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.


General rules

  1. Follow standard conventions.
  2. Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
  3. Boy scout rule. Leave the campground cleaner than you found it.
  4. Always find root cause. Always look for the root cause of a problem.

Design rules

@jaceklaskowski
jaceklaskowski / deployment-tool-ansible-puppet-chef-salt.md
Last active January 3, 2024 22:12
Choosing a deployment tool - ansible vs puppet vs chef vs salt

Requirements

  • no upfront installation/agents on remote/slave machines - ssh should be enough
  • application components should use third-party software, e.g. HDFS, Spark's cluster, deployed separately
  • configuration templating
  • environment requires/asserts, i.e. we need a JVM in a given version before doing deployment
  • deployment process run from Jenkins

Solution

@ikhattab
ikhattab / How to start as a Front-End Developer.md
Last active December 20, 2015 19:30
How to start as a Front-End Developer.md

##How to start as a Front-End Developer

I've been asked this question many times by friends/colleagues and never had the chance to answer it properly.

I believe it's not about how many things you need to know more than it's a process you should flow. also it's not all about learning you should practice skills you gained and sharpen them often.

So, I curated here what could work as a plan/resources for you to use:

HTML

It's about semantics here you should know how you can fully describe structure of data you are displaying and when to use different tags to describe what. This important for maintainability/performance of your code and also for search engine and screen readers.

@kevin-smets
kevin-smets / iterm2-solarized.md
Last active November 14, 2024 15:40
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@aemkei
aemkei / index.js
Created July 16, 2012 13:16
Obfuscate JS
http://www.jsfuck.com/
// RUN THIS IN JAVASCRIPT
([]+{}+[])[!!{}+![]]+([]+
{}+[])[!!{}+!![]]+(!{}+[]
)[!{}+![]]+([][{}]+[])[!{
}+![]]+(!{}+[])[![]+!!{}+
!!{}+!![]]+({}+{})[(!!{}+