Skip to content

Instantly share code, notes, and snippets.

@rosario
rosario / nomefile.md
Created November 4, 2012 16:10
Descrizione della gist

Questo e' il titolo

require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html

link

@rosario
rosario / nomefile.md
Created November 4, 2012 16:19
Descrizione della gist

Questo e' il titolo

require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")

puts markdown.to_html

@rosario
rosario / nomefile.md
Created November 5, 2012 09:37
Descrizione della gist
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.

Can we embed a chat widget on Twitter? Yes, with few tricks and Pusher we can create a widget and chat with our Twitter friends.

@rosario
rosario / nomefile.md
Created November 5, 2012 09:40
Descrizione della gist
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.

Can we embed a chat widget on Twitter? Yes, with few tricks and Pusher we can create a widget and chat with our Twitter friends.

@rosario
rosario / nomefile.md
Created November 5, 2012 09:41
Descrizione della gist
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.

Can we embed a chat widget on Twitter? Yes, with few tricks and Pusher we can create a widget and chat with our Twitter friends.

@rosario
rosario / Gemfile
Created December 5, 2013 15:39
Gemfile
source 'https://rubygems.org'
gem 'sinatra'
@rosario
rosario / site.rb
Created December 5, 2013 15:40
Site file, version 1
require 'sinatra'
get '/' do
"I'm alive!"
end
@rosario
rosario / index.erb
Last active December 30, 2015 09:09
Index file
<!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>
@rosario
rosario / style.css
Created December 5, 2013 15:42
Style file
body {
margin: 0;
}
h1, p {
font-family: Georgia, Arial, cursive;
}
h1 {
font-size:50px;
margin-top:0em;
margin-bottom:0.8em;
@rosario
rosario / site.rb
Created December 5, 2013 15:42
Site file, using the index.erb
require 'sinatra'
get '/' do
erb :index
end