Skip to content

Instantly share code, notes, and snippets.

View beacrea's full-sized avatar

Coty Beasley beacrea

View GitHub Profile
@beacrea
beacrea / whenToDropIt.js
Last active August 29, 2015 14:05
A simple case statement indicating when to ___ it like it's hot. You're welcome, world.
var situation = 'pigs';
var conditionEnd = ' like it\'s hot.';
switch (situation) {
case 'pigs':
alert('Park it' + conditionEnd);
break;
case 'pimps':
alert('Drop it' + conditionEnd);
break;
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@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']
},
@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 / 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 / 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 / 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 / .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 / 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 / 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 ;
}