[tw5] Minimal Tiddlers (2) to run BASIC in TiddlyWiki

2022-02-21 Thread Charlie Veniot
Drag the attached into a TiddlyWiki (TiddlyWiki.com !) to see the very 
minimal architectural needs to run wwwBASIC programs.

Although there isn't much to it, it might give you all kinds of ideas of 
stuff you can do, wwwBASIC or otherwise.



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/18142636-3a6e-4ccf-97af-bd5dbd797031n%40googlegroups.com.


MinimalTiddlersForBasicPrograms.json
Description: application/json


[tw5] Prepping a BASIC Anywhere Machine "architecture" presentation, suggestions?

2022-02-21 Thread Charlie Veniot
I'd like to put together a comprehensive slideshow for a presentation on 
YouTube.

Although pretty much just a blank page at the moment, I figured might as 
well publish the slideshow document 

 
now, in case there is a soul out there that is interested in this kind of 
thing, and might want to suggest things that would answer questions, or 
what-have-you.


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/17e061f5-ef18-443b-a12c-ffcae23fc6d0n%40googlegroups.com.


[tw5] Re: Tiddlywiki + Google Spreasheets. I want to show you my newer finished work

2022-02-21 Thread Mat
Siniy-Kit wrote:

> 1) very very very old JSONP (*I use it now*)
>
> https://spreadsheets.google.com/tq?key=16jpYS8egNJuLA8HyS-Um6wuwC9A5eFl-IKykIzZB92Y=goods
> here we have js function  with JSON 
> argument. google.visualization.Query.setResponse({..})
>

So... the output in that link is a js function and some more stuff that 
wraps the JSON. So, do you *scrub off* the wrapping stuff to accss the 
clean JSON content or do you *use* the js function in your own code? ...and 
is the scrubbing or use of the js function what you have in your tidder 
under "Начало нового кода" ?
 

> 2) new variant with doGET() in google script
>

This looks very interesting. If I interpret these docs 
, 
it seems very direct to both get and post content from and to a sheet 
(which is one big limitation in the current TiddlyGoo solutions; there is 
no solution to push data to a sheet from TW). 
But, @Siniy-kit, you currently don't use doGet or doPost at all, right? You 
solve *both* push and pull with JSONP, right?

Thank you for your replies.

<:-)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ecf94f30-bb9e-457f-8dd4-f7458974cef1n%40googlegroups.com.


[tw5] Re: Method of using "nth-child(even)" with ""?

2022-02-21 Thread Álvaro
If you know the line-height in pre element you can use it to create your 
custom background with repeating-linear-gradient.
In the vanilla theme the (inherit) line-height is 20px, then you can use 
something like this
```
pre {
background: repeating-linear-gradient(#f5f5f5, #f5f5f5 20px, #e0e0e0 20px, 
#e0e0e0 40px);
}
```

El lunes, 21 de febrero de 2022 a las 6:27:09 UTC+1, Eric Shulman escribió:

> 1. `<__txt__>` is a *parameter reference* syntax that can only be used 
> within macro definitions.  It is similar to `$txt$`, which is a reference 
> to the value of the `txt` macro parameter passed into the macro.  However, 
> while occurances of `$txt$` are automatically replaced by the value passed 
> into the macro when the macro's content is returned, `<__txt__>` is handled 
> *as 
> if it was a variable*, and is only evaluated when the macro content is 
> subsequently parsed by within the calling syntax. It is a shorthand 
> equivalent to:
>
> ```
> \define macroname(param)
> <$vars param="$param$">
>... references to <> (or  if used within a filter) ...
>etc.
> 
> \end
> ```
>
> 2. `splitregexp[...]` is a *filter operator* and is similar to the 
> `split[...]` filter operator.  Note that both `split[..]` and 
> `splitregexp[...]` find and remove instances of the filter operand value, 
> producing multiple filter items as a result, which are then available for 
> further processing by the filter syntax.  The difference is that 
> `splitregexp[...]` accepts *regular expressions* as the value of the 
> filter operand, while `split[...]` only accepts *literal text*.  In this 
> instance, `splitregexp[\n]` is being used to "split the input (the value of 
> `<__txt__>`) into separate values by matching (and removing) any `newline` 
> characters.  Each resulting line of text is then assigned to the `line` 
> variable so it can be referenced in the body of the `<$list>...` 
> widget, where it is then output, enclosed within `...`, in order 
> to produce the final result of having separate child elements for each 
> line, so that the `nth-child(...)` CSS rule can be applied.
>
> -e
>
> On Sunday, February 20, 2022 at 5:44:29 PM UTC-8 justin.hu...@gmail.com 
> wrote:
>
>> That works! 
>>
>> I can generally grasp how this works, though I'm not familiar with 
>> <__txt__>splitregexp[\n]]
>>
>> the only time I've seen \n is to create a new line in python, is it doing 
>> the same here?
>>
>>
>>
>> On Sunday, February 20, 2022 at 8:15:49 PM UTC-5 Eric Shulman wrote:
>>
>>> If the content of your `` is stored in a separate tiddler or field, 
>>> you can force the creation of child `` elements, so that 
>>> `nth-child(even)` can be applied successfully.
>>>
>>> Give this a try:
>>> ```
>>> \define nthchild(txt,bg:"lightgray")
>>> \whitespace trim
>>>  .myClass div:nth-child(even) { background:$bg$; } 
>>> 
>>><$list filter="[<__txt__>splitregexp[\n]]" variable="line">
>>><$text text=<>/>
>>>
>>> 
>>> \end
>>>
>>> <$macrocall $name="nthchild" txt={{test}} bg="powderblue"/>
>>> ```
>>>
>>> where the text content is stored in a tiddler named "test".
>>>
>>> -e
>>> On Sunday, February 20, 2022 at 4:46:32 PM UTC-8 justin.hu...@gmail.com 
>>> wrote:
>>>
 Ah, well- that's a bummer haha

 Thank you!
 On Sunday, February 20, 2022 at 7:30:21 PM UTC-5 Eric Shulman wrote:

> Although HTML `` elements can display multiple lines of text, 
> each line is not a separate child element.
> Thus, a CSS rule such as `nth-child(even)` doesn't have any effect 
> within the `` element.
>
> -e
> On Sunday, February 20, 2022 at 4:13:04 PM UTC-8 
> justin.hu...@gmail.com wrote:
>
>> Hello all, title says it all.
>>
>> When trying to apply nth-child(even) to use a background color for 
>> each line when using  in my tiddlers, it doesn't seem to work, and 
>> I'm 
>> not entirely sure whats causing this.
>>
>> Any suggestions?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/16414c40-ae45-4165-94b2-5bd8ae1eaf76n%40googlegroups.com.


[tw5] Re: Tiddlywiki + Google Spreasheets. I want to show you my newer finished work

2022-02-21 Thread Siniy-Kit
No, JSONP is working all over the world (not only in Russia)
3) Old variant  with alt=json-in-script is not working now, *BUT we have 
two another ways*

1) very very very old JSONP (*I use it now*)
https://spreadsheets.google.com/tq?key=16jpYS8egNJuLA8HyS-Um6wuwC9A5eFl-IKykIzZB92Y=goods
here we have js function  with JSON 
argument. google.visualization.Query.setResponse({..})

2) new variant with doGET() in google script

понедельник, 21 февраля 2022 г. в 01:32:58 UTC+3, Mat: 

> Mark S. wrote:
>
>> Yeah, that's what we're using. I think. Possibly Google hasn't shut it 
>> down in all regions, or possibly there is something else wrong with your 
>> (Mat's) particular use-case that has nothing to do with the status of JSONP.
>>
>
> Hmm... @Siniy-kit what do I misunderstand:
>
> 1) Your solution is fetching data from a google sheet. 
> 2) You can only fetch this because the sheet data is presented in json 
> format thanks to a google feature that requires a special URL
> 3) This special URL *used to* have the format:
> https://spreadsheets.google.com/feeds/worksheets/"+specs.id
> +"/public/values?alt=json-in-script
> 4) ...but google modified this in august last year so the special URL is 
> different AND the presented data there is json but it is wrapped in some 
> other stuff. Here is the *new* URL format:
> https://sheets.googleapis.com/v4/spreadsheets/' + spreadsheet_id + 
> '/values/' + tab_name + '?alt=json=' + api_key; 
>
> OR are you using a completely different method to pull the data into your 
> wiki? One of the urls you just posted seems to be a script, so maybe there 
> is a local copy of some magic script in each sheet you share, or maybe 
> there's a way to apply a script to a arbitrary sheets to mangle them... 
> perhaps via a special url (like what you posted... but where is that script 
> stored then?)
>
> @Mark... any ideas? Am I and @Siniy-kit talking past one another? I'm the 
> fool here because I'm dealing with pieces in a puzzle that I don't 
> understand. Is my question wrong?
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0fc578bf-0d8b-47a7-a064-83877e8e46f0n%40googlegroups.com.