Skip to content

Instantly share code, notes, and snippets.

View mugan86's full-sized avatar
💻
💪💪

Anartz Mugika Ledo mugan86

💻
💪💪
View GitHub Profile
@mugan86
mugan86 / index_spec.ts
Created December 4, 2022 10:37
Basic testing with Angular Schematics
import { Tree } from '@angular-devkit/schematics';
import { SchematicTestRunner } from '@angular-devkit/schematics/testing';
import * as path from 'path';
const collectionPath = path.join(__dirname, '../collection.json');
describe('hello', () => {
it('Execute with default args', async () => {
const runner = new SchematicTestRunner('schematics', collectionPath);
const tree = await runner
@mugan86
mugan86 / mad-libs-generator.py
Created April 22, 2021 12:59
Generador Mad Libs
# Mad Libs Generator - Charles Joseph Monaghan 11/10/2017
# Traducido por Anartz Mugika Ledo 23/04/2021
# Loop back to this point once code finishes
loop = 1
while (loop < 10):
# Todas las preguntas que se le realiza al usuario para que las conteste
noun = input("Selecciona un sustantivo: ")
@mugan86
mugan86 / donostia-sport-stadiums.geojson
Created October 24, 2022 17:46
Donostia Sport Stadiums
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mugan86
mugan86 / earthqueakes-gipuzkoa.ts
Created October 18, 2022 17:44
Data to use in Medium article
export const earthQuakesGipuzkoa = [
{
name: 'Mutiloa',
location: { lat: 43.0220391, lng: -2.2727507 },
elevation: '246',
magnitude: 6,
},
{
name: 'Villabona',
location: { lat: 43.1876792, lng: -2.0534727 },
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"AngularHuskyWithGitHooks": {
"projectType": "application",
"schematics": {
"@schematics/angular:application": {
"strict": true
{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],

feat: lectura de código QR para extraer datos de contacto ^--^ ^------------^ | | | +-> Mensaje de commit (tiene que empezar en minúsculas). | +-------> Type (Tipo de mensaje): chore, docs, feat, fix, refactor, style, ó test.

{
"root": true,
"ignorePatterns": [
"projects/**/*"
],
"overrides": [
{
"files": [
"*.ts"
],
{
countUsers
users (page: 1) {
status
message
list {
id
name
lastname
}
@mugan86
mugan86 / projects-graphql.md
Last active July 17, 2022 17:30 — forked from anartzdev/projects-graphql.md
Interest GraphQL Projects

Interest GraphQL Projects:

En este momento a falta de añadir la recopilación tanto para añadir APIs y proyectos clientes que consumen APIs GraphQL dejo disponible el enlace a esta organización con una cantidad considerable de proyectos:

https://github.com/graphql-course

  • Pendiente de añadir en diferentes secciones (Cliente: Angular, React, consumir desde JS, Python,... y Backend: APIs con Node Express)