Skip to content

Instantly share code, notes, and snippets.

View cidicles's full-sized avatar
👾
Hack the planet

Eric Seaton cidicles

👾
Hack the planet
View GitHub Profile
WEBsVTT
1a
00:00.080 --> 00:00.91a3a
<v Reporter>It's already looksing like</ssv>
2
00:0A0.913 --> 00:02.470
it's going to be a strong opening weekend
WEBVTT
1
00:00.080 --> 00:00.913
<v Reporter>It's already looking like</v>
2
00:00.913 --> 00:02.470
it's going to be a strong opening weekend
inputChange = (e) => {
this.setState({
[e.currentTarget.id]: e.target.value // NOTE: Sets the state object equal to the inoput ID, ensure you have an id on the input
});
}
@cidicles
cidicles / gist:dfa574f2c33184d5a3c5df953807e3cd
Created December 20, 2017 22:51
Parse SCV with Php & Insert into API
<?php
$row = 1;
if (($handle = fopen("collection_ejs.csv", "r")) !== FALSE) {
while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
$num = count($data);
$row++;
$post = array(
'name' => $data[1],
'locale' => 'en_us',
'attributes' => '{}'
@cidicles
cidicles / fixed.js
Created November 27, 2017 18:22
Fixed Position Components for React VR
import React from 'react';
import {
VrHeadModel,
View
} from 'react-vr';
const RCTDeviceEventEmitter = require('RCTDeviceEventEmitter');
/**
* Helper to fix a component to the viewport.
* @module components/fixed
@cidicles
cidicles / shaderTest
Last active September 6, 2017 23:41
Testing shaders in react VR
import React from 'react';
import {
Box
} from 'react-vr';
import * as THREE from 'three';
/**
* Testing out custom shaders.
* NOTE: This does not currently allow for the animation of uniforms. Attempted a three clock and a interval setting state.
* @module components/shaderTest
@cidicles
cidicles / gist:e90611844e9993d7c1337bb3c8afb23e
Created August 30, 2017 17:12
Quick React VR Fixed Position Component
import React from 'react';
import {
VrHeadModel,
View
} from 'react-vr';
/**
* Helper to fix a component to the viewport.
* @module components/fixed
* @property {number} stickiness - The delay in ms between state updates. Lower values = less visual lag.