Skip to content

Instantly share code, notes, and snippets.

View evejweinberg's full-sized avatar
💘
Hola

Eve Weinberg evejweinberg

💘
Hola
View GitHub Profile
@evejweinberg
evejweinberg / 2dcanvas.html
Created October 19, 2016 21:23
2d canvas on threeJS
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
<style media="screen">
#container {
width: 100%;
height: 100%;
@evejweinberg
evejweinberg / popUps.js
Last active January 6, 2017 13:05
popUps
function popUp() {
var TifforMir = Math.round(Math.random());
var widthThing = (Math.random() * 250) + 30;
var heightThing = (Math.random() * 250) + 30;
var bgURLS = ["url(http://evejweinberg.github.io/samples/ArrowDownwardPurpleGreen.gif)", "url(http://evejweinberg.github.io/samples/txt_blgrid.jpg)", "url(http://evejweinberg.github.io/samples/txt_pnkscrb.jpg)", "url(http://evejweinberg.github.io/samples/ArrowDownwardPink.gif)"]
var bgRandom = Math.floor(Math.random() * bgURLS.length + 0);
// "background-image": bgURLS[bgRandom] }
myWindow = window.open("http://evejweinberg.com", "myWindow", "width=" + widthThing + ", " + "height=" + heightThing + "," + "left=" + widthThing);
console.log(TifforMir);
if (newsentence.length<130)
@evejweinberg
evejweinberg / v12.js
Created April 18, 2016 23:41
version 12
////////////////////////////////////////////////////////////
// SET_UP_VARIABLES
////////////////////////////////////////////////////////////
var scene1, scene2;
var headspin;
var scene3count;
var scene4ready;
var headZstart;
var loadingOvervid;
var videoSources;
@evejweinberg
evejweinberg / loadStorage.js
Created April 18, 2016 18:02
working loadStorage example
var sceneNum = 0;
var scenesTotal = [1, 2, 3, 4];
var allScenes = []
function init() {
// createFr1()
createScenes();
@evejweinberg
evejweinberg / untitled.js
Created April 16, 2016 20:38
.dae file that won't load, from mixamo through blender
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
<asset>
<contributor>
<author>Blender User</author>
<authoring_tool>Blender 2.77.0 commit date:2016-04-05, commit time:18:12, hash:abf6f08</authoring_tool>
</contributor>
<created>2016-04-16T15:59:31</created>
<modified>2016-04-16T15:59:31</modified>
<unit name="meter" meter="1"/>
@evejweinberg
evejweinberg / runner.dae
Created April 16, 2016 20:35
The .dae file that WILL display
<?xml version="1.0" encoding="utf-8"?>
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
<asset><contributor><author>Mixamo</author><authoring_tool>COLLADA Mixamo exporter</authoring_tool><comments></comments></contributor><created>2016-04-09T17:32:12Z</created><modified>2016-04-09T17:32:12Z</modified><revision></revision><title></title><unit meter="0.010000"/><up_axis>Y_UP</up_axis></asset>
<library_geometries>
<geometry id="unamed-lib" name="unamedMesh">
<mesh>
<source id="unamed-lib-Position" name="position">
<float_array id="unamed-lib-Position-array" count="834"> 0.331414 1.648893 0.099504 0.191342 1.648893 -0.040568 0.000000 1.648893 -0.091838 -0.191342 1.648893 -0.040568 -0.331414 1.648893 0.099504 -0.382683 1.648893 0.290845 -0.331414 1.648893 0.482187 -0.191342 1.648893 0.622259 0.000000 1.648893 0.673529 0.191342 1.648893 0.622259 0.331414 1.648893 0.482187 0.382683 1.648893 0.290845 0.612372 1.865665 -0.062708 0.353553 1.865665 -0.321527
@evejweinberg
evejweinberg / ImgTracerTest1.js
Created April 16, 2016 15:08
image tracer to svg to bezier
var path = '../images/Faces_0.png'
ImageTracer.loadImage(
path, function(canvas) {
// Getting ImageData from canvas with the helper function getImgdata().
var imgd = ImageTracer.getImgdata(canvas);
// Synchronous tracing to SVG string
var svgstr = ImageTracer.imagedataToSVG(imgd, { pathomit: 152, lcpr: 0, scale: 1, numberofcolors: 12, blurradius: 10 });