Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View thatrubylove's full-sized avatar

Jim OKelly thatrubylove

View GitHub Profile

"You've gotta start with the customer experience and work backwards to the technology. You can't start with the technology and try to figure out where you are going to try and sell it." ~ Steve Jobs

[
[ 2, [1, 4, 5, 7, 9], [5, 7, 9], [4, 9], 8, [1, 4, 9], 3, [1, 5, 7], [1, 5, 6, 7] ],
[ [1, 5, 9], 6, [5, 9], [2, 3, 9], 7, [1, 2, 3, 9], [1, 5], 8, 4 ],
[ [1, 8], 3, [7, 8], 5, 6, [1, 4], 2, [1, 7], 9 ],
[ [6, 9], [7, 9], [3, 6, 7, 9], 1, [2, 3, 9], 5, 4, [2, 3, 7, 9], 8 ],
[ [1, 5, 6, 8, 9], [1, 5, 7, 8, 9], [3, 5, 6, 7, 8, 9], [2, 3, 4, 8, 9], [2, 3, 9], [2, 3, 4, 8, 9], [1, 5, 6, 7, 9], [1, 2, 3, 5, 7, 9], [1, 2, 5, 6, 7] ],
[ 4, [1, 5, 8, 9], 2, 7, [3, 9], 6, [1, 5, 9], [1, 3, 5, 9], [1, 5] ],
[ 3, [5, 8, 9], 1, [2, 6, 8, 9], [2, 5, 9], 7, [5, 8, 9], 4, [2, 5] ],
[ 7, 2, [5, 8, 9], [3, 8, 9], 4, [3, 8, 9], [1, 5, 8, 9], 6, [1, 5] ],
[ [5, 6, 8, 9], [5, 8, 9], 4, [2, 6, 8, 9], 1, [2, 8, 9], [5, 7, 8, 9], [2, 5, 7, 9], 3 ]
@thatrubylove
thatrubylove / board-solved.rb
Last active December 9, 2015 08:55
Sudoku in Ruby
[
[4,8,3,9,2,1,6,5,7],
[9,6,7,3,4,5,8,2,1],
[2,5,1,8,7,6,4,9,3],
[5,4,8,1,3,2,9,7,6],
[7,2,9,5,6,4,1,3,8],
[1,3,6,7,9,8,2,4,5],
[3,7,2,6,0,9,5,1,4],
[8,1,4,2,5,3,7,6,9],
[6,9,5,4,1,7,3,8,2]
@thatrubylove
thatrubylove / rot13.rb
Last active October 15, 2015 20:03
ROT13 in Ruby
require 'byebug'
module Rot13
extend self
LOWERS = ("a".."z").to_a
UPPERS = ("A".."Z").to_a
def cypher(val)
val.to_s.chars.map do |ch|
<script src="flat_map.js"></script>
<script src="shuffle.js"></script>
<script src="card.js"></script>
<script src="deck.js"></script>
@thatrubylove
thatrubylove / readme.md
Last active August 29, 2015 14:23
Front End Bootcamp

Front End Bootcamp

Synopsis

This course will teach you everything (and quite a bit more!) to become a Jr. Front-end Developer at a company of your choice. It begins with a firm grounding in the basic language of the web, or as I call it the "structure of the web", HTML.

If HTML is the "structure" then surely CSS is the "look and feel". Without it, your HTML will not look good, and the display of your HTML will be at the whims of the browser (Chrome, IE) that you render it in. CSS tames the structure of HTML into a beautiful, visually appealing "web page"

I then move you onto Javascript, which is certainly where you start your first 'real programming'. I describe Javascript as the "usability" of a "web page" because too much and your page is not usable, not enough, and it could be more usable. With Javascript, you can make pages more 'interactive' and reduce 'page loads'.

@thatrubylove
thatrubylove / cards.md
Last active August 29, 2015 14:23
TDD Cards in 55 Using MiniTest

Step by Step - Intro to TDD using a deck of playing cards

  1. Create and edit a file called cards.rb

  2. 👇

require 'minitest/autorun'
require 'minitest/pride'
@thatrubylove
thatrubylove / readme.md
Created June 17, 2015 04:51
rubycasts apprenticeship osx setup

SETUP

This README is to help prepare your environment for developing with the Rubycasts team and guide you through setting up the rest of the tools that we use (i.e. Zoom).

Disclaimer: these instructions assume you are on OSX. If you have a different OS, you'll have to find alternate resources to get you through the various steps.

Preparing for setup

source 'https://rubygems.org'
ruby '2.1.3'
gem 'github-linguist'
gem 'html-pipeline'
gem 'github-markdown'
gem 'gemoji'
gem 'rinku'
gem 'pygments.rb'
@thatrubylove
thatrubylove / example.md
Created June 9, 2015 04:39
test gf markdown
module BingoGrader
  extend self

  def bingo?(board)
    bingo_via_row?(board)             ||
      bingo_via_row?(board.transpose) ||
      bingo_via_diag?(board)          ||
      bingo_via_diag?(board.reverse)
 end