Skip to content

Instantly share code, notes, and snippets.

@vdavez
vdavez / config.yaml
Created June 6, 2014 14:55
legalmd-gist
levels:
- form: $x.
num: I
- form: $x.
num: A
- form: ($x)
num: 1
@vdavez
vdavez / config.yaml
Created June 10, 2014 02:23
legalmd-gist
levels:
- form: $x.
num: I
- form: $x.
num: A
- form: ($x)
num: 1
@vdavez
vdavez / config.yaml
Created June 10, 2014 16:22
legalmd-gist
levels:
- form: "Section $x."
num: 1
- form: "($x)"
num: a
- form: ($x)
num: 1
enactment_clause: "Be it ordained by the People of the City and County of San Francisco:"
@vdavez
vdavez / config.yaml
Created June 11, 2014 15:50 — forked from anonymous/config.yaml
legalmd-gist
levels:
- form: $x.
num: I
- form: $x.
num: A
- form: ($x)
num: 1
@vdavez
vdavez / app.js
Last active August 29, 2015 14:02
First pass at scotus-bookmarks
var servo = require('servojs')
var cheerio = require('cheerio')
var scotus_page = 'http://scotus-bookmarks.herokuapp.com/urls/'
var request = require('request')
var out = []
var statusArray = []
var fs = require('fs')
servo.getElementsFromPage(scotus_page, "tr", runThrElems)
@vdavez
vdavez / Vagrantfile
Created July 3, 2014 02:41
Authentication CentOS Vagrantfile
sudo yum update -y
sudo yum install -y gnupg2
cd ~
sudo yum install -y wget zlib-dev openssl-devel sqlite-devel bzip2-devel rng-tools
wget https://www.python.org/ftp/python/2.7.6/Python-2.7.6.tgz
tar -xzf ~/Python-2.7.6.tgz
cd Python-2.7.6
./configure --prefix=/usr/local
sudo make
@vdavez
vdavez / index.html
Last active August 29, 2015 14:03 — forked from anonymous/index.html
<!DOCTYPE html>
<html>
<head>
<title>Foo</title>
<meta charset='utf-8' />
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' />
<style type='text/css'>
body {
font-family: 'Ubuntu';
letter-spacing:-5px;
@vdavez
vdavez / config.yaml
Created July 24, 2014 19:15
legalmd-gist
levels:
- form: '###$x.'
num: I
- form: '$x.'
num: A
- form: ($x)
num: 1
@vdavez
vdavez / config.yaml
Created August 12, 2014 18:28
legalmd-gist
levels:
- form: '###$x.'
num: I
- form: '$x.'
num: A
- form: ($x)
num: 1
@vdavez
vdavez / sample.xml
Created September 8, 2014 01:51
An ordinance in USLM
<?xml version="1.0" encoding="UTF-8"?>
<ordinance
xmlns="http://example.com/"
xsi:schemaLocation="http://example.com/"
xml:base="http://example.com"
identifier="usml-cities/v1">
<meta>
<docNumber>Ordinance No</docNumber>
<property name="file number">File No</property>
</meta>