Skip to content

Instantly share code, notes, and snippets.

Mike Mondragon monde

Block or report user

Report or block monde

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
@monde
monde / Gemfile
Last active Dec 14, 2015
A watcher script that pull URLs found in a Twitter feed and post them to the Capgun.io web thumb service for capture. Also, a Sintra App that will receive Capgun webhooks upon job completion and post the results to Tumblr.
View Gemfile
source 'http://rubygems.org'
gem 'tumblr_client'
gem 'oauth'
gem 'sinatra'
gem 'json'
gem 'twitter'
gem 'capgun'
gem 'activesupport'
@monde
monde / .gitignore
Last active Nov 3, 2018
Micro Gem to get an OAuth token and secret for the Tumblr.com API allowing an external application to post Tumblr.com blog.
View .gitignore
Gemfile.lock
@monde
monde / delayed_textfield_helper.js
Created Jan 16, 2013
An Ember.js TextField and that has been extended to react to a change event after a certain amount of time has passed without any other events having occurred within the TextField.
View delayed_textfield_helper.js
App.DelayedTextField = Ember.TextField.extend({
// FIXME
// double check that init in Ember.TextSupport / Ember.TextSupport
// isn't handling this.on("paste"...) and the internal variable is still
// this._elementValueDidChange
init: function() {
this.on("propertychange", this, this._elementValueDidChange);
this.on("keyup", this, this._elementValueDidChange);
this.on("input", this, this._elementValueDidChange);
@monde
monde / IRB.conf-default.txt
Last active Dec 10, 2015 — forked from anonymous/README.md
notes for IRB lightening talk at Seattle.rb
View IRB.conf-default.txt
% irb
irb(main):001:0> IRB.conf
=> CONF[:AP_NAME]="irb"
CONF[:AT_EXIT]=[]
CONF[:AUTO_INDENT]=false
CONF[:BACK_TRACE_LIMIT]=16
CONF[:CONTEXT_MODE]=3
CONF[:DEBUG_LEVEL]=1
CONF[:ECHO]=nil
CONF[:EVAL_HISTORY]=nil
View bakersdozen.json
[
"hello",
"world",
"teapot",
"hello",
"world",
"teapot",
"hello",
"world",
"teapot",
@monde
monde / capgun.coffee
Last active Oct 10, 2015
code examples accessing the capgun.io web thumbs and web captures service
View capgun.coffee
# Description
# Grab web screens/thumbs of URLs using the capgun.io service
#
# Requires a CapGun API token to be set in the env var HUBOT_CAPGUN_TOKEN
#
# Dependencies:
# none
#
# Configuration:
# HUBOT_CAPGUN_TOKEN
@monde
monde / honeybadger_resque.rb
Created Aug 4, 2012
Honeybadger based error reporting backend for Resque
View honeybadger_resque.rb
# for Rails place in config/initializers/honeybadger_resque.rb
%w( resque honeybadger ).each do |gem|
begin
require gem
rescue LoadError
raise "Can't find '#{gem}' gem. Please add it to your Gemfile or install it."
end
end
View gist:2468933
Loaded suite -e
Started
..............................................................................................................................................................EEEEE.EEEEE.E...........................
Finished in 18.287103042 seconds.
1) Error:
test_body_should_return_empty_when_there_is_no_user_text(TestPmSprintCom):
NoMethodError: undefined method `attr' for nil:NilClass
/home/mike/projects/libs/mms2r/lib/mms2r/media/sprint.rb:114:in `sprint_process_text'
/home/mike/projects/libs/mms2r/lib/mms2r/media/sprint.rb:60:in `process'
View god-father.json
{
"result": {
"method": "GET",
"occured_at": "2012-03-13T16:01:54-07:00",
"params": {
"query": "god father",
"path": "/logophile/search.json"
},
"response_time": 0.0032401084899902344,
"query_time": 0.0,
View development.sphinx.conf
indexer
{
mem_limit = 4096M
}
searchd
{
listen = 0.0.0.0:9312
log = /Users/mikemondragon/projects/hark/search-engine/spec/dummy/log/searchd.log
query_log = /Users/mikemondragon/projects/hark/search-engine/spec/dummy/log/searchd.query.log
You can’t perform that action at this time.