How to implement a custom search for Hugo usig Gruntjs and Lunrjs.
Install the following tools:
| package main | |
| import ( | |
| "log" | |
| "syscall" | |
| "unsafe" | |
| ) | |
| var ( | |
| kernel32 = syscall.NewLazyDLL("kernel32.dll") |
| /* | |
| Simple HTTP proxy in Rust. Hard coded to proxy rust-lang.org. | |
| */ | |
| extern crate hyper; | |
| use std::io::Read; | |
| use hyper::Client; | |
| use hyper::header::Connection; |
| // ==UserScript== | |
| // @name Use Markdown, sometimes, in your HTML. | |
| // @author Paul Irish <http://paulirish.com/> | |
| // @link http://git.io/data-markdown | |
| // @match * | |
| // ==/UserScript== | |
| // If you're not using this as a userscript just delete from this line up. It's cool, homey. |
| ########################################################## | |
| # How to NEVER use Lambdas. An inneficient and yet educa-# | |
| # tonal guide to the proper misuse of the lambda constru-# | |
| # ct in Python 2.x. [DO NOT USE ANY OF THIS EVER] # | |
| # by: e000 (13/6/11) # | |
| ########################################################## | |
| ## Part 1. Basic LAMBDA Introduction ## | |
| # Well, it's worth diving straight into what lambdas are. | |
| # Lambdas are pretty much anonymous "one line" functions |
| """ | |
| A redis autocomplete example for multi-word phrases. | |
| Based on: | |
| Ruby original: http://gist.github.com/574044 | |
| Python original: https://gist.github.com/577852 | |
| See options below for usage | |
| Requires http://github.com/andymccurdy/redis-py/ |