Skip to content

Instantly share code, notes, and snippets.

View thejmazz's full-sized avatar

Julian Mazzitelli thejmazz

View GitHub Profile
@thejmazz
thejmazz / PointsFromGeometry.js
Created December 17, 2016 22:08
WHS Points Component
class Shell extends WHS.Component {
static instructions = {
position: [ 'x', 'y', 'z' ]
}
constructor(params = {}) {
super(params, WHS.Component.defaults, Shell.instructions)
const { radius, detail } = params.geometry
module.exports = {
entry: [
'./src/framework/index.js'
],
output: {
path: require('path').resolve(__dirname, './dist'),
filename: 'whitestorm.light.js'
},
devtool: 'source-map',
externals: [
.container {
margin-left: auto;
margin-right: auto;
/*
padding-left: 15px;
padding-right: 15px;
*/
}
.container::after {
@thejmazz
thejmazz / app.js
Created September 20, 2016 17:58
mapbox-gl-js + webpack issues
// thanks sleepycat https://github.com/sleepycat/mapboxgl-webpack-example
import mapboxgl from 'mapbox-gl'
mapboxgl.accessToken = 'pk.eyJ1IjoibWlrZXdpbGxpYW1zb24iLCJhIjoibzRCYUlGSSJ9.QGvlt6Opm5futGhE5i-1kw';
var map = new mapboxgl.Map({
container: 'map', // container id
style: 'mapbox://styles/mapbox/streets-v8', //stylesheet location
center: [-74.50, 40], // starting position
zoom: 9 // starting zoom
@thejmazz
thejmazz / .slate
Created August 7, 2016 14:57
Slate Config
# Slate
# === CONFIG ===
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config repeatOnHoldOps resize,nudge
config secondsBeforeRepeat 0.4
config secondsBetweenRepeat 0.01
@thejmazz
thejmazz / nextflow-small-vcf.md
Last active June 6, 2016 21:48
strange nextflow issues

The run when it appeared to not work:

screen shot 2016-06-06 at 5 33 27 pm

The small (2.8K) variant files:

screen shot 2016-06-06 at 5 30 30 pm

screen shot 2016-06-06 at 5 31 57 pm

Then after this diff (does ls before samtools):

@thejmazz
thejmazz / app.js
Created May 28, 2016 04:46
Express style middleware callstack with koa-compose
'use strict'
const koa = require('koa')
const compose = require('koa-compose')
const app = koa()
const first = function * (next) {
console.log('first')
yield next
}
@thejmazz
thejmazz / drone-docker-compose.yml
Last active December 19, 2016 16:49
docker-compose for drone and nginx reverse proxy
version: '2'
services:
drone:
image: drone/drone:0.4
restart: always
env_file: drone/dronerc
privileged: true # allows us to run a docker daemon
volumes:
- data:/var/lib/drone
- /var/run/docker.sock:/var/run/docker.sock

GLSL

Keeping track of key concepts, maybe eventually make it tutorial style but is more like a reference. Based off of shader-school lessons (especially some code examples).

Spoiler warning: includes solutions to shader-school lessons.

Scalar Types