Skip to content

Instantly share code, notes, and snippets.

View ZacBrownBand's full-sized avatar

Zachariah Brown ZacBrownBand

View GitHub Profile
@ZacBrownBand
ZacBrownBand / gulpfile.js
Created April 28, 2017 03:25
Gulpfile for combining and compiling svelte controls with rollup and buble
/**
Note:
This is useing rollup the svelte pluing and buble plugin
If you do not want to use this, just adjust the command being created in `getRollupCommand` to
just make a commond to use the svelete-cli
This is also asuming that all components are in a folder structure like this:
- src
- components
- example_compent_name
@ZacBrownBand
ZacBrownBand / PickPixel
Created May 5, 2016 13:16
Picks the color of a pixel from a cesium viewer canvas.
var viewer = new Cesium.Viewer('cesiumContainer');
var scene = viewer.scene;
var context = scene.context;
var readColor = false;
scene.postRender.addEventListener(function() {
if (readColor) {
readColor = false;
@ZacBrownBand
ZacBrownBand / sandcastleTest.html
Created April 26, 2016 15:00
Cesium Sandcastle Pixel Picker
<style>
@import url(../templates/bucket.css);
.point {
border: 1px solid red;
width: 5px;
height: 5px;
position: absolute;
top: 197px;
left: 197px;
}