Skip to content

Instantly share code, notes, and snippets.

View nbermudezs's full-sized avatar

Néstor A. Bermúdez nbermudezs

  • University of Illinois at Urbana-Champaign
  • Honduras
  • 17:41 (UTC -06:00)
View GitHub Profile
@nbermudezs
nbermudezs / client.js
Created March 13, 2016 04:47 — forked from crtr0/client.js
A simple example of setting-up dynamic "rooms" for socket.io clients to join
// set-up a connection between the client and the server
var socket = io.connect();
// let's assume that the client page, once rendered, knows what room it wants to join
var room = "abc123";
socket.on('connect', function() {
// Connected, let's sign-up for to receive messages for this room
socket.emit('room', room);
});
@nbermudezs
nbermudezs / keybase.md
Created February 10, 2015 20:33
Prove ownership of this GitHub account to keybase

Keybase proof

I hereby claim:

  • I am nbermudezs on github.
  • I am nbermudezs (https://keybase.io/nbermudezs) on keybase.
  • I have a public key whose fingerprint is D1BB DE0F 7F30 2B4A 5BEB 232E 386D 7C00 0837 1773

To claim this, I am signing this object:

# These are all the cops that are enabled in the default configuration.
# Indent private/protected/public as deep as method definitions
Style/AccessModifierIndentation:
Description: Check indentation of private/protected visibility modifiers.
Enabled: true
EnforcedStyle: indent
SupportedStyles:
- outdent
- indent
@nbermudezs
nbermudezs / context.rb
Created October 31, 2014 20:16
Module methods to help handle the global context (a Hash instance)
#
# MfaFinances module will contain every single
# calculation necessary splitted into separated files
# per each spreedsheet's sheet.
#
# This file contains the global context so the calculation methods
# can use it.
#
# @version: 1.0
# @author: Nestor Bermudez