Skip to content

Instantly share code, notes, and snippets.

View rafaelwt's full-sized avatar

Rafael Wayar Tateishi rafaelwt

View GitHub Profile
@rafaelwt
rafaelwt / plugins.md
Created November 13, 2019 18:12 — forked from Klerith/plugins.md
Flutter: Curso de Flutter - Instalaciones recomendadas
@rafaelwt
rafaelwt / socket-cheatsheet.js
Created March 14, 2018 01:09 — 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
@rafaelwt
rafaelwt / repo-reset.md
Created February 19, 2018 19:17 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A