Skip to content

Instantly share code, notes, and snippets.

View nurdism's full-sized avatar

Nurdism nurdism

View GitHub Profile
@nurdism
nurdism / app.ts
Created February 5, 2023 08:34
example of how a reactive might be used for the page obejct
import type { UnwrapNestedRefs } from 'vue'
import { createHeadManager, Page, PageProps, router } from '@inertiajs/core'
import { DefineComponent, defineComponent, h, markRaw, Plugin, PropType, ref, reactive, shallowRef } from 'vue'
import remember from './remember'
import { VuePageHandlerArgs } from './types'
import useForm from './useForm'
export interface InertiaAppProps {
initialPage: Page
initialComponent?: object
@nurdism
nurdism / ColorPicker.vue
Last active January 18, 2023 22:50
Very simple color picker for Vue 3
<script setup lang="ts">
/**
* ColorPicker.vue
* Very simple color picker for vue 3
* Only has 1 dependency tinycolor2 can be replaced with dedicated functions
*
* Preview: https://i.imgur.com/RjFUHsI.png
*/
import tinycolor from 'tinycolor2'
@nurdism
nurdism / AppLink.vue
Created December 27, 2022 20:40
Navigation guards for Inertia JS + vue 3 + typescript
diff --git a/node_modules/@aws-sdk/client-s3/dist/cjs/protocols/Aws_restXml.js b/node_modules/@aws-sdk/client-s3/dist/cjs/protocols/Aws_restXml.js
index 9290461..5067172 100644
--- a/node_modules/@aws-sdk/client-s3/dist/cjs/protocols/Aws_restXml.js
+++ b/node_modules/@aws-sdk/client-s3/dist/cjs/protocols/Aws_restXml.js
@@ -8824,8 +8824,10 @@ const serializeAws_restXmlBucketLoggingStatus = (input, context) => {
}
return bodyNode;
};
+
+// https://github.com/aws/aws-sdk-js-v3/issues/1814
@nurdism
nurdism / install.sh
Last active April 22, 2020 08:51
Citadel: Forged With Fire Linux Install Script
#!/bin/bash
#install steam
mkdir $HOME/steamcmd
cd $HOME/steamcmd
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xvzf steamcmd_linux.tar.gz
mkdir $HOME/server
@nurdism
nurdism / sequelize.js
Created January 4, 2017 05:12
sequelize provider
const { SettingProvider } = require('discord.js-commando'),
Sequelize = require("sequelize");
module.exports = class SequelizeProvider extends SettingProvider {
constructor(sequelize) {
super();
/**
* Database that will be used for storing/retrieving settings