Skip to content

Instantly share code, notes, and snippets.

View robbieferrero's full-sized avatar

Robbie Ferrero robbieferrero

View GitHub Profile
@robbieferrero
robbieferrero / Untitled-1
Created December 17, 2017 04:34
getStyleValue
/**
*
* @param el Element
* @param CSS property in hyphen case
* @param pseudo pseudo selector (optional)
*/
function getStyleValue(el, property, pseudo) {
// convert hyphen-case to camelCase
const elStyle = el.style[property.replace(/(\-[a-z])/g, $1 => $1.toUpperCase().replace('-',''))];
return ((elStyle !== '' && !pseudo)
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?>
<opml version="1.0">
<head>
<title>Pocket Casts Feeds</title>
</head>
<body>
<outline text="feeds">
<outline type="rss" text="JavaScript Jabber Only" xmlUrl="https://feeds.feedwrench.com/js-jabber.rss" />
<outline type="rss" text="The Moth" xmlUrl="http://feeds.feedburner.com/themothpodcast" />
<outline type="rss" text="Bullseye with Jesse Thorn" xmlUrl="https://www.npr.org/rss/podcast.php?id=510309" />
@robbieferrero
robbieferrero / test.c
Created May 24, 2018 16:33
unique words in C
#include <assert.h>
#include <ctype.h>
#include <stdio.h>
#include <string.h>
enum { MAX_WORDS = 64, MAX_WORD_LEN = 20 };
int main(void)
{
char words[MAX_WORDS][MAX_WORD_LEN];
@robbieferrero
robbieferrero / index.html
Created July 9, 2018 03:18
The div that look different in every browser
<div></div>