// jQuery
$(document).ready(function() {
// code
})
This file contains 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains 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
// Load the TCP Library | |
net = require('net'); | |
// Keep track of the chat clients | |
var clients = []; | |
// Start a TCP Server | |
net.createServer(function (socket) { | |
// Identify this client |
This file contains 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><title>aXe Rule Descriptions</title></head> | |
<body> | |
<table> | |
<thead><tr><th scope="col">Rule ID</th><th scope="col">Description</th><th scope="col">Tags</th></tr></thead> | |
<tbody><tr><td>accesskeys</td><td>Ensures that each element on the page with an accesskey attribute has a unique value</td><td>wcag2a, wcag211</td></tr> | |
<tr><td>area-alt</td><td>Checks the <area> elements of image maps to ensure that they have an alternative text</td><td>wcag2a, wcag111, section508, section508a</td></tr> | |
<tr><td>aria-allowed-attr</td><td>Checks all attributes that start with 'aria-' to ensure that they are all official WAI-ARIA attributes</td><td>wcag2a, wcag411</td></tr> | |
<tr><td>aria-required-attr</td><td>Checks all elements that contain WAI-ARIA roles to ensure that all required aria- attributes are present</td><td>wcag2a, wcag411</td></tr> |
This file contains 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
SELECT orders.customerid, | |
orders.transactiondate, | |
orders.transactionamount, | |
cohorts.cohortdate | |
FROM orders | |
JOIN (SELECT customerid, | |
Min(transactiondate) AS cohortDate | |
FROM orders | |
GROUP BY customerid) AS cohorts | |
ON orders.customerid = cohorts.customerid; |
This file contains 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
############################################# | |
# Push de la rama actual | |
git push origin $rama_actual | |
############################################# | |
# Volver a un commit anterior, descartando los cambios | |
git reset --HARD $SHA1 | |
############################################# | |
# Ver y descargar Ramas remotas |
This file contains 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
#!/bin/sh | |
############################################################## | |
# | |
# Rock-Solid Node.js Platform on Ubuntu | |
# Auto-config by apptob.org | |
# Author: Ruslan Khissamov, email: rrkhissamov@gmail.com | |
# GitHub: https://github.com/rushis | |
# | |
############################################################## |
Creates URLs like /2012/12/15/merry-xmas
for your blog posts.
Requires momentjs to be installed: npm install --save moment
-
Install Moment via
npm install --save moment
-
Add it and a template helper to your docpad configuration file
-
Use the template helper in your app
This file contains 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
# 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 |
OlderNewer