Skip to content

Instantly share code, notes, and snippets.

@EderRoger
EderRoger / bonitaJSSocket
Last active August 29, 2015 14:03
Node.js socket.io angular-socket-io example
var socket = null;
var host;
function showAlert(){
alert('YUPI I´m Loaded');
}
function connectToSocket(){
host = window.location.hostname;
@betweenbrain
betweenbrain / gist:7798873
Created December 5, 2013 01:47
Disable VT-X in Vagrantfile
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--hwvirtex", "off"]
end
@guerrerocarlos
guerrerocarlos / main.js
Created September 6, 2012 05:07
loading socket.io using require.js
// Require.js allows us to configure shortcut alias
require.config({
// The shim config allows us to configure dependencies for
// scripts that do not call define() to register a module
shim: {
'socketio': {
exports: 'io'
},
'underscore': {
exports: '_'