Skip to content

Instantly share code, notes, and snippets.

View juice49's full-sized avatar

Ash juice49

View GitHub Profile
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
require 'kml-parser.php';
$kml = file_get_contents('http://maps.google.co.uk/maps/ms?ie=UTF8&hl=en&t=h&authuser=0&msa=0&output=kml&msid=210156054229171524633.0004a10ec7664b0c32ce8');
$kmlParser = new KmlParser($kml);
@juice49
juice49 / Stylus CSS watcher
Created March 27, 2012 15:10
Recompiles CSS files when source stylus files are saved
var
fs = require('fs'),
exec = require('child_process').exec,
stylus = require('stylus');
var generateCSS = function() {
exec('stylus ./ --out ../../css/ --use nib/lib/nib', function(err, stdout, stderr) {
if(err) {
console.log(err);
}