Skip to content

Instantly share code, notes, and snippets.

View kturney's full-sized avatar

Kyle Turney kturney

  • Toyota Connected
  • Dallas, TX
View GitHub Profile

Keybase proof

I hereby claim:

  • I am kturney on github.
  • I am kturney (https://keybase.io/kturney) on keybase.
  • I have a public key ASDRPj4vazre1-h4ov9EbGg9VS4AkkZ4sesF0cF24E42aAo

To claim this, I am signing this object:

@kturney
kturney / .ember-cli
Last active July 21, 2017 16:14
ember-simple-auth setup for username/password cookie auth
{
/**
Ember CLI sends analytics information by default. The data is completely
anonymous, but there are times when you might want to disable this behavior.
Setting `disableAnalytics` to true will prevent any data from being sent.
*/
"disableAnalytics": false,
// Use SSL for development server by default
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
this._super(...arguments);
this.func = () => {};
this.func.aProp = 'this is a property on a function';
}
@mixin gradient($from, $to) {
/* fallback/image non-cover color */
background-color: $from;
/* Firefox 3.6+ */
background-image: -moz-linear-gradient($from, $to);
/* Safari 4+, Chrome 1+ */
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from($from), to($to));
@kturney
kturney / Ch 1- Welcome to Ruby.md
Last active December 23, 2015 02:09
Notes on Ruby from [Mr. Neighborly's Humble Little Ruby Book](http://www.humblelittlerubybook.com/book/html/)

In Ruby, EVERYTHING that will be manipulated is an object

Types

  • All types in Ruby originate from the Object class
  • Strings
    • sequences of bytes that represent a sequence of characters
    • String literals may be created using either single quotes or double quotes
    • Single quotes are not interpolated and may only contain escapes for the single quote and backslash
    • Single quoted string literals are slightly more performant
  • Double quoted string literals offer far more escape sequences for interpolation
@kturney
kturney / untapped.rb
Last active December 21, 2015 14:59
A Ruby script to help make a list of all the beers at Untapped Fest Dallas 2013
require 'nokogiri'
require 'open-uri'
doc = Nokogiri::HTML(open('http://dallasbrewscene.com/brewlist.html'))
#File.open("/home/kyle/Downloads/untapped.html", "w") { |io| io.write(doc) }
#breweries = doc.css('div#accordion h4').map { |e| e.text }
#beers = doc.css('div#accordion p').map { |e| e.text.split(', ') }
#tapList = Hash[breweries.zip(beers)]
@kturney
kturney / Autoscaling Java
Last active December 17, 2015 08:39
Google I/O Notes - 2013
Speakers: Matt Stephenson, Ludovic Champenois