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.
continue

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 <lyforever62@hotmail.com>
RUN apt-get install -y software-properties-common
RUN add-apt-repository ppa:kurento/kurento
RUN apt-get install -y wget
RUN wget -O - http://ubuntu.kurento.org/kurento.gpg.key | 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
# http://papaanton.com/setting-up-xcode-6-and-apple-server-4-0-for-continues-integration-with-cocoapods/
export LC_ALL="en_US.UTF-8"
cd YOUR_REPO_NAME_HERE
pod install
server {
listen 80;
server_name example.com;
root /var/www/example.com;
error_log /var/log/example.com/error.log;
access_log /var/log/example.com/access.log;
location / {
try_files $uri @silverstripe;
}
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20150227
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
# 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.so.6'
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.