Skip to content

Instantly share code, notes, and snippets.

Martin Wawrusch mwawrusch

Block or report user

Report or block mwawrusch

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mwawrusch
mwawrusch / coffeescript_twitter_jquery.js
Created May 18, 2011
Coffeescript implementation of a twitter jquery plugin compiled version
View coffeescript_twitter_jquery.js
/* DO NOT MODIFY. This file was compiled Wed, 18 May 2011 11:49:14 GMT from
* /Users/mwawrusch/Documents/triponadeal/app/scripts/jquery.recent-tweets.coffee
*/
(function() {
var $;
$ = jQuery;
$.fn.extend({
recentTweets: function(options) {
var opts, self;
View gist:1042106
Twitter.configure do |config|
# config.gateway = "http://#{self.apigee_twitter_api_endpoint}"
config.consumer_key = self.twitter_key
config.consumer_secret= self.twitter_secret
config.oauth_token = authentication.token
config.oauth_token_secret = authentication.secret
end
user.set_is_working! true, 1,"Retrieving followers and friends!",false
View update_auth_worker.rb
require 'simple_worker'
require 'hoptoad_notifier'
require 'devise'
require 'twitter'
require 'json'
require 'mongoid'
require 'devise/orm/mongoid'
require 'cancan'
require 'omniauth'
View referenced_app_image.rb
require 'referenced_image'
class ReferencedAppImage < ReferencedImage
include SimpleWorker::UsedInWorker
# field :carrierwave
mount_uploader :carrierwave, AppUploader
View referenced_image.rb
class ReferencedImage
include Mongoid::Document
include Mongoid::Timestamps
include SimpleWorker::UsedInWorker
IMAGE_TYPES = %w[screenshot artwork thumbnail]
@mwawrusch
mwawrusch / gist:1056043
Created Jun 30, 2011
simpleworkerbootup
View gist:1056043
Merged folders! {"lib/model_ext/"=>["/Users/mwawrusch/Documents/freshfugu2/lib/model_ext/change_loggable_model.rb", "/Users/mwawrusch/Documents/freshfugu2/lib/model_ext/color_scheme.rb", "/Users/mwawrusch/Documents/freshfugu2/lib/model_ext/followable_model.rb", "/Users/mwawrusch/Documents/freshfugu2/lib/model_ext/importable_model.rb", "/Users/mwawrusch/Documents/freshfugu2/lib/model_ext/slug_model.rb", "/Users/mwawrusch/Documents/freshfugu2/lib/model_ext/taggable.rb", "/Users/mwawrusch/Documents/freshfugu2/lib/model_ext/useable_model.rb", "/Users/mwawrusch/Documents/freshfugu2/lib/model_ext/viewcountable_model.rb", "/Users/mwawrusch/Documents/freshfugu2/lib/model_ext/voteable_model.rb"]}
Merged folders! {"lib/model_ext/"=>["/Users/mwawrusch/Documents/freshfugu2/lib/model_ext/change_loggable_model.rb", "/Users/mwawrusch/Documents/freshfugu2/lib/model_ext/color_scheme.rb", "/Users/mwawrusch/Documents/freshfugu2/lib/model_ext/followable_model.rb", "/Users/mwawrusch/Documents/freshfugu2/lib/model_ext/importable_m
View BigMess.rb
# Owner (non embedded)
# Represents a single destination (can be country,...)
class Destination
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Slug
include SimpleWorker::UsedInWorker
View scottyapp-info-response.json
{"name":"scottyapp","canonicalUrl":"https://api.scottyapp.com/v1","version":1}
View scottyapp-organizations-request.json
curl https://api.scottyapp.com/v1/organizations \
-H "Authorization: OAuth 22041c80355ec10b82d8aebcd2f8debd0b77b6ff54567fd4e285a722b1ef1e7a"
View scottyapp-organizations-response.json
{"total_count":2,"request_id":"","offset":0,"count":30,"collection":[{"_id":"4ea48bafc2db196b81000001","description":"hjghjghj\r\n","name":"martin_sunset","slug":"martin_sunset"},{"_id":"4ea900b4c2db191749000004","description":null,"name":"ohmyg","slug":"ohmyg"}]}
You can’t perform that action at this time.