Skip to content

Instantly share code, notes, and snippets.

View iddar's full-sized avatar
🤹‍♂️
code juggling

Iddar Olivares iddar

🤹‍♂️
code juggling
View GitHub Profile
@iddar
iddar / microtest.c
Created July 9, 2012 06:19 — forked from josejuan/microtest.c
Test del microlenguaje.
#include <stdio.h>
#include <stdlib.h>
void Extraer(
int *A, // I/O unidades actuales en almacén
int *C, // I/O valor actual en la tarifa
int *P, // I/O unidades pendientes a extraer
char *m // microprograma a ejecutar
) {
@iddar
iddar / helloworld.js
Created November 30, 2012 04:32 — forked from max-mapper/helloworld.js
droneduino
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)
})
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)
}
@iddar
iddar / gist:6027778
Last active December 19, 2015 22:29 — forked from shaneriley/gist:920805
Directiva de gitconfig para usar las ramas master y el origen remoto
[branch "master"]
remote = origin
merge = refs/heads/master
#############################################
# 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
@iddar
iddar / index.js
Created November 23, 2013 19:57 — forked from jankuca/index.js
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) {
@iddar
iddar / rfc regex
Last active August 29, 2015 14:17 — forked from gerardorochin/rfc regex
/^([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})$/
@iddar
iddar / markdown.css
Last active August 29, 2015 14:21 — forked from imjasonh/markdown.css
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
require "try-catch"
try {
function()
error('oops')
end,
catch {
function(error)
print('caught error: ' .. error)
@iddar
iddar / readme.md
Last active September 11, 2015 06:51 — forked from coolaj86/how-to-publish-to-npm.md
How to publish packages to NPM

Getting Started with NPM (as a developer)

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 "you@example.com"
npm set init.author.url "http://yourblog.com"

npm adduser