Skip to content

Instantly share code, notes, and snippets.

@louisnow
louisnow / nginx.conf
Created May 26, 2018 20:03 — forked from foxxyz/nginx.conf
Serve current directory via nginx
# Extremely basic development setup to serve the current directory at http://localhost:9001
# Start nginx in this directory with `nginx -p . -c nginx.conf`
# Stop nginx with `nginx -p . -s stop`
events {}
http {
# Serve files with correct mimetypes on OSX
# location may have to be adjusted depending on your OS and nginx install
include /usr/local/etc/nginx/mime.types;
@louisnow
louisnow / LICENSE
Created May 19, 2016 08:44
The MIT License (MIT)
MIT License
Copyright (c) 2016 Louis Christopher
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@louisnow
louisnow / risehack_week4.py
Last active May 22, 2016 05:45
Rise Hackathon Week 4 Challenge
# Author : Louis Christopher
# LICENSE : https://goo.gl/48c5PX
#
#
#
# Program to sort a string delimited by any character
# Advantage:
# - Highly portable, tested on Python 2.7 and 3.5
# - Highly customizable and easy to use.
# Instantiate the class with your own defaults
@louisnow
louisnow / ex-1.11.scm
Last active April 25, 2016 14:46
SICP solution for exercise 1.11
#lang sicp
;ex 1.11
;Read this to set up your development environment https://github.com/louis9171/SICP-Solutions
;Recursive
(define (fr n)
(if (< n 3)
n
(+ (fr (- n 1))
(* (fr (- n 2)) 2)
(* (fr (- n 3)) 3))))