Skip to content

Instantly share code, notes, and snippets.

@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 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
@pavelbier
pavelbier / ean_check.php
Last active October 7, 2023 17:35 — forked from DaveChild/ean_check.php
PHP Function to Validate EANs
<?php
/*
0346745008178
Should fail - checksum should be 9
5060096384137
Should pass
5020650002112