Discuss Scratch

theycallhermax
Scratcher
100+ posts

TurboFoolishness: The Developer's Code Companion



TurboFoolishness
The Developer's Code Companion


Features:

  • HTTP GET Requests (works, even though sites won't allow GET requests!)
  • Current milisecond
  • Ternary Operators (if else, and if!)
  • Inline Comment Block
  • Returns True/False/Nothing?




Blocks


(get [https://reqbin.com/echo/get/json] using [AllOrgins v]:: #9500ff) // All in one block!

<<> returns true? :: #9500ff> // Should be in the sensing catergory

<<> returns false? :: #9500ff> // Sad.

<<> returns nothing? :: #9500ff> // That's rare to find!

(if <> then [foo] else [foobar] :: #9500ff) // Ternary operator!

(if <> then [foo] :: #9500ff) // Annother ternary operator!

(miliseconds :: #9500ff) // I don't know why I did this, but here it is!

<<> and <> and <> :: #9500ff> // Less code waste

(extract [fruit/apples] of [{ "fruit": {"apples": 2, "bananas": 3}, "total_fruit": 5 }] :: #9500ff) // Extract! That! JSON!

execute ["Fo" + "o" + "bar"] :: #9500ff // Executes JavaScript code in the editor

(execute ["Fo" + "o" + "bar"] :: #9500ff) // ^, but a reporter.

<true :: #9500ff> // True!

<false :: #9500ff> // False!

<[true] :: #9500ff> // This is very helpful!

<is [Foo] EXACTLY [Foobar]? :: #9500ff> // Impostor, or not the impostor?

(make [foo] backwards :: #9500ff) // Returns "oof," if you leave the default value

(replace [Foo] with [Foobar] in [Foo is nice] :: #9500ff) // Ouch.
Licence


TurboFoolishness is licened under the MIT Licence, a copy is included below:
MIT License

Copyright © 2022 M.D. Walters

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
How to get the extension?


Last edited by theycallhermax (Nov. 10, 2022 14:42:55)

theycallhermax
Scratcher
100+ posts

TurboFoolishness: The Developer's Code Companion

Bump
celleron56
Scratcher
89 posts

TurboFoolishness: The Developer's Code Companion

silly block suggestions
meow
when rickrolled 

(is  (thing)  a (thing))
(define (costumblock but its a operator define  )) 
meme [v rickroll] 


theycallhermax
Scratcher
100+ posts

TurboFoolishness: The Developer's Code Companion

celleron56 wrote:

silly block suggestions
meow
when rickrolled 

(is  (thing)  a (thing))
(define (costumblock but its a operator define  )) 
meme [v rickroll] 
I feel like the “when rickrolled” block would be a conditional, and meow block, which I don't understand it's purpose, and is thing a thing would be concidered a boolean, and the meme, would be way out of TF's POV, and define, you can do in normal Scratch, but I'll try and see the purpose of is thing a thing. Thanks for the suggestions!
NotGuest_102233
Scratcher
25 posts

TurboFoolishness: The Developer's Code Companion

Can the <true> block convert variables into booleans?

This account is @Guest_102233's Alt account.
theycallhermax
Scratcher
100+ posts

TurboFoolishness: The Developer's Code Companion

NotGuest_102233 wrote:

Can the <true> block convert variables into booleans?
Pretty much it's main purpose! (If you were talking about the return true block, then, it just returns a static result.)
theycallhermax
Scratcher
100+ posts

TurboFoolishness: The Developer's Code Companion

Bump
theycallhermax
Scratcher
100+ posts

TurboFoolishness: The Developer's Code Companion

Bump
theycallhermax
Scratcher
100+ posts

TurboFoolishness: The Developer's Code Companion

I'm getting tired of doing this.
theycallhermax
Scratcher
100+ posts

TurboFoolishness: The Developer's Code Companion

Forum topic closure?
tomussw
Scratcher
5 posts

TurboFoolishness: The Developer's Code Companion

MDWalters wrote:



TurboFoolishness
The Developer's Code Companion


Features:

  • HTTP GET Requests (works, even though sites won't allow GET requests!)
  • Current milisecond
  • Ternary Operators (if else, and if!)
  • Inline Comment Block
  • Returns True/False/Nothing?




Blocks


(get [https://reqbin.com/echo/get/json] using [AllOrgins v]:: #9500ff) // All in one block!

<<> returns true? :: #9500ff> // Should be in the sensing catergory

<<> returns false? :: #9500ff> // Sad.

<<> returns nothing? :: #9500ff> // That's rare to find!

(if <> then [foo] else [foobar] :: #9500ff) // Ternary operator!

(if <> then [foo] :: #9500ff) // Annother ternary operator!

(miliseconds :: #9500ff) // I don't know why I did this, but here it is!

<<> and <> and <> :: #9500ff> // Less code waste

(extract [fruit/apples] of [{ "fruit": {"apples": 2, "bananas": 3}, "total_fruit": 5 }] :: #9500ff) // Extract! That! JSON!

execute ["Fo" + "o" + "bar"] :: #9500ff // Executes JavaScript code in the editor

(execute ["Fo" + "o" + "bar"] :: #9500ff) // ^, but a reporter.

<true :: #9500ff> // True!

<false :: #9500ff> // False!

<[true] :: #9500ff> // This is very helpful!

<is [Foo] EXACTLY [Foobar]? :: #9500ff> // Impostor, or not the impostor?

(make [foo] backwards :: #9500ff) // Returns "oof," if you leave the default value

(replace [Foo] with [Foobar] in [Foo is nice] :: #9500ff) // Ouch.
Licence


TurboFoolishness is licened under the MIT Licence, a copy is included below:
MIT License

Copyright © 2022 M.D. Walters

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
How to get the extension?


Is there a way to make the “execute” block not be sandboxed?

Hey. I am making a game called Clickertan World. You can check it out at https://scratch-mit-edu.ezproxy.canberra.edu.au/studios/28411448
theycallhermax
Scratcher
100+ posts

TurboFoolishness: The Developer's Code Companion

tomussw wrote:

MDWalters wrote:



TurboFoolishness
The Developer's Code Companion


Features:

  • HTTP GET Requests (works, even though sites won't allow GET requests!)
  • Current milisecond
  • Ternary Operators (if else, and if!)
  • Inline Comment Block
  • Returns True/False/Nothing?




Blocks


(get [https://reqbin.com/echo/get/json] using [AllOrgins v]:: #9500ff) // All in one block!

<<> returns true? :: #9500ff> // Should be in the sensing catergory

<<> returns false? :: #9500ff> // Sad.

<<> returns nothing? :: #9500ff> // That's rare to find!

(if <> then [foo] else [foobar] :: #9500ff) // Ternary operator!

(if <> then [foo] :: #9500ff) // Annother ternary operator!

(miliseconds :: #9500ff) // I don't know why I did this, but here it is!

<<> and <> and <> :: #9500ff> // Less code waste

(extract [fruit/apples] of [{ "fruit": {"apples": 2, "bananas": 3}, "total_fruit": 5 }] :: #9500ff) // Extract! That! JSON!

execute ["Fo" + "o" + "bar"] :: #9500ff // Executes JavaScript code in the editor

(execute ["Fo" + "o" + "bar"] :: #9500ff) // ^, but a reporter.

<true :: #9500ff> // True!

<false :: #9500ff> // False!

<[true] :: #9500ff> // This is very helpful!

<is [Foo] EXACTLY [Foobar]? :: #9500ff> // Impostor, or not the impostor?

(make [foo] backwards :: #9500ff) // Returns "oof," if you leave the default value

(replace [Foo] with [Foobar] in [Foo is nice] :: #9500ff) // Ouch.
Licence


TurboFoolishness is licened under the MIT Licence, a copy is included below:
MIT License

Copyright © 2022 M.D. Walters

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
How to get the extension?


Is there a way to make the “execute” block not be sandboxed?
Yes, but IDK how.
CST1229
Scratcher
1000+ posts

TurboFoolishness: The Developer's Code Companion

MDWalters wrote:

(#12)

tomussw wrote:

MDWalters wrote:

-snip-
Is there a way to make the “execute” block not be sandboxed?
Yes, but IDK how.
It's impossible in a TurboWarp custom extension.

This is a signature. It's a piece of text that appears below every post I write. Click here to learn more, including how to make your own.

Getting survey popups that look like this? It's normal, and is a thing the ST is doing. Read this topic for more info.




Vaibhs11
Scratcher
1000+ posts

TurboFoolishness: The Developer's Code Companion

amazing!
Scratchfangs
Scratcher
1000+ posts

TurboFoolishness: The Developer's Code Companion

Hi there, I use TurboFoolishness in Zedexi.

Just wondering if this project will ever be dustbinned or discontinued in the near future? I use TurboFoolishness in Zedexi and if that happens, my program will no longer work.

theycallhermax
Scratcher
100+ posts

TurboFoolishness: The Developer's Code Companion

Scratchfangs wrote:

Hi there, I use TurboFoolishness in Zedexi.

Just wondering if this project will ever be dustbinned or discontinued in the near future? I use TurboFoolishness in Zedexi and if that happens, my program will no longer work.
no, it's just inactive for a long time, and should still work in the future
theycallhermax
Scratcher
100+ posts

TurboFoolishness: The Developer's Code Companion

VERY IMPORTANT ANNOUNCEMENT: The TurboFoolishness url had changed to https://mdwalters.github.io/TurboFoolishness/TurboFoolishness.js

Last edited by theycallhermax (Nov. 10, 2022 14:39:45)

cooldudesix
Scratcher
100+ posts

TurboFoolishness: The Developer's Code Companion

Um, when I click the link it says
404
There isn't a GitHub Pages site here.

If you're trying to publish one, read the full documentation to learn how to set up GitHub Pages for your repository, organization, or user account.

GitHub Status — @githubstatus


hello scratchers
go to my profile for your best moments of your life
cooldudesix(me)
Go here for some pixely stuff
cooldudepixel(also me)
Go here for dev/trash stuff
(me… again)
Check these scratchers out
holes
falcon
theycallhermax
Scratcher
100+ posts

TurboFoolishness: The Developer's Code Companion

cooldudesix wrote:

Um, when I click the link it says
404
There isn't a GitHub Pages site here.

If you're trying to publish one, read the full documentation to learn how to set up GitHub Pages for your repository, organization, or user account.

GitHub Status — @githubstatus

sorry, the link is actually https://mdwalters.github.io/TurboFoolishness/TurboFoolishness.js
debuged_
New Scratcher
6 posts

TurboFoolishness: The Developer's Code Companion

Whenever I use any blocks from this extension, the game runs way slower. How do I fix it?

Powered by DjangoBB