Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@codyogden
codyogden / getIEVersion.js
Created October 13, 2017 15:14
Detect the version of Internet Explorer (not Edge)
/**
* Get IE Version
* @returns {integer} Version of Internet Explorer, or 0
*/
function GetIEVersion() {
var sAgent = window.navigator.userAgent;
var Idx = sAgent.indexOf("MSIE");
// If IE, return version number.
PORT=3000
@codyogden
codyogden / markup.html
Created August 13, 2017 00:34
A molecule with Press.css buttons.
<div class="wrapper"><!-- Base Example -->
<div class="press-group" data-p-cond="or">
<button class="press press-red">Red Pill</button>
<button class="press press-blue">Blue Pill</button>
</div>
</div>
<div class="wrapper"><!-- Different Size Buttons -->
<div class="press-group" data-p-cond="or">
<button class="press press-xl press-red">Red Pill</button>

Keybase proof

I hereby claim:

  • I am codyogden on github.
  • I am codyogden (https://keybase.io/codyogden) on keybase.
  • I have a public key whose fingerprint is EAB0 621B 28AA 9ABE 4277 3AF3 A64F 943F 295E C498

To claim this, I am signing this object:

0.0.0.0 apps.facebook.com
0.0.0.0 connect.facebook.net
0.0.0.0 facebook.com
0.0.0.0 fbcdn.com
0.0.0.0 fbsbx.com
0.0.0.0 fbcdn.net
0.0.0.0 graph.facebook.com
0.0.0.0 login.facebook.com
0.0.0.0 s-static.ak.facebook.com
@codyogden
codyogden / command.sh
Created May 12, 2017 16:52
Disable Magic Mouse Swipe Back/Forward Navigation in Google Chrome
defaults write com.google.Chrome AppleEnableMouseSwipeNavigateWithScrolls -bool FALSE
// Append an image to a div and a div to the body
$(document).ready(function(){
var myDiv = $('<div />');
myDiv.addClass('cardDiv');
var myImg = $('<img />');
myImg.attr('src', 'http://placehold.it/150x150');
myImg.addClass('cardImg');
myDiv.append(myImg);
$('body').append(myDiv);
});
@codyogden
codyogden / fa.scss
Created February 17, 2017 17:54
Font Awesome Sass Helper and Mixin
// Font Awesome Helper (font-awesome/scss/_core.scss)
%fa {
display: inline-block;
font: normal normal normal #{$fa-font-size-base}/#{$fa-line-height-base} FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@codyogden
codyogden / santa.svg
Created February 16, 2017 05:54
SVG Santa Clause
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@codyogden
codyogden / letter-border.css
Created February 16, 2017 05:50
CSS-only letter border around text
text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;