[racket-users] Re: Quickscript competition Deadline Extended till Tuesday Morning 4 Aug (uk time)

2020-07-31 Thread Stephen De Gabrielle
*"QuickScript is amazing, btw — chapeau !" *
- comment from participant in the DrRacket @racketlang Quickscript 
Competition (unofficial)

Quickscript is easy and fun - take a look at some examples to see how 
others made their scripts

https://github.com/Quickscript-Competiton/July2020entries/issues (19 
competition entries - will you be #20?)
https://github.com/Metaxal/quickscript-extra/tree/master/scripts (34 
scripts in the quickscript-extra collection)

Good luck & have fun!

Stephen

On Wednesday, July 29, 2020 at 10:38:00 PM UTC+1 Stephen De Gabrielle wrote:

> Quickscript competition Deadline Extended till Tuesday Morning 4 Aug (uk 
> time) https://github.com/Quickscript-Competiton/July2020entries

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/161c586f-d803-4e91-9f18-4336f5ee644en%40googlegroups.com.


[racket-users] Re: Quickscript competition ends Friday

2020-07-29 Thread Stephen De Gabrielle
Hi All, 

The example in the documentation is bad - it redefines 'reverse' (which is 
fine), then attempts to use it.

The working version changes the name of the script (which is just a 
function) to 'reverse-selection' so it doesn't cause the error:
 
(define-script 

 reverse-selection
  #:label "Reverse"
  (λ 

 (selection)
(list->string 

 (reverse 

 (string->list 

 selection)

I still think making scripts is easy and fun but I apologise for not 
testing the documentation.

here is a script I just made (and tested); 

#lang racket/base
;;; License: MIT/Apache2.0
(require browser/external
 quickscript)
(script-help-string "Racket Survey.")
(define-script racket-survey
  #:label "Racket Survey (browser)"
  #:menu-path ("")
  #:help-string "Complete the Racket Survey now"
  (λ (str) 
(send-url "https://forms.gle/XeHdgv8R7o2VjBbF9;)
#f))

click new script in the menu and give it a name 'survey' this will create a 
file 'survey.rkt' in the user scripts folder
paste in the above, save and click 'compile scripts and reload'. 
- you will find the script "Racket Survey (browser)" under 'News' in the 
scripts menu.

There is still time to enter and prizes to be won.
https://github.com/Quickscript-Competiton/July2020entries

Stephen


On Tuesday, July 28, 2020 at 4:59:26 PM UTC+1 Stephen De Gabrielle wrote:

> There are still prizes.
> It is easy and fun.
> Make DrRacket do what *you* want.
>
> Check it out: https://github.com/Quickscript-Competiton/July2020entries
>
> Stephen
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/66baaef5-6b7c-45cd-a399-818bac31d99en%40googlegroups.com.


[racket-users] Re: Quickscript Competition

2020-07-02 Thread Stephen De Gabrielle
*Need some ideas?  *Check out some examples from quickscript-extra 
, and some starter ideas 
below.

Ideas
   
   - csv->sexp or json->sexp (use existing libraries)
   - sort a list of numbers from the selection
   - lexer with split string
   - spell check or spelling fixer (more complicated)
   - beautify code (using pretty-print for example)
   - ASCII art !
   - Add Windows and/or Macos support to *git 
   *. 
   (maybe use open-terminal 
   

 as 
   a starting point?)
   - Post the current selection to the Racket Slack. (*tweet 
   
* 
is 
   an example of using a web api)
   - Make a game? (maybe use 2htdp/universe 
    or lux 
   ?)

*Looking for more ideas?* What about porting some of emacs scripts 
 and vim scripts 
?

When you have an idea...Getting started for the impatient 

 is 
a good starting point.

*Some existing examples*

   - *abstract-variable 
   
*:
 
   Create a variable from the selected expression video 
   
   - *extract-function 
   
*:
 
   Extracts a block of code out of its context and generates a function and a 
   call video 
   - *indent-table 
   
*:
 
   Indent rows on double-space-separated colums video 
   

*Win Prizes and the Admiration of your peers.*

Good Luck & Have fun

Stephen

PS a ROT13 encoder/decoder was the first entry!

On Wednesday, July 1, 2020 at 11:03:02 AM UTC+1 Stephen De Gabrielle wrote:

> *Quickscript Competition:*
>
> Quickscript  is the scripting 
> functionality behind the DrRacket Scripts menu:
>
> For the month of July we will be running a Quickscript competition: Write 
> your own script and win prizes! There will be weekly winners in categories 
> to be determined by the judges and overall awards at the end of the month. 
>
> We follow Racket's and the ACM's Code of Conduct 
> .
>
> *There
>  
> will be amazing prizes!*
>
>- An exclusive badge for your github profile recognising your efforts 
>and contribution to the community.
>- Socks/Mugs/Hats/Stickers with the Racket logo - to be announced on 
>Racket Users mailing list/google group.
>
> Scripts licensed appropriately will be included in a package for 
> installation and universal fame.
>
> End date: 31-July
> *Getting started*
>
> Getting started for the impatient 
> 
>  in 
> DrRacket.
>
> See quickscript-extra [readme 
> ] [
> scripts ] 
> for a bunch of useful and example scripts.
>
> Help and discussion will be available through the #quickscript-competition 
>  slack channel.
>
> *Once your script is ready, submit your entry 
> !*
>
> Need
>  
> some *ideas to get started* 
> 
> ?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/ff3eac01-f6d3-410b-b14b-e1974479c2e5n%40googlegroups.com.