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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>sketch</title> | |
<style type="text/css" media="screen"> |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<title>sketch</title> | |
<style type="text/css" media="screen"> |
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
(function($) { | |
$.fn.extend({ | |
pluginName: function(options) { | |
// Initialise the class | |
new PluginClass(this, $.extend({}, $.fn.pluginName.defaults, options)); | |
// Return this for chaining | |
return this; | |
} | |
}); |
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
class Post | |
attr_accessor :data | |
def initialize(data) | |
@data = Hashie::Mash.new(data) | |
end | |
def method_missing(key, *args) | |
data.send(key) |
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
I'm just going to list out a few books for you. They relate to quite a few different sections of web design and development, but it's good to cover a broad bunch of subjects when building a foundation. | |
Don't Make Me Think by Steve Krug | |
http://www.sensible.com/dmmt.html | |
This is probably the most important book I've read and I wouldn't be surprised if it stays that way. Don't Make Me Think is about usability -- it teaches you how to build really simple websites that work. Often we complicate things when we make websites, but by reading this book you save yourself from making a ton of mistakes. | |
Designing With Web Standards [3rd Edition] by Jeffrey Zeldman | |
http://www.zeldman.com/dwws/ | |
Web Standards are a set of principles and processes that should be followed when building a website. Most websites out there don't really adhere to them, and if they do it's only with a gentle nod. When you follow web standards you get a whole lot of benefits, some being less code (and less problems), better accessibility, better |
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
Commands for Moving | |
beginning-of-line (C-a) | |
Move to the start of the current line. | |
end-of-line (C-e) | |
Move to the end of the line. | |
forward-char (C-f) | |
Move forward a character. | |
backward-char (C-b) | |
Move back a character. | |
forward-word (M-f) |
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
(function(a,b,c) {}).length | |
>> 3 | |
(function(a,b,c,d,e,f) {}).length | |
>> 6 | |
(function() {}).length | |
>> 0 |
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
[submodule "express"] | |
path = vendor/express | |
url = http://github.com/visionmedia/express.git |
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
window.boundEvents = { all: { count: 0, elements: [] } }; | |
// Collect all the events | |
$('html').find('*').andSelf().each(function() { | |
var events = $(this).data('events'); | |
if ($.isPlainObject(events) === true) { | |
$.each(events, function(n, e) { | |
if (window.boundEvents[n] === undefined) { | |
window.boundEvents[n] = { count: 0, elements: [] }; | |
} | |
}); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Image popup</title> | |
<style> | |
div {width:160px} | |
div h1, div p {display:none} | |
div:hover {width:250px;padding:1em;border:1px solid #ccc} | |
div:hover h1, div:hover p {display:block} |