Skip to content

Instantly share code, notes, and snippets.

View abiaki997-tech's full-sized avatar
:octocat:
Focusing

Abhilash abiaki997-tech

:octocat:
Focusing
View GitHub Profile

MySQL Cheat Sheet

Help with SQL commands to interact with a MySQL database

MySQL Locations

  • Mac /usr/local/mysql/bin
  • Windows /Program Files/MySQL/MySQL version/bin
  • Xampp /xampp/mysql/bin

Add mysql to your PATH

@ozziexsh
ozziexsh / Actions.js
Last active July 13, 2021 05:05
Redux-Saga Generator Example
import { call, put, takeLatest } from 'redux-saga/effects'
import axios from 'axios'
export const FETCH_API_REQUEST = 'FETCH_API_REQUEST';
export const FETCH_API_SUCCESS = 'FETCH_API_SUCCESS';
export const FETCH_API_FAIL = 'FETCH_API_FAIL';
// Moved api call into own function (for easy test swapping)
export function fetchFromApi(userId) {
return axios.get(`/users/${userId}`)