Skip to content

Instantly share code, notes, and snippets.

View lobotomit's full-sized avatar

lobotomit lobotomit

  • Madrid, Spain
View GitHub Profile
@lobotomit
lobotomit / socket-cheatsheet.js
Created June 5, 2018 15:43 — forked from alexpchin/socket-cheatsheet.js
A quick cheatsheet for socket.io
// sending to sender-client only
socket.emit('message', "this is a test");
// sending to all clients, include sender
io.emit('message', "this is a test");
// sending to all clients except sender
socket.broadcast.emit('message', "this is a test");
// sending to all clients in 'game' room(channel) except sender
@lobotomit
lobotomit / SignInActivity.java
Created April 16, 2017 06:39
AccountManager Android
package com.ereyesalvarez.eadu.activities;
import android.accounts.Account;
import android.accounts.AccountAuthenticatorActivity;
import android.accounts.AccountManager;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
@lobotomit
lobotomit / 0_reuse_code.js
Created November 22, 2016 22:23
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

##Actualización del paquete de especificación de hardware arduino

###Introducción: Se necesita actualizar el paquete de especificación de hardware arduino con versiones superiores a v1.6.5 debido a que el gestor de paquete ha cambiado.

###Recursos utilizados:

@lobotomit
lobotomit / 0_Instrucciones.md
Last active November 17, 2016 22:50
Fosforo

creamos un Asoundrc

max@fosforo:~ $ arecord -D plughw:1,0 -f cd ./test.wav2H Recording WAVE './test.wav2H[A' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo max@fosforo:~ $ aplay -D plughw:0,0 -f cd ./test.wav Playing WAVE './test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo

@lobotomit
lobotomit / precision.mdown
Last active August 29, 2016 11:42
Precision
dec degr DMS Precision
0 1.0 1° 00′ 0″ 111.32 km
1 0.1 0° 06′ 0″ 11.132 km
2 0.01 0° 00′ 36″ 1.1132 km
3 0.001 0° 00′ 3.6″ 111.32 m
4 0.0001 0° 00′ 0.36″ 11.132 m
5 0.00001 0° 00′ 0.036″ 1.1132 m
6 0.000001 0° 00′ 0.0036″ 111.32 mm
7 0.0000001 0° 00′ 0.00036″ 11.132 mm
@lobotomit
lobotomit / Laravel
Last active July 20, 2017 18:19
My gitignore File
# IDE #
#######
/.idea
# Laravel_files #
#################
/vendor
/node_modules
/etc
.env