Skip to content

Instantly share code, notes, and snippets.


Rhuan rhuanbarreto

Block or report user

Report or block rhuanbarreto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
RedHatter / DateMultiPicker.jsx
Last active Nov 19, 2019
Range and multi select for @dmtrKovalenko/material-ui-pickers
View DateMultiPicker.jsx
import React, { useState, useContext, useRef } from 'react'
import { DatePicker } from 'material-ui-pickers'
import { MuiPickersContext } from 'material-ui-pickers'
export default function DateMultiPicker({
spalladino /
Created Dec 22, 2015
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
mlynch / autofocus.js
Last active Aug 9, 2019
AngularJS Autofocus directive
View autofocus.js
* the HTML5 autofocus property can be finicky when it comes to dynamically loaded
* templates and such with AngularJS. Use this simple directive to
* tame this beast once and for all.
* Usage:
* <input type="text" autofocus>
* License: MIT
You can’t perform that action at this time.