Skip to content

Instantly share code, notes, and snippets.

View hou2zi0's full-sized avatar

猴子 hou2zi0

View GitHub Profile
@Fataho
Fataho / Main.java
Created January 25, 2017 13:05
Noise Tutorials: Tutorial 4 - 2D Perlin Noise Code Implementation
import javax.swing.SwingUtilities;
public class Main {
public static void main(String[] args){
SwingUtilities.invokeLater(new Runnable(){
public void run(){
new MainWindow();
}
});
}
}
@eevee
eevee / perlin.py
Last active May 29, 2025 13:08
Perlin noise in Python
"""Perlin noise implementation."""
# Licensed under ISC
from itertools import product
import math
import random
def smoothstep(t):
"""Smooth curve with a zero derivative at 0 and 1, making it useful for
interpolating.
@subfuzion
subfuzion / curl.md
Last active September 22, 2025 09:33
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@mplewis
mplewis / flask-uwsgi-nginx-primer.md
Last active August 3, 2025 16:54
Flask + uWSGI + nginx Primer. I've been having trouble with serving a Flask app via uWSGI and nginx, so I thought I'd put together some of the basics to help out others.

Flask + uWSGI + nginx Primer

I've been having trouble with serving a Flask app via uWSGI and nginx, so I thought I'd put together some of the basics to help out others.

How this shit works

  • Flask is managed by uWSGI.
  • uWSGI talks to nginx.