- Email: [email protected]
- Twitter: @iHiD
- Website or Blog: http://www.ihid.co.uk
- Company: Various :)
This file contains hidden or 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
def self.create_from_gemfile_url ( url ) | |
return nil if url.nil? | |
if url.match(/^https:\/\/github.com\//) | |
url = url.gsub("https://github.com", "https://raw.github.com") | |
url = url.gsub("/blob/", "/") | |
end | |
uri = URI.parse( url ) | |
http = Net::HTTP.new(uri.host, uri.port) | |
if uri.port == 443 | |
http.use_ssl = true |
This file contains hidden or 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
<script> | |
setInterval(function() { | |
alert("I'm annoying!!!") | |
}, 50) | |
</script> |
This file contains hidden or 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
<h2><%= @blog_post.title %></h2> | |
<div id="content"><%= @blog_post.content %></div> |
This file contains hidden or 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
<h2>My First Blog Post</h2> | |
<div id="content"> | |
<script> | |
setInterval(function() { | |
alert("I'm annoying!!!") | |
}, 50) | |
</script> | |
</div> |
This file contains hidden or 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
<h2>My First Blog Post</h2> | |
<div id="content"> | |
<script> | |
setInterval(function() { | |
alert("I'm annoying!!!") | |
}, 50) | |
</script> | |
</div> |
This file contains hidden or 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
<h2><%= @blog_post.title %></h2> | |
<div id="content"><%= raw @blog_post.content %></div> |
This file contains hidden or 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
%h2= @user.name | |
=render "users/information" | |
=render "users/media_files" | |
=render "users/wall" |
This file contains hidden or 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
.bio= @user.bio | |
.university | |
.field University | |
.value= @user.university | |
.university_year | |
.field Year | |
.value= @user.university_year |
This file contains hidden or 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
=cache "user_#{@user.id}_#{@user.updated_at}_#{@user.media_files_updated_at}_#{@user.wall_updated_at}" do | |
%h2= @user.name | |
=cache "user_#{@user.id}_information_#{@user.updated_at}" do | |
=render "users/information" | |
=cache "user_#{@user.id}_media_files_#{@user.media_files_updated_at}" do | |
=render "users/media_files" | |
=cache "user_#{@user.id}_wall_#{@user.wall_updated_at}" do |