This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins directory.
{% youtube oHg5SJYRHA0 %}
| MinimumHeap(A){ | |
| return A[1]; | |
| } | |
| ExtractMin(A){ | |
| if (heap-size[A] < 1) { | |
| then error ``heap underflow'' | |
| min <- A[1] | |
| A[1] <- A[heap-size[A]] | |
| heap-size[A] <- heap-size[A] - 1 |
| /** | |
| * Multi-level dropdown menus | |
| */ | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } |
This is a plugin meant for Jekyll.
Example use:
Easily embed a YouTube video. Just drop this file in your _plugins directory.
{% youtube oHg5SJYRHA0 %}
| from PIL import Image, ImageDraw | |
| import argparse | |
| import sys | |
| def get_colors(image_file, numcolors=10, resize=150): | |
| # Resize image to speed up processing | |
| img = Image.open(image_file) | |
| img = img.copy() | |
| img.thumbnail((resize, resize)) |