Skip to content

Instantly share code, notes, and snippets.

View rickbacci's full-sized avatar

Rick Bacci rickbacci

View GitHub Profile
class Player
def initialize
@warrior = 'warrior'
end
def play_turn(warrior)
move_forward
end

Mac OS X 10.10 Yosemite

Custom recipe to get OS X 10.10 Yosemite running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install. On average, I reinstall each computer from scratch every 6 months, and I do not perform upgrades between distros.

This keeps the system performing at top speeds, clean of trojans, spyware, and ensures that I maintain good organizational practices for my content and backups. I highly recommend this.

You are encouraged to fork this and modify it to your heart's content to match your own needs.

Install Software

require 'erb'
include ERB::Util
@items = ['foo', 'bar', 'baz']
weekday = Time.now.strftime('%A')
template = %Q{
<DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@rickbacci
rickbacci / experiments.md
Last active August 29, 2015 14:19
markdown experiments

a par same par

new par

em on one line continueing

h1

h2

1. Why do we refactor?
We refactor so we can clean up code, increase reusability, and remove 'code smells'
2. What's the difference between "refactoring" and "changing shit"?
When you refactor you are not changing what the code does. (i.e. implementing a new feature). "Changing shit" is for that or babies, depending on how you look at it.
3. What role do patterns play in refactoring?
@rickbacci
rickbacci / gist:e715cb81ac7bb2daad46
Created May 19, 2015 19:03
Ruby warrior - debugging and refactoring
Explain what rubywarrior is.
* gem version
* web version
Talk about my history(as pertains to rubywarrior)
* first meetup
* previous attempts
Why many don't complete it
* complexity
@rickbacci
rickbacci / merge_sort.rb
Created July 27, 2015 21:48
Merge sort
def merge_sort(array)
return array if array.length < 2
mid = array.length / 2
left = merge_sort(array[0, mid])
right = merge_sort(array[mid, array.length-mid])
merge_sorted_arrays left, right
end
def merge_sorted_arrays(array1, array2, merged_array=[])
@rickbacci
rickbacci / Trello_EMS.md
Last active August 29, 2015 14:26
Idea #1 for my personal project

Trello EMS

Pitch

Collaborate with ease. Multiple people can build work together thru Trello to create mass emails

Problem

Difficult for one person to generate content for a mass email. Blog posts, jobs, local information. This can be added by trusted collaborators.

@rickbacci
rickbacci / break_git.md
Last active August 29, 2015 14:26
Idea #2 for personal project

[BreakGit]

Pitch

Git is complex. Fixes for problems in one place. User built documentation and examples.

Problem

I merged, and my work dissappeared. What do I do? Who has the solution? Do I even understand it?

@rickbacci
rickbacci / foo.md
Last active August 29, 2015 14:26
Idea #3 for personal project

[FooBr]

Pitch

Work when you want. Help when you want it.

Problem

People often have small problems that they need fixed, or some quick advice. Setting up a meeting with a developer takes time. Conversely, it would be neat to 'work when you want to' kinda like Uber for programmers.