Skip to content

Instantly share code, notes, and snippets.

@kahole
kahole / index.html
Last active October 10, 2024 20:28
*scratch*.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>*scratch*</title>
<style>
body {
font-family: Hack, Menlo, Monaco, 'Droid Sans Mono', 'Courier New', monospace;
white-space: pre;
@bemasher
bemasher / Castle.xml
Created September 18, 2011 03:46
Example of parsing xml in golang.
<?xml version="1.0" encoding="UTF-8" ?>
<Data>
<Series>
<id>83462</id>
<Actors>|Nathan Fillion|Stana Katic|Molly C. Quinn|Jon Huertas|Seamus Dever|Tamala Jones|Susan Sullivan|Ruben Santiago-Hudson|Monet Mazur|</Actors>
<Airs_DayOfWeek>Monday</Airs_DayOfWeek>
<Airs_Time>10:00 PM</Airs_Time>
<ContentRating>TV-PG</ContentRating>
<FirstAired>2009-03-09</FirstAired>
<Genre>|Drama|</Genre>
@draxil
draxil / gist:b1738684f3f8bac9c230515c3d92c3b6
Last active June 15, 2016 05:25
Installing the perl JavaScript library on modern debian (well Jessie)
# Installing the perl JavaScript library on modern debian (well Jessie)
apt-get install wget cpanminus g++ make
wget http://ftp.mozilla.org/pub/js/js-1.7.0.tar.gz
tar -zxvf js-1.7.0.tar.gz
cd js/src
make BUILD_OPT=1 -f Makefile.ref
make BUILD_OPT=1 JS_DIST=/usr/local -f Makefile.ref export
JS_INC=/usr/local/include/:`pwd` JS_LIB=/usr/local/lib64/ cpanm JavaScript