require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html| layout | title | image | excerpt |
|---|---|---|---|
post |
Chatting on Twitter (1/2) |
/images/screenshot.png |
Can we embed a chat widget on <strong>Twitter</strong>? Yes, with few tricks and <strong>Pusher</strong> we can create a widget and chat with our Twitter friends. |
| layout | title | image | excerpt |
|---|---|---|---|
post |
Chatting on Twitter (1/2) |
/images/screenshot.png |
Can we embed a chat widget on <strong>Twitter</strong>? Yes, with few tricks and <strong>Pusher</strong> we can create a widget and chat with our Twitter friends. |
| layout | title | image | excerpt |
|---|---|---|---|
post |
Chatting on Twitter (1/2) |
/images/screenshot.png |
Can we embed a chat widget on <strong>Twitter</strong>? Yes, with few tricks and <strong>Pusher</strong> we can create a widget and chat with our Twitter friends. |
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
| source 'https://rubygems.org' | |
| gem 'sinatra' |
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
| require 'sinatra' | |
| get '/' do | |
| "I'm alive!" | |
| end |
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
| <!doctype html> | |
| <html> | |
| <head> | |
| <title> Profile page Example </title> | |
| <link rel="stylesheet" type="text/css" href="style.css"> | |
| </head> | |
| <body> | |
| <div class="header"> | |
| <img src="http://placekitten.com/250/250" /> | |
| <p> Hello, this the page of </p> |
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
| body { | |
| margin: 0; | |
| } | |
| h1, p { | |
| font-family: Georgia, Arial, cursive; | |
| } | |
| h1 { | |
| font-size:50px; | |
| margin-top:0em; | |
| margin-bottom:0.8em; |
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
| require 'sinatra' | |
| get '/' do | |
| erb :index | |
| end |
OlderNewer