Skip to content

Instantly share code, notes, and snippets.

View nicobytes's full-sized avatar
🏠
Working from home

Nicolas Molina Monroy nicobytes

🏠
Working from home
View GitHub Profile
@nicobytes
nicobytes / workshot.md
Created November 11, 2023 10:54
WebContianers
import { Component, ElementRef, ViewChild } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterOutlet } from '@angular/router';
import { ReactiveFormsModule } from '@angular/forms';
import { WebContainer } from '@webcontainer/api';
import { FormControl } from '@angular/forms';

export const files = {
  'index.js': {
@nicobytes
nicobytes / index.md
Last active March 27, 2024 16:41
Angular Course

Angular Todo App

styles.css
html,
body {
  margin: 0;
  padding: 0;
@nicobytes
nicobytes / dataset-mongo.md
Last active February 29, 2024 01:09
MongoDB
@nicobytes
nicobytes / example.js
Created March 23, 2022 23:09
example
(()=> {
const myCart = [];
const products = [];
const limit = 2;
async function getProducts() {
const rta = await fetch('http://api.escuelajs.co/api/v1/products', {
mehtod: 'GET'
});
const data = await rta.parseJson();
interface Task {
  id: number;
  title: string;
  completed: boolean;
  createdAt: Date;
}

interface CreateTaskDto extends Omit<Task, 'id' | 'createdAt'> {}
interface UpdateTaskDto extends Omit<Partial<Task>, 'id'> {}
@nicobytes
nicobytes / angular-google-maps-steps.md
Last active November 28, 2021 17:34
Integrando Google Maps en una app con Ionic + Angular

Create project

ionic start
ionic serve

Install

1 Entity

import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';

@Entity()
export class Category {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()

1 Entity

import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';

@Entity()
export class Photo {
  @PrimaryGeneratedColumn()
  id: number;

  @Column()