Skip to content

Instantly share code, notes, and snippets.

@peller
peller / sample1.profile.js
Created February 23, 2012 16:57
A Dojo profile to build a custom Dojo layer called "sample1.js" for the Maqetta Sample1.html file
dependencies = {
// releaseDir: "/path/to/releaseDir",
stripConsole: "normal",
selectorEngine:"acme",
action: "release",
layers: [
{
name: "dojo.js",
dependencies: [
@peller
peller / gist:6833521
Created October 4, 2013 21:59
Connect middleware to run the RequireJS optimizer
module.exports = function(baseUrl, optimize, fileList) {
var fileMap = {};
//probably should do a regexp match rather than pass in a list?
fileList.forEach(function (file) {
fileMap[file] = true;
});
var requireJS = require('requirejs');
return function(req, res, next) {
var file = fileMap[req.path];
@peller
peller / jupyterlab.md
Last active January 29, 2016 19:02
Stand up jupyter lab code

jupyter lab

2016-01-26:

I took the same steps as I did a week or two ago to stand up the new notebook code (see jupyter-js-plugins README Thankfully, the webpack build problems I saw went away. Everything more or less installs cleanly now.

To run the sample notebook, follow the install instructions and browse to http://localhost:8765/ A demo can be found on the notebook PR Still no kernel / comms, only client-side UI, so not much to integrate with. There's a file browser widget, a notebook which uses a markdown parser and codemirror but as of yet no toolbar or editing. Everything is a pwidget based off phosphor, and code is written in typescript.

@peller
peller / urth-viz-table.ipynb
Created May 19, 2016 02:19
Example 1b shows adding a custom js event listener which will be called whenever the selection-index property changes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@peller
peller / paper-styles-example.ipynb
Last active July 6, 2016 01:05
Example declaring and using a CSS rule based on a CSS variables in paper-styles
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.