This file contains 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
# Delete extra branches that are NOT dev or master | |
git for-each-ref --format '%(refname:short)' refs/heads --merged | ForEach-Object { If("dev","master" -notcont ains $_) { git branch $_ -d } } |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using TwitchLib.Client.Models; | |
namespace Quiltoni.PixelBot.Commands | |
{ | |
public class GuessTimeCommandOld : IBotCommand | |
{ |
This file contains 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace WebApplication2.Models | |
{ | |
public interface IGetStoredInDatabase | |
{ |
This file contains 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
https://img.wallpapersafari.com/desktop/1600/900/86/42/SxyIEo.jpg |
This file contains 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
When I was your age, I coded with peeks and pokes. | |
I used to code with a chisel and a stone tablet | |
Back in my day, a fork lift was required for hardware upgrades, we didn't have fancy cloud services with sliders to add more memory and disk space | |
We didn't have network attached source control... instead I called the intern working as a data entry clerk and dictated my code to them for transcription and storage | |
I was coding before MCSE meant must consult someone else |
This file contains 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 BlazingPizza.Server; | |
public static class SeedData | |
{ | |
public static void Initialize(PizzaStoreContext db) | |
{ | |
var toppings = new Topping[] | |
{ | |
new Topping() | |
{ |
This file contains 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
var blobServiceClient = new BlobServiceClient(EnvironmentConfiguration.TableStorageConnectionString); | |
var containerClient = blobServiceClient.GetBlobContainerClient("cache"); | |
var client = containerClient.GetBlobClient("fileToCache.json"); | |
await client.UploadAsync(myContentToCacheAsStream, true); |
This file contains 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
public class IndexChannels { | |
public async Task Execute() { | |
var client = new ElasticClient("ID", new ApiKeyAuthenticationCredentials("API KEY")); | |
CreateChannelIndex(client); | |
await MigrateChannelsFromSqlServer(client); |
This file contains 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
@page "/About" | |
@attribute [OutputCache(Duration = 600)] | |
<PageTitle>C# in the Cards - About Us</PageTitle> | |
<HeadContent> | |
<link rel="canonical" href="https://csharpinthecards.com/about" /> | |
<meta name="title" content="C# in the Cards - About Us"> | |
<meta name="description" content="C# in the Cards is an innovative video training series that teaches the fundamentals of C# programming language using a deck of cards. Join Microsoft instructor and Twitch streamer Jeff Fritz on this exciting journey."> | |
<meta name="keywords" content="C#, Programming, Learning, Video Series, Jeff Fritz, Microsoft, Twitch, Education, Coding, Deck of Cards, Interactive Learning"> |