Skip to content

Instantly share code, notes, and snippets.

View srakowski's full-sized avatar

Shawn Rakowski srakowski

View GitHub Profile
namespace Steg
{
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Piranha;
using Piranha.AttributeBuilder;
using Piranha.AspNetCore.Identity.SQLite;
using Piranha.Data.EF.SQLite;
using Piranha.Manager.Editor;
using OrchardCore.Environment.Shell.Configuration;
@srakowski
srakowski / fruit_train.py
Created December 22, 2020 22:26
Linked List in Python based on fruit
# House - Memory
# FruitBowl, Table, Stove, Couch, TVStand - Specific addresses in Memory
# Orange, Apple, Banana - Data we want stored in Memory
# Note - Contains specific address in memory or <None>
# House[FruitBowl] -> Note -> Table
# House[Table] -> Orange, Stove
# House[Stove] -> Apple, Couch
# House[Couch] -> Banana, <None>
# House[Stove].Note = House[Couch].Note
# House[TVStand] = (Orange, House[FruitBowl].Note)
@srakowski
srakowski / Constants.cs
Last active December 16, 2017 00:22 — forked from Flayed/Constants.cs
Enumerate Class Constants
public static class MagicStrings
{
public const string Potato = "Potato";
public const string Tomato = "Tomato";
private static string[] _strings;
public static string[] Strings
{
get
{
@srakowski
srakowski / AModel.cs
Last active June 3, 2016 04:53
Example of Dynamic Proxy ViewModel in C#?
using System;
namespace VMSandbox
{
class AModel
{
public DateTime Date { get; set; } = DateTime.UtcNow;
public int MyLifeForTheCodeDownloads { get; set; } = Int32.MaxValue;
}