Skip to content

Instantly share code, notes, and snippets.

View TylerJPresley's full-sized avatar

Tyler J Presley TylerJPresley

View GitHub Profile
@TylerJPresley
TylerJPresley / http-utility.js
Last active September 6, 2018 19:11
Aurelia http structure
import {Cookie} from 'cookie';
export class HttpUtility {
constructor() {
}
standardConfiguration(config) {
config
@TylerJPresley
TylerJPresley / deploy.sh
Last active January 2, 2016 01:46
Bash script to deploy static/js website
#!/bin/bash
YELLOW='\033[0;33m'
YELLOW_BOLD='\033[1;33m'
BLUE='\033[0;34m'
BLUE_BOLD='\033[1;34m'
NC='\033[0m' # No Color
USER="thatuser"
IP="999.999.999.999"
@TylerJPresley
TylerJPresley / bootstrap-v4_package.json
Last active December 20, 2015 02:35
This version will expose the SCSS when using JSPM.
{
"name": "bootstrap",
"description": "The most popular front-end framework for developing responsive, mobile first projects on the web.",
"version": "4.0.0-alpha.2",
"keywords": [
"css",
"sass",
"mobile-first",
"responsive",
"front-end",
@TylerJPresley
TylerJPresley / custom-validation-view-strategy.js
Last active September 6, 2018 19:10
My custom approach to Aurelia's validation view strategy. It's closely based on the twbootstrap-view-strategy.js from within aurelia/validation.
import {ValidationViewStrategy} from 'aurelia-validation/validation-view-strategy';
export class CustomValidationViewStrategyBase extends ValidationViewStrategy {
constructor(containerClass, containerSuccessClass, containerErrorClass, appendClass, appendActiveClass) {
super();
this.containerClass = containerClass; // The class for the container.
this.containerErrorClass = containerErrorClass; // What's the error class for the container
this.containerSuccessClass = containerSuccessClass; // What's the error class for the container
this.appendClass = appendClass; // Where we're appending the message