Skip to content

Instantly share code, notes, and snippets.

@alicekao
alicekao / axiosMockAdapterUse.js
Last active May 3, 2024 09:53
How to use axios mock adapter
// Fetch all places action to test in actions/index.js
import axios from 'axios';
export function fetchPlaces() {
return dispatch => {
return axios.get('/api/places/fetchAll')
.then(resp => {
dispatch(updatePlaces(resp.data));
})
.catch(err => {
@shooksm
shooksm / JavaIntellijGit.flt
Created July 1, 2015 19:06
WinMerge Filter for a Java project in Intellij using GIT for version control
## This is a directory/file filter template for WinMerge
name: Java Intellij Git Filter
desc: Excludes compiled Java files, maven target folders, node_modules, Intellij project files, sass-cache and git folders
## This is an inclusive (loose) filter
## (it lets through everything not specified)
def: include
## Ignore git
d: \\\.git$