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
| <style> | |
| body { text-align: center;} | |
| h1 { font-size: 50px; } | |
| body { font: 20px Constantia, 'Hoefler Text', "Adobe Caslon Pro", Baskerville, Georgia, Times, serif; color: #999; text-shadow: 2px 2px 2px rgba(200, 200, 200, 0.5); } | |
| a { color: rgb(36, 109, 56); text-decoration:none; } | |
| a:hover { color: rgb(96, 73, 141) ; text-shadow: 2px 2px 2px rgba(36, 109, 56, 0.5); } | |
| span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; } | |
| </style> | |
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
| span[frown] { transform: rotate(90deg); display:inline-block; color: #bbb; } | |
| /* edited with -moz & -webkit prefix */ | |
| span[frown] { transform: rotate(90deg); -webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); display:inline-block; color: #bbb; } |
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
| .mk-blog-demo-frown-family { padding: 0.5em 0; font-size: 5em;} | |
| .mk-blog-demo-frown-family p { margin: 0; padding: 0.4em; text-align: center;} | |
| .mk-blog-demo-frown-family p span { color: #bbb; margin-left: 1em;} | |
| .mk-blog-demo-frown-family p.uncle-O { font-size: 6em; display: none; padding: 0.5em 0;} | |
| .mk-blog-demo-frown-family p.uncle-O span { margin: 0;} | |
| /* rotate ftw */ | |
| span[frown] { transform: rotate(90deg); -webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); display:inline-block; } | |
| span[rt-15] { transform: rotate(15deg); -webkit-transform: rotate(15deg); -moz-transform: rotate(15deg); display:inline-block; } | |
| span[rt-30] { transform: rotate(30deg); -webkit-transform: rotate(30deg); -moz-transform: rotate(30deg); display:inline-block; } |
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
| /* rotate ftw */ | |
| span[frown] { transform: rotate(90deg); -webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); display:inline-block; } | |
| span[rt-15] { transform: rotate(15deg); -webkit-transform: rotate(15deg); -moz-transform: rotate(15deg); display:inline-block; } | |
| span[rt-30] { transform: rotate(30deg); -webkit-transform: rotate(30deg); -moz-transform: rotate(30deg); display:inline-block; } | |
| span[rt-45] { transform: rotate(45deg); -webkit-transform: rotate(45deg); -moz-transform: rotate(45deg); display:inline-block; } | |
| span[rt-90] { transform: rotate(90deg); -webkit-transform: rotate(90deg); -moz-transform: rotate(90deg); display:inline-block; } | |
| span[rt-135] { transform: rotate(135deg); -webkit-transform: rotate(135deg); -moz-transform: rotate(135deg); display:inline-block; } | |
| span[rt-180] { transform: rotate(180deg); -webkit-transform: rotate(180deg); -moz-transform: rotate(180deg); display:inline-block; } | |
| span[rt-225] { transform: rotate(225deg); -webkit-transform: rotate(225deg); -moz-transfo |
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 result = db.query("select.."); | |
| // use result |
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
| db.query("select..", function (result) { | |
| // use result | |
| }); |
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
| ./configure | |
| make | |
| make install |
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 http = require('http'); | |
| http.createServer(function (req, res) { | |
| res.writeHead(200, {'Content-Type': 'text/plain'}); | |
| res.end('Hello World\n'); | |
| }).listen(8080, "127.0.0.1"); | |
| console.log('Server running at http://127.0.0.1:8080/'); |
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
| git clone git://github.com/ry/node.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
| // the following javascript is a hack to display a "file" image instead of a "folder" image | |
| // when an entity has no children to display. | |
| var ulList = $('ul'); | |
| for (i=0; i<ulList.length; i++) { | |
| var ulEl = ulList[i]; | |
| if ($('li[class!=liToHide]', ulEl).length == 0) { | |
| var spanEl = $(ulEl).prev().prev(); | |
| var imgList = $('img', spanEl); | |
| $(imgList[0]).attr('src', Constants.LI_IMG_URL); | |
| $(imgList[1]).attr('src', Constants.FILE_IMG_URL); |