Skip to content

Instantly share code, notes, and snippets.

View leon-sleepinglion's full-sized avatar
🏡
Work From Home

Leon Wee leon-sleepinglion

🏡
Work From Home
View GitHub Profile
@leon-sleepinglion
leon-sleepinglion / compound_interest_calculator.py
Created March 16, 2018 14:39
Coding for Economist Minds - Week 1
#-------------------------------------------------------------------
# This is a compound interest calculator, along with some challenge
# Written by Leon Wee, March 2018.
# Anyone may freely copy or modify this program.
#-------------------------------------------------------------------
# C = P[(1+r)^n - 1]
# Where:
# C = the compound interest
# P = the principal investment amount (the initial deposit or loan amount)
from flask import Flask
from flask_restful import Api, Resource, reqparse
app = Flask(__name__)
api = Api(app)
users = [
{
"name": "Nicholas",
"age": 42,
@leon-sleepinglion
leon-sleepinglion / index.html
Last active February 4, 2017 10:29
Steve Jobs Profile_Free Code Camp Tutorial
<div class="container-fluid">
<h1 class="text-center" style="font-size:400%">Steve Jobs</h1>
<h3 class="text-center"><i>The man in the machine.</i></h3>
<div>
<img class="animated pulse img-rounded img-responsive" src="http://www.heyuguys.com/images/2015/11/steve-jobs-the-man-in-the-machin.jpg" style="height:600px;" alt="Steve jobs sitting"></img>
<p class="text-center">A still from the trailer of Steve Jobs: Man in the Machine</p>
</div>
<div>
<h2>Synopsis</h2>
<p class="synopsis">In his signature black turtleneck and blue jeans, shrouded in shadows below a milky apple, Steve Jobs' image was ubiquitous. But who was the man on the stage? What accounted for the grief of so many across the world when he died? From Oscar-winning