Skip to content

Instantly share code, notes, and snippets.

View schlunsen's full-sized avatar
🏠
Working from home

Rasmus Schlünsen schlunsen

🏠
Working from home
  • Barcelona - Spain
View GitHub Profile
@schlunsen
schlunsen / 3-cubes-in-3d-css-only.markdown
Created April 24, 2023 09:55
3 Cubes in 3D (CSS only)
@schlunsen
schlunsen / gpg cheat sheet.md
Last active April 16, 2022 20:54
GPG cheatcheat

GPG cheatsheet

Install

brew install gnupg

Generate keys

CSS Blend Mode Fire

While I was experimenting with SpriteKit fire particles in Xcode, I thought of how easy it would be to create something similar in CSS using mix-blend-mode. For this to perform as best as possible, I used orange-to-transparent radial gradients for each particle instead of blurring solid orange ones. Slightly blurring the non-moving parent div didn’t really cause a problem though.

A Pen by Jon Kantner on CodePen.

License.

@schlunsen
schlunsen / designer.html
Last active August 29, 2015 14:13
designer
<link rel="import" href="../notification-elements/notification-alert.html">
<link rel="import" href="../chart-js/chart-js.html">
<link rel="import" href="../google-map/google-map.html">
<link rel="import" href="../topeka-elements/category-icons.html">
<link rel="import" href="../core-icon/core-icon.html">
<polymer-element name="my-element">
<template>
<style>
@schlunsen
schlunsen / Django nginx conf
Created November 24, 2013 21:29
Nginx config for Django reverse proxy. Used in combination with gunicorn
server {
listen 80;
server_name example.com;
rewrite ^ https://$server_name$request_uri? permanent;
}
server {
server_name example.com
listen 0.0.0.0:443;
@schlunsen
schlunsen / Nginx reverse proxy
Created November 24, 2013 01:09
Config for setting up a reverse proxy in front of a nodejs socket.io server
# the IP(s) on which your node server is running. I chose port 3000.
upstream node {
server 127.0.0.1:40000;
}
# the nginx server instance
server {
listen 0.0.0.0:20000;
server_name example.com;
access_log /var/log/nginx/example.log;