Skip to content

Instantly share code, notes, and snippets.

Avatar

Matt Reynolds iheartmedia-matt

  • iHeartMedia
  • Los Angeles
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am iheartmedia-matt on github.
  • I am ihmmattreynolds (https://keybase.io/ihmmattreynolds) on keybase.
  • I have a public key ASBW3eyw3GE-iNKJBAv2uU2-WeoXrKwwapExYZRguSd39Ao

To claim this, I am signing this object:

@iheartmedia-matt
iheartmedia-matt / .htaccess
Created Aug 15, 2018
Apache .htaccess SSL React Router
View .htaccess
<ifModule mod_rewrite.c>
#######################################################################
# GENERAL #
#######################################################################
# Make apache follow sym links to files
Options +FollowSymLinks
# If somebody opens a folder, hide all files from the resulting folder list
@iheartmedia-matt
iheartmedia-matt / async-foreach.js
Last active Feb 13, 2020 — forked from Atinux/async-foreach.js
JavaScript: async/await with forEach()
View async-foreach.js
const waitFor = (ms) => new Promise(r => setTimeout(r, ms))
/*const asyncForEach = (array, callback) => {
for (let index = 0; index < array.length; index++) {
await callback(array[index], index, array)
}
}*/
// ES6 Compliant `asyncForEach`
// Resolves await reserved keyword
const asyncForEach = async (array, callback) => {
@iheartmedia-matt
iheartmedia-matt / mediaqueries.css
Created May 21, 2018 — forked from phuphighter/mediaqueries.css
Semantic UI friendly media queries
View mediaqueries.css
/* Mobile */
@media only screen and (max-width: 767px) {
[class*="mobile hidden"],
[class*="tablet only"]:not(.mobile),
[class*="computer only"]:not(.mobile),
[class*="large screen only"]:not(.mobile),
[class*="widescreen only"]:not(.mobile),
[class*="or lower hidden"] {
display: none !important;
}
View Which_Array_Function_When.js
// Which Array Function When?
// Andrew Steele
// https://www.codementor.io/andrew565/which-array-function-when-jbtnzytza
// Which Array Function When?
//***
// Return one thing for each existing thing: map()
// Return only some of the existing things: filter()
// Return only one new thing: reduce()
View vendor.js
!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";function c(a,b){b=b||ca;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}function d(a){var b=!!a&&"length"in a&&a.length,c=pa.type(a);return"function"===c||pa.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}function e(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()}function f(a,b,c){return pa.isFunction(b)?pa.grep(a,function(a,d){return!!b.call(a,d,a)!==c}):b.nodeType?pa.grep(a,function(a){return a===b!==c}):"string"!=typeof b?pa.grep(a,function(a){return ha.call(b,a)>-1!==c}):za.test(b)?pa.filter(b,a,c):(b=pa.filter(b,a),pa.grep(a,function(a){return ha.call(b,a)>-1!==c&&1===a.nodeType}))}function g(a,b){for(;(a=a[b])&&1!==a.nodeType;);return a}
View override.css
@media (max-width: 992px) {
#main_content_container .section_container .sub_content_container .grid_container .background_container {
padding: 0 0 20px 20px;
}
.number_title_container .number_container {
text-align: left;
}
#main_content_container .section_container .sub_title_text_mobile p {
padding: 0 !important;
}
View previous-psas.json
{
"cardBorderlessModal":[
{
"title": "American Heart Association",
"image": "images/philanthropy/AHA.jpg"
},
{
"title": "9/11 Day of Service and Remembrance",
"image": "images/philanthropy/911-165.jpg"
},
View advertiser-cards-targeting.json
{
"cardBorderlessModal":[
{
"title": "hispanics",
"image": "images/advertisers/hispanics.jpg"
},
{
"title": "millennials",
"image": "images/advertisers/millenials.jpg"
},
View ihr-ninja.css
.header__banner {
min-height: 450px;
background: url('https://www.ihr.ninja/assets/img/careers_2800x642.jpg') no-repeat center center;
background-size: cover;
}