Skip to content

Instantly share code, notes, and snippets.

View Beelzenef's full-sized avatar
📚
coding + learning

Elena.NET Beelzenef

📚
coding + learning
View GitHub Profile
@Beelzenef
Beelzenef / zindex.html
Last active January 4, 2016 18:59
Trabajando con z-index
<html>
<head>
<style type="text/css">
div {
position: absolute;
}
#primero {
z-index:1;
top: 0px;
left: 0px;
@Beelzenef
Beelzenef / plantillaProyectos.md
Created June 7, 2016 12:05
Plantilla para README en proyectos alojados en GitHub

Titulo

Version

Descripcion


Contribuyentes

@Beelzenef
Beelzenef / selectionBox.gd
Created July 28, 2018 19:28
selection box for top-down 2D game in Godot
extends Control
var initialPos
var currentPos
func _ready(true):
set_process(true)
func _process(delta):
createBox()
@Beelzenef
Beelzenef / tryD3.html
Created November 26, 2018 10:30
understanding D3 behaviour in their 3 "phases": enter, update, exit
<ul class="users">
</ul>
@Beelzenef
Beelzenef / complexLINQquerySyntax.cs
Created April 3, 2019 14:11
A left join combined with group by combined with sum
public async Task<List<Result>> GetDistributionEvolution(List<Guid> listOfElements, int status)
{
var results = await (from firsts in _dbContext.FirstList
join seconds in _dbContext.SecondList on firsts.Id equals seconds.ForeginKey
into scs
from scsResult in scs.DefaultIfEmpty()
where scsResult.StatusId == stateId &&
listOfElements.Contains(scsResult.ElementKey)
group scsResult by firsts.Year into yearGroup
select new Result
@Beelzenef
Beelzenef / arjs.html
Created September 12, 2019 08:31
AR.js in action!
<!doctype HTML>
<html>
<script src="https://aframe.io/releases/0.9.2/aframe.min.js"></script>
<script src="https://raw.githack.com/jeromeetienne/AR.js/1.7.5/aframe/build/aframe-ar.js"></script>
<body style='margin : 0px; overflow: hidden;'>
<a-scene embedded arjs>
<a-marker preset="hiro">
<a-box position='0 0.5 0' material='color: yellow;'>
</a-box>
</a-marker>
<StackPanel Padding="10"
Spacing="10">
<TextBlock Text="Windows" />
<StackPanel Orientation="Horizontal" Spacing="10" Padding="10">
<Button Content="Button" />
<Button Content="Button" IsEnabled="False" />
</StackPanel>
<TextBlock Text="iOS" />
@Beelzenef
Beelzenef / efcore_dbcontext_conf.cs
Last active June 10, 2020 18:24
Ejemplo de DbContext para medium.com/puntotech
using Microsoft.EntityFrameworkCore;
namespace PuntoTechApp
{
public class MyContext : DbContext
{
protected override void OnConfiguring(DbContextOptionsBuilder options)
{
if (!options.IsConfigured)
{
@Beelzenef
Beelzenef / efcore_dbcontext_entities.cs
Last active June 10, 2020 18:24
Ejemplo de DbContext con entidades para medium.com/puntotech
using Microsoft.EntityFrameworkCore;
namespace PuntoTechApp
{
public class MyContext : DbContext
{
public DbSet<Post> Posts { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder options)
{
if (!options.IsConfigured)
@Beelzenef
Beelzenef / post_entity.cs
Created May 3, 2020 09:29
Entidad Post para EF Core en medium.com/puntotech
namespace PuntoTechApp
{
public class Post : BaseEntity
{
public string Title { get; set; }
public string Url { get; set; }
public int Words { get; set; }
}
}