Skip to content

Instantly share code, notes, and snippets.


Ricardo Torres rictorres

View GitHub Profile

io.js Semana de 1 de Maio

Release candidate do io.js 2.0, atualizações da comunidade e eventos

Release candidate do io.js 2.0

Essa semana tivemos um lançamento nightly v2.0, changelog completo poderá ser encontrado em breve no GitHub.

Atualizações da Comunidade

rictorres /
Last active Aug 29, 2015
List of Angular Material changes (breaking/features) since v0.8.3

0.9.0 (2015-05-04)


  • autocomplete: adds support for messages to be displayed when no results are found (e057e271, closes #2574, #1525)

Breaking Changes

  • styles: removes global line-height and font-size from html and body (666e3311)
  • icons: namespaces built-in icons (539ec5e3)
rictorres / gist:ca9168b5b52dc6db002f
Last active Sep 18, 2015 — forked from wetzler/gist:4478332
Kickfolio's (minified) code to embed Keen IO charts in their user dashboards. They have 3 line charts (last 7 days, last 24 hours, and last 4 weeks) which show the number of user "connect" sessions for a given app (identified by the filter app.PublicKey). For more context, see this blog post:…
View gist:ca9168b5b52dc6db002f
var e=new Keen.Series("connect",{
t=new Keen.Series("connect",{
rictorres / jobs.js
Created Oct 6, 2015 — forked from maximilianschmitt/jobs.js
Automated MySQL backups to S3 with node.js
View jobs.js
'use strict';
var mysqlBackup = require('./mysql-backup');
var schedule = require('node-schedule');
schedule.scheduleJob({ hour: 22, minute: 0 }, mysqlBackup);
View gist:3106467
* WordPress Query Comprehensive Reference
* Compiled by luetkemj -
* Source:
$args = array(
rictorres / responsive-testing.html
Created Aug 30, 2012
Responsive Design Testing
View responsive-testing.html
<!DOCTYPE html>
<meta charset="utf-8">
<title>Responsive Design Testing</title>
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; }
.wrapper { width: 6000px; }
.frame { float: left; }
h2 { margin: 0 0 5px 0; }
rictorres / trigram.html
Created Sep 10, 2012 — forked from tkadlec/trigram.html
Trigram for heaven icon
View trigram.html
<title>Trigram for heaven icon</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<style type="text/css">
li {
list-style-type: none;
View autogrow.js
function autogrow(textarea) {
// create fake div with same content
// (only works with box-sizing border-box)
var dv = document.createElement("div");
dv.className = 'fm-growable';"hidden";"absolute";
rictorres / appcache.php
Last active Dec 17, 2015
Function to generate appcache manifest file and to automatically update itself (using md5 hashes).
View appcache.php
header('Content-Type: text/cache-manifest');
header('Cache-Control: no-cache');
echo "CACHE MANIFEST\n\n";
$hashes = "";
$blacklist = array(