Skip to content

Instantly share code, notes, and snippets.

View chrisslater's full-sized avatar

Chris Slater chrisslater

View GitHub Profile
@chrisslater
chrisslater / in-array-function-for-actionscript-3.as
Last active December 17, 2015 14:39
Check whether value is in array. Returns true if it is, false if not.
function inArray(array:Array, search_value:String) {
for (var i in array) {
if (array[i] == search_value) {
return true;
}
}
}
@chrisslater
chrisslater / strikethrough-header.html
Last active December 16, 2015 14:48
Strikethrough responsive header SCSS and HTML markup
<div class="container">
<h1>Example Header</h1>
</div>
@chrisslater
chrisslater / device-resolution-media-query.css
Created January 9, 2013 14:25
Target devices by the CSS resolution property.
/**
* Device Resolution @media snippet.
* Target devices by the CSS resolution property. IE10 doesn't support ppx, so convert to dpi by
* multiplying the dppx value by 96.
*/
@media (min-resolution: 2ppx),(min-resolution: 192ppi) {
/* add properties here */
}
@chrisslater
chrisslater / test.md
Created January 9, 2013 11:16
Test description

test

=

=

=