Here is a checklist to follow if you want maximum battery life -- for instance if you're about to get on a long plane flight.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Extend AbstractFloatSearchScript: | |
package com.example.elastic; | |
import org.elasticsearch.script.AbstractFloatSearchScript; | |
import static java.lang.Math.*; | |
public class MySearchScript extends AbstractFloatSearchScript { | |
@Override |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
co = "checkout" | |
ci = "commit" | |
unmerge = "reset --hard ORIG_HEAD" | |
track = "branch --track" | |
unstage = reset HEAD | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all |