How to implement a custom search for Hugo usig Gruntjs and Lunrjs.
Install the following tools:
| /** | |
| * @author Juliano Castilho <[email protected]> | |
| */ | |
| var React = require('react'); | |
| var AffixWrapper = React.createClass({ | |
| /** | |
| * @type {Object} | |
| */ | |
| propTypes: { |
| import code; code.interact(local=dict(globals(), **locals())) |
| import { Component } from "React"; | |
| export var Enhance = ComposedComponent => class extends Component { | |
| constructor() { | |
| this.state = { data: null }; | |
| } | |
| componentDidMount() { | |
| this.setState({ data: 'Hello' }); | |
| } | |
| render() { |
| <!DOCTYPE html> | |
| <html> | |
| <meta charset="utf-8"> | |
| <head> | |
| <title>Question 1 - EquityZen</title> | |
| <!-- Latest compiled and minified CSS --> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"> | |
| <!-- Optional theme --> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap-theme.min.css"> |
| .factory("injectCSS", ['$q', '$http', 'MeasurementsService', function($q, $http, MeasurementsService){ | |
| var injectCSS = {}; | |
| var createLink = function(id, url) { | |
| var link = document.createElement('link'); | |
| link.id = id; | |
| link.rel = "stylesheet"; | |
| link.type = "text/css"; | |
| link.href = url; | |
| return link; |
| // Routing setup | |
| .config(function ($routeProvider) { | |
| $routeProvider | |
| .when('/home', { | |
| controller: 'homeCtrl', | |
| templateUrl: 'home.tpl.html' | |
| }).when('/users', { | |
| controller: 'usersCtrl', | |
| controllerAs: 'vm', | |
| templateUrl: 'users.tpl.html', |
by alexander white ©
| execute pathogen#infect() | |
| syntax on | |
| filetype plugin indent on | |
| call pathogen#helptags() | |
| filetype plugin on | |
| set omnifunc=syntaxcomplete#Complete | |
| colorscheme solarized | |
| " colorscheme pencil | |
| set background=dark |