View ids
1057128757,1057128760,1057128767,1057131995,1057131996,1057132003,1057132017,1057132029,1057132045,1057132048,1057132065,1057132068,1057132079,1057132082,1057132087,1057132102,1057132109,1057132116,1057132117,1057132124,1057132126,1057132131,1057132137,1057132155,1057132156,1057132157,1057132158,1057132162,1057132167,1057132187,1057132188,1057132197,1057132208,1057132215,1057132235,1057132236,1057132243,1057132247,1057132251,1057132256,1057132263,1057132276,1057132283,1057132316,1057132321,1057132335,1057132354,1057132365,1057132374,1057132380,1057132381,1057132389,1057132404,1057132411,1057132423,1057132439,1057132441,1057132450,1057132454,1057132455,1057132481,1057132494,1057132497,1057132530,1057132565,1057132568,1057132573,1057132574,1057132575,1057132594,1057132601,1057132602,1057132619,1057132620,1057132627,1057132630,1057132647,1057132650,1057132653,1057132688,1057132698,1057132703,1057132710,1057132718,1057132724,1057132740,1057132742,1057132748,1057132760,1057142655,1057142656,1057142674,1057142679,1
View MyWife.js
/* eslint-disable func-names */
/* eslint quote-props: ["error", "consistent"]*/
/**
* This is an skill to learn how the Alexa API works. Created by Dan Mayer
* Built with the Amazon Alexa Skills nodejs skill development kit.
* Initially edited from the getFact example.
**/
'use strict';
View google_cloud
Yeah AWS Lambda / API gateway and such, I do think in terms of a no manage DB firebase looks better.
The concern I have with all of the serverless approaches comes down to scaling with a team:
* The deployment story is still a bit messy
* dev environment generally connects to shared resource
* testing is tricky / non existant
* debugging tools aren't up to speed.
* doesn't do well with dev/staging/prod completely forgetting as the team scales branch based dev
* less so on AWS to standard DBs, but firebase doesn't have a great story for data analysis yet.
View gist:f66782e13bd8c327a9fe
user_pass = "password1"
User.where(:email => 'danmayer@gmail.com').first.update(password: user_pass, password_confirmation: user_pass)
resource = User.find_by_email("danmayer@gmail.com")
bcrypt = BCrypt::Password.new(resource.encrypted_password)
password = BCrypt::Engine.hash_secret("#{user_pass}", bcrypt.salt)
valid = Devise.secure_compare(password, resource.encrypted_password)
#true
View gem_updated
GEM_NAME = "ls-secure_gmaps"
COMMIT_MESSAGE = "update to latest ls-secure_gmaps\n This makes sure all calls are made with the correct keys for our new contract"
APPS = ["browse", "browse-service", "escapes", "events", "preferences", "sponsors"]
CMDS = ["git pull origin master",
"bundle install",
"bundle exec rake",
"bundle update #{GEM_NAME}",
"bundle exec rake",
View covercheck.rb
def method_a
puts "hi"
end
def method_b
puts "boom goes the awesome"
end
method_a
View gist:2288a470c5d83616c489
#specific commiter
git log --numstat --pretty="%H" --author="dan.mayer" --since="2 years ago" app | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}
#team total
git log --numstat --pretty="%H" --since="2 years ago" app | awk 'NF==3 {plus+=$1; minus+=$2} END {printf("+%d, -%d\n", plus, minus)}
View gist:9477044
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
#!/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
$:.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