Skip to content

Instantly share code, notes, and snippets.

View mariobot's full-sized avatar
🔄
Working - Learning

Mario Botero mariobot

🔄
Working - Learning
View GitHub Profile
@mariobot
mariobot / Marcadores en GitHub.md
Last active May 8, 2020 15:02
Lista de marcadores utilizados para formatear texto en los archivos . md . mdf

Encabezado h1

Encabezado h2

Encabezado h3

Encabezado h4

Encabezado h5
Encabezado h6

Este texto está en negrita Este texto está en cursiva Este texto está tachado

@mariobot
mariobot / LogTableProcedure.sql
Last active January 25, 2020 22:22
Script for Log Table and Procedure implemented at https://www.youtube.com/watch?v=N9qioGSSzes
CREATE TABLE [dbo].[Logs](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Level] [varchar](255) NOT NULL,
[CallSite] [varchar](255) NOT NULL,
[Type] [varchar](255) NOT NULL,
[Message] [varchar](max) NOT NULL,
[StackTrace] [varchar](max) NOT NULL,
[InnerException] [varchar](max) NOT NULL,
[AdditionalInfo] [varchar](max) NOT NULL,
[LoggedOnDate] [datetime] NOT NULL,
git pull origin master // Para traer los cambios del servidor
git push origin development // Descarga los cambios del servidor.
git checkout api // Cambia de rama a la API
git merge --no--ff development // realiza la union de una rama con otra, en este ejemplo estando en api realizaria el merge con development
git status // para mirar el estado
@mariobot
mariobot / GenericRepository2.cs
Created August 10, 2015 18:52
Generic Repository Complete
namespace CodedHomes.Data
{
public class GenericRepository<T> : IRepository<T> where T : class
{
protected DbSet<T> DBSet { get; set; }
protected DbContext Context { get; set; }
public GenericRepository(DbContext context)
{
if (context == null)
@mariobot
mariobot / chuletas.css
Created August 10, 2015 18:36
Chuletas CSS
/*centrar imagenes en un div de bootstrap*/
style="display : block ; margin : 0 auto ;"
/*footer siempre en la parte de abajo*/
<footer style ="position:absolute;bottom:0">
/* Intrinsic HTML Elements */
body{margin:0;padding:0;}
div{margin:0;padding:0;}
h1, h2, h3, p{margin:0;padding:10px;}
@mariobot
mariobot / templatecss3.html
Created August 10, 2015 18:34
Template CSS
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>HTML4</title>
<style>
body {
font-family:Verdana,sans-serif;font-size:0.8em;
}
@mariobot
mariobot / EasyHtmlCss.html
Created August 10, 2015 18:31
Easy HTML and CSS
<!DOCTYPE html>
<html>
<head>
<style>
body { margin: 0 auto; width: 600px; }
section { display: block; }
section#articles { width: 440px; float: left; padding: 10px; background-color: #fbf0cc; }
article > header { text-decoration: underline; margin-bottom: 10px; }
aside { float: left; width: 100px; padding: 10px; }
footer { overflow: hidden; clear: both; text-align: center; padding: 20px; }
@mariobot
mariobot / template_htmlt.html
Created August 10, 2015 18:30
Template HTML 5
<!doctype html>
<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]-->
<!-- Consider adding an manifest.appcache: h5bp.com/d/Offline -->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
@mariobot
mariobot / GenericRepository.cs
Created August 10, 2015 18:28
GenericRepository
namespace CodedHomes.Data
{
public class GenericRepository<T> : IRepository<T> where T : class
{
protected DbSet<T> DBSet { get; set; }
protected DbContext Context { get; set; }
public GenericRepository(DbContext context)
{
if (context == null)
@mariobot
mariobot / IRepository.cs
Last active August 29, 2015 14:27
IRepository
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CodedHomes.Data
{
public interface IRepository<T> where T : class
{