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) => {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Place your key bindings in this file to override the defaultsauto[] | |
| [ | |
| { | |
| "key": "ctrl+d", | |
| "command": "editor.action.copyLinesDownAction", | |
| "when": "editorTextFocus && !editorReadonly" | |
| }, | |
| { | |
| "key": "ctrl+shift+alt+down", | |
| "command": "-editor.action.copyLinesDownAction", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export class CacheMap { | |
| private cache: Map<string, Cache>; | |
| private expiration_time: number; // Tempo de expiração em segundos | |
| constructor(expiration?: number) { | |
| this.cache = new Map(); | |
| this.expiration_time = expiration || 60; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Carrega automaticamente o .nvmrc | |
| load-nvmrc() { | |
| local nvmrc_path | |
| nvmrc_path="$(nvm_find_nvmrc)" | |
| if [ -n "$nvmrc_path" ]; then | |
| local nvmrc_node_version | |
| nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") | |
| if [ "$nvmrc_node_version" = "N/A" ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const exportedColors = [{}]; | |
| const colorsTitle = document.querySelectorAll( | |
| "div.raw_components--modalPanel--NX71G.variable_picker_ui--modalPanel--X0bjl > div > div > div > div" | |
| ); | |
| Array.from(colorsTitle).map((el) => { | |
| const color = el.textContent; | |
| if (!color) return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ___INFO___ | |
| { | |
| "type": "MACRO", | |
| "id": "cvt_temp_public_id", | |
| "version": 1, | |
| "securityGroups": [], | |
| "displayName": "Conversor para Webhook | Matheus Filype", | |
| "description": "", | |
| "containerContexts": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Formatters { | |
| static hour(value: string) { | |
| if (!value) return value | |
| const formatter = value | |
| .replace(/\D/g, '') | |
| .replace(/(\d{2})(\d)/, '$1:$2') | |
| .replace(/(\d{2}):(\d{2}).+/, '$1:$2') | |
| return formatter |
OlderNewer