Skip to content

Instantly share code, notes, and snippets.

View max4kaps's full-sized avatar

Max Kapshtyk max4kaps

View GitHub Profile
@mrluanma
mrluanma / api.example.net.conf
Created September 9, 2014 08:27
cache POST request with Nginx
upstream api_example_net {
server api.example.net:4000;
keepalive 600;
}
proxy_cache_path /var/cache/nginx/tag levels=1:2 keys_zone=tag:10m inactive=1d max_size=10g;
server {
listen 80;
server_name api.example.net;
@cpbotha
cpbotha / dropshadow.js
Last active September 19, 2023 15:43
d3.js drop shadow example
// d3.js drop shadow example
// put together by http://charlbotha.com/
var items = [
{x : 50, y : 10},
{x : 100, y: 170},
{x : 320, y: 70}
];
// we can increase this, everything will scale up with us