File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -395,10 +395,18 @@ bind
395
395
number of hours from the Prime Meridian
396
396
~~~
397
397
search
398
- [#city latitude longitude]
399
- hours-from-gmt = math/absolute[value: latitude] / 15
398
+ [#city name longitude]
399
+ hours-from-gmt = math/absolute[value: longitude] * 24 / 360
400
400
bind
401
- [#ui/text text: "{{city}} is {{hours-from-gmt}} hours from the Prime Meridian"]
401
+ [#ui/text text: "{{name}} is {{hours-from-gmt}} hours from the Prime Meridian"]
402
+ ~~~
403
+
404
+ Add some cities
405
+ ~~~
406
+ commit
407
+ [#city name: "Paris" longitude: 2.33]
408
+ [#city name: "New York" longitude: -75.61]
409
+ [#city name: "Los Angeles" longitude: -118.24]
402
410
~~~
403
411
</code>
404
412
</td>
@@ -517,8 +525,6 @@ commit
517
525
</td>
518
526
<td>
519
527
<code>
520
- [#website body]
521
- </code>
522
528
Americanized version of British spelling
523
529
~~~
524
530
search
@@ -527,6 +533,7 @@ search
527
533
bind
528
534
[#ui/text text: american-version]
529
535
~~~
536
+ </code >
530
537
</td>
531
538
</tr >
532
539
</table >
635
642
search
636
643
index = string/index-of[text: "developers", substring: "eve"]
637
644
bind
638
- [#ui/text: "String found at index {{index}}"]
645
+ [#ui/text text : "String found at index {{index}}"]
639
646
~~~
640
647
</code >
641
648
</td>
You can’t perform that action at this time.
0 commit comments