Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Hacking the metaverse!

Chris Matthieu chrismatthieu

🚀
Hacking the metaverse!
View GitHub Profile
View job leads
https://www.trnio.com/
Front-End iOS Developer
Trnio is looking for an iOS developer to participate in the development and design of our next 3D scanner app. The app will be based off of our current Trnio app with added functionality and capabilities.
Candidates should have a deep understanding of iOS and high performance applications, as well as strong ability in developing iOS 3D experiences. Candidates are expected to lead and work closely with a designer and the back-end developers to develop the Pro app quickly.
We’re looking for candidates with:
View gist:a075f186eecc8740fe76d33520187174
//
import React from 'react';
import { View, Button } from 'magic-script-components';
export default class MyApp extends React.Component {
constructor (props) {
super(props);
this.state = {
message: props.message
View spatial.json
{
"domain": "heatsynclabs.org",
"contact": "info@heatsynclabs.org",
"locations": [
{
"name": "HQ",
"webaddress": "https://www.heatsynclabs.org",
"gps": {"lat": 33.4153912, "long": -111.8344863},
"type": "gltf",
"url": "https://uhuro.com/pikachu3/scene.gltf",
@chrismatthieu
chrismatthieu / spatial.json
Created Jul 4, 2019
Spatial Web site descriptor file
View spatial.json
{
"domain": "chupacabrataproom.com",
"contact": "info@chupacabrataproom.com",
"locations": [
{
"name": "HQ",
"webaddress": "http://chupacabrataproom.com/",
"gps": {"lat": 33.415469, "long": -111.836771},
"geohash": "9tbqp54gnqgk",
"services": ["beer", "wine"],
View keep-ipfs-alive.sh
if ps -ef | grep -v grep | grep ipfs ; then
exit 0
else
nohup ipfs daemon --enable-pubsub-experiment &
exit 0
fi
View demo.js
#!/bin/bash
# https://github.com/computes/help/wiki/First-Task
function poll {
pollResults=`cat result-dataset.hash | computes-cli dataset dumplatest`
if [[ $pollResults != *"tasks"* ]]; then
echo "Computing ... $pollResults"
sleep 1
poll
else
View demo.sh
#!/bin/bash
# https://github.com/computes/help/wiki/First-Task
function poll {
pollResults=`cat result-dataset.hash | computes-cli dataset dumplatest`
if [[ $pollResults != *"tasks"* ]]; then
echo "Computing ... $pollResults"
sleep 1
poll
else
View results.js
{
"split": {
"results": {
"comparative": 1,
"negative": [],
"positive": [
"love"
],
"score": 3,
"tokens": [
View skynet.json
{
"input": {
"dataset": "i love skynet"
},
"taskDefinition": {
"runner": {
"type": "docker-json-runner",
"metadata": {
"image": "computes/computes-sentiment:latest"
}
View stdinout.js
process.stdin.setEncoding('utf8');
process.stdin.on('readable', () => {
var input = process.stdin.read();
if(input !== null) {
var result = sentiment(input)
process.stdout.write(JSON.stringify(result));
process.exit();
}
});