Skip to content

Instantly share code, notes, and snippets.

View sc0ttwad3's full-sized avatar
🏠
Working from home

Scott Wade sc0ttwad3

🏠
Working from home
View GitHub Profile
@sc0ttwad3
sc0ttwad3 / SassMeister-input-HTML.html
Created May 24, 2014 01:21
Generated by SassMeister.com.
<header>Header</header>
<nav>Navigation</nav>
<article>Article</article>
<footer>Footer</footer>
// 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

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

@sc0ttwad3
sc0ttwad3 / dynamic-module-fallback.html
Created October 15, 2017 03:42
Dynamic ES6 module loading fallback
<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>

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:

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: