Make sure you have Node 11+ installed.
Type node -v
in your command line to check your version.
Install sqlite3: npm install sqlite3
// Credit Ryan Carniato https://frontendmasters.com/courses/reactivity-solidjs/ | |
let context = []; | |
export function untrack(fn) { | |
const prevContext = context; | |
context = []; | |
const res = fn(); | |
context = prevContext; | |
return res; |
I’m looking forward to the Sass Fundamentals workshop! A few notes to ensure you’re set up in advance are below.
See you soon!
Mike
You’ll need a relatively recent version (v4.5 or newer, v7 ideally) of node.js installed. On OS X, a great way of doing this without disturbing your existing dev environment is to install NVM. Installation instructions are here.
node
. Recommended version 4.6 or greater.git clone https://github.com/getify/workshop-periodic-table.git
npm install -g http-server
This gist is no longer in use.
<header> | |
<h1>3D Carousel Using TweenMax.js & jQuery</h1> | |
<h3>A pen by <a href="http://www.twitter.com/johnblazek" target="_blank">@johnblazek</a></h3> | |
<div id="fps">Framerate: 0/60 FPS</div> | |
</header> | |
<div id="contentContainer" class="trans3d"> | |
<section id="carouselContainer" class="trans3d"> | |
<figure id="item1" class="carouselItem trans3d"><div class="carouselItemInner trans3d">1</div></figure> | |
<figure id="item2" class="carouselItem trans3d"><div class="carouselItemInner trans3d">2</div></figure> |
let positions = [1, 2, 3, 4, 5, 6, 7, 8, 9]; | |
const player = "X"; | |
const computer = "O"; | |
let count = 1; | |
let currentTurn = player; | |
let winner; | |
//Dom Elements | |
let grid = document.createElement("div"); | |
grid.style.width = "200px"; | |
grid.style.display = "flex"; |
// my little html string builder | |
buildHTML = function(tag, html, attrs) { | |
// you can skip html param | |
if (typeof(html) != 'string') { | |
attrs = html; | |
html = null; | |
} | |
var h = '<' + tag; | |
for (attr in attrs) { | |
if(attrs[attr] === false) continue; |
You’ll need a relatively recent version (v6 or newer, v7 ideally) of node.js installed. On OS X, a great way of doing this without disturbing your existing dev environment is to install NVM. Installation instructions are here
You’ll know everything is set up properly when you can run
nvm --version # might look like "0.31.4"
node --version # might look like "v7.7.3"