How to implement a custom search for Hugo usig Gruntjs and Lunrjs.
Install the following tools:
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>MemeMaker-Simple</title> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> | |
| <meta name="mobile-web-app-capable" content="yes"> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <style> |
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:orientation="vertical" | |
| android:paddingBottom="@dimen/activity_vertical_margin" | |
| android:paddingLeft="@dimen/activity_horizontal_margin" | |
| android:paddingRight="@dimen/activity_horizontal_margin" | |
| android:paddingTop="@dimen/activity_vertical_margin" | |
| tools:context=".MainActivity"> |
| private String createCalendarEventReminder(String eventName, String location, int minutesAway) { | |
| String reminder = "You have an upcoming event in " + minutesAway + " minutes."; | |
| reminder = reminder + " It is " + eventName + " held at " + location + "."; | |
| return reminder; | |
| } |
| /** | |
| * Calculates the price of the order based on the current quantity. | |
| * | |
| * @return the price | |
| */ | |
| private int calculate price(int quantity { | |
| int price = quantity * 5; | |
| return price; | |
| } |
| /** | |
| * Displays text to the user. | |
| */ | |
| public class TextView extends View { | |
| // String value | |
| private String mText; | |
| // Text color of the text | |
| private int mTextColor; |
| package com.example.android.menu; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.view.View; | |
| public class MainActivity extends AppCompatActivity { | |
| @Override |
Line listeners
SHORT .. line listeners:
root@83d5eeeb3086:/opt/graphite/conf# grep -B1 LINE_RECEIVER carbon.conf
LINE_RECEIVER_INTERFACE = 127.0.0.1
LINE_RECEIVER_PORT = 2003
--