Skip to content

Instantly share code, notes, and snippets.

View elusive's full-sized avatar
💭
Migrating from ng to react!

John Gilliland elusive

💭
Migrating from ng to react!
View GitHub Profile
@elusive
elusive / launch.json
Created June 24, 2024 16:20
dotnet core web api in vscode
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": ".NET Core Launch (web)",
"type": "coreclr",
"request": "launch",
@elusive
elusive / reset.css
Last active February 7, 2024 05:18
CSS Simple Reset
/* RESET */
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, code,
del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0;
padding: 0;
@elusive
elusive / gist:bc224e393fed1e6dbb51c40bafdd204f
Created January 16, 2024 20:39
Bash script to automatically switch to node version if .nvmrc file is found.
#
# Run 'nvm use' automatically every time there's
# a .nvmrc file in the directory. Also, revert to default
# version when entering a directory without .nvmrc
#
enter_directory() {
if [[ $PWD == $PREV_PWD ]]; then
return
fi
@elusive
elusive / ngrxintro.md
Created October 17, 2023 18:01 — forked from btroncone/ngrxintro.md
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@elusive
elusive / release.yml
Created August 30, 2023 14:05
Github Actions workflow to create a release when any tag is pushed to main.
name: Create release
on:
push:
tags:
- v*
jobs:
release:
name: Release pushed tag
var mediaJSON = { "categories" : [ { "name" : "Movies",
"videos" : [
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ],
"subtitle" : "By Blender Foundation",
"thumb" : "images/BigBuckBunny.jpg",
"title" : "Big Buck Bunny"
},
{ "description" : "The first Blender Open Movie from 2006",
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ],
@elusive
elusive / us-states.go
Last active January 15, 2023 19:50 — forked from tmaiaroto/usc.go
Golang map of US state codes : full name
// A handy map of US state codes to full names
var usc = map[string]string{
"AL": "Alabama",
"AK": "Alaska",
"AZ": "Arizona",
"AR": "Arkansas",
"CA": "California",
"CO": "Colorado",
"CT": "Connecticut",
@elusive
elusive / Singleton{T}.cs
Last active November 10, 2022 16:09
Singleton Helper
namespace Elusive
{
using System;
using System.Collections.Concurrent;
/// <summary>
/// Provides easy management of singleton instances when IoC is not available.
/// </summary>
/// <typeparam name="T"></typeparam>
public static class Singleton<T>
#!/bin/bash
### Copy of https://gist.github.com/redthor/3776c1f726cafff41c9eda6f271466c3
### Adding in comments explaining each line/command in order to help learning
### Set DRY_RUN=1 to only echo the commands instead of executing them
#DRY_RUN=1
@elusive
elusive / IgnoreFilesInExistingRepo.sh
Created April 2, 2021 17:29
Add to .gitignore and apply
git rm -r --cached .
git add .
git commit -m "updated .gitignore is now working"