Dan Mayer danmayer

View gist:9477044
1 2 3 4 5 6 7 8 9 10
http://www.wired.com/wiredenterprise/2013/04/developers-age/
http://www.linkedin.com/today/post/article/20130422020049-8451-the-tech-industry-s-darkest-secret-it-s-all-about-age
http://www.bloombergview.com/articles/2012-04-22/software-engineers-will-work-one-day-for-english-majors
http://heartmindcode.com/2013/08/16/loyalty-and-layoffs/
 
a counterpoint
http://coding-and-more.blogspot.com/2011/06/its-official-developers-get-better-with.html
 
a pair, article and a response
http://prog21.dadgum.com/154.html
View gist:8816670
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env ruby
 
require 'jenkins_api_client'
require 'ruby-debug'
 
CI_PROJECT_NAME = "server_responder"
 
@client = JenkinsApi::Client.new(:server_ip => 'localhost',
:server_port => '8888',
:username => 'somename',
View churn_swagger_client.rb
1 2 3 4 5 6 7 8 9 10
$:.unshift "#{File.dirname(__FILE__)}/lib"
 
require "swagger"
 
# Get request API endpoints
require "index_api"
require "project_name_api.rb"
require "project_path_api.rb"
 
# Post request endpoints
View gist:8610207
1 2 3 4 5 6 7 8 9 10
./bin/runscala.sh -DskipErrors com.wordnik.swagger.codegen.BasicRubyGenerator http://churn.picoappz.com/api-docs "key"
base path is http://churn.picoappz.com/api-docs
********* Failed to read swagger json!
Error: Operation - responseClass | missing required field
**** ignoring errors and continuing
swagger version: 1.2
basePath:
api version: 1.0
missing models: Set()
----------
View gist:7295057
1 2 3 4 5 6 7
Crepes with veggies: http://projects.washingtonpost.com/recipes/2013/07/10/ratatouille-tomato-crepes/
 
Corn cakes, if there is still any corn tomorrow: http://www.nytimes.com/recipes/1014967/sweet-corn-blini.html
 
Stuffed peppers: http://www.nytimes.com/recipes/1014968/feta-stuffed-peppers.html
 
Chili mac and cheese; http://www.gracelaced.com/2011/09/26/baked-green-chile-mac-and-cheese/
View tap_with_each.rb
1 2 3
# do this opposed to each_with_object or inject
# from http://phrogz.net/tap-vs-each_with_object
by_id = {}.tap{ |h| items.each{ |item| h[item.id] = item } }
View logstash config for util server
1 2 3 4 5 6 7 8 9 10
# logstash config
input {
syslog {
type => syslog
port => 514
}
}
output {
stdout { debug => true debug_format => "json"}
View nethttp_vs_restclient.rb
1 2 3 4 5 6 7 8 9 10
#!/usr/bin/env ruby
require 'rest_client'
require 'net/http'
require 'benchmark'
URL = 'https://www.livingsocial.com/deals/753290-tacos-and-margaritas-for-two-or-four'
time = Benchmark.realtime do
(1..100).each {
url = URI.parse(URL)
req = Net::HTTP::Get.new(url.path)
View gist:5087142
1 2 3
Facebook is one of the most feature-rich apps available for Android. With features like push notifications, news feed, and an embedded version of Facebook Messenger (a complete app in its own right) all working together in real-time, the complexity and volume of code creates technical challenges that few, if any, other Android developers face--especially on older versions of the platform. (Our latest apps support Android versions as old as Froyo--Android version 2.2--which is almost three years old.)
One of these challenges is related to the way Android's runtime engine, the Dalvik Virtual Machine, handles Java methods. Late last year we completed a major rebuild of our Android app (https://www.facebook.com/notes/facebook-engineering/under-the-hood-rebuilding-facebook-for-android/10151189598933920), which involved moving a lot of our code from JavaScript to Java, as well as using newer abstractions that encouraged large numbers of small methods (generally considered a good programming practice). Unfortuna
View gist:5078067
1 2
#when scripting against rvm with a terminal shell, you might need to source this to use RVM files etc, tip from LS chat room
source ~/.rvm/scripts/rvm
Something went wrong with that request. Please try again.