Skip to content

Instantly share code, notes, and snippets.

@Dynalon
Dynalon / gist:56c6a0fd6519bcc2fd7350a0008e8c34
Created January 24, 2020 09:55 — forked from mikhailov/gist:9639593
Nginx S3 Proxy with caching
events {
worker_connections 1024;
}
http {
default_type text/html;
access_log /dev/stdout;
sendfile on;
keepalive_timeout 65;
@Dynalon
Dynalon / jsx-render.tsx
Created January 7, 2016 21:23
Sample JSX to HTMLElement renderer in TypeScript
// Tiny JSX renderer in TypeScript inspired by plain-jxs: https://github.com/callumlocke/plain-jsx
// Babel would allow you to specify the factory function as special inline comment:
/** @jsx JSXrender */
let JSXrender = (tagName: string, attributes?: { [key: string]: any }, ...children: Array<HTMLElement |  string>): HTMLElement => {
if (!tagName || typeof tagName !== 'string')
throw new Error("tagName has to be defined, non-empty string");
'use strict';
/*
* A module for adding new a routing system Angular 1.
*/
angular.module('ngNewRouter', [])
.factory('$router', routerFactory)
.value('$routeParams', {})
.factory('$componentMapper', $componentMapperFactory)
.provider('$pipeline', pipelineProvider)
# This file is basically JSON but allowes comment lines that
# start with the # character. Additionally, keys need not to be
# enclosed by quotes.
# Besides those exceptions this file MUST be valid JSON or the
# program will fail.
# Rainy configuration
{
# the Url, containing IP address or hostname and port on which to listen
# if the wildcard "*" is used, we listen on all addresses
$.md.stage('postgimmick').subscribe(function(done) {
alert("here should go your code");
// don't forget to call done() when your code is finished!
done();
});
<iframe width="640" height="390" src="//www.youtube.com/embed/L-ObmMw0Os0?rel=0" frameborder="0" allowfullscreen></iframe>
/*
ColorBox Core Style:
The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto;}
#cboxTitle{margin:0;}
[![Jolly Jumper](http://www.appletons.ca/voximages/20131025JollyBillie.jpg "jump, jump, jump")]()
# Brand name
[Menu Item 1](item1.md)
* [SubMenu Item 1](subitem1.md)
* [SubMenu Item 2](subitem2.md)
- - - -
* [SubMenu Item 3](subitem3.md)
[Menu Item 2](item2.md)
# Your wiki name
[Home](home.md)
[About](about.md)
[Download](download.md)