Skip to content

Instantly share code, notes, and snippets.

@LuisSala
LuisSala / parser.md
Created June 8, 2023 01:28 — forked from comigor/parser.md
Cypher RPG System PDF Abilities Parser

Cypher RPG System PDF Abilities Parser

Although Cypher seems to be a nice RPG system, their shitty PDF layouting makes me sick when creating characters, specially when choosing their abilities. I was anxious going back and forth, needing to remember the page I was reading before. This is insane. Also, having the abilities parsed, it's way easier to create beautiful and automated character sheets on Google Docs and whatnot.

To run it, first install Xpdf command line tools and add to your $PATH.

Also, make sure you have the same official digital version (buy "Cypher System Rulebook, Revised Edition" here) of the PDF I do (or alter the variables and margin parameters).

$ md5sum Cypher_System_-_Revised_Edition.pdf
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
/*BEGIN RAPPORTIVE*/
body {
padding:0;
margin:0
@LuisSala
LuisSala / nodeserver.js
Created December 26, 2011 19:11 — forked from oscarrenalias/nodeserver.js
A very simple Node.js static file server, based on lightnode (https://github.com/ngspinners/lightnode)
//
// A very simple Node.js static file server and Ajax proxy, based on lightnode (https://github.com/ngspinners/lightnode)
//
// How to use:
// node nodeserver.js [/path/to/the/root/folder]
//
// Go to a URL such as http://localhost:8080/somefile.html where somefile.html exists in the current folder
// where node was started, or in the folder provided as a parameter
//
// For proxy requests, use http://localhost:8080/proxy/http://www.yourserver.com/ajaxCall to proxy your Ajax