Skip to content

Instantly share code, notes, and snippets.

View leafo's full-sized avatar
🐔
bock bock

leaf leafo

🐔
bock bock
View GitHub Profile
In order for a submission to have their average score fully count they must have a number of ratings equal to or greater
than the median number of ratings across all submissions.
The median is currently 8 ratings.
ratings | number_submissions
---------+--------------------
2 | 113
3 | 421
4 | 189

{ title: "Sub-product & DLC Redeem URLs" }

$index

When creating sub-product/DLCs on itch.io you can provide a redeem URL to allow people to claim what they've purchased on your own website. This will enable you to sell digital goods using itch.io's payment infrastructure for products that are offered on your own website or service.

Keybase proof

I hereby claim:

  • I am leafo on github.
  • I am leafo (https://keybase.io/leafo) on keybase.
  • I have a public key whose fingerprint is D5D7 6F75 1B4A A37D 6C7A 31D0 5426 01E3 8887 90A7

To claim this, I am signing this object:

syntax on
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#begin()
Plugin 'gmarik/vundle'
SELECT
$__time(dd),
coalesce((select sum(count) from keys2 where machine_id = md and time >= dd and time <= dd + $interval::"interval"), 0) as value,
'machine ' || md as metric
FROM
generate_series($__timeFrom() at time zone 'utc', $__timeTo() at time zone 'utc', $interval::"interval") dd,
generate_series(1,4) md
textbox = require "wibox.widget.textbox"
awful = require "awful"
naughty = require "naughty"
local selfwatch_text
make_selfwatch_textbox = (timeout=60) ->
return selfwatch_text if selfwatch_text
#!/bin/bash
set -e
rawdir="$1"
[ -z "$rawdir" ] && echo "missing dir" && exit
dir=$(cd "$rawdir" && pwd)
tmp=$(mktemp -d)
(
Backer Number Backer UID Backer Name Email Shipping Country Shipping Amount Reward Minimum Reward ID Pledge Amount Pledged At Rewards Sent? Pledged Status Notes
13 1 name1 email1@live.com US $0.00 USD $5.00 USD 2597818 $10.00 USD 2014/04/24, 05:37 collected
136 2 name2 email2@gmail.com US $0.00 USD $5.00 USD 2597818 $11.00 USD 2014/05/04, 19:42 collected
142 3 name3 email3@gmail.com US $0.00 USD $5.00 USD 2597818 $12.00 USD 2014/05/06, 14:40 collected
150 4 name4 email4@kickstarter.com US $0.00 USD $5.00 USD 2597818 $13.00 USD 2014/05/07, 19:35 collected
162 5 name5 email5@gmail.com US $0.00 USD $5.00 USD 2597818 $14.00 USD 2014/05/12, 12:41 collected
{
names: {"one", "two", "three"}
}
The names:
<ul>
$each{names, "name"}[[<li>name: $name</li>]]
</ul>
#!/bin/sh
function menu {
dmenu -i -l 20 -fn 'Terminus-16' $@
}
function refreshawesome {
echo 'require("leaf.status").refresh()' | awesome-client
}