If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
| // @license http://opensource.org/licenses/MIT | |
| // copyright Paul Irish 2015 | |
| // Date.now() is supported everywhere except IE8. For IE8 we use the Date.now polyfill | |
| // github.com/Financial-Times/polyfill-service/blob/master/polyfills/Date.now/polyfill.js | |
| // as Safari 6 doesn't have support for NavigationTiming, we use a Date.now() timestamp for relative values | |
| // if you want values similar to what you'd get with real perf.now, place this towards the head of the page | |
| // but in reality, you're just getting the delta between now() calls, so it's not terribly important where it's placed |
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
| require "try-catch" | |
| try { | |
| function() | |
| error('oops') | |
| end, | |
| catch { | |
| function(error) | |
| print('caught error: ' .. error) |
| * { | |
| font-size: 12pt; | |
| font-family: monospace; | |
| font-weight: normal; | |
| font-style: normal; | |
| text-decoration: none; | |
| color: black; | |
| cursor: default; | |
| } |
| /^([A-Z,Ñ,&]{3,4}([0-9]{2})(0[1-9]|1[0-2])(0[1-9]|1[0-9]|2[0-9]|3[0-1])[A-Z|\d]{3})$/ |
| var HTTPS = require('https'); | |
| var QueryString = require('querystring'); | |
| /** | |
| * Facebook API Wrapper | |
| * @constructor | |
| * @param {Object} info Info about the Facebook application | |
| */ | |
| var Client = function (info) { | |
| if (!info.id) { |
| ############################################# | |
| # Push de la rama actual | |
| git push origin $rama_actual | |
| ############################################# | |
| # Volver a un commit anterior, descartando los cambios | |
| git reset --HARD $SHA1 | |
| ############################################# | |
| # Ver y descargar Ramas remotas |
| [branch "master"] | |
| remote = origin | |
| merge = refs/heads/master |
| var FS = require('fs'); | |
| var EventEmitter = require('events').EventEmitter; | |
| // http://www.mjmwired.net/kernel/Documentation/input/joystick-api.txt | |
| function parse(buffer) { | |
| var event = { | |
| time: buffer.readUInt32LE(0), | |
| number: buffer[7], | |
| value: buffer.readInt16LE(4) | |
| } |
| var serialport = require('node-serialport') | |
| var sp = new serialport.SerialPort("/dev/ttyO3", { | |
| parser: serialport.parsers.raw, | |
| baud: 9600 | |
| }) | |
| sp.on('data', function(chunk) { | |
| console.log(chunk.toString('hex'), chunk.toString(), chunk) | |
| }) |