PHASES:
Frame the design challenge.
import { Form, Text } from 'informed'; //https://joepuzzo.github.io/informed/ | |
import React from 'react'; | |
const SPREADSHEET_ID = 'nhlD3E6xsi2lbDQ71HTJ3oQ1Ql5dIkuiK4IoZYjHD'; //from the URL of your blank Google Sheet | |
const CLIENT_ID = '2d280542491u-3aofp4eFeftog7q0u5a73ro566h8vi.apps.googleusercontent.com'; //from https://console.developers.google.com/apis/credentials | |
const API_KEY = 'AIzaSyCz5fYFuCORKGXSGu4IwKq4U_HfcdDtB'; //https://console.developers.google.com/apis/credentials | |
const SCOPE = 'https://www.googleapis.com/auth/spreadsheets'; | |
export default class ContactForm extends React.Component { |
//Set state in react to the previous state plus an updated value: | |
const initState = { | |
thing1: 0, | |
thing2: null, | |
thing3: false, | |
}; | |
const [state, setState] = useState(initState); |
let contentfulClient = contentful.createClient({ | |
space: '[space_id]', | |
accessToken: '[access_token]' | |
}); | |
//GET ALL ENTRIES | |
contentfulClient.getEntries().then(entries => { | |
console.log(entries); //gets everything | |
entries.items.forEach(entry => { |
//find all instances of [thing1] NOT followed by [thing2]: | |
^(?!.*thing2).*thing1 |
//DELETE SAVED UNDO HISTORY FOR PROGRAMS | |
/.DocumentRevisions-V100/ |
<html> | |
<head> | |
<script src="js/lib/p5.js"></script> | |
<script src="js/lib/p5.dom.js"></script> | |
<script src="js/lib/toxiclibs.js"></script> | |
<script src="data/landscape.js"></script> | |
<script src="js/stylegan-transition.js"></script> | |
</head> | |
<body> | |
</body> |
let modelOutput; | |
fetch('http://localhost:8000/info') | |
.then(response => response.json()) | |
.then(output => { | |
modelOutput = output; | |
// use the output in your project | |
console.log(output); | |
//to copy it from the console, right click the object in chrome and choose 'save as global variable' | |
//then type copy(temp1) and paste the clipboard contents into a .json file |
php -S localhost:8080 | |
#boots a local php server | |
python -m SimpleHTTPServer | |
#boots a local http server on python 2 | |
python -m http.server | |
#boots a local http server on python 3 | |
sass --watch main.scss main.css |
#pyenv | |
#have pyenv manage versions: | |
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile | |
#activate changes: | |
source ~/.bash_profile | |
#install particular versions | |
pyenv install X.X.X |