Skip to content

Instantly share code, notes, and snippets.

@Niklas81
Niklas81 / nginx.conf
Created March 18, 2019 22:49 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@Niklas81
Niklas81 / express-stylus.html
Created October 10, 2015 21:51 — forked from bentruyman/express-stylus.html
Using Stylus Middleware with Express
<!doctype html>
<html lang="en">
<head>
<title>My Web Page</title>
<meta charset="utf-8">
<link href="/stylesheets/main.css" rel="stylesheet">
</head>
<body>
</body>
</html>
@Niklas81
Niklas81 / config
Last active October 10, 2015 11:34 — forked from kenshinx/config
Nginx C Module.
addon_name=ngx_http_echo_module
HTTP_MODULES="$HTTP_MODULES ngx_http_echo_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_echo_module.c"
@Niklas81
Niklas81 / gist:c23981f0c4c885fa0a2f
Last active August 29, 2015 14:26 — forked from StephanHoyer/gist:bddccd9e159828867d2a
Isomorphic applications with mithril

Isomorphic applications with mithril

I lately read a blog post about isomorphic javascript applications with ember. It seems pretty popular, a lot of people commented they badly wanted this feature.

Since I found this pretty interessting too since the beginning of my mithril work I already created this feature for my mithril-based application a time ago.

This blog post should give a overview, how to build a isomorphic mithril application.

TL;DR