Skip to content

Instantly share code, notes, and snippets.

View austenc's full-sized avatar
:shipit:
Ship it!

Austen Cameron austenc

:shipit:
Ship it!
View GitHub Profile
@austenc
austenc / app.js
Last active February 15, 2023 10:21
Alpine JS + Floating UI Tooltip Directive
import Alpine from 'alpinejs'
import tooltip from './tooltip'
Alpine.plugin(tooltip)
Alpine.start()
@austenc
austenc / code.css
Created December 31, 2019 16:26
Prism code highlighting style example for my website
& code {
@apply rounded p-1 m-0 bg-gray-300 text-orange-600;
}
& pre > code {
@apply rounded py-2 px-0 bg-transparent;
color: inherit;
}
& pre,
& pre[class*='language-'] {
@austenc
austenc / .gitignore
Last active September 27, 2017 03:31
A good starting point for a .gitignore file in Unity
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
.DS_Store
# Visual Studio 2015 cache directory
@austenc
austenc / happy_git_on_osx.md
Last active August 15, 2017 16:19 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

@austenc
austenc / sublime-packages
Last active April 24, 2018 21:36
Sublime Packages I use
AdvancedNewFile
Alignment
Angular2 HTML Syntax
Auto Semi-Colon
AutoPEP8
Laravel Blade Spacer
BracketHighlighter
Git Gutter
Color Highlighter
ColorPicker
@austenc
austenc / .vimrc
Last active December 6, 2018 00:47
MacOS .vimrc file
set nocompatible " Disable vi-compatibility
set t_Co=256
colorscheme xoria256
set guifont=menlo\ for\ powerline:h16
set guioptions-=T " Removes top toolbar
set guioptions-=r " Removes right hand scroll bar
set go-=L " Removes left hand scroll bar
set linespace=15
@austenc
austenc / .bash_profile
Last active December 13, 2018 04:18
Mac OS based .bash_profile with powerline stuff included
# Powerline
# https://github.com/powerline/powerline
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
source /usr/local/lib/python3.7/site-packages/powerline/bindings/bash/powerline.sh
# Add the global composer install directory to our PATH
export PATH=${PATH}:~/.composer/vendor/bin
[
{ "keys": ["j", "j"], "command": "exit_insert_mode",
"context":
[
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
]
},
{"keys": ["ctrl+alt+p"], "command": "prompt_select_workspace"},
{"keys": ["ctrl+shift+r"], "command": "goto_symbol_in_project"}
@austenc
austenc / Example Gruntfile
Last active August 1, 2018 14:09
Example gruntfile with phantomjs / codeception integration, and asset building
'use strict';
var root = "~/Code/toolbox";
var bench = "~/Code/toolbox/workbench/hdmaster/nucleus";
var ssh = 'ssh vagrant@127.0.0.1 -p 2222 -t';
module.exports = function(grunt) {
grunt.initConfig({
@austenc
austenc / script.sh
Created September 23, 2014 23:10
Linode stackscript - LEMP box
#!/bin/bash
# This block defines the variables the user of the script needs to input
# when deploying using this script.
#
#<UDF name="HOSTNAME" label="The hostname for the new Linode">
#<UDF name="FQDN" label="The new Linode's Fully Qualified Domain Name">
#<UDF name="USER" label="Main (non-root) username">
#<UDF name="USER_PASS" label="Main (non-root) user's password">
#<UDF name="INSTALL_MYSQL" label="Install MySQL?" oneOf="Yes,No">
#<UDF name="MYSQL_ROOT_PW" label="MySQL root user password">