Skip to content

Instantly share code, notes, and snippets.

View Santosl2's full-sized avatar
🎯
Focusing

Matheus Filype Santosl2

🎯
Focusing
View GitHub Profile
import rootReducer from '../my-rootreducer-dir';

function renderWithRedux(ui, { initialState, store = createStore(rootReducer, initialState) } = {}, renderFn = render) {
  const obj = {
    ...renderFn(<Provider store={store}>{ui}</Provider>),
    store,
  };
  obj.rerenderWithRedux = (el, nextState) => {
# migrating from https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/git/git.plugin.zsh
# Aliases
alias g='git'
#compdef g=git
alias gst='git status'
#compdef _git gst=git-status
alias gd='git diff'
#compdef _git gd=git-diff
alias gdc='git diff --cached'
// --- Initialization ---
// Ensure the original functions are stored so we can call them
if (!window.originalDecodeStanza) {
window.originalDecodeStanza = require("WAWap").decodeStanza;
window.originalEncodeStanza = require("WAWap").encodeStanza;
}
/**
* Recursively walks through an object or array and decodes any Uint8Array
* placeholders it finds into JSON objects.
@Santosl2
Santosl2 / monitor.js
Created May 9, 2026 00:21 — forked from purpshell/monitor.js
Monitor Socket messages on 2.3000x and above
if (!window.decodeBackStanza) {
window.decodeBackStanza = require("WAWap").decodeStanza;
window.encodeBackStanza = require("WAWap").encodeStanza;
}
require("WAWap").decodeStanza = async (e, t) => {
const result = await window.decodeBackStanza(e, t);