Skip to content

Instantly share code, notes, and snippets.

View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CircleCI Guest Writers Program</title>
<!-- CSS only -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
View algo.py
def max_profitability(prices):
max_profit = -1
initial_value = prices[0]
# O(N) - linear time complexity
for i in prices[1:]:
if initial_value > i:
initial_value = i
max_profit = (i - initial_value if (i - initial_value) > max_profit else max_profit)
@NdagiStanley
NdagiStanley / setup.cfg
Last active Dec 19, 2019 — forked from althonos/setup.cfg
A `setup.cfg` template for my Python projects
View setup.cfg
# https://gist.github.com/althonos/6914b896789d3f2078d1e6237642c35c
[metadata]
name = {name}
version = {version}
author = Martin Larralde
author-email = martin.larralde@ens-paris-saclay.fr
home-page = https://github.com/althonos/{name}
description = {description}
long-description = file: README.rst, CHANGELOG.rst
@NdagiStanley
NdagiStanley / homebrew-rvm.md
Created Oct 17, 2019 — forked from denji/homebrew-rvm.md
Homebrew + RVM > Awesome
View homebrew-rvm.md

The MBP is my development machine, so I needed all of my tools installed with the ability to update them with ease. In the past, I used MacPorts to take care of my MySQL, Memcached, and Ruby installions and it worked just fine. This time around however, I wanted something new and fun. Homebrew.

Homebrew is a new package manager for OS X. Unlike Fink or MacPorts, Homebrew integrates with the core operating system, reducing the number of extra libraries to install etc. Another neat feature is the ability to write software package recipes in Ruby, awesome.

Here are some raw installation instructions (clean system). I like to keep everything under user ownership to make life more enjoyable, say no to sudo.

You will need the latest version of xcode, you can get it here. After the installation is complete, you may continue.

sudo mkdir /usr/local
View .md

OpenLP Install steps

@NdagiStanley
NdagiStanley / .md
Last active Jan 23, 2019
Having Python2, Python3 and Javascript in your Jupyter notebook installation
View .md

Jupyter Install Steps