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
python -m SimpleHTTPServer 8000 |
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
.link-underline a { | |
border-bottom: 3px solid #b4e7f8; | |
border-bottom-width: 3px; | |
border-bottom-style: solid; | |
border-bottom-color: rgb(180, 231, 248); | |
box-shadow: inset 0 -4px 0 #b4e7f8; | |
color: inherit; | |
-webkit-transition: background .15s cubic-bezier(.33,.66,.66,1); | |
-moz-transition: background .15s cubic-bezier(.33,.66,.66,1); | |
-o-transition: background .15s cubic-bezier(.33,.66,.66,1); |
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
monitorEvents(window, "click") |
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
<!-- HOW TO MANIPULATE IMAGES --> | |
<!-- New Ones --> | |
img[src=$$$.jpg]*40 | |
<!--You can combine attributes into a single set --> | |
img[src=/images/$$.png alt] | |
<!-- THESE ARE PARTICULARLY USEFUL --> | |
<!-- Climbing Up #1 --> |
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
http://api.soundcloud.com/resolve?url=http://soundcloud.com/USER_NAME&client_id=YOUR_CLIENT_ID |
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
var els = document.getElementsByClassName("myclass"); // Creates an HTMLObjectList not an array. | |
Array.prototype.forEach.call(els, function(el) { | |
// Do stuff here | |
console.log(el.tagName); | |
}); | |
// Or | |
[].forEach.call(els, function (el) {...}); // Creates array on the fly. |
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
# BEGIN GZIP | |
<ifmodule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript | |
</ifmodule> | |
# END GZIP |
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
<!-- bad --> | |
<div id="main"> | |
<div class="article"> | |
<div class="header"> | |
<h1>Blog post</h1> | |
<p>Published: <span>21st Feb, 2015</span></p> | |
</div> | |
<p>…</p> | |
</div> | |
</div> |
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
<!-- good --> | |
<!doctype html> | |
<html lang=en> | |
<meta charset=utf-8> | |
<title>Contact</title> | |
<link rel=stylesheet href=style.css> | |
<h1>Contact me</h1> | |
<label> | |
Email address: |
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
/* box-shadow underline */ | |
.content a:not(.btn) { | |
box-shadow: inset 0 -5px 0 #ff772f; | |
color: inherit; | |
padding: 0 2px; | |
margin: 0 -2px; | |
display: inline-block; | |
} | |
/* hightlight on hover */ |
NewerOlder