Skip to content

Instantly share code, notes, and snippets.

View scagood's full-sized avatar

Sebastian Good scagood

  • Hartley Wintney, UK
  • 06:56 (UTC)
View GitHub Profile
@scagood
scagood / Node Version Manager for Windows .md
Last active January 17, 2018 10:01
A basic node version manager for windows

NVM windows ish

This will download and symlink to a specified nodejs version.

Installing

The batch file is dependent on both 7zip and curl, these are automatically downloaded (regardless of if they're already installed).

To install simply download the batch file, and add the NodeJS and nvm 'directories' to the %path% enviromnment variable. In my case my path became: %path%;%appdata%\nodejs;%appdata%\nvm

"use strict";
var Shape = function (el, colour) {
var color, shape,
that = this;
shape = el.getAttribute("shape-type") || "square";
change();
this.newColor = function (color) {
el.setAttribute("shape-color", color);
change();
@scagood
scagood / readme.md
Last active November 7, 2018 19:31
Simple markdown to html in javscript

Supported markdown:

Headers

# Header 1 => <h1>Header 1</h1>
## Header 2 => <h2>Header 2</h2>
### Header 3 => <h3>Header 3</h3>
#### Header 4 => <h4>Header 4</h4>
##### Header 5 => <h5>Header 5</h5>
###### Header 6 => <h6>Header 6</h6>