-
interactions
- focus on editor/fields when menus are opened/closed
-
issues
- title not updating on opening file
- when removing a file that is currently open it should go back to the splash screen.
-
adding a new note description only gets the last char typed.
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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
alert('hello william'); |
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
var svg = document.querySelector( "svg" ); | |
var svgData = new XMLSerializer().serializeToString( svg ); | |
var canvas = document.createElement( "canvas" ); | |
var ctx = canvas.getContext( "2d" ); | |
var img = document.createElement( "img" ); | |
img.setAttribute( "src", "data:image/svg+xml;base64," + btoa( svgData ) ); | |
img.onload = function() { |
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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var dom = require('domla'), | |
append = document.body.appendChild.bind(document.body); | |
append(dom.div({class: 'foo-bar'}, | |
dom.span('hello world') | |
)); |
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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var dom = require('domla'), | |
append = document.body.appendChild.bind(document.body); | |
append(dom.div({class: 'foo-bar'}, | |
dom.span('hello world') | |
)); |
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
npm install cray-filters -g | |
cray-filters -f name-of-file.jpg -o output-file-name.png --filter spectrum | |
# this does not do the best with huge files |
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
var | |
domla = require( 'domla' ), | |
span = domla.span, | |
typeLock = require( 'type-lock' ), | |
obj = { | |
foo: 'bar' | |
}; | |
typeLock( obj, true ); |
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
var dom = require( 'domla' ), | |
div = dom.div, | |
ul = dom.ul, | |
li = dom.li, | |
h1 = dom.h1, | |
button = dom.button, | |
el; | |
// ^^ that will be so much better with destructuring | |
function addItem( ) { |