This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
init: function(elevators, floors) { | |
var floorsWaiting = { | |
up: [], | |
down: [] | |
}; | |
var self = this; | |
var distance = function(num1, num2) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
init: function(elevators, floors) { | |
var floorsWaiting = { | |
up: [], | |
down: [] | |
}; | |
var self = this; | |
var distance = function(num1, num2) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROPS = %w{ | |
appearance | |
align-content | |
align-items | |
backface-visibility | |
background-size | |
border-radius | |
box-orient | |
box-shadow | |
box-sizing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var angular = require('angular'); | |
// Simple directive that prevents an event from propagating to | |
// up the dom tree. | |
// | |
// ex: | |
// <div ng-click='doSomething()'> | |
// <a stop-event='click'>Some link</a> | |
// </div> | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if student == :brave | |
puts "Griffindor!" | |
elsif student == :smart | |
puts "Ravenclaw!" | |
elsif student == :asshole | |
puts "Slytherin!" | |
else | |
puts "Shit... I don't know... Hufflepuff! ... I guess..." | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[33m8fa668c[m -[31m (HEAD, origin/master, origin/HEAD, master)[m fix landing spec [32m(4 minutes ago) [1;34m<Christian Schlensker>[m | |
[1mdiff --git a/spec/features/landing_spec.rb b/spec/features/landing_spec.rb[m | |
[1mindex 13a5cc5..167cdae 100644[m | |
[1m--- a/spec/features/landing_spec.rb[m | |
[1m+++ b/spec/features/landing_spec.rb[m | |
[36m@@ -42,7 +42,7 @@[m [mdescribe 'Course Landing Pages', :js do[m | |
[m | |
within container do[m | |
fill_in :email, with: email[m | |
[31m- click_on button[m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Be sure to run `pod spec lint KIF.podspec' to ensure this is a | |
# valid spec. | |
# | |
# Remove all comments before submitting the spec. | |
# | |
Pod::Spec.new do |s| | |
s.name = 'KIF' | |
s.version = '0.0.1' | |
s.license = 'MIT' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"Paste into your .vimrc | |
" for insert mode remap <c-l> to: | |
" Insert a hash rocket for ruby | |
" Insert a -> for php | |
function! SmartHash() | |
let ruby = match(expand("%"), '\(.rb\|.haml\)$') != -1 | |
let php = match(expand("%"), '.php') != -1 | |
if php |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV["RAILS_ENV"] ||= 'test' | |
require 'pry' | |
# Conditional Spork.prefork (this comment is needed to fool Spork's `bootstrapped?` check) | |
if /spork/i =~ $0 | |
require File.expand_path("../env_spork", __FILE__) | |
else | |
require File.expand_path("../env_base", __FILE__) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--type-set=mustache=.mustache | |
--type-set=css=.css,.scss,.less | |
--type-set=html=.html,.haml,.hamlc | |
--type-set=js=.js,.coffee |
OlderNewer