Skip to content

Instantly share code, notes, and snippets.

@AaronGhent
AaronGhent / PlotyChart.vue
Last active April 6, 2022 06:01
Vue3 Plotly JS (Basic Chart Component)
<template>
<div :id="id"></div>
</template>
<script>
import { ref, toRefs, watch, onMounted, onUnmounted } from "vue"
import { v4 as uuidv4 } from "uuid"
import Plotly from 'plotly.js-dist-min'
@AaronGhent
AaronGhent / q3playerdb.py
Created April 27, 2021 22:17
q3playerdb - Quake 3 Player Database
#! /usr/bin/env python
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< #
# q3playerdb - Quake 3 Player Database
# Author: Aaron Ghent
# >><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><<>><< #
import socket
import select
import sqlite3
import re
@AaronGhent
AaronGhent / shadertoy-background.html
Created May 23, 2018 01:55
Shadertoy Background
<html>
<body>
<iframe allowtransparence="true" width="640" height="360" frameborder="0" src="https://www.shadertoy.com/embed/4slyRs?gui=false&t=10&paused=false&muted=true" frameborder="0" style="overflow:hidden;height:100%;width:100%" height="100%" width="100%"></iframe>
</body>
</html>
@AaronGhent
AaronGhent / cloud9.png
Created September 7, 2017 05:19
[EmberJS] Doobs Cloudy Day + ThreeJS
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAUoCAYAAADNEdc+AAAMcElEQVR4Xu3cZ1OWVxDG8bNfJCqKitjBjoolM7H32FtUsEWDFaQL9haxYIldI7Elar7fk9k9k0w+gf8zw3Xe8BLm9+zZve597sG+++FsJYHHvlvWWkmVSkpmifhpuMCIZa2VSqWSzCwhP0MA4vffa0UIYPz/CaSULKXk9/Gb//QaGOYCy1or35z9fx933AKwE6doxazA8jZ4Fgx7gShCdBbQNYALjFze5nno28+Af5vRiGVtFe63p2S8gBcheGzkinNsJhyxvI2dBWUIUJHcM6ELEE9E/7Z/ixrABchrKIEoQvDkWwCeAv6Ale1sH8A/glEr29lpGAJkKs4C2JIsDyN0FoQAmYpHrmivgCWQjBdY2c5mwlGrOuBOKAEXIDMhXgN+DdlZ4LcAPNGIUIGqVR3sLIgiBI9VreqsVJJvaSwhP3mB1Z1sJnQBjN8/+KoiBMhZ4ALM12V5VWpRA7gA2YhGrepkU3HUAHjiGoK/P1nVmi42FUsgBMCHQxu9poudhmUIkPuBqtVdbCeMGkAF1nSx+4HRa7rZVOytGH2DYvTabngWhAD0UOKpGBfwa8jOgqgBrhHEMOIFwExm3ojQNyjGrPVOCL5DEtcQPDZmXQ+biCTgAujTca4B8FuzIgTAW+jjuIdNxV4DrMC6HjYTjlnXW4HeKo81WbRi9CMYs76XTcVZgHsysDIEyA1J9fpedhZEDeACZCb0RgQCJIsaQAXW97KzoHrDeTYVeyNC9wMugL5VGwLkd0ZZgLsGcQ3ZTugC4LHq9efZ/UDUAHgM/wPGbuhjd8W8wMY+dhZkATAVjy1BAJ0FWQDckFRv6GMzoQuAjTBZAQL97H6gemMfm4rHbupnM2EuQrITFiEAPhzauE39bCeMGsAFuMeCZGM39rOpOGoAFdjUz3bCcZsusKnYWzHXB1OycT9eYFNxFgDfoHABdD8QAuSGBB
@AaronGhent
AaronGhent / component.js
Created September 7, 2017 05:03
[EmberJS] Trianglify Component
/* global Trianglify */
import Ember from 'ember';
import ResizeAware from 'ember-resize/mixins/resize-aware';
export default Ember.Component.extend(ResizeAware, {
logTag: '[component:trianglifed-background]',
tagName: 'div',
classNames: ['trianglifed-background'],
@AaronGhent
AaronGhent / gin-miniapi.go
Last active February 10, 2021 08:39
golang gin - mini rest api jwt + proxy
package main
## Install
# sudo apt install golang-go
# echo GOPATH=`pwd`
# export GOPATH=`pwd`
# go get -u -v github.com/appleboy/gin-jwt
# go get -u -v github.com/gin-contrib/cors
# go get -u -v github.com/gin-gonic/gin
# go get -u -v github.com/derekparker/delve/cmd/dlv
@AaronGhent
AaronGhent / Vagrantfile
Last active May 4, 2016 06:21
Ember CLI Virtual Machine (Ubuntu, Can Run On Windows 7+)
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
ENV["LC_ALL"] = "en_US.UTF-8"
ENV["LC_CTYPE"] = "en_US.UTF-8"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
@AaronGhent
AaronGhent / sync.sh
Last active January 15, 2016 20:17
Sync Latest Downloads From A Remote Server (Ubuntu 14.04)
#!/bin/bash
# requirements: sudo apt-get install lftp
# add to crontab -e
# */15 * * * * sh ~/bin/sync.sh | while read line; do echo "[$(date -R)] $line" >> ~/.log/sync_cron.log; done; 2>&1
server="<<SSH HOST>>"
remote_dir=files/complete
local_dir=/media/dump/
log_file=~/.log/sync.log
username=$LOGNAME
@AaronGhent
AaronGhent / Vagrantfile
Created January 14, 2016 00:32
Virtual Machine for NodeJS
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.hostname = "nodejs"
config.vm.network :forwarded_port, guest: 3000, host: 3000
config.vm.synced_folder "./", "/home/vagrant/srv", create: true, group: "vagrant", owner: "vagrant"
@AaronGhent
AaronGhent / SlimApp.php
Created December 9, 2015 04:22
Slim App : Pod/Controller Based Routing (Slim 2.6)
<?php
class SlimApp extends \Slim\Slim
{
/**
* Route Groups
*
* This is an override for adding the ability to have a callable class
* to allow for a pod structure / tree hierarchy with individual classes
* containing there own sub routers