THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
Press minus + shift + s and return to chop/fold long lines!
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| // create an index with an analyzer "myindex" | |
| curl -X PUT localhost:9200/myindex -d ' | |
| { | |
| "settings" : {` | |
| "index":{ | |
| "number_of_replicas":0, | |
| "number_of_shards":1, | |
| "analysis":{ | |
| "analyzer":{ | |
| "first":{ | 
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <assert.h> | |
| #define BIN_SEARCH(dict, size, needle, res, prefix) \ | |
| do { \ | |
| assert((dict) != NULL); \ | |
| assert((size) > 0); \ | |
| int l = 0, r = (size)-1; \ | 
| from dateutil import parser | |
| import subprocess | |
| import os | |
| import re | |
| import sys | |
| import tempfile | |
| import numpy as np | |
| from pandas import * | 
| #!/usr/bin/env python | |
| # coding=utf8 | |
| # Copyright (C) 2010 Saúl ibarra Corretgé <[email protected]> | |
| # | |
| """ | |
| pydmesg: dmesg with human-readable timestamps | |
| """ |