Skip to content

Instantly share code, notes, and snippets.

View gilvam's full-sized avatar

gilvam gilvam

  • Melbourne - VIC - Australia
  • 01:55 (UTC -12:00)
View GitHub Profile
export class FormUser {
constructor(
public name = '',
public email = '',
public age = 0
) {}
get isAdult(): boolean {
return this.age >= 18;
}
@gilvam
gilvam / remoteEntry.ts
Last active November 18, 2024 20:54
module federation test reload remoteEntry.js
const routes: Routes = [
{
path: 'x',
component: XComponent,
},
{
path: 'xpto',
component: WebComponentWapper,
data: {
remoteEntry: 'https://www.xxx.com:4000/remoteEntry.js',
[
{
// SELECT smart
"key": "ctrl+w",
"command": "editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
// UNSELECT smart
"key": "ctrl+shift+w",
@gilvam
gilvam / vsconde-settings.json
Last active November 4, 2024 02:08
VSCODE settings.json
{
"apc.electron": {
"titleBarStyle": "hiddenInset",
"trafficLightPosition": {
"x": 11,
"y": 10
},
"frame": false,
},
"apc.header": {
@gilvam
gilvam / regarregar_pedacos_html.php
Created April 29, 2013 19:19
regarregar pedaços html
<?php
if ($_POST['btnSalvar'])
{
try
{
echo '<h1>btnSalvar Uhulllll!</h1>';
}
catch (Exception $exception)
{
echo $exception->getMessage();