Skip to content

Instantly share code, notes, and snippets.

@jayzes
jayzes / app-template.rb
Last active August 29, 2015 14:00 — forked from gvarela/Rails-3-App-Template.rb
Rails template for the base Mode Set stack
gem 'unicorn'
gem 'airbrake'
gem 'newrelic_rpm'
gem 'haml-rails'
gem_group :development, :test do
gem 'spring-commands-rspec', require: false
gem 'rspec-rails', github: 'rspec/rspec-rails'
gem 'teaspoon', github: 'modeset/teaspoon'
gem 'dotenv-rails'
@jayzes
jayzes / .cook
Last active December 11, 2015 05:28 — forked from gvarela/.cook
{
"imagemagick": {"ghostscript": true},
"redis": {"launchd": true},
"rbenv": {"versions": ["1.9.3-p362"]},
"basic_brew": {
"formulae": [
"bash-completion",
"wget",
"android-sdk"
#! /usr/bin/ruby
require 'logger'
require 'fileutils'
require 'net/ftp'
require 'rubygems'
require 'mysql2'
# logging setup
log = Logger.new("/tmp/sql_load_log.log", 10, 1024000)

OOP

  • How comfortable are you with Object Oriented concepts and how they apply to any given language? (elaborate on OOP)
  • Can you explain inheritance and as it relates to extending classes or objects?
  • How about the concept of composition vs inheritance?
  • Can you explain the difference between Classical and Prototypal inheritance?
  • Are you familiar with Software Design Patterns?
  • Can you explain MVC?
  • Are there any other patterns you are familiar with and can you explain a use case?
<script>
//Get any tickets from view 22567988, outage Tickets that are currently open.
new Ajax.Request('/rules/22567988', {
method:'get',
asynchronous: true,
onSuccess: function(transport){
var obj = transport.responseText.evalJSON();
$('active-views').innerHTML = '<p>' + obj.length + ' current service outage.'
+ ' First outage is '
+ obj[0].subject + '</p>'
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "jayzeschin@0c2636a8-f7e4-4949-a4be-0920dbe5b3d6" ]
Nokogiri::XML(resource["4165/stories?limit=10&filter=state%3Astarted"].get).xpath('//story').collect do |story|
{
:name => story.at('name'),
:owner => story.at('owned_by'),
:created_at => story.at('created_at'),
:description => story.at('description'),
:url => story.at('url'),
:type => story.at('story_type')
:notes => story.at('notes').collect { |note| { :note => { :text => note.at('text').content, :created_at => note.at('noted_at').content } } } unless story.at('notes').nil?
# http://gist.github.com/10524
# Prevents autotest from running your entire test suite after fixing a failed test.
# Works with ZenTest 3.10.0
# Place this in your .autotest file and run autotest with RERUN=false to disable running the entire test suite
if ENV['RERUN'] == 'false'
require 'rubygems'
require 'active_support'