Skip to content

Instantly share code, notes, and snippets.

View JaimeStill's full-sized avatar
👾

Jaime Still JaimeStill

👾
View GitHub Profile
[
{
id: 1,
categoryId: 1,
name: "Nirvana - Nevermind",
description: "Grunge",
category: {
id: 1,
name: "Music",
items: []
@JaimeStill
JaimeStill / magick-books.md
Last active October 14, 2020 13:01
Damien Echols' beginners booklist
@JaimeStill
JaimeStill / bulma.md
Last active April 24, 2020 17:51
Notes for building features into Sapper

Sapper Bulma Setup

Bulma

yarn add -D bulma sass svelte-preprocess

rollup.config.js

@JaimeStill
JaimeStill / prevent-weekends.cs
Created December 3, 2019 15:03
In C#, project a date in the future and ensure it does not fall on the weekend
using System;
public static class DateExtensions
{
static DateTime PreventWeekend(this DateTime dateTime)
{
switch (dateTime.DayOfWeek)
{
case DayOfWeek.Saturday:
return dateTime.AddDays(2);
@JaimeStill
JaimeStill / 01_Get-DomainController.ps1
Created August 25, 2019 17:10
PowerShell Scripts to Provision Domain Accounts
[CmdletBinding()]
Param(
[Parameter()]
[string]$remoteServer,
[Parameter()]
[PSCredential]$credential
)
Write-Host "Checking Domain Controller Availability... `n" -ForegroundColor DarkGreen
$session = New-PSSession -ComputerName $remoteServer -Credential $credential -Authentication Credssp
Invoke-Command -Session $session -ScriptBlock { Import-Module ActiveDirectory }
@JaimeStill
JaimeStill / package.json
Created August 22, 2019 13:50
Snippets extension layout - multiple language files
"contributes": {
"snippets": [
{
"language": "javascript",
"path": "./snippets/js/objects.json"
},
{
"language": "javascript",
"path": "./snippets/js/arrays.json"
}