This file contains hidden or 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
if (typeof window.ethereum === 'undefined') { | |
this.$notify({ | |
title: "window.ethereum is undefined. Have you installed MetaMask?", | |
type: 'error' | |
}) | |
console.error('window.ethereum', typeof window.ethereum); | |
return; | |
} | |
ethereum.enable().then((accounts) => { |
This file contains hidden or 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
<template> | |
<div class="card card-profile text-center"> | |
<img src="storage/images/header.jpg" class="card-img-top" alt="Header Image" /> | |
<div class="card-block"> | |
<img src="storage/images/machiavelli.png" class="card-profile-img" alt="Profile Image" /> | |
<h4 class="card-title"> | |
Niccolò Machiavelli | |
<small>Italian Diplomat</small> | |
</h4> |
This file contains hidden or 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 bio from './components/bio' | |
export default [ | |
{ | |
path: '/', | |
name: 'bio', | |
component: bio, | |
} | |
] |
This file contains hidden or 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 TPS = require('3ps-js'); | |
var tps = new TPS('a2ba8bdf52b64f42e6ade726d50b669902d0ab964755c68d8ac2bb11ae022332'); | |
var componentID = 'f16f83ca-31f1-49d0-add5-016cb251f3a5' // T-Rex | |
// var componentID = '84a4ce43-f145-45a6-8260-b96fc109fd85' // Skull | |
// var componentID = '945da150-79f7-4f07-bdbe-429e81b2e7cc' // Moai | |
var job = { | |
group_id: YOUR_GROUP_ID, |
This file contains hidden or 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
tps.job.create({ | |
group_id: '00ffedbb-ff29-5138-9b5d-cd1f6ae3bc6b', | |
components: [{ | |
id: 'ef42949a-6b57-407b-ae0f-1d8cfb445e8f' | |
}] | |
}).then(function (job) { | |
console.log(`Printing ${job.id}`) | |
}) |
This file contains hidden or 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 TPS = require('3ps-js') | |
const fs = require('fs') | |
var tps = new TPS('D1AAF49F73879611C7E7FF91D96FF4806875CA0DDD77CBD370F82752E1438E2B') | |
tps.print({ | |
group_id: '00ffedbb-ff29-5138-9b5d-cd1f6ae3bc6b', | |
stl: fs.readFileSync('./dice.stl'), | |
// Print Settings |
This file contains hidden or 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
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: redis | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
labels: | |
app: redis |
This file contains hidden or 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
tps.jobs.getEvents('fda13b53-5ba4-4245-9473-487c867f2625').then(function (events) { | |
events.map(event => { | |
console.log(event) | |
}) | |
}) |
This file contains hidden or 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
tps.print({ | |
group_id: '00ffedbb-ff29-5138-9b5d-cd1f6ae3bc6b', | |
components: [{ | |
id: 'cead04bc-cf4f-402a-8e90-1f33669ffa83' | |
}] | |
}).then(function (job) { | |
console.log(`Printing Job: ${job.id}`) | |
console.log(job) | |
}) |
This file contains hidden or 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
tps.component.create({ | |
name: 'Dice', | |
group_id: '00ffedbb-ff29-5138-9b5d-cd1f6ae3bc6b', | |
is_public: false, | |
stl: fs.readFileSync('./dice.stl'), | |
// Default Print Settings | |
material: 'PLA', | |
process: 'FDM', | |
resolution: '200', | |
infill: '20', |