Skip to content

Instantly share code, notes, and snippets.

View lovesmall's full-sized avatar

Yiheng lovesmall

View GitHub Profile
@lovesmall
lovesmall / unobtrusive_poller.js.coffee
Created December 16, 2016 03:35 — forked from barelyknown/unobtrusive_poller.js.coffee
Unobtrusive JavaScript solution for polling in a Rails application
###
Unobtrusive JavaScript solution for polling in a Rails application
Introduction:
Add a polling-placeholder wrapper div to any partial and add a data attribute
named poll that should be equal to "true" until you want to stop polling.
The default polling frequency will be used unless you provide an "interval" data
attribute which should be the number of milliseconds to use for the interval.
To delete merged branches:
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
@lovesmall
lovesmall / rm_mysql.md
Created October 5, 2018 00:29 — forked from vitorbritto/rm_mysql.md
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

brew remove mysql

@lovesmall
lovesmall / README.md
Created January 15, 2019 04:13 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet