From 200842a3afd8a55b79402d4a75c3c828cdaa3f98 Mon Sep 17 00:00:00 2001
From: Jonas Smedegaard Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Two default list types Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco Lorem ipsum Normal sized paragraph Small Paragraph Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Two default list types Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco Lorem ipsum Normal sized paragraph Small Paragraph assume throughout that In HTML, elements in CSS can be uppercase like these examples. In XHTML, elements must be lower case. Classes and IDs are always case sensitive universal selector, match any element
- type (or element) selector
- ID selector an E element with ID equal to "myid", e.g. class selector an E element whose class is "myclass", e.g. descendant combinator to style an F element, which is a descendant of an E element
- child combinator an F element which is the direct child of an E element
- adjacent sibling combinator an F element that is immediately preceded by an E element
- general sibling combinator an F element preceded at some point by an E element
- negation pseudo-class an E element that does not match simple selector element E with a "foo" attribute
- E’s attribute E’s attribute E’s attribute E’s attribute E’s attribute E’s attribute an E element, the n-th child of its parent an E element, the n-th child of its parent, counting from the last one
- an E element, the n-th sibling of its type
- an E element, the n-th sibling of its type, counting from the last one
- an E element that is the document root, i.e. html
- an E element, first child of its parent
- an E element, first sibling of its type
- an E element, last child of its parent
- an E element, last sibling of its type
- an E element, only child of its parent
- an E element, only sibling of its type
- an E element that has no children (including text nodes)
- matches a link E when E is a link and not visited, hovered over focused on or active
- the href target of the link E has been visited
- the link E has been activated
- any element E when hovered over with a mouse
- the link or form control E when tabbed to with a keyboard
- element E is the fragment in the referring URI
- an element of type E in language "fr"
- a user interface element E which is enabled
- a user interface element E which is disabled
- a user interface element E which is checked
- the first formatted line of an E element
- the first formatted letter of an E element
- generated content before an E element
- generated content after an E element
- http://www.w3.org/TR/css3-selectors/ assume throughout that In HTML, elements in CSS can be uppercase like these examples. In XHTML, elements must be lower case. Classes and IDs are always case sensitive universal selector, match any element
+ type (or element) selector
+ ID selector an E element with ID equal to "myid", e.g. class selector an E element whose class is "myclass", e.g. descendant combinator to style an F element, which is a descendant of an E element
+ child combinator an F element which is the direct child of an E element
+ adjacent sibling combinator an F element that is immediately preceded by an E element
+ general sibling combinator an F element preceded at some point by an E element
+ negation pseudo-class an E element that does not match simple selector element E with a "foo" attribute
+ E’s attribute E’s attribute E’s attribute E’s attribute E’s attribute E’s attribute an E element, the n-th child of its parent1
-
Or Other
-This is a header
-
-
-
-
-
-
-5
-
-
-Ordered and unorderd todo lists
-
-
-6
-quis nostrud exercitation
-
-laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.7
-
-
-
-
-
-
-
-Header
-Header 2
-Header 3
-
-
-Header Horiz
-Content 2
-Content 3
-
-
-Header Horiz
-Content 2
-Content 3
-
-
-Header Horiz
-Content 2
-Content 3
-
-
-
-Header Horiz
-Content 2
-Content 3
-8
-dolor sit amet, consectetur adipisicing elit,
-sed do eiusmod tempor incididunt
-ut labore
-et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
-1
+
Or Other
+
+---
+
+---
+
+---
+
+---
+
+This is a header
+
+
+
+
+
+---
+
+---
+
+5
+
+
+Ordered and unorderd todo lists
+
+
+
+---
+
+---
+
+6
+quis nostrud exercitation
+
+laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.7
+
+
+
+
+---
+
+---
+
+
+
+
+
+Header
+Header 2
+Header 3
+
+
+Header Horiz
+Content 2
+Content 3
+
+
+Header Horiz
+Content 2
+Content 3
+
+
+Header Horiz
+Content 2
+Content 3
+
+
+
+Header Horiz
+Content 2
+Content 3
+8
+dolor sit amet, consectetur adipisicing elit,
+sed do eiusmod tempor incididunt
+ut labore
+et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor
+dinky pocket bookCSS Selectors
-
-
-Simple selectors
-
-E and F are elements, they can have attribute foo e.g. <e foo="bar"> you can replace these with any elements or attributes.*
-E
-<e id="myid">
-E#myid
-<e class="myclass">
-E.myclass
-Combinators & negation
-E F
-E > F
-E + F
-E ~ F
-s
-E:not(s)
-Attribute selectors
-E[foo]
-foo, value exactly equal to bar
-E[foo="bar"]
-foo, value is whitespace-separated values, one of which is exactly "bar"
-E[foo~="bar"]
-foo, value begins exactly "bar"
-E[foo^="bar"]
-foo, value ends exactly "bar"
-E[foo$="bar"]
-foo, value contains substring "bar"
-E[foo*="bar"]
-foo has a hyphen-separated list of values beginning (from the left) with "en"
-E[foo|="en"]
-Structural pseudo-classes
-n can be replaced with an expression in all following cases n can be (odd), (even) or expressions such as (3n + 1)E:nth-child(n)
-
-E:nth-last-child(n)
-E:nth-of-type(n)
-E:nth-last-of-type(n)
-E:root
-Structural pseudo-classes
-
-E:first-child
-E:first-of-type
-E:last-child
-E:last-of-type
-E:only-child
-E:only-of-type
-E:empty
-Pseudo-classes
-E:link
-E:visited
-E:active
-E:hover
-E:focus
-E:target
-E:lang(fr)
-Forms & Pseudo-elements
-E:enabled
-E:disabled
-E:checked
-E::first-line
-E::first-letter
-E::before
-E::after
-dinky pocket bookCSS Selectors
+
+
+
+---
+
+---
+
+Simple selectors
+
+E and F are elements, they can have attribute foo e.g. <e foo="bar"> you can replace these with any elements or attributes.*
+E
+<e id="myid">
+E#myid
+<e class="myclass">
+E.myclass
+Combinators & negation
+E F
+E > F
+E + F
+E ~ F
+s
+E:not(s)
+Attribute selectors
+E[foo]
+foo, value exactly equal to bar
+E[foo="bar"]
+foo, value is whitespace-separated values, one of which is exactly "bar"
+E[foo~="bar"]
+foo, value begins exactly "bar"
+E[foo^="bar"]
+foo, value ends exactly "bar"
+E[foo$="bar"]
+foo, value contains substring "bar"
+E[foo*="bar"]
+foo has a hyphen-separated list of values beginning (from the left) with "en"
+E[foo|="en"]
+
+---
+
+---
+
+Structural pseudo-classes
+n can be replaced with an expression in all following cases n can be (odd), (even) or expressions such as (3n + 1)E:nth-child(n)
+
an E element, the n-th child of its parent, counting from the last one
+E:nth-last-child(n)
+
an E element, the n-th sibling of its type
+E:nth-of-type(n)
+
an E element, the n-th sibling of its type, counting from the last one
+E:nth-last-of-type(n)
+
an E element that is the document root, i.e. html
+E:root
+
an E element, first child of its parent
+E:first-child
+
an E element, first sibling of its type
+E:first-of-type
+
an E element, last child of its parent
+E:last-child
+
an E element, last sibling of its type
+E:last-of-type
+
an E element, only child of its parent
+E:only-child
+
an E element, only sibling of its type
+E:only-of-type
+
an E element that has no children (including text nodes)
+E:empty
+
matches a link E when E is a link and not visited, hovered over focused on or active
+E:link
+
the href target of the link E has been visited
+E:visited
+
the link E has been activated
+E:active
+
any element E when hovered over with a mouse
+E:hover
+
the link or form control E when tabbed to with a keyboard
+E:focus
+
element E is the fragment in the referring URI
+E:target
+
an element of type E in language "fr"
+E:lang(fr)
+
a user interface element E which is enabled
+E:enabled
+
a user interface element E which is disabled
+E:disabled
+
a user interface element E which is checked
+E:checked
+
the first formatted line of an E element
+E::first-line
+
the first formatted letter of an E element
+E::first-letter
+
generated content before an E element
+E::before
+
generated content after an E element
+E::after
+
http://www.w3.org/TR/css3-selectors/
diff --git a/pocketHelp.html b/pocketHelp.html deleted file mode 100644 index 113c982..0000000 --- a/pocketHelp.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - -changing directory to dirname
-cd dirname
-
move up a directory in the tree
-cd ..
-dont forget you can drag a folder in from the finder to get a path to that directory
-
go back to the last directory I was in
-cd -
-
where am I? (present working directory)
-pwd
-
list what's in this directory
-ls
-
now give me more information in the listing
-ls -lah
-
ssh to server
-ssh user@domain.com
-
list all files recursively in subdomains
-find .
-
find all files with '.css' in the name
-find . | grep .css
-
find the string 'prose' in the contents of all the files in this directory
-grep -r "prose" .
-
open a file as if you had double clicked it in the finder (mac only)
-open filename
-
open the current directory in the finder
-open .
-
make a directory called dirname
-mkdir dirname
-
create a file called filename if it doesnt exist or update last modified date if it does
-touch filename
-
move or rename a file or directory
-mv oldname newname
-
remove a file
-rm filename
-
remove a directory and all its contents. BE VERY CAREFUL! you could easily delete everything!
-rm -rf dirname
-
copy a file
-cp oldfilename newfilename
-
copy a directory and everything in it
-cp -r olddirname newdirname
-
securely copy a file to / on a remote server
-scp file user@domain.com:
-you can also copy a directory using scp -r
-
check out a repository to the current directory
-svn co URL .
-
update local directory from repository
-svn up
-
are there new or modified files?
-svn status
-
add new files to the repository
-svn add filename
-
remove a file from subversion
-svn remove filename
-
mark a previously conflicted file as resolved
-svn resolved filename
-
who changed what line number of this file
-svn blame filename
-
commit all changes in this directory
-svn commit -m "commit msg"
-
is this directory checked out from svn? and where?
-svn info
-
show everything that has changed
-svn diff
-
show what has changed in one file
-svn diff filename
-
open text editor in order to specify which files to ignore from svn
-svn propedit svn:ignore .
-
download a file to the current directory
-wget URL
-
show the contents of a file in the terminal
-curl URL
-
run any command as root
-sudo your-command-here
-
get help for any command, eg svn
-svn --help
-
how long has this computer been on?
-uptime
-
what is the size of the current directory and all the contents
-du -h
-
cancel the command you were currently typing
-ctrl + c
-
go to the beginning of the line in the terminal
-ctrl + a
-
go to the end of the line in the terminal
-ctrl + e
-
changing directory to dirname
+cd dirname
+
move up a directory in the tree
+cd ..
+dont forget you can drag a folder in from the finder to get a path to that directory
+
go back to the last directory I was in
+cd -
+
where am I? (present working directory)
+pwd
+
list what's in this directory
+ls
+
now give me more information in the listing
+ls -lah
+
ssh to server
+ssh user@domain.com
+
list all files recursively in subdomains
+find .
+
find all files with '.css' in the name
+find . | grep .css
+
find the string 'prose' in the contents of all the files in this directory
+grep -r "prose" .
+
open a file as if you had double clicked it in the finder (mac only)
+open filename
+
open the current directory in the finder
+open .
+
make a directory called dirname
+mkdir dirname
+
create a file called filename if it doesnt exist or update last modified date if it does
+touch filename
+
move or rename a file or directory
+mv oldname newname
+
remove a file
+rm filename
+
remove a directory and all its contents. BE VERY CAREFUL! you could easily delete everything!
+rm -rf dirname
+
copy a file
+cp oldfilename newfilename
+
copy a directory and everything in it
+cp -r olddirname newdirname
+
securely copy a file to / on a remote server
+scp file user@domain.com:
+you can also copy a directory using scp -r
+
check out a repository to the current directory
+svn co URL .
+
update local directory from repository
+svn up
+
are there new or modified files?
+svn status
+
add new files to the repository
+svn add filename
+
remove a file from subversion
+svn remove filename
+
mark a previously conflicted file as resolved
+svn resolved filename
+
who changed what line number of this file
+svn blame filename
+
commit all changes in this directory
+svn commit -m "commit msg"
+
is this directory checked out from svn? and where?
+svn info
+
show everything that has changed
+svn diff
+
show what has changed in one file
+svn diff filename
+
open text editor in order to specify which files to ignore from svn
+svn propedit svn:ignore .
+
download a file to the current directory
+wget URL
+
show the contents of a file in the terminal
+curl URL
+
run any command as root
+sudo your-command-here
+
get help for any command, eg svn
+svn --help
+
how long has this computer been on?
+uptime
+
what is the size of the current directory and all the contents
+du -h
+
cancel the command you were currently typing
+ctrl + c
+
go to the beginning of the line in the terminal
+ctrl + a
+
go to the end of the line in the terminal
+ctrl + e
+