A Pen by Paulo Coelho Alves on CodePen.
This file contains 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
/* | |
This code will click like's currently loaded | |
on a facebook page. It's likely in the future | |
the name of the classes may change. | |
Be careful though, if you do too many at once | |
you'll get a warning. | |
To use this copy and paste it to your browser's | |
javascript console, or add javascript: to the |
This file contains 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
// input placeholder polyfill | |
if(!Modernizr.input.placeholder){ | |
$('[placeholder]').focus(function() { | |
var input = $(this); | |
if (input.val() == input.attr('placeholder')) { | |
input.val(''); | |
input.removeClass('placeholder'); | |
} | |
}).blur(function() { | |
var input = $(this); |
This file contains 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
DELETE FROM table | |
USING table, table t2 | |
WHERE table.id > t2.id | |
AND table.`column` = t2.`column` |
This file contains 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
/** | |
* Full page background | |
* http://css-tricks.com/perfect-full-page-background-image/ | |
*/ | |
.bg { | |
position: fixed; | |
top: -50%; | |
left: -50%; | |
width: 200%; |
This file contains 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
/** | |
* CSS Triangle border | |
*/ | |
body { | |
background-color: #e6e6da; | |
color: black; | |
font-family: sans-serif; | |
font-size: 14px; | |
} |
This file contains 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
/** | |
* CSS border experiments | |
*/ | |
.bd { | |
display: inline-block; | |
border-top: 100px solid #e55; | |
border-left: 100px solid #e55; | |
border-right: 100px solid #e55; | |
border-bottom: 100px solid #e55; | |
width: 1px; |
This file contains 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
/** | |
* Custom radio buttons & checkboxes with CSS | |
* http://lea.verou.me/css3-secrets/#slide31 | |
*/ | |
/** | |
* These styles are for this dabblet only | |
*/ | |
body { | |
color: #111; |
This file contains 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
/** | |
* This gulpfile considers the following directory structure: | |
* | |
* . | |
* ├── app PHP framework stuff | |
* ├── bower_components Front-end libraries | |
* ├── node_modules Gulp & Gulp modules | |
* ├── public Production-ready assets | |
* │ ├── css | |
* │ ├── fonts |
OlderNewer