Skip to content

Instantly share code, notes, and snippets.

View bluehawk27's full-sized avatar
:bowtie:
Loading...

Alberto Villacorta bluehawk27

:bowtie:
Loading...
View GitHub Profile
@jroehl
jroehl / RunRemoteMakeFile
Created February 16, 2018 10:26
Run a (remote) make file with arguments (make run [target] ...args)
.PHONY: run
SHELL := /bin/bash
# If the first argument is "run"
ifeq (run,$(firstword $(MAKECMDGOALS)))
# use the rest as arguments for "run"
RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
# turn them into blank targets
$(eval $(RUN_ARGS):;@:)
@stujo
stujo / oojs.md
Created November 4, 2014 17:00
OO Js

#Object Oriented Javascript TODO

#Overview

  • Creating Objects in JavaScript
    • new Object();
    • Object Literal Notation (Important)
    • Factory Function
  • Review JavaScript's this
  • More Creating Objects in JavaScript
  • Constructor Function
@stujo
stujo / exception-handling.md
Created October 23, 2014 16:21
Exceptions

#Exception Handling

#Bullet Points

  • raise or fail

#Demo / Live-code Overview

  • Custom StandardError class
  • raise makes RuntimeError with argument as message
@stujo
stujo / what-is-an-api.md
Created October 20, 2014 16:12
What Is An API?

#What is an API?

#Overview

  • What is an API?
  • Consumption: Omdbapi Example
  • Providing: PetWorld
  • Challenge Prep
  • Review

#What is an API?

@stujo
stujo / jasmine.md
Created October 17, 2014 17:18
Jasmine

#Due Monday

P 5-9 Due Monday along with P10 MVP Outline as Issue On Challenge P10 Presented on Friday

P7 Reviews

#Jasmine - Unit Testing for JavaScript

@stujo
stujo / oojs.md
Last active June 27, 2018 05:31
Object Oriented JavaScript

#Object Oriented Javascript

#Overview

  • Creating Objects in JavaScript
    • new Object();
    • Object Literal Notation (Important)
    • Factory Function
  • Review JavaScript's this
  • More Creating Objects in JavaScript
  • Constructor Function
@stujo
stujo / event-driven-programming.md
Last active August 29, 2015 14:07
JavaScript Event Driven Programming

#Event Driven Programming

#Overview

#First-class nature of functions

@stujo
stujo / Rakefile
Created October 2, 2014 16:03
Todo Helper Rakefile
desc 'Generate a migration timestamp'
task 'mtimestamp' do
puts Time.now.strftime("%Y%m%d%H%M%S")
end
desc 'Test Drive Code'
task "driver" do
puts "ADD #{`ruby todo.rb add Bake a delicious blueberry-glazed cheesecake`}"
puts "LIST #{`ruby todo.rb list`}"
@ryansobol
ryansobol / gist:5252653
Last active September 5, 2024 20:55
15 Questions to Ask During a Ruby Interview

Originally published in June 2008

When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.

To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.

What to expect

Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.