Skip to content

Instantly share code, notes, and snippets.

View CEOehis's full-sized avatar
🏠
Working from home

Celestine Ekoh-Ordan CEOehis

🏠
Working from home
View GitHub Profile
@CEOehis
CEOehis / ultimate-ut-cheat-sheet.md
Created June 20, 2018 15:20 — forked from yoavniran/ultimate-ut-cheat-sheet.md
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai and Sinon

The Ultimate Unit Testing Cheat-sheet

For Mocha, Chai and Sinon

using mocha/chai/sinon for node.js unit-tests? check out my utility: mocha-stirrer to easily reuse test components and mock require dependencies


@CEOehis
CEOehis / about.md
Created September 2, 2018 13:46 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@CEOehis
CEOehis / about.md
Created September 2, 2018 13:46 — forked from blaix/about.md
Programming Achievements: How to Level Up as a Developer

Programming Achievements: How to Level Up as a Developer

  1. Select a particular experience to pursue.
  2. Pursue that experience to completion. (Achievement unlocked!)
  3. Reflect on that experience. Really soak it in. Maybe a blog post would be in order?
  4. Return to Step 1, this time selecting a new experience.

This gist is a fork of the gist from this blog post.

# git rebase syntax
git rebase <basebranch> <topicbranch>
{
"swagger": "2.0",
"info": {
"version": "1.0.0",
"title": "Authors Haven",
"description": "API documentation for Authors Haven application",
"license" : {
"name" : "MIT 2.0.0",
"url" : "https://thor-ah-staging.herokuapp.com"
}
@CEOehis
CEOehis / .gitignore
Created November 11, 2018 19:46 — forked from chichunchen/.gitignore
Git ignore binary files
# Ignore all
*
# Unignore all with extensions
!*.*
# Unignore all dirs
!*/
### Above combination will ignore all files without extension ###
@CEOehis
CEOehis / install_fonts.sh
Created December 10, 2018 15:42 — forked from jaredmcqueen/install_fonts.sh
install all fonts on brew caskroom fonts
brew cask install \
caskroom/fonts/font-3270-nerd-font \
caskroom/fonts/font-3270-nerd-font-mono \
caskroom/fonts/font-abel \
caskroom/fonts/font-aboriginal-sans \
caskroom/fonts/font-abril-fatface \
caskroom/fonts/font-acme \
caskroom/fonts/font-allura \
caskroom/fonts/font-anonymouspro-nerd-font \
caskroom/fonts/font-anonymouspro-nerd-font-mono \
brew cask install android-file-transfer
brew cask install
appcleaner
caffeine
cheatsheet
docker
doubletwist
flux
1password
spectacle
function getCurrentPosition() {
if (navigator.geolocation) {
return new Promise((resolve, reject) => {
navigator.geolocation.getCurrentPosition(resolve, reject);
});
} else {
return Promise.reject('geolocation is not available on this device');
}
}

Algorithmic Complexity

It is important to try as much as you can to get the order of complexity of your algorithms to be higher up the following heirachy than lower.

  • O(1): constant time
  • O(log n): logarithmic
  • O(n): linear
  • O(n log n): loglinear
  • O(n^C): polynomial
  • O(C^n): exponential