- node.js
- Installation paths: use one of these techniques to install node and npm without having to sudo.
- Node.js HOWTO: Install Node+NPM as user (not root) under Unix OSes
- Felix's Node.js Guide
- Creating a REST API using Node.js, Express, and MongoDB
- Node Cellar Sample Application with Backbone.js, Twitter Bootstrap, Node.js, Express, and MongoDB
- JavaScript Event Loop
- Node.js for PHP programmers
Use DocPad, GitHub and Prose as a Wiki
This guide will walk you through how you can use a GitHub repository to house your wiki content, have DocPad render it, and automatically update on changes. It's also really nice as we get to benefit from the github project workflow for our wiki, that is issues, pull requests, etc.
We use this workflow heavily by linking the DocPad Website and the DocPad Documentation repositories allowing us to have users edit and submit pull requests for improvements to our documentation, and once merged, the website regenerates automatically.
1. Create a new repository for your Wiki Content
/* Vertically centered text with SVG */ | |
div { | |
width: 300px; | |
height: 150px; | |
background: #f06; | |
font: bold 150% sans-serif; | |
text-shadow: 0 1px 2px rgba(0,0,0,.5); | |
overflow: hidden; resize: both; /* just for this demo */ | |
color: white; |
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
Creates URLs like /2012/12/15/merry-xmas
for your blog posts.
Requires momentjs to be installed: npm install --save moment
# Define our Configuration | |
docpadConfig = | |
# Define our own Collections | |
collections: | |
# Posts | |
# Anything outputted to the posts directory can be considered a post | |
# Sort the posts by newest first | |
# And set their layout to `post` automatically if it isn't already set |
/* ------------------------------------- | |
cusel version 2.5 | |
last update: 31.10.11 | |
смена обычного селект на стильный | |
autor: Evgen Ryzhkov | |
updates by: | |
- Alexey Choporov | |
- Roman Omelkovitch | |
using libs: |
/* Вешаем событие прокрутки на все якоря (#) на странице */ | |
$('a[href^="#"]').bind('click.smoothscroll', function (e) { | |
e.preventDefault(); | |
var target = this.hash, | |
$target = $(target); | |
$('html, body').stop().animate({ | |
'scrollTop':$target.offset().top | |
}, 900, 'swing', function () { | |
window.location.hash = target; | |
}); |
(function($) { | |
$(function() { | |
$('#selector').each(function(){ | |
var text = $(this).val(); | |
$(this) | |
.focusin(function(){ | |
$(this).addClass('focus'); | |
if ($(this).val() == text) $(this).val(''); | |
}) | |
.focusout(function(){ |
The following will minify your assets with grunt each time a generation write completes.
- Install Dependencies