Skip to content

Instantly share code, notes, and snippets.

@namieluss
namieluss / python-pillow-image-add-border.py
Created March 16, 2020 05:36
Add Borders to Images using Python Pillow
from PIL import Image, ImageOps
# open image
img = Image.open("test_image.jpg")
# border color
color = "green"
# top, right, bottom, left
border = (20, 10, 20, 10)
# http://names.mooseroots.com/stories/5165/most-popular-gender-neutral-names
Avery
Riley
Peyton
Logan
Taylor
Ryan
Jordan
Cameron
@bishboria
bishboria / springer-free-maths-books.md
Last active October 3, 2024 09:17
Springer made a bunch of books available for free, these were the direct links
@jchris
jchris / detuned-wavepot-verge.js
Created June 17, 2014 19:07
changed some ints to floats.
/*!
*
* stagas - on the verge (tech mix)
*
*/
var bpm = 125;
var tuning = 440;
var transpose = 12;
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active November 10, 2024 03:45
A badass list of frontend development resources I collected over time.
@willurd
willurd / web-servers.md
Last active November 13, 2024 13:44
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@panuta
panuta / gist:3075882
Last active May 7, 2024 13:33
How to setup Django server with virtualenv on Ubuntu Server 12.04

Fix locale problem

Open file /etc/default/locale to add or change LC_ALL to the following

LC_ALL="en_US.UTF-8"

Then logout and login again.

Install necessary packages