Skip to content

Instantly share code, notes, and snippets.

View emcniece's full-sized avatar
🔧
DevOps Engineer @ Workday

Eric McNiece emcniece

🔧
DevOps Engineer @ Workday
View GitHub Profile
@emcniece
emcniece / pre-commit
Last active October 2, 2015 18:54
String-check pre-commit hook
#!/bin/sh
# Pre commit hook that prevents FORBIDDEN code from being commited.
# Add unwanted code to the FORBIDDEN array as necessary, single-space separated.
# Ensure executable: "chmod +x .git/hooks/pre-commit"
FILES_PATTERN='\.(rb|js|coffee|txt)(\..+)?$'
FORBIDDEN=( \.only )
FAILED=false
### Begin System Info ###
## Please include this information when posting support requests ##
Multisite: No
SITE_URL: http://galaxymotors.qa.caorda.com
HOME_URL: http://galaxymotors.qa.caorda.com
<?php
/*
"WordPress Plugin Template" Copyright (C) 2013 Michael Simpson (email : [email protected])
This file is part of WordPress Plugin Template for WordPress.
WordPress Plugin Template is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
@emcniece
emcniece / tinker_neopixel_v1.2
Last active January 3, 2016 22:09
Spark.io Tinker/Neopixel sketch - fails after first colorWipe call
/* tinker_neopixel v1.3 */
/* Includes ------------------------------------------------------------------*/
#include "application.h"
/* Function prototypes -------------------------------------------------------*/
int tinkerDigitalRead(String pin);
int tinkerDigitalWrite(String command);
int tinkerAnalogRead(String pin);
int tinkerAnalogWrite(String command);