Skip to content

Instantly share code, notes, and snippets.

View mwawrusch's full-sized avatar

Martin Wawrusch mwawrusch

View GitHub Profile
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 / 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_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 / 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":""}}
@mwawrusch
mwawrusch / get_users_object.json
Created May 9, 2011 06:34
Sample result for get /users/martin_sunset in 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 / coffeescript_twitter_jquery.coffee
Created May 18, 2011 22:18
Coffeescript implementation of a twitter jquery plugin
# Quick jquery plugin to display recent tweets
# (C) 2011 Martin Wawrusch (@martin_sunset , http://martinatsunset.com, https://github.com/mwawrusch)
#
# The juicy parts are from:
#
# http://www.simonwhatley.co.uk/ (Simon Whatley)
# https://github.com/jimeh (Jim Myhrberg)
#
# I just assembled them in coffeescript.
#