Skip to content

Instantly share code, notes, and snippets.

View mwawrusch's full-sized avatar

Martin Wawrusch mwawrusch

View GitHub Profile
helper-build-query
{"wildcard":{"displayName":"*"}}
✓ an empty query
{"filtered":{"query":{"bool":{"must":[{"match":{"displayName":"ama"}}]}}}}
✓ a query text query
{"filtered":{"query":{"bool":{"must":[{"match":{"displayName":"ama"}},{"match":{"displayName":"bank"}}]}}}}
✓ a query text with multiple strings query
{"filtered":{"query":{"bool":{"must":[{"match":{"displayName":"ama"}},{"match":{"displayName":"bank"}}]}}}}
✓ a query text with multiple strings query and excessive white space
{"filtered":{"query":{"bool":{"must":[{"match":{"displayName":"côte"}},{"match":{"displayName":"d’ivoire"}}]}}}}
/Users/mwawrusch/.rvm/gems/ruby-1.9.3-p362/gems/iron_core-1.0.1/lib/iron_core/iron_logger.rb:50:in `raise_exception': Error while remote building worker (IronCore::Error)
Successfully installed net-http-persistent-2.9.4
Successfully installed netrc-0.10.3
Successfully installed rest-3.0.6
Successfully installed iron_core-1.0.7
Successfully installed bundler-1.8.5
Successfully installed rubyzip-0.9.9
Successfully installed iron_worker_ng-1.3.0
7 gems installed
I, [2015-03-17T22:27:12.759629 #18] INFO -- IronWorkerNG: Found workerfile with path='send-event-reminder.worker'
class StoreFront
# Indexes
# StoreFront.ensure_index(:import_source)
include MongoMapper::Document
plugin MongoMapper::Plugins::Sluggable
STORE_OPERATOR_NAMES = %w[apple]
timestamps!
ul.as-selections li.as-selection-item a.as-close {
margin-left: 4px\9; /* Not liked by sass-convert */
margin-top: 0\9; /* Not liked by sass-convert */
}
module Models
module Extensions
module ColorScheme
extend ActiveSupport::Concern
included do
cattr_accessor :default_color_scheme
end
module InstanceMethods
@mwawrusch
mwawrusch / get_connections.json
Created May 8, 2011 15:28
Sample result for a connections get request in the tagli.st API.
{"total_count":464,"offset":0,"count":2,"collection":[{"id":"4dbfd2d5c2db191ea1000007","person_id":"4dbc73a4c2db1906540100c4","name":"xxxxx","small_image_url":"http://a1.twimg.com/profile_images/1271621577/apple-touch-icon_normal.png","image_url":"http://a1.twimg.com/profile_images/1271621577/apple-touch-icon_normal.png","is_placeholder_image":false,"description":"","tag_count":5},{"id":"4dbfd2d5c2db191ea1000005","person_id":"4dc02498c2db192295000197","name":"500 Startups","small_image_url":"http://a3.twimg.com/profile_images/1131036715/logo-vertical-black-background-small_normal.png","image_url":"http://a3.twimg.com/profile_images/1139336715/logo-vertical-black-background-small_normal.png","is_placeholder_image":false,"description":"","tag_count":0}],"api_status":{"request_id":""}}
@mwawrusch
mwawrusch / tag.json
Created May 8, 2011 17:14
Sample Tag result object for the tagli.st API
"id":"4dbfd21dc2db191ea1000004","name":"potential investor","small_image_url":"/images/tag_24x24.png","image_url":"/images/tag_50x50.png","is_placeholder_image":true,"description":null,"segments":[{"name":"potential"},{"name":"investor"}],"connections":[{"id":"4dbfd1dec2db191ea1000002"}]}
@mwawrusch
mwawrusch / user.json
Created May 8, 2011 14:12
Sample User result object for the tagli.st API.
{"user_name":"martin_sunset",
"image_url":"http://a2.twimg.com/profile_images/247413746/People_MartinWawrusch_Small_normal.jpg",
"is_placeholder_image":false,
"twitter_name":"martin_sunset",
"display_name":"Martin Wawrusch",
"profile_url":"http://tagli.st/martin_sunset",
"url":"http://api.tagli.st/v1/users/martin_sunset",
"api_status":{"request_id":"test"}}
@mwawrusch
mwawrusch / connection.json
Created May 8, 2011 15:24
Sample Connection result object for the tagli.st API.
{"id":"4dbfd2d5c2db191ea1000007","person_id":"4dbc73a4c2db1906540100c4","name":"xxxxx","small_image_url":"http://a1.twimg.com/profile_images/1271621577/apple-touch-icon_normal.png","image_url":"http://a1.twimg.com/profile_images/1271621577/apple-touch-icon_normal.png","is_placeholder_image":false,"description":"","tag_count":5}
@mwawrusch
mwawrusch / get_tags.json
Created May 8, 2011 17:16
Sample result for a get_tags request in the tagli.st api.
{"total_count":17,"offset":0,"count":2,"collection":[{"id":"4dbfd21dc2db191ea1000004","name":"what a cutie","small_image_url":"/images/tag_24x24.png","image_url":"/images/tag_50x50.png","is_placeholder_image":true,"description":null,"segments":[{"name":"what"},{"name":"cutie"}],"connections":[{"id":"4dbfd1dec2db191ea1000002"}]},{"id":"4dbfd2d5c2db191ea1000007","name":"really beautiful","small_image_url":"/images/tag_24x24.png","image_url":"/images/tag_50x50.png","is_placeholder_image":true,"description":null,"segments":[{"name":"really"},{"name":"beautiful"}],"connections":[{"id":"4dbfd2cdc2db191ea1000006"}]}],"api_status":{"request_id":""}}