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
cooljl31 / setup.md
Created Apr 26, 2020 — forked from brosner/setup.md
My development environment setup
View setup.md

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
cooljl31 / synthwaveglow.md
Created Jan 5, 2020 — forked from sbinlondon/synthwaveglow.md
Get the synth wave glow theme working for VS Code on Mac
View synthwaveglow.md

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
cooljl31 / gsutil-upload.sh
Created Dec 19, 2019 — forked from mraible/gsutil-upload.sh
Upload optimized assets to Google Cloud Storage
View gsutil-upload.sh
# 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
cooljl31 / meta-tags.md
Created Dec 8, 2019 — forked from lancejpollard/meta-tags.md
Complete List of HTML Meta Tags
View meta-tags.md

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

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
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, https://github.com/mout/mout/tree/master/src/string
/**
* "Safer" String.toLowerCase()
*/
function lowerCase(str) {
return str.toLowerCase();
@cooljl31
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: http://davidwalsh.name/convert-xml-json
* @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
</script>
<!-- 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: https://dev.to/gajus/my-favorite-css-hack-32g3
javascript: (function() {
var styleEl = document.getElementById('css-layout-hack');
if (styleEl) {
styleEl.remove();
return;
}
styleEl = document.createElement('style');
styleEl.id = 'css-layout-hack';
View bootstrap3_collapsible_element.xml
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
<meta type="array">
<langDisable>1</langDisable>
</meta>
<sheets>
<general>
<ROOT type="array">
<TCEforms>
<sheetTitle>Einstellungen</sheetTitle>
You can’t perform that action at this time.