Skip to content

Instantly share code, notes, and snippets.

@adeleinr
adeleinr / Principles for building a great engineering culture
Last active July 27, 2023 20:09
Engineering Team and Management Principles
Principles for building a great engineering team culture by Adelein Ro
=======================================================================
0) The first line of code you should write for any feature is "What are we building, why are we building it, and why now?",
Eg start with a Tech design or a Spike
1) Dig deep and wide into the functional and non functional requirements of what you are building, disambiguate with product
or stakeholders, spell out what they have not been able to. Spill out details as part of tech design, get agreement
from product and stakeholders.
2) Engineers need to be able to find indirect or direct mentors, people they can learn best tech and
people practices from on a day to day basis.
3) Need challenging work that is transferable outside the company.
@adeleinr
adeleinr / gist:fe8728939664b9ff528c2f7952491145
Last active February 22, 2023 21:20
Entrepreneurship Principles
Working backwards
=================
Used Amazon among others, before creating a new feature or product create a press release for it. Iterate until it is well "Adopted" by the internal team.
Heading: Name the product in a way the reader (i.e., your target customers) will understand.
Subheading: Describe who the market for the product is and what benefit they get. One sentence only underneath the title.
Summary: Give a summary of the product and the benefit. Assume the reader will not read anything else so make this paragraph good.
@adeleinr
adeleinr / git_most_used_flows.txt
Last active December 18, 2020 16:27
Git - What I use every day
Flow 1 - Get ready to work on a repo
- Clone the repo you want to work on, you can get the repo name from the "Clone or download" green button in github
git clone git@github.com:globality-corp/euclides.git
- Checkout a shared branch from the repo, in this case "develop" is the branch. You can get the branch name from "branch" dropdown menu in github
git checkout develop
- Create a private branch to work on. You will merge this branch to develop when you are done with your work and it is reviewed.
git checkout -b feauture/your-branch-name
@adeleinr
adeleinr / PyCharm Tricks
Last active March 26, 2018 20:52
Things I use everything on pycharm
Select enterie cols to edit
===========================
Press Ctrl+Shift+A (Find Action feature) and type column. The first result is Column Selection Mode Alt+Shift+Insert
Search and Replace All
=======================
Command + R
Search
======
Try that autocloses of resources
=================================
try (
InputStream in = new FileInputStream(src);
OutputStream out = new FileOutputStream(dest))
{
// code
}
@adeleinr
adeleinr / Git Cheatsheet
Last active February 19, 2019 04:10 — forked from hofmannsven/README.md
Using Git
===============
Global Settings
-----------
Setup autocomplete tools: brew install git bash-completion
Then add this to ~/.bash_profile :
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
@adeleinr
adeleinr / Python Cheatsheet
Last active May 5, 2024 10:39
Python Cheetcheat
SORTING
=======
Returns a sorted list => sorted(l)
Sort in place ==> l.sort([2,3,7])
# Reverse sorting by y in an (x,y) tuple list in
sorted([(1,2),(2,3)], key=lambda tup: tup[0],reverse=True))
sample = [('Jack', 76), ('Beneth', 78), ('Cirus', 77), ('Faiz', 79)]
sample.sort(key=lambda a: a[1])
@adeleinr
adeleinr / Javascript Patterns
Last active December 28, 2015 13:09
Javascript Patterns
BINDING
=======
1) Avoiding nesting function by using scope support
You are passing 'this' so that the funcion has
access to this function's context
app.mavenRecipeCollection.getMavenRecipeByMeal(e.slug, e.mealChoice,
this.onSuccess_, this);
@adeleinr
adeleinr / CSS Cheatsheet
Last active December 16, 2015 10:58
CSS Cheatsheet
Center an image in a div
========================
.person .person-avatar-medium {
width: 80px;
height: 80px;
overflow: hidden;
background-color: #f2f2f0;
-webkit-border-radius: 100%;