If you want to learn more about this image check out its GitHub repo
Download and setup gcloud SDK on your machine.
Create a new instance with the following settings:
import { ApplicationRef, ComponentRef, createComponent, Type } from "@angular/core"; | |
import { createApplication } from "@angular/platform-browser"; | |
import React, { useEffect, useRef, useState } from "react"; | |
type AnyComponentRef = ComponentRef<unknown>; | |
export type ReactifyProps = { | |
component: Type<unknown>; | |
inputs?: Record<string, unknown>; | |
}; |
If you want to learn more about this image check out its GitHub repo
Download and setup gcloud SDK on your machine.
Create a new instance with the following settings:
Com Docker é possível configurar um container para que ele ouça conexões à uma
porta apenas em um IP por meio da opção publish
, no formato
ip:hostPort:containerPort
. Isso impede que conexões sejam feitas por outros
IPs sejam aceitas.
Se configurarmos o container para ouvir apenas no IP de loopback (127.0.0.1
),
/* | |
* Stripe WebGl Gradient Animation | |
* All Credits to Stripe.com | |
* ScrollObserver functionality to disable animation when not scrolled into view has been disabled and | |
* commented out for now. | |
* https://kevinhufnagl.com | |
*/ | |
import { useEffect, useRef, useState } from "react"; | |
import { BehaviorSubject, Observable, PartialObserver, Subject } from "rxjs"; | |
function useConstant<T>(factory: () => T): T { | |
const ref = useRef<{ value: T }>(); | |
if (!ref.current) { | |
ref.current = { value: factory() }; | |
} |
@module-federation/nextjs-mf
.yarn add @module-federation/nextjs-mf
package.json
: "resolutions": {
import { captureException, flush } from '@sentry/nextjs'; | |
import NextErrorComponent from 'next/error'; | |
import type { ErrorProps } from 'next/error'; | |
import type { NextPage } from 'next'; | |
interface AppErrorProps extends ErrorProps { | |
err?: Error; | |
hasGetInitialPropsRun?: boolean; | |
} |
Relato de desenvolvimento de emulador NES usando Rust Relato do uso da linguagem Rust no desenvolvimento de um emulador de NES
Samuel M. Schultze samuelschultze@gmail.com
" Specify a directory for plugins | |
call plug#begin('~/.vim/plugged') | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'scrooloose/nerdtree' | |
"Plug 'tsony-tsonev/nerdtree-git-plugin' | |
Plug 'Xuyuanp/nerdtree-git-plugin' | |
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | |
Plug 'ryanoasis/vim-devicons' | |
Plug 'airblade/vim-gitgutter' |
More recent resolution: | |
1. cd ~/../../etc (go to etc folder in WSL). | |
2. echo "[network]" | sudo tee wsl.conf (Create wsl.conf file and add the first line). | |
3. echo "generateResolvConf = false" | sudo tee -a wsl.conf (Append wsl.conf the next line). | |
4. wsl --terminate Debian (Terminate WSL in Windows cmd, in case is Ubuntu not Debian). | |
5. cd ~/../../etc (go to etc folder in WSL). | |
6. sudo rm -Rf resolv.conf (Delete the resolv.conf file). | |
7. In windows cmd, ps or terminal with the vpn connected do: Get-NetIPInterface or ipconfig /all for get the dns primary and | |
secondary. |