Skip to content

Instantly share code, notes, and snippets.

View Retterath's full-sized avatar
🙉
Dont give bugs places to hide.

tmrtrt Retterath

🙉
Dont give bugs places to hide.
View GitHub Profile
@Retterath
Retterath / html
Created September 9, 2020 17:15
For Alex
{% extends "auctions/layout.html" %}
{% block title %}Create auction{% endblock title %}
{% block body %}
<form method="POST">
{% csrf_token %}
{{form.as_p}}
{{form.name}}
<input type="submit" name="Save" id="">
</form>
@Retterath
Retterath / Family
Created October 12, 2019 12:11
This is a little demonstration of how we can use classes.
using System;
using System.Collections.Generic;
using System.Text;
using System.Linq;
namespace DefiningClasses
{
public class Family
{
private List<Person> people;
@Retterath
Retterath / Enumerable & Predicate
Created August 13, 2019 14:07
This is just a simple example of how we can use a Predicate<T> and an Enumarable
namespace TestArea
{
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main(string[] args)
{
int upperBond = int.Parse(Console.ReadLine());
@Retterath
Retterath / Arithmetics with Func & Action
Created August 8, 2019 05:42
This program is useful for learning the basics of the function and action.
using System;
using System.Linq;
namespace AppliedArithmetics
{
class Program
{
static void Main(string[] args)
{
int[] input = Console.ReadLine()
@Retterath
Retterath / Code
Created August 1, 2019 12:47
Code for a concert organisation/Can be improved with private functions/Comments included
namespace ExamPreparation
{
using System;
using System.Collections.Generic;
using System.Linq;
class Program
{
static void Main(string[] args)
@Retterath
Retterath / No such
Created July 12, 2019 16:40
Time for some music, right?
using System;
using System.Collections.Generic;
using System.Linq;
namespace December2018
{
class Program
{
static void Main()
{
@Retterath
Retterath / No such
Created July 12, 2019 16:39
Moving characters ASCII up and down depending if the input is valid
using System;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
namespace ConcertRegex
{
class Program
{
static void Main(string[] args)
@Retterath
Retterath / Count Chars in a String
Created November 7, 2018 09:22
Count Chars in a String
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CharInString
{
class Program
{
@Retterath
Retterath / Experiment
Created October 29, 2018 14:32
StackOverflow
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AppendArrays
{
class Program
{
@Retterath
Retterath / Train
Created October 27, 2018 10:31
Train (not completed)
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Train
{
class Program
{