Skip to content

Instantly share code, notes, and snippets.

View beacrea's full-sized avatar

Coty Beasley beacrea

View GitHub Profile
@beacrea
beacrea / markItem.js
Last active December 11, 2015 20:09
A way to go through a list of items and mark all items.
var check = document.querySelectorAll('[type="checkbox"]');
var i = check.length;
while(i--){
if(check[i].disabled == true) continue;
check[i].checked = true;
}
@beacrea
beacrea / MoyoMed Map Code Export
Last active December 28, 2015 09:19
This is my customized google map thats styled to be complimentary with the MoyoMed brand. The tool used to create this can be found at: http://software.stadtwerk.org/google_maps_colorizr/#water/all/64afc3/simplified/landscape/labels/edb64f/simplified
<!-- Generator: Adobe Illustrator 17.0.0, SVG Export Plug-In -->
<svg version="1.1"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:a="http://ns.adobe.com/AdobeSVGViewerExtensions/3.0/"
x="0px" y="0px" width="128px" height="128px" viewBox="0 0 128 128" enable-background="new 0 0 128 128" xml:space="preserve">
<defs>
</defs>
<g>
<image overflow="visible" opacity="0.3" width="128" height="128" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAACXBIWXMAAAsSAAALEgHS3X78AAAA
GXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAD8lJREFUeNrsXYty2zgMBGnZzuN6
@beacrea
beacrea / nusa-highContrast.css
Last active January 2, 2016 02:19
The high-contrast style integration for nusa.
/* ----------
GLOBAL STYLES
---------- */
/* Site-Wide Page Background */
.sheet-site {
background: #fafafa ;
}
@beacrea
beacrea / lastChanges-nusa.css
Last active January 2, 2016 09:49
NUSA Styles, used as a way to communicate changes to the enterprise team.
/*!
*
* NUSA Project
* Initially created by Coty Beasley
* Email: cdbeasley@naic.org
* Version: 3.02
* Random Chinese Proverb: "Reading ten thousand books is not as useful as traveling ten thousand miles."
*
* -------------------------------------------
*
@beacrea
beacrea / .bash_profile
Last active January 21, 2017 20:07
My current bash profile.
# Exports
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
export PS1="\e[1;34;40m[\u@\h \W]\$ \e[m "
# Aliases
alias nserver="node ~/node/server.js"
alias ll="ls -al"
alias colors="python colors -t"
alias h5bp="git clone https://github.com/h5bp/html5-boilerplate.git"
@beacrea
beacrea / event.css
Created January 20, 2014 00:25
I noticed a visual bug in the hero of http://kansascity.codeday.org. Here is a proposed fix.
/* Line 553 of event.css, fixes spacing issue with your glyphicon being smashing up against the text */
.hero.event header h2 .location a:before {
margin-right: 0.25em;
}
@beacrea
beacrea / appIcon-metaSnippet.html
Created February 14, 2014 18:46
AppIcon META Markup
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="apple-touch-icon-144x144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="apple-touch-icon-114x114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="apple-touch-icon-72x72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="apple-touch-icon-57x57-precomposed.png">
<link rel="shortcut icon" sizes="196x196" href="touch-icon-196x196.png">
<link rel="shortcut icon" href="apple-touch-icon.png”>
<!-- Tile icon for Win8 (144x144 + tile color) -->
<meta name="msapplication-TileImage" content="apple-touch-icon-144x144-precomposed.png">
<meta name="msapplication-TileColor" content="#1f81c1">
@beacrea
beacrea / twbs_tableStyles.css
Last active August 29, 2015 13:57
The table styles taken from bootstrap.
table {
border-spacing: 0;
border-collapse: collapse;
}
td,
th {
padding: 0;
}
table {
max-width: 100%;
@beacrea
beacrea / kittenGen
Last active August 29, 2015 13:58
JSON KittenGen for http://www.json-generator.com.
[
'{{repeat(0, 100)}}',
{
picture: 'http://placekitten.com/' + '{{numeric(200,600)}}' + '/' + '{{numeric(200,600)}}',
age: '{{numeric(1, 10)}}',
name: '{{firstName()}}',
gender: '{{gender()}}'
}
]
@beacrea
beacrea / gist:11197725
Created April 22, 2014 23:19
grunt usemin fix on css assets
I use sass and only I added image dist path to assetsDirs array.
usemin image css path works like so:
usemin: {
options: {
assetsDirs: ['<%= yeoman.dist %>', '<%= yeoman.dist %>/images']
},
html: ['<%= yeoman.dist %>/{,*/}*.html'],
css: ['<%= yeoman.dist %>/styles/{,*/}*.css']
},