This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Meteor.subscribe("Categories"); | |
| Meteor.autosubscribe(function() { | |
| Meteor.subscribe("listdetails", | |
| Session.get('current_list')); | |
| }); | |
| Template.categories.lists = function () { | |
| return lists.find({}, {sort: {Category: 1}}); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <body> | |
| <div style="float: right; margin-right:20px;"> | |
| {{loginButtons align="right"}} | |
| </div> | |
| <div id="lendlib"> | |
| <div id="categories-container"> | |
| {{> categories}} | |
| </div> | |
| <div id="list"> | |
| {{> list}} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Deps.autorun(function () { | |
| Meteor.subscribe("messages", Session.get("currentRoomId")); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "info": { | |
| "author": "meemoo", | |
| "title": "Untitled", | |
| "description": "Meemoo app description", | |
| "parents": [], | |
| "url": "" | |
| }, | |
| "nodes": [ | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <title>text</title> | |
| <meta name="author" content="forresto"> | |
| <meta name="description" content="add text to an image" /> | |
| <script type="text/javascript" src="http://meemoo.org/meemoo/v1/meemoo-min.js"></script> | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // To start vlc with telnet remote control: | |
| // ./VLC --extraintf rc --rc-host 0.0.0.0:3000 | |
| // | |
| // To connect to multiple vlc's | |
| // node vlcrc.js host1:3000 host2:3000 | |
| var net = require('net'); | |
| var readline = require('readline'); | |
| //addresses of servers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| DESCRIPTION | |
| ----------- | |
| Use NodeJS to read RFID ids through the USB serial stream. Code derived from this forum: | |
| http://groups.google.com/group/nodejs/browse_thread/thread/e2b071b6a70a6eb1/086ec7fcb5036699 | |
| CODE REPOSITORY | |
| --------------- | |
| https://gist.github.com/806605 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Ejemplo sencillo para poder manejar un motor servo conectado aun ardunio desde nodejs | |
| //app.js fichero principal tipo express | |
| var express = require('express'); | |
| //npm install serialport | |
| //https://github.com/voodootikigod/node-serialport | |
| var serialport = require("serialport"); | |
| var SerialPort = serialport.SerialPort; // localize object constructor | |
| var app = module.exports = express.createServer(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('#editarlocal').live('click', function(e) { | |
| $.get(this.href, function(data) { | |
| $('input[name$="l[municipio]"]').val(data.municipio); | |
| $('input[name$="l[superficie]"]').val(data.superficie); | |
| $('input[name$="l[tipolocal]"]').val(data.tipolocal); | |
| $('input[name$="l[numpersonas]"]').val(data.numpersonas); | |
| $('input[name$="l[id]"]').val(data._id); | |
| $('form').attr('action', '/local/update/'+data._id);; | |
| $("#editarventana").dialog(); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $.put = function(url, data, success) { | |
| data._method = 'PUT'; | |
| $.post(url, data, success, 'json'); | |
| }; | |
| $.del = function(url, data, success) { | |
| data._method = 'delete'; | |
| $.post(url, data, success); | |
| }; |