Skip to content

Discover Gists

import sys
salesTotal = 0
oldKey = None
for line in sys.stdin:
data = line.strip().split("\t")
if len(data) != 2:
# Something has gone wrong. Skip this line.

Aeropress Cold Brew

Coffee Concentrate

  1. Get your Aeropress, add wet filter paper in non-inverted config over a cup
  2. Add enough coffee for a triple
  3. Add the funnel to the top of the Aeropress
  4. Fill the Aeropress and funnel with ice
  5. Leave it on a bench and wait
FROM ubuntu:14.04
MAINTAINER Yuanhsiang Cheng <>
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:kurento/kurento
RUN apt-get install -y wget
RUN wget -O - | apt-key add -
RUN apt-get update
RUN apt-get install -y kurento-media-server
template <typename T = double>
vector<T> linspace(T a, T b, size_t N) {
T h = (b - a) / static_cast<T>(N-1);
vector<T> xs(N);
typename vector<T>::iterator x;
T val;
for (x = xs.begin(), val = a; x != xs.end(); ++x, val += h)
*x = val;
return xs;
Screen resolutions
PICO-8 supports different undocumented videomodes that can be activated at runtime,
using poke(0x5F2C, X) where X is one of the following mode numbers:
0: 128x128, 0 pages
1: 64x128, 1 page
2: 128x64, 1 page
3: 64x64, 3 pages
export LC_ALL="en_US.UTF-8"
pod install
server {
listen 80;
root /var/www/;
error_log /var/log/;
access_log /var/log/;
location / {
try_files $uri @silverstripe;
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20150227
# From the root of your project run
# curl -O
# to download this file
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.
import os
from ctypes.util import find_library
from ctypes import CDLL, cast, c_char_p, c_int, c_size_t, c_void_p
_libcfile = find_library('c') or ''
libc = CDLL(_libcfile, use_errno=True)
_libopenccfile = os.environ.get('LIBOPENCC') or find_library('opencc')

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

Something went wrong with that request. Please try again.