Skip to content

Instantly share code, notes, and snippets.

View evilsmoon's full-sized avatar

Gabriel Morales evilsmoon

View GitHub Profile
@evilsmoon
evilsmoon / connection_flask_psql.py
Created December 6, 2021 21:12
connect flask with psql
try:
conn = psycopg2.connect(
host="localhost",
database="catastro_manta",
user="postgres",
password="753159862450")
cur = conn.cursor()
sql1 = """
select bp.blopr_numero, bp.blopr_numpiso, bp.blopr_superfconstr, bp.blopr_enconstruccion,
@evilsmoon
evilsmoon / mostrar.dart
Created June 10, 2021 04:15
mostrar camera
_mostrarFoto() {
if (producto.fotoUrl != null) {
return Container();
} else {
if( foto != null ){
return Image.file(
@evilsmoon
evilsmoon / git-congih.MD
Last active August 25, 2021 18:02
config git

Config git

User Name

git config --global user.name ''

User Email

git config --global user.email ''
const path = require("path");
const HtmlWebPackPlugin = require("html-webpack-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = {
entry: "./src/index.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "bundle.js",
import React from 'react'
import { Link } from 'react-router-dom'
export const HeroCard = ({
id,
superhero,
alter_ego,
first_appearance,
characters,
}) => {
export const heroes = [
{
'id': 'dc-batman',
'superhero':'Batman',
'publisher':'DC Comics',
'alter_ego':'Bruce Wayne',
'first_appearance':'Detective Comics #27',
'characters':'Bruce Wayne'
},
{
@evilsmoon
evilsmoon / Navbar.js
Created November 25, 2020 04:16 — forked from Klerith/Navbar.js
Un NavBar de Bootstrap rápido para el curso de React de cero a experto
import React from 'react'
import { Link, NavLink } from 'react-router-dom'
export const Navbar = () => {
return (
<nav className="navbar navbar-expand-sm navbar-dark bg-dark">
<Link
className="navbar-brand"
to="/"