Skip to content

Instantly share code, notes, and snippets.

@pavelbier
pavelbier / sijf advanced
Created March 7, 2012 09:31
JAVASCRIPT: sijf with window and document
(function($,document,window){
})(jQuery,document,window);
@pavelbier
pavelbier / dabblet.css
Created March 13, 2012 10:16 — forked from machal/dabblet.css
Dabblet: CSS speech or tooltip bubble with box shadow
/**
* Dabblet: CSS speech or tooltip bubble with box shadow
* Author: Martin Michálek, twitter.com/machal
*/
.bubble {
width: 200px;
}
.bubble_head {
@pavelbier
pavelbier / dabblet.css
Created March 14, 2012 21:29
Twitter CSS3 icon
/**
* Twitter CSS3 icon
*/
div {
padding:20px
}
#myPhoto {
display:block;
/**
* source: http://jsfiddle.net/NPXfe/
*/
body {padding:40px; background-color: #ccc;}
input {
padding:10px 60px;
-webkit-border-radius: 25px;
-moz-border-radius: 25px;
border-radius: 25px;
/**
* source: http://inspectelement.com/tutorials/create-the-illusion-of-stacked-elements-with-css3-pseudo-elements/
*/
body {
background: #ccc;
padding:50px;
}
.stack { position: relative; z-index: 10; float:left }
@pavelbier
pavelbier / dabblet.css
Created April 25, 2012 11:56 — forked from kizu/dabblet.css
Scrolling shadows by @kizmarh - source: http://dabblet.com/gist/2432327/
/* Scrolling shadows by @kizmarh */
html {
background: #FFF;
}
.scrollbox {
position: relative;
z-index: 1;
@pavelbier
pavelbier / heroku.md
Created May 29, 2012 20:19 — forked from jaymcgavren/heroku.md
A Code TV screencast on getting started with Heroku

Description

Heroku is a simple way to publish your Rails app, and a powerful platform that will allow it to scale. In this episode, Jay McGavren gets you started with your first Heroku app.

Set up your Rails app

Isolate your gem environment

  • You WANT Rails to fail locally if a gem isn't in your Gemfile
/*
http://snook.ca/archives/html_and_css/handling-overflow
http://www.456bereastreet.com/archive/201206/using_media_queries_to_hide_css3_from_older_browsers/
*/
.fadeout-text {
overflow: hidden;
width: 130px;
/* Fallback solution for browsers that
<div id="chatbox">
<div id="header">
Name1, Name2, Name3<br />
Name4, Name5, Name 6<br />
</div>
<div id="content">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent sollicitudin viverra arcu non rhoncus. Aliquam erat volutpat. Pellentesque id sollicitudin justo. Nam id aliquet diam. Sed vel eros mi. Maecenas malesuada sapien eget mauris imperdiet ac tristique nunc varius. Donec sagittis diam tristique lacus ullamcorper rhoncus. Nullam et elit in odio laoreet dictum. Cras sit amet sem ligula. Donec nisi magna, vestibulum nec venenatis eget, dignissim non metus. Morbi malesuada auctor nisl rutrum commodo. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin elementum molestie volutpat. Cras id diam et sapien semper venenatis pellentesque vitae orci.
</div>
@pavelbier
pavelbier / gist:4953684
Created February 14, 2013 15:51
Simple CSS3 flip card
<div class="flipper">
<div class="front">Front</div>
<div class="back">Back</div>
</div>