This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as THREE from 'three'; | |
const gradientMaterial: THREE.ShaderMaterial = new THREE.ShaderMaterial({ | |
uniforms: { | |
color1: { | |
value: new THREE.Color(0xffffff), | |
}, | |
color2: { | |
value: new THREE.Color(0xf4f4f4), | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"dependencies": { | |
"@prismicio/client": "^6.7.1", | |
"@prismicio/helpers": "^2.3.6", | |
"@prismicio/next": "0.1.9", | |
"@prismicio/react": "^2.5.0", | |
"@prismicio/slice-simulator-react": "^0.2.2", | |
"@react-three/fiber": "^8.9.1", | |
"aos": "^3.0.0-beta.6", | |
"dxf-parser": "^1.1.2", | |
"embla-carousel-react": "7.0.5", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import environ, path | |
from pocketsphinx.pocketsphinx import * | |
from sphinxbase.sphinxbase import * | |
MODELDIR = "../../../model" | |
DATADIR = "../../../test/data" | |
# Create a decoder with certain model | |
config = Decoder.default_config() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x3dom.Texture.prototype.update = function () { | |
if (x3dom.isa(this.node, x3dom.nodeTypes.Text)) { | |
this.updateText(); | |
} else { | |
this.updateTexture(); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Slideshow = expiryTimeStamp => { | |
let [fileName, setFileName] = useState(SLIDESHOW_DATA.images[ 0 ].fileName); | |
const onExpire = () => { | |
(imageNum < SLIDESHOW_DATA.images.length && SLIDESHOW_DATA.images[ imageNum + 1 ] !== undefined) ? | |
imageNum++ | |
: imageNum = 0; | |
fileName = SLIDESHOW_DATA.images[ imageNum ].fileName; | |
glowColor = SLIDESHOW_DATA.images[ imageNum ].color; | |
startSlideshow(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {decorate, observable, action} from 'mobx'; | |
import weather from 'openweather-apis'; | |
class Locations { | |
all = [ | |
{ | |
'id': 'fb3faf1a-1039-49f6-9ced-48dd9b5c1462', | |
'latitude': 33.9434136, | |
'longitude': -84.7758044, |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
getRouteRows() { | |
var routeRows = [] | |
for (var i = 0; i < this.props.routes.length; i++) { | |
let lItm = null | |
let infoBox = document.querySelector('.routesColumn') | |
if (infoBox !== null && infoBox.classList !== null && !infoBox.classList.contains('hidden')) { | |
lItm = <ListItem | |
style={ styles.itemStyle } value={ i } | |
onClick={this.onItemClick} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react' | |
import { ReactDOM, render } from 'react-dom' | |
import { MapComponent, Map, Marker, Popup, TileLayer, GeoJson, LayerGroup, FeatureGroup, Circle } from 'react-leaflet' | |
import { showElevationChart, setZoomSnap, progressEventAction, sendLatLons } from '../actions/applicationActions.js' | |
import { fetchCountyData } from '../actions/countyActions.js' | |
import { fetchRoutes, toggleSelectedRoute, loadRoute, hideRoutes, showRoutes } from '../actions/routesActions.js' | |
import { fetchTrailheadMarkers, getToolTip, setLeafletMarkers, doMarkerSelected } from '../actions/markersActions.js' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('clean', function() { | |
return exec("echo '$MikesPassword' | sudo -S rm -R " + paths.buildDirectory); | |
}); |
NewerOlder