Skip to content

Instantly share code, notes, and snippets.

View Lauwed's full-sized avatar
☣️
|

Laura Durieux Lauwed

☣️
|
View GitHub Profile
@Lauwed
Lauwed / girl.png
Created January 2, 2025 06:47
Girl
girl.png
@Lauwed
Lauwed / dev.png
Last active January 2, 2025 06:47
Dev
dev.png
@Lauwed
Lauwed / error.json
Created September 10, 2024 19:20
Erreur mystérieuse APIP sur le champ $is_main
{
"@id":"\/errors",
"@type":"hydra:Error",
"title":"An error occurred",
"detail":"Cannot access private property App\\Entity\\PersonPicture::$isMain",
"status":500,
"type":"\/errors\/500",
"trace":[
{
"file":"\/app\/vendor\/api-platform\/core\/src\/State\/CallableProcessor.php",
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:controls="clr-namespace:TrainityMobile.Controls;assembly=TrainityMobile"
xmlns:buttons="clr-namespace:Syncfusion.XForms.Buttons;assembly=Syncfusion.Buttons.XForms"
xmlns:border="clr-namespace:Syncfusion.XForms.Border;assembly=Syncfusion.Core.XForms"
xmlns:sfcalendar="clr-namespace:Syncfusion.SfCalendar.XForms;assembly=Syncfusion.SfCalendar.XForms"
xmlns:navigationdrawer="clr-namespace:Syncfusion.SfNavigationDrawer.XForms;assembly=Syncfusion.SfNavigationDrawer.XForms"
x:Class="TrainityMobile.Views.Dashboard.DashboardPage"
x:Name="Dashboard"
@Lauwed
Lauwed / ExampleUse.cs
Last active March 12, 2021 09:38
How to round a DateTime to the next quarter ?
public DateTime SomeFunction()
{
var birthdayParty = DateTime.Now;
return birthdayParty.RoundToQuarterCloser();
}
@Lauwed
Lauwed / Club.cs
Last active February 23, 2021 20:16
For my article on IoC and DI - Without DI
public class Club
{
public List<Trainer> GetTrainers()
{
// Query to the DB in real life.
return new List<Trainer>
{
new Trainer { Name = "Jean" },
new Trainer { Name = "Amhed" },
new Trainer { Name = "Julie" },