Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Scott Wade sc0ttwad3

🏠
Working from home
View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am sc0ttwad3 on github.
  • I am sc0ttwad3 (https://keybase.io/sc0ttwad3) on keybase.
  • I have a public key ASBuGiijwtFUqILNd0iU_SmiaDjtOxViZEGl3NYToaxlKAo

To claim this, I am signing this object:

View keybase.md

Keybase proof

I hereby claim:

  • I am sc0ttwad3 on github.
  • I am sc0ttwad3 (https://keybase.io/sc0ttwad3) on keybase.
  • I have a public key ASBuGiijwtFUqILNd0iU_SmiaDjtOxViZEGl3NYToaxlKAo

To claim this, I am signing this object:

@sc0ttwad3
sc0ttwad3 / dynamic-module-fallback.html
Created Oct 15, 2017
Dynamic ES6 module loading fallback
View dynamic-module-fallback.html
<script type="text/javascript">
var script= document.createElement('script');
script.type= 'text/javascript';
try {
Function('import("")');
script.src= "app.js"
} catch(e) {
script.src= "fallback.js";
}
</script>
View nodejs-cheatsheet.js
// Node.js CheatSheet.
// Download the Node.js source code or a pre-built installer for your platform, and start developing today.
// Download: http://nodejs.org/download/
// More: http://nodejs.org/api/all.html
// 0. Synopsis.
// http://nodejs.org/api/synopsis.html
@sc0ttwad3
sc0ttwad3 / SassMeister-input-HTML.html
Created May 24, 2014
Generated by SassMeister.com.
View SassMeister-input-HTML.html
<header>Header</header>
<nav>Navigation</nav>
<article>Article</article>
<footer>Footer</footer>
View sassJunkDrawer.md

by Dale Sande

CSS has had a long and sordid past. A developer never sets out with the goal of making a complete and total mess of things. Their intention is not to build something that is practically illegible, impractical to maintain and is limited in scale. But somehow, this is where many inevitably end up. Luckily, all is not lost. With some simple strategies, organizational methods and out-of-the box tools, we can really help get that junk-drawer inline.

For many of us getting started with Sass, at one time or another have created a junk-drawer of files. For most, this was a rookie mistake, but for others, this is a continuing issue with our architecture and file management techniques. Sass doesn't come with any real rules for file management so developers are pretty much left to their own devices.

Large CSS files and increased complexity

CSS started out with very simple intentions, but as [tableless web design][1.1] began to really take a foothold, o