Skip to content

Instantly share code, notes, and snippets.

View EQuimper's full-sized avatar
🏠
Working from home

Emanuel Quimper EQuimper

🏠
Working from home
View GitHub Profile
@EQuimper
EQuimper / brew.md
Created April 21, 2017 15:50
Brew Command
  • For list services brew services list
  • For start services brew services start mongodb
  • For stop services brew services stop mongodb
@EQuimper
EQuimper / MySQL_macOS_Sierra.md
Created April 21, 2017 16:41 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@EQuimper
EQuimper / index.txt
Created April 24, 2017 18:37
clear expo cache
rm -fr ~/.expo/starter-app-cache
@EQuimper
EQuimper / git.md
Last active April 25, 2017 15:42
Some Git Command
  • Change last commit message git commit --amend
  • Push without ci git commit -m 'Change [ci skip]'
@EQuimper
EQuimper / cloudSettings
Last active May 9, 2017 13:56
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-05-09T13:54:37.300Z","extensionVersion":"v2.7.0"}
// @flow
import React, { Component } from 'react';
import {
VirtualizedList,
View,
ScrollView,
StyleSheet,
// $FlowFixMe
findNodeHandle,
@EQuimper
EQuimper / index.js
Created May 25, 2017 20:35
Thousand with comma
export function commaThousand(num) {
return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
@EQuimper
EQuimper / index.js
Created January 16, 2017 12:58
react-native exponent i18n
import i18n from 'react-native-i18n'
import Exponent from 'exponent'
import es from '../locales/es'
import en from '../locales/en'
i18n.fallbacks = true
const getLanguage = async () => {
i18n.locale = (await Exponent.Util.getCurrentLocaleAsync()).substring(0,2)
@EQuimper
EQuimper / packages.json
Created May 26, 2017 15:29
My prettier config
"prettier": "prettier --single-quote --print-width 80 --trailing-comma all --write '{src}/**/*.js'"