Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am mikekellyio on github.
  • I am mikekellyio (https://keybase.io/mikekellyio) on keybase.
  • I have a public key whose fingerprint is 2F13 0042 D8DD 6997 3D19 3D38 D16F 6EEE 4196 7526

To claim this, I am signing this object:

require 'bundler/inline'
# true to install gems
gemfile false do
source 'https://rubygems.org'
gem 'faraday'
gem 'faraday_middleware'
end
conn = Faraday.new(:url => 'http://swapi.co/') do |faraday|
are vendor services and your
team might just not have the capital to pay for it.
Complex software licensing agreements may not meet your
needs for various reasons. Or maybe the amount of load
that your team will generate is just prohibited.
So what do we do in these cases? That's
really where my concept -- my ideas for experts will
frame buffer come into play. The frame buffer, more
known as XPF, and trying to use the two interchangeably
in this presentation, and it's not new technology, and
@mikekellyio
mikekellyio / gist:674671f80a0cf942d36d
Last active August 29, 2015 14:21
availity-day1-morning
it can do some things that you can't do with normal html. But just remember -- if Amazon can do without JavaScript, so can you. So this was from a post titled JavaScript is evil. A lot of designers think it's their god-given right to annoy the hell out of visitors with bulky JavaScript effects, so turning off JavaScript is almost a requirement when visiting some websites. It was true at the time. This is from stupid JavaScript security tricks. A little bit older, but still relevant. Blindly accepting a high level of security risk on the web by enabling JavaScript is as shaky as a ride on the Canadian space shuttle made of birch bark and gum. I'm Canadian, so this really resonated with me. Woo, represent. So this is what people were saying. JavaScript was not a thing. But despite the fact that it took years for Gmail to... Whoops. Uh-oh. My computer died. I'm going to have to plug in. Okay. I don't need internet. But... Sorry about that. So... Computers fail sometimes. Not only is the mobile web broken. Batter
@mikekellyio
mikekellyio / poltergeist_config.rb
Created March 14, 2014 16:12
Get open server port using Ruby
def find_open_port
server = TCPServer.new('127.0.0.1', 0)
@port ||= server.addr[1]
end
Capybara.server_port = find_open_port
Capybara.app_host = "http://localhost:%d" % Capybara.server_port
class C4Board
attr_attribute :board
attr_attribute :mover
BLACK = :black
RED = :red
EMPTY = nil
def initialize(state = C4Board.starting_board)
mover = :black
def AddCounterCache < ActiveRecord::Migration
def change
add_column :users, :posts_count, :integer
#Prime the pump!!!
User.find_each do |u|
u.update_attribute(:posts_count, u.posts.count)
end
end
end
def AddCounterCache < ActiveRecord::Migration
def change
add_column :users, :posts_count, :integer
end
end

Web Development Contract

Revised date: 5/20/2014

Between me, Mike Kelly and you, Katy McLaughlin

Summary:

I’ll always do my best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. I’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@mikekellyio
mikekellyio / index.html
Last active December 11, 2015 09:18 — forked from anonymous/index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Reusable Sparkline</title>
</head>
<body>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="sparkline.js"></script>