Skip to content

Instantly share code, notes, and snippets.

View carloswm85's full-sized avatar
🎯
Compiling...

Carlos W. Mercado carloswm85

🎯
Compiling...
View GitHub Profile
/* eslint-disable node/no-unpublished-require */
const swaggerAutogen = require('swagger-autogen')();
const dotenv = require('dotenv');
dotenv.config();
const isLocalHost = true;
const PORT = process.env.PORT || 8080;
// eslint-disable-next-line no-console
console.log(`Is localhost: ${isLocalHost}`);
[
{
"firstName": "Juliette",
"lastName": "Tucker",
"email": "babygirl@cse341.com",
"favoriteColor": "magenta",
"birthday": "11/02/15"
},
{
"firstName": "Irma",

chrome_j7twLHks5i

(function( factory ) {
if ( typeof define === "function" && define.amd ) {
define( ["jquery", "../jquery.validate"], factory );
} else if (typeof module === "object" && module.exports) {
module.exports = factory( require( "jquery" ) );
} else {
factory( jQuery );
}
}
(function ($) {
@carloswm85
carloswm85 / main.dart
Last active December 22, 2023 12:16
go_router app with ShellRoute
import 'package:flutter/material.dart';
import 'package:go_router/go_router.dart';
void main() {
runApp(const MainApp());
}
class MainApp extends StatelessWidget {
const MainApp({super.key});

ERROR 405

The request sent to the Web server used an HTTP verb that is not allowed by the module configured to handle the
request. A request was sent to the server that contained an invalid HTTP verb. The request is for static content
and contains an HTTP verb other than GET or HEAD. A request was sent to a virtual directory using the HTTP verb
POST and the default document is a static file that does not support HTTP verbs other than GET or HEAD.

What is WebDAV?

import 'package:miningtrackerapp/domain/entities/prueba.dart';
import 'package:miningtrackerapp/presentation/providers/pruebas/pruebas_repository_provider.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
/// PROVIDERS ==================================================================
// 1
final providerPruebasList =
StateNotifierProvider<PruebasListNotifier, List<Prueba>>((ref) {
final getPruebasList = ref.watch(pruebasRepositoryProvider).getPruebasList;