Skip to content

Instantly share code, notes, and snippets.

View Brickcaster's full-sized avatar

Mylon Brickcaster Brickcaster

View GitHub Profile
// ==UserScript==
// @name Evolve
// @namespace http://tampermonkey.net/
// @version 3.3.1.123
// @description try to take over the world!
// @downloadURL https://gist.github.com/Vollch/b1a5eec305558a48b7f4575d317d7dd1/raw/evolve_automation.user.js
// @updateURL https://gist.github.com/Vollch/b1a5eec305558a48b7f4575d317d7dd1/raw/evolve_automation.meta.js
// @author Fafnir
// @author TMVictor
// @author Vollch
@emptyrivers
emptyrivers / PocketWatch.lua
Last active March 18, 2018 03:52
task spreader for factorio
--[[
General Purpose Tick Spreader for Factorio. Completely agnostic about *what* it's doing,
and should be compatible with any project that can use some distribution of code across ticks.
Usage:
local PocketWatch = require"path.to.PocketWatch"
-- defines the PocketWatch class. The path is relative, as always with require.
PocketWatch.taskMap[id] = <function>
-- teach PocketWatch how to perform a task. Since functions with upvalues cannot be serialized currently, we can't simply drop function objects (especially closures) into the global table.
@amcgregor
amcgregor / chat.html
Created May 16, 2012 17:08
A fully functional pure-Nginx asynchronous pub/sub chat system.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Push Chat Example</title>
<style type="text/css" media="screen">
/* Reset */
* { outline: none; border: none; margin: 0; padding: 0; border: none; color: inherit; background-color: transparent; line-height: 1.3; font-size: 10pt; font-weight: normal; list-style: none; font-family: 'Lucida Grande', 'Verdana', sans-serif; cursor: default; }