Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| #!/usr/bin/env python | |
| """An example of cursor dealing with prepared statements. | |
| A cursor can be used as a regular one, but has also a prepare() statement. If | |
| prepare() is called, execute() and executemany() can be used without query: in | |
| this case the parameters are passed to the prepared statement. The functions | |
| also execute the prepared statement if the query is the same prepared before. | |
| Prepared statements aren't automatically deallocated when the cursor is | |
| deleted, but are when the cursor is closed. For long-running sessions creating |
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)