Este texto está en negrita
Este texto está en cursiva
Este texto está tachado
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Day 1 | |
/** | |
* @param {number[]} gifts - The array of gifts to prepare | |
* @returns {number[]} An array with the prepared gifts | |
*/ | |
function prepareGifts(gifts) { | |
let list = []; | |
for(var i = 0; i < gifts.length; i++) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*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;} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
NewerOlder