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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<img src="https://someawscdn.cloudfront.net/image.png"> | |
<script> | |
setTimeout(function () { | |
var oReq = new XMLHttpRequest(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<img src="https://someawscdn.cloudfront.net/image.png"> | |
<script> | |
setTimeout(function () { | |
var oReq = new XMLHttpRequest(); |
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
unless Rails.env.development? | |
default_prompt = Pry::Prompt[:default] | |
env = Pry::Helpers::Text.red(Rails.env.upcase) | |
Pry.config.prompt = Pry::Prompt.new( | |
'custom', | |
'my custom prompt', | |
[ | |
proc{ |*args| "#{env} #{default_prompt.wait_proc.call(*args)}" }, | |
proc{ |*args| "#{env} #{default_prompt.incomplete_proc.call(*args)}" }, | |
], |
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
# config/initializers/pry.rb | |
# Show red environment name in pry prompt for non development environments | |
unless Rails.env.development? | |
old_prompt = Pry.config.prompt | |
env = Pry::Helpers::Text.red(Rails.env.upcase) | |
Pry.config.prompt = [ | |
proc {|*a| "#{env} #{old_prompt.first.call(*a)}"}, | |
proc {|*a| "#{env} #{old_prompt.second.call(*a)}"}, | |
] |
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
" http://erikzaadi.com/2012/03/19/auto-installing-vundle-from-your-vimrc/ | |
" Setting up Vundle - the vim plugin bundler | |
let iCanHazVundle=1 | |
let vundle_readme=expand('~/.vim/bundle/vundle/README.md') | |
if !filereadable(vundle_readme) | |
echo "Installing Vundle.." | |
echo "" | |
silent !mkdir -p ~/.vim/bundle | |
silent !git clone https://github.com/VundleVim/Vundle.vim ~/.vim/bundle/vundle | |
let iCanHazVundle=0 |