Skip to content

Instantly share code, notes, and snippets.

View codecahill's full-sized avatar

Joseph Cahill codecahill

View GitHub Profile

Minecraft Ultimate Tool Set

Requires creative mode or operator power on a multiplayer server. On a single player game (survival or hardcore), you will need "cheats" enabled to move into creative mode. Don't forget to leave creative mode when done.

These items might be stupid. Be prepared to repair the country-side.

@codecahill
codecahill / chrome_app_js.js
Created October 18, 2018 19:09 — forked from johnschimmel/chrome_app_js.js
Chrome App to Webpage communication
// be sure to update manifest to allow external connections,
// https://developer.chrome.com/extensions/messaging#external-webpage
/*
"externally_connectable" : {
"matches": ["*://diyability-capacita.appspot.com/*"]
}
*/
// Listen for incoming long lasting PORT connection from Webpage or extension
@codecahill
codecahill / socket-cheatsheet.js
Created August 7, 2017 22:20 — 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