Skip to content

Instantly share code, notes, and snippets.

View fizzvr's full-sized avatar
🏳️
2023

Vladimir Rodríguez fizzvr

🏳️
2023
View GitHub Profile
@fizzvr
fizzvr / 0_reuse_code.js
Last active August 29, 2015 14:18
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
// 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

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
<!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 &lt;area&gt; 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 &#39;aria-&#39; 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>
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;
@fizzvr
fizzvr / Operaciones-Git
Last active September 4, 2015 21:33 — forked from jelcaf/Operaciones-Git
#############################################
# 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
@fizzvr
fizzvr / gist:01418f7c714c06ed3ec1
Created October 8, 2015 02:23 — forked from nisanthchunduru/gist:4608499
Installing nodejs on debian using checkinstall
#!/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
#
##############################################################

DocPad: Clean dates in post URLs

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