Node.js is just JavaScript running on the server side. That's it. That's all there is to it.
- Express Docs, if you want to get started and already know JavaScript this is the place to be
// Simple Responsive Grid | |
// based on Chris Eppstein's SASS responsive layouts | |
// http://chriseppstein.github.com/blog/2011/08/21/responsive-layouts-with-sass/ | |
// -------------------------------------------------------------- // | |
// DESKTOP - LARGE - %desktop-large ----------------------------- // | |
// -------------------------------------------------------------- // | |
// 1024px and up to 1280px at which it becomes fixed | |
@media all and (min-width: 1024px) |
Node.js is just JavaScript running on the server side. That's it. That's all there is to it.
# Serve & Export commands | |
alias client_site='cd ~/projects/client-site && serve' | |
alias client_site_html='cd ~/projects && rm -rf client-site-html && cd ~/projects/client-site && serve export ../client-site-html && cd ~/projects/client-site-html && zip -r templates.zip ./* && open index.html' |
go to https://github.com/maxogden/art-of-node#art-of-node to view the newer versions of this document
An ongoing project to catalogue all of these sneaky, hidden, bleeding edge selectors as I prepare my JSConf EU 2012 talk.
Everything is broken up by tag, but within each the selectors aren't particularly ordered.
I have not tested/verified all of these. Have I missed some or got it wrong? Let me know. - A
A friendly reminder that you may need to set this property on your target/selected element to get the styling results you want:
-webkit-appearance:none;
/*global define: false, window: false */ | |
define(['jquery'], function ($) { | |
'use strict'; | |
return function () { | |
/* Begin monkey-patch Tap event support into $ */ | |
var x = 0, | |
y = 0, | |
threshold = 40, | |
// Sometimes there is lag between the last update and touchend. |
/*------------------------------------*\ | |
$NAV | |
\*------------------------------------*/ | |
/* | |
TAGS: ^lists ^navigation ^text | |
*/ | |
/* | |
As per csswizardry.com/2011/09/the-nav-abstraction | |
*/ | |
.nav{ |
FridayHug.com http://fridayhug.com
The Smallest Rails App http://thesmallestrailsapp.com
%w(action_controller/railtie coderay).each &method(:require)
.bended-shadow { | |
position: relative; | |
width: 500px; | |
margin: 200px auto; | |
} | |
.bended-shadow::before, .bended-shadow::after { | |
content: ''; | |
position: absolute; | |
width: 60%; |
<IfModule mod_deflate.c> | |
#The following line is enough for .js and .css | |
AddOutputFilter DEFLATE js css | |
AddOutputFilterByType DEFLATE text/plain text/xml application/xhtml+xml text/css application/xml application/rss+xml application/atom_xml application/x-javascript application/x-httpd-php application/x-httpd-fastphp text/html | |
#The following lines are to avoid bugs with some browsers | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
</IfModule> |