Hey, Steve here from tldraw. This is a toy project with a horrible security pattern, sorry. If you want to run it locally or check out the source, it's here: https://github.com/tldraw/draw-a-ui . You can also see a bunch of other examples at https://twitter.com/tldraw . Happy to answer any questions about tldraw/this project. It's definitely not putting anyone out of work, but it's a blast to play with. Here's a more…
I think I need to go lie down
431–440 of 475 posts
Re: I think I need to go lie down
#432Earlier quoted context omitted.
Scale Rotation const transformSquare = () => square.style.transform = `scale(${scale.value}) rotate(${rotation.value}deg)`; transformSquare();
wow TIL `id`s can be used like that
Part of why IDs are supposed to be unique on a page.
Re: I think I need to go lie down
#433Earlier quoted context omitted.
Change the sketch and get it to build it again. It only takes a couple of seconds.
That seems a lot more complicated than just coding it. How would you go about drawing a box shadow on the sliders? What if you wanted a background image behind it? How would the model know that it's a box-shadow, or that the background is an image? I feel like for that level of granularity, you'd spend more time figuring out how to style it than just writing it in code, since you'll need to start using descriptors on…
Re: I think I need to go lie down
#434The system prompt used as found in the repo: ``` You are an expert tailwind developer. A user will provide you with a low-fidelity wireframe of an application and you will return a single html file that uses tailwind to create the website. They may also provide you with the html of a previous design that they want you to iterate from. Carry out any changes they request from you. In the wireframe, the previous design'…
"creative license" in plain English, means essentially "don't worry too much about constraints, do what you feel will is best." I don't think it has anything to do with software licenses.
Re: I think I need to go lie down
#435That's the equivalent of a todo app. How about something more complicated?
Re: I think I need to go lie down
#436Earlier quoted context omitted.
What's beyond me is - how just simply predicting the next token brings up this kind of magical comprehension in a model that otherwise has no sense or is aware about itself.
> simply predicting the next token ... it's doing A LOT more than that. The technique you're referencing is very limited and rarely used for any practical purposes
Re: I think I need to go lie down
#437 Manipulate[
Graphics[{Rotate[Rectangle[{-size/2, -size/2}, {size/2, size/2}],
rotation, {0, 0}]}, PlotRange -> {{-1, 1}, {-1, 1}}], {size, 0.1,
2, 0.1}, {rotation, 0, 2 Pi, Pi/12}]Re: I think I need to go lie down
#438https://twitter.com/andreasklinger/status/172521353480679428...
Re: I think I need to go lie down
#439I gave it a mockup from a FB interview question (two lists of checkboxes with two buttons to swap checked items between them) and it nailed it: https://gist.github.com/milesrichardson/2a2f77d4bfb19c3b28dc...
Re: I think I need to go lie down
#440I just see this as a tool to help make UI designers (and maybe POs) look smart and competent, but the real work is going to go to the programmers, just as it does today. UI designers will be able to give a "demo" but how will this basic functionality translate to the rest of the app? It won't.
> how will this basic functionality translate to the rest of the app? It won't. It certainly will lead to fun and productive conversations like “it’s already working right there! Why is it going to take so long to get it into the app?!? Can’t you just download it?” Since well before GPT there has been an argument for making very early prototypes/mocks more obviously lo-fi, such that their visual polish is proportiona…