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
FROM node:alpine as builder | |
WORKDIR /usr/src/app | |
COPY package.json yarn.lock ./ | |
RUN yarn | |
COPY . ./ | |
RUN yarn generate | |
FROM nginx | |
COPY --from=builder /usr/src/app/dist /usr/share/nginx/html |
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
const { DataTypes } = require("sequelize"); | |
module.exports = { | |
name: "Breed", | |
modelName: "breed", | |
schema: { | |
name: { | |
type: DataTypes.STRING, | |
allowNull: false, | |
} |
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
internal class Program | |
{ | |
private const int PORT = 4843; | |
private static void Main(string[] args) | |
{ | |
Console.WriteLine("Packet Forwarding UP!"); | |
var client = new UdpClient(PORT); | |
var ipEndPoint = new IPEndPoint(IPAddress.Loopback, PORT); | |
while (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
using System; | |
using System.Net; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ForzaData.UdpClient | |
{ | |
internal class Program | |
{ | |
private const int FORZA_DATA_OUT_PORT = 5300; |
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 the "@nuxtjs/firebase" module | |
import {mutationNames} from '@/data/StoreNames' | |
export default async ({ store, app }, inject) => { | |
// Sets up a listener, mutations and action for every onAuthStateChanged by Firebase. | |
// AND runs the functions once BEFORE the root Vue.js Application is instantiated. | |
const unsubscribe = await new Promise(resolve => { | |
const unsubscribe = app.$fireAuth.onAuthStateChanged(async user => { |
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
<template> | |
<div> | |
<!-- Properties automatically map --> | |
<LazyImage class="my-class" src="/some/asset.png" alt="" /> | |
<!-- Can use property and event binding --> | |
<LazyImage class="my-class" :src="transform(myObj.imageSrc)" :alt="myObj.alt" @click="showMessage" /> | |
</div> | |
</template> |
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
Windows Registry Editor Version 5.00 | |
; Open files | |
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code] | |
@="Edit with VS Code" | |
"Icon"="C:\\Users\\YOUR_USER_NAME\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe,0" | |
[HKEY_CLASSES_ROOT\*\shell\Open with VS Code\command] | |
@="\"C:\\Users\\YOUR_USER_NAME\\AppData\\Local\\Programs\\Microsoft VS Code\\Code.exe\" \"%1\"" | |
; This will make it appear when you right click ON a folder | |
; The "Icon" line can be removed if you don't want the icon to appear | |
[HKEY_CLASSES_ROOT\Directory\shell\vscode] |
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 ThisLogger: ILoggerFactory | |
{ | |
private readonly Microsoft.Extensions.Logging.ILoggerFactory _logger; | |
public ThisLogger(Microsoft.Extensions.Logging.ILoggerFactory logger) | |
{ | |
_logger = logger; | |
} | |
public ILogger Create(Type type) |
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.IO; | |
using System.Linq; | |
using System.Net; | |
using System.Security.Cryptography.X509Certificates; | |
using System.Text; | |
using System.Text.Json; | |
using System.Threading; | |
using System.Threading.Tasks; |
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
private static IHostBuilder CreateHostBuilder(string[] args) | |
{ | |
return Host.CreateDefaultBuilder(args) | |
.ConfigureWebHostDefaults(webBuilder => | |
{ | |
webBuilder.UseStartup<Startup>(); | |
webBuilder.UseKestrel((context, options) => | |
{ |