Skip to content

Instantly share code, notes, and snippets.

@cburgmer
cburgmer / htmlparser.js
Created June 5, 2012 20:46
John Resig's JavasScript HTML parser with bug fixes for parsing <script> & <style>
/*
* HTML Parser By John Resig (ejohn.org)
* Original code by Erik Arvidsson, Mozilla Public License
* http://erik.eae.net/simplehtmlparser/simplehtmlparser.js
*
* // Use like so:
* HTMLParser(htmlString, {
* start: function(tag, attrs, unary) {},
* end: function(tag) {},
* chars: function(text) {},
@w0ng
w0ng / gist:5e0a431531670e05dc4f
Created September 28, 2014 12:00
hybrid.itermcolors
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Blue Component</key>
<real>0.13229149580001831</real>
<key>Green Component</key>
<real>0.12323731929063797</real>
@akiatoji
akiatoji / Clojure_on_RaspberryPi_OSX.md
Last active December 3, 2022 21:15
Running Clojure on Raspberry Pi with OS X

Clojure on Raspberry Pi with OS X

"Clojure running on Raspberry Pi" sounded so cool that I just had to give it a try.

Install JDK

  • Download ARM JDK from Oracle and instlal on Raspberry Pi
  • Change visudo to contain the following
@zaceno
zaceno / squirrel.js
Created August 29, 2018 11:17
Squirrel -- utility for defining transformations of deeply nested objects
/*
Squirrel helps you work with data held in deeply nested objects
It creates a mapping based on a given `path`. The mapping transforms a unary function `f`
into a function that applies f to the given path of a given object.
The path is given as a string, with each nesting level separated by a '.'
Some examples: