Skip to content

Instantly share code, notes, and snippets.

analysis:
filter:
ngrams:
side: front
max_gram: 10
min_gram: 1
type: edgeNGram
analyzer:
full:
tokenizer: standard
require 'tire/rails/logger'
require 'tire/queries/more_like_this'
Tire::Configuration.logger(STDOUT, level: :debug) if Rails.env.development?
ElasticSearchAnalysis = YAML.load_file('config/elasticsearch_analysis.yml').with_indifferent_access
Motion::Project::App.setup do |app|
...
app.pods do
pod 'Reachability'
end
...
end
int randomNumber = arc4random_uniform(100000);
[self setParameterEncoding:AFJSONParameterEncoding];
[self setParameterEncoding:AFJSONParameterEncoding];
[NSApp activateIgnoringOtherApps:YES];
[NSApp activateIgnoringOtherApps:YES];
https://gist.github.com/5655414
NSString *extension = [[Paste singleton] retrieveExtension];