Skip to content

Instantly share code, notes, and snippets.

Avatar

Adam Charron charrondev

View GitHub Profile
@charrondev
charrondev / joe-rogan-experience.xml
Created May 10, 2021 — forked from lud-hu/joe-rogan-experience.xml
Joe Rogan Experience Podcast RSS for all episodes
View joe-rogan-experience.xml
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<channel>
<title>The Joe Rogan Experience</title>
<link>https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk</link>
@charrondev
charrondev / joe-rogan-experience.xml
Created May 10, 2021 — forked from lud-hu/joe-rogan-experience.xml
Joe Rogan Experience Podcast RSS for all episodes
View joe-rogan-experience.xml
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<channel>
<title>The Joe Rogan Experience</title>
<link>https://open.spotify.com/show/4rOoJ6Egrf8K2IrywzwOMk</link>
@charrondev
charrondev / webpackHotDevClient.js
Created Feb 29, 2020
react-dev-utils/webpackDevClient for react-refresh-webpack-plugin.
View webpackHotDevClient.js
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// This file is a fork of https://github.com/facebook/create-react-app/blob/v3.4.0/packages/react-dev-utils/webpackHotDevClient.js
// It removes all error & warning handling so the new ones from https://github.com/pmmmwh/react-refresh-webpack-plugin/tree/master/src/overlay can be used instead.
@charrondev
charrondev / loose-obj.php
Last active Oct 2, 2020
PHP Object vs Array memory usage with random values
View loose-obj.php
<?php
include_once "./randomString.php";
$s = [];
for ($x = 0; $x < 100000; $x++) {
$obj = new stdClass();
$obj->name = randomString();
$obj->age = rand(1, 100);
$s[] = $obj;
View keybase.md

Keybase proof

I hereby claim:

  • I am charrondev on github.
  • I am charrondev (https://keybase.io/charrondev) on keybase.
  • I have a public key ASCkxlgizsJJPj4EyePm32X9kZn-JcS-rtWD8ISqqZ4F8wo

To claim this, I am signing this object:

View formHijack.js
// hijack the form submit to add a callback.
$('#appointment-form').submit((event) => {
$.ajax({
url: $('#appointment-form').attr('action'),
type: 'post',
data: $('#appointment-form').serialize(),
success: () => {
$(document.body).toggleClass('appointments-open');
},
error: () => {