A Pen by Steve Manuel on CodePen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local greeting = "Hello" | |
local dismiss = "Goodbye" | |
local names = {} | |
local function allNames() | |
return table.concat(names, ", ") | |
end | |
local function getNameOrQuit() | |
local val = io.read() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
meteor create --example todos | |
meteor bundle myapp.tgz | |
tar xzf myapp.tgz | |
cd bundle | |
(create package json with settings below) | |
jitsu databases create mongo <dbname> | |
(grab dbstring) | |
jitsu env set PORT 3000 | |
jitsu env set MONGO_URL <dbstring> | |
jitsu deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
// create canvas | |
var canvas = document.createElement("canvas"); | |
canvas.height = 300; // important! because default canvas size is 300x150 | |
var ctx = canvas.getContext('2d'); | |
// create img | |
var img = document.createElement("img"); | |
// IMPORTANT adding shadow map - each area has different background color |