Skip to content

Instantly share code, notes, and snippets.

View danielrvt's full-sized avatar

Daniel Rodriguez del Villar Trimarchi danielrvt

  • Universidad Simon Bolivar, Caracas, Venezuela
  • 11:16 (UTC -12:00)
View GitHub Profile

SASS/SCSS/CSS Spacing Utility Classes

Following @ilicmarko's comment, here's my spacing.scss file…

(see spacing.scss)

…which generates the following spacing utility classes…

(see spacing.css)

@danielrvt
danielrvt / spreadsheet-ws.js
Created November 21, 2017 18:09 — forked from anonymous/spreadsheet-ws.js
Como consumir servicios web desde hojas de calculo de google
function getBTCPrice() {
var response = UrlFetchApp.fetch("https://www.bitstamp.net/api/ticker");
var last = JSON.parse(response.getContentText()).last;
Logger.log(last);
return last;
}
@danielrvt
danielrvt / Sorted sets
Last active November 22, 2021 07:30
Using sorted sets with redis client for NodeJS. In this example I retrieve the list of elements ordered by score in descending order
var redis = require("redis"),
client = redis.createClient();
// if you'd like to select database 3, instead of 0 (default), call
// client.select(3, function() { /* ... */ });
client.on("error", function (err) {
console.log("Error " + err);
});
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#contenido-navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">
less: {
compile: {
options: {
paths: ["bower_components/bootstrap/less"]
},
files: {
"app/styles/style.css": "app/styles/style.less"
}
}
}
@danielrvt
danielrvt / gist:6f90324f5188a99a5ad1
Created February 25, 2015 15:56
Lista de chats con ionic
<ion-view view-title="Chats">
<ion-content>
<ion-list>
<ion-item class="item-remove-animate item-avatar item-icon-right" ng-repeat="chat in chats" type="item-text-wrap" href="#/tab/chats/{{chat.id}}">
<img ng-src="{{chat.face}}">
<h2>{{chat.name}}</h2>
<p>{{chat.lastText}}</p>
<i class="icon ion-chevron-right icon-accessory"></i>
<ion-option-button class="button-assertive" ng-click="remove(chat)">