Skip to content

Instantly share code, notes, and snippets.

View mike-zipit's full-sized avatar

Mike Crowe mike-zipit

View GitHub Profile
@victor-perez
victor-perez / git.bat
Last active August 4, 2021 14:16
Use WSL git inside VS Code from Windows 10 17046
@echo off
setlocal ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
::this also support calls that contains a absolute windows path
::check of one of the params contain a absolute windows path
echo.%* | findstr /r /c:"[a-z]:[\\/]" > nul
if %errorlevel% == 1 (
::if not just git with the given parameters
call :git %*
@alexmnv
alexmnv / redux-saga - custom IO example
Last active March 20, 2022 21:04
redux-saga - runSaga() example with custom IO, using node.js EventEmitter
const { runSaga } = require('redux-saga')
const { takeEvery, select } = require('redux-saga/effects')
const EventEmitter = require('events').EventEmitter
//
// Create Saga IO:
//
const createSagaIO = (emitter, getStateResolve) => ({
// this will be used to resolve take Effects
subscribe: (callback) => {