Skip to content

Instantly share code, notes, and snippets.

View skalnik's full-sized avatar
🐈

Mike Skalnik skalnik

🐈
View GitHub Profile
@probablycorey
probablycorey / woman.sh
Last active November 10, 2016 02:50
Bash function that enhances the `man` command
# Add this to your .bashrc or .zshrc file for a modern and sophisticated
# alternative to `man`.
function woman() {
man -t $1 | open -f -a /Applications/Preview.app
}
@skalnik
skalnik / 0. The Formation.md
Last active August 29, 2015 14:19
Lightning Badgers
  • We ask Harbin about the note about Orcs
  • Harbin directs us to some sick sounding castle

Early Life

Slava was born in 1986 in Moscow, Russia—a red commie bastard if there ever was one. Like all Russians, he was born to an alcoholic soldier father, and a mother who would have been a famous prima ballerina, had the Cossacks not sacked the family's potato farm, requiring her to abandon her dreams and return home to help support them. Violin music in a minor key played at all times during this period, which may or may not have actually been only visible to the human eye in shades of grey.

As the family grew destitute, it became necessary for Slava to be taken in by the state. Unfortunately, Slava came into being at the same time as a program intended to breed the perfect Communist: no passion, no desires, only cold, cruel logic. The infant was placed in an experiment that substituted a nurturing parent for a mechanized need-meeting device. The young Slava's physical needs never went unmet, but unfortunately the experiment was deemed a failure when it was determined that while the ensuing

@tomelm
tomelm / gist:3955122
Created October 25, 2012 20:13
Chocolate Banana Bread Pudding for skalnik
Ingredients:
* 4 cups cubed french bread (get something nice, fresh and tasty!)
* 4 eggs
* 2 cups milk
* 1 cup white sugar
* 1 tbl spoon vanilla extract
* 2 bananas, sliced (optional)
* 1 cup semi-sweet chocolate chips (optional)
Steps:

A daily glance at what's happening in a high velocity codebase, thanks to @defunkt:

https://github.com/your/repo/compare/master@{yesterday}...master

Bookmark, share, and enjoy.

@skalnik
skalnik / demo.rb
Created February 21, 2012 14:35
Rails Workshop
class Demo
def initialize(&block)
instance_eval &block
end
def wait_for_enter
puts "Press enter to continue"
gets
end
@topfunky
topfunky / Cakefile
Created February 11, 2012 21:53
Run tasks sequentially in a Cakefile
task 'sample_task', sample_task = (callback) ->
doSomethingAndRunCallbackAfter callback
task 'setup', 'All: Import all data and run webserver', ->
tasks = [install, pre_populate, populate_couch, graph_sync, server]
runSequentially = (currentTask, otherTasks...) ->
currentTask ->
if otherTasks.length
runSequentially otherTasks...
runSequentially tasks...
@skalnik
skalnik / gist:1326207
Created October 30, 2011 18:10
Rails Workshop Developer Setup

Development Setup

So you want to be a Rails developer? Or at least mess around with it? Here's how I'd setup a new machine.

I use OS X, and as such can offer the best support for that environment. I have some limited experience developing on Linux, but since it's a similar to OS X I can offer some good help there.

I have no development experience in Windows, but I do know that it's not as well supported as Unix environments are. I may be able to offer some help here and there, but you're going to mainly be on your own if many issues arise.

OS X

#!/usr/bin/env ruby
master_commits = []
`git log --oneline --reverse master`.split("\n").each do |commit|
master_commits << commit[0..6]
end
presenting_commits = []
`git log --oneline --reverse presenting`.split("\n").each do |commit|
presenting_commits << commit[0..6]
require 'spec/runner/formatter/progress_bar_formatter'
class NescafeFormatter < Spec::Runner::Formatter::ProgressBarFormatter
def example_failed(example, counter, failure)
super
dump_failure(counter, failure)
end
end