Skip to content

Instantly share code, notes, and snippets.

View Glutnix's full-sized avatar
🦨
codin' up a storm

Brett Taylor Glutnix

🦨
codin' up a storm
View GitHub Profile
@Glutnix
Glutnix / sidewayschat-pronouns-fields.json
Last active October 11, 2022 22:49
MrBoost Sideways Chat + Pronouns
{
"testMessage": {
"type": "button",
"label": "Test message",
"value": "Test message",
"group": "Test"
},
"noname": {
"type": "dropdown",
"label": "Show nickname every msg?",
@Glutnix
Glutnix / artshare.template
Created March 26, 2021 00:56
Art Share bot script for YAGPDB
{{/*
Art Share by Juniper#9001
for yagpdb.xyz discord bot
trigger: regex: .*
Restrict to #art-share channel
Will copy any post with art or linking to art (with a link that unfurls into an embed) into another channel for posterity.
@Glutnix
Glutnix / _slug.vue
Created July 15, 2020 06:47
nuxt + nuxt-composition-api + typescript + @nuxt/content
<template>
<div>
nuxt.js + nuxt-composition-api + typescript + @nuxt/content to work with meta generated by $content in setup,
and have it generate the appropriate tags at generation time!
<journal-post v-if="journal" :post="journal" />
</div>
</template>
<script lang="ts">
import {
@Glutnix
Glutnix / machine.js
Last active March 6, 2020 00:25
Generated by XState Viz: https://xstate.js.org/viz
const searchStarWarsPeople = search =>
fetch(`https://swapi.co/api/people/?search=${search}`).then(response =>
response.json()
);
const searchMachine = Machine(
{
id: "searchMachine",
context: {
@Glutnix
Glutnix / machine.js
Created February 4, 2020 01:51
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Glutnix
Glutnix / machine.js
Created February 3, 2020 00:09
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Glutnix
Glutnix / machine.js
Last active February 3, 2020 00:06
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@Glutnix
Glutnix / index.js
Created February 4, 2019 21:26
cloudfront lambda to redirect requests for folders to the index.html inside that folder
/*
redirect requests for folders to folders/index.html
*/
const resolveUrlEndingInSlashToIndexHtml = require('./resolve-url-ending-in-slash-to-index-html');
exports.handler = (event, context, callback) => {
// Extract the request from the CloudFront event that is sent to Lambda@Edge
const { request } = event.Records[0].cf;
@Glutnix
Glutnix / .gitconfig
Last active July 23, 2020 23:07
Git Aliases
[core]
autocrlf = true
excludesfile = C:\\Users\\Brett\\Documents\\gitignore_global.txt
# Git Extensions built-in commit editor
#editor = \"C:/Program Files (x86)/GitExtensions/GitExtensions.exe\" fileeditor
# Use Visual Studio Code
editor = code -w
longpaths = true
@Glutnix
Glutnix / single-game.md
Last active April 21, 2016 05:14
Pyramid Buffet

Single Game page

  • Name
  • Alternate names
  • Designer
  • Year Published (if finished)
  • Year Development Began (if known, or still in development)

Facts