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

Clase del 27 de Septiembre

Descargar audio

Repaso texto Platon

Condiciones estructurales: La logica se va a encargar de los aspectos estructurales.

  • Aplican la idea de validez e invalidez mas no verdad y falsedad.

Sujeto + Predicado

var five = require('johnny-five');
five.Board().on('ready', function () {
var servo = new five.Servo(9);
this.repl.inject({
servo: servo
});
});
@julianduque
julianduque / 00-README.md
Last active January 14, 2023 23:11
Primus + MQTT + Arduino == Internet of Things!

Primus + MQTT + Arduino == Internet of Things!

LCD Shield

Server

  1. Install dependencies
$ npm install
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 / bbb.sh
Last active August 16, 2022 14:14
Share internet with BeagleBone Black
#!/bin/bash
# bbb.sh -- Share Internet with the BeagleBone Black
# using my Linux HOST as a router
bbbAddr="192.168.7.2"
hostAddr="192.168.7.1"
# Configure IP forwarding on HOST
echo "Setting up Routing"
sudo iptables -A POSTROUTING -t nat -j MASQUERADE
@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