Skip to content

Instantly share code, notes, and snippets.

View julianduque's full-sized avatar
😈
Heroku DevRel

Julián Duque julianduque

😈
Heroku DevRel
View GitHub Profile
myMusic = {};
myMusic.Song = Backbone.Model.extend({});
myMusic.SongView = Backbone.View.extend({
tagName: "li",
className: "item",
template: Handlebars.compile($("#song-template").html()),
initialize: function () {
this.render();
...
name: 'BeagleBone Black',
bonescript: '0.2.4',
version: '0A5C',
serialNumber: '2813BBBK4391' }
@julianduque
julianduque / leds.js
Created April 23, 2014 22:32
LEDs desde FIrebase
var five = require('johnny-five');
var Firebase = require('firebase');
var board = new five.Board();
var db = new Firebase('https://coderise.firebaseio.com');
var leds = db.child('leds');
leds.child('verde').set(0);
leds.child('rojo').set(0);
@julianduque
julianduque / rc.lua
Created July 9, 2014 18:55
Awesome Setup
-- Standard awesome library
local gears = require("gears")
local awful = require("awful")
awful.rules = require("awful.rules")
require("awful.autofocus")
-- Widget and layout library
local wibox = require("wibox")
local vicious = require("vicious")
-- Theme handling library
local beautiful = require("beautiful")
@julianduque
julianduque / index.html
Created October 19, 2014 22:45
Realtime Webcam with Primus and OpenCV
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>HAN-Bot Realtime</title>
<script src="/primus/primus.js"></script>
</head>
<body>
<img id="camera" />
<script>
@julianduque
julianduque / levelup.md
Last active August 29, 2015 14:10 — forked from dshaw/levelup.md
Leveling up in Node.js

Core Concepts

Required

  • Understand JavaScript / Node.js Asynchronous nature
  • Understand callbacks, EventEmitter and error handling
  • Understand both async and sync Filesystem API
  • Feel comfortable writing Node.js modules
  • Write http server and clients

Keybase proof

I hereby claim:

  • I am julianduque on github.
  • I am julianduque (https://keybase.io/julianduque) on keybase.
  • I have a public key whose fingerprint is 5482 7343 0CCC C348 8925 2769 FC92 F450 09DA B688

To claim this, I am signing this object:

@julianduque
julianduque / latamconfs.md
Last active August 29, 2015 14:14
JS Latam Conferences
root@leviathan:~# cat /etc/nginx/sites-enabled/medellinjs 
server {
  server_name medellinjs.org www.medellinjs.org;

  location / {
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $http_host;
 proxy_set_header X-NginX-Proxy true;
@julianduque
julianduque / jquery.extend.js
Last active September 26, 2015 08:08
jQuery useful and custom extensions
/**
* jQuery useful and custom extensions
*/
/**
* Non ajax plugin as seen in: http://stackoverflow.com/questions/1149454/non-ajax-get-post-using-jquery-plugin
*/
(function(jQuery) {
$.extend({
doGet: function(url, params) {