Skip to content

Instantly share code, notes, and snippets.

View edwardbeckett's full-sized avatar

Edward J Beckett edwardbeckett

View GitHub Profile
@edwardbeckett
edwardbeckett / font_variables.scss
Last active August 29, 2015 14:28 — forked from jacrook/font_variables.scss
Sass Css Font Stack Variables
//////////////////////////////////////////////////////////////
// Font Variables (http://cssfontstack.com/)
//////////////////////////////////////////////////////////////
//
// Serif font-stacks
//
$baskerville-font-stack: "Big Caslon", "Book Antiqua", "Palatino Linotype", Georgia, serif !default;
@edwardbeckett
edwardbeckett / .gist
Last active September 5, 2017 14:25
Tomcat 8 on Java 8 Behind Apache on CentOS
Tomcat 8 on Java 8 Behind Apache on CentOS
@edwardbeckett
edwardbeckett / variables.scss
Last active August 29, 2015 14:26
Sass Script to make WP PageNavi Responsive.
// Colors
$brand-primary: #036;
$accent-color: rgba(193,213,229, 1.0);
$light-white: #FAFAFA;
$white-smoke: #F5F5F5;
$text-color: rgb(66, 100, 127);
$link-color: rgb(93, 123, 147);
$link-hover-color: darken( $link-color, 15%);
$light-border-color: lighten( $accent-color, 10%);
@edwardbeckett
edwardbeckett / IsNullTest.java
Created July 31, 2015 08:24
Sample isNull for @DAC_dev
import static java.util.Objects.*;
/**
* @author Edward Beckett :: <[email protected]>
* @since :: 7/31/2015
*/
public class IsNullTest {
private static Object one; // implicitly null
@edwardbeckett
edwardbeckett / InvalidArgumentException.js
Created July 28, 2015 09:29
Argument Exception Handler
<script>
function InvalidArgumentException( message){
this.message = message;
if("captureStackTrace" in Error) {
Error.captureStackTrace( this, InvalidArgumentException );
} else {
this.stack = (new Error()).stack;
}
}
<script>
function removeNull( obj ) {
return obj.replace( /\\u0{1,5}/gi, '' );
}
var obj = {
nul : "\0char",
sucks : "\u0000bad",
needs : "\0fix",
real : "\u0000 soon\0",
@edwardbeckett
edwardbeckett / bash_vars.txt
Created July 21, 2015 16:57
Bash Variables...
D.3 Parameter and Variable Index
Index Entry Section
!
!: Special Parameters
#
#: Special Parameters
$
$: Special Parameters
$!: Special Parameters
@edwardbeckett
edwardbeckett / ssc.sh
Last active August 29, 2015 14:24
Self Signed Cert :: Apache
export OPENSSL_CONF=/c/apache/conf/openssl.cnf
export DAYS=365
export RSA=2048
export DOMAIN=www.example.com
/c/apache/bin/openssl req -x509 -nodes -sha256 -days $DAYS -newkey rsa:$RSA -keyout $DOMAIN.key -out $DOMAIN.crt
@edwardbeckett
edwardbeckett / README
Last active August 29, 2015 14:24 — forked from mattbaker/README
This example expects to have d3.min.js and d3.layout.min.js in the same directory as pie.js and pie_serv.js.
Run with node pie_serv.js