Skip to content

Instantly share code, notes, and snippets.

Jim Lesperance cooljl31

Block or report user

Report or block cooljl31

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cooljl31 /
Created Apr 26, 2020 — forked from brosner/
My development environment setup

Prepare by switching out of bash from Homebrew:

chsh -s /bin/zsh

To clean my system and reinstall Homebrew:

rm -rf ~/.local && mkdir ~/.local
rm -rf ~/Library/Caches/pip
rm -rf ~/.pyenv
rm -rf ~/.yarn
cooljl31 /
Created Jan 5, 2020 — forked from sbinlondon/
Get the synth wave glow theme working for VS Code on Mac

Get the synth wave glow working for VS Code on Mac

These notes are pretty much the same steps as the two extensions list, it's just that I had to collate them together because neither seems to list it fully in the proper order.

  1. Install Synthwave ’84/Synthwave + Fluoromachine theme on VS Code (I used the Fluoromachine one)

  2. Install Custom CSS and JS Loader

  3. Command + Shift + P to open command palette > "Preferences: Open settings (JSON)"

cooljl31 /
Created Dec 19, 2019 — forked from mraible/
Upload optimized assets to Google Cloud Storage
# Rsync to remove old files
gsutil -m rsync -x '.git*' -c -d -r dist gs://bucket/
# Upload and gzip HTML, CSS and JavaScript
gsutil -m cp -z "html,css,js" -r dist/** gs://bucket/
# Set expires headers (6 months) on JS and CSS assets
gsutil -m setmeta -h "Cache-Control: public, max-age=15552000" gs://bucket/assets/**
# Make sure there's no expiration headers on HTML files
cooljl31 /
Created Dec 8, 2019 — forked from lancejpollard/
Complete List of HTML Meta Tags

Copied from

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
cooljl31 / string-utils.js
Created Dec 5, 2019 — forked from jonlabelle/string-utils.js
Useful collection of JavaScript string utilities.
View string-utils.js
// String utils
// resources:
// -- mout,
* "Safer" String.toLowerCase()
function lowerCase(str) {
return str.toLowerCase();
cooljl31 / xmlToJson.js
Created Nov 28, 2019 — forked from chinchang/xmlToJson.js
Function to convert XML to JSON
View xmlToJson.js
* Changes XML to JSON
* Modified version from here:
* @param {string} xml XML DOM tree
function xmlToJson(xml) {
// Create the return object
var obj = {};
if (xml.nodeType == 1) {
View utility.css
/* utility.scss */
/* margin (0px - 100px) */
.m-0 {
margin: 0px !important;
.m-5 {
margin: 5px !important;
View Detect modern browsers.js
<!-- use a module script to detect modern browsers: -->
<script type=module>
self.modern = true
<!-- now use that flag to load modern VS legacy code: -->
<script defer>
addEventListener('load', function () {
var s = document.createElement('script')
if (self.modern) {
View css-layout-hack.js
// create a bookmark and use this code as the URL, you can now toggle the css on/off
// thanks+credit:
javascript: (function() {
var styleEl = document.getElementById('css-layout-hack');
if (styleEl) {
styleEl = document.createElement('style'); = 'css-layout-hack';
View bootstrap3_collapsible_element.xml
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<meta type="array">
<ROOT type="array">
You can’t perform that action at this time.