Skip to content

Instantly share code, notes, and snippets.

View lpshanley's full-sized avatar
💻
Making the world a better place using SvelteJS.

Lucas Shanley lpshanley

💻
Making the world a better place using SvelteJS.
  • Amazon
  • Nashville, TN
View GitHub Profile
@lpshanley
lpshanley / Disk.js
Created July 2, 2020 02:08
Conceptual in memory storage idea
// @class Disk
// A disk should mock a physical
// drive location in memory. Drives
// should not contain other drives.
// export default class Disk extends Storage {}
export default class Disk extends Storage {}
import { writable } from 'svelte/store'
/**
* Creates a writable store that
* exposes an effect HOC. This
* allows you to debounce a side
* effect.
*
* An example of utility might be
* a typeahead system. Storing form
@lpshanley
lpshanley / post-WSL.md Installing node via windows subsystem for linux

Windows 10 Fall Creators Update - Installing Node.js on Windows Subsystem for Linux (WSL)

Windows just released the windows subsystem for linux feature to the public with its latest windows fall creator update, if you are not familiar with this feature it allows you to run linux binaries natively on windows - F.A.Q.

Enabling WSL

The feature is not enabled by default and you need to activate it, you can do it via powershell (with admin rights):

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Or you can open: Control-Panel -> Programs -> Turn Windows feature on ro off, and click the "windows subsystem for linux (beta)" button.