Skip to content

Instantly share code, notes, and snippets.

@mx4492
mx4492 / elasticsearch-restclient
Created November 21, 2014 10:27
Using Emacs Restclient Mode to explore the Elasticsearch REST API
# Using Emacs Restclient Mode to explore the Elasticsearch REST API
# http://www.elasticsearch.org/guide/en/elasticsearch/reference/
:es = http://127.0.0.1:9200
# Cluster Health
GET :es/_cat/health?v
# List of nodes
@mx4492
mx4492 / recursive-blocks.m
Last active April 13, 2022 16:21
Recursive Blocks in Objective C (under ARC)
#include <stdio.h>
/**
This only works if the block in question is called synchronously.
*/
void try0() {
typedef void(^RecursiveBlock)();
__block int i = 5;