Changeset 810
- Timestamp:
- 04/28/06 13:39:13 (2 years ago)
- Files:
-
- presentations/2006/ajax_experience/slides.html (modified) (10 diffs)
- presentations/2006/ajax_experience/slides.txt (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
presentations/2006/ajax_experience/slides.html
r808 r810 527 527 </div> 528 528 <script type="text/javascript" src="ui/mochikit/examples/interpreter.js"></script> 529 <p class="handout">In-line demo of the MochiKit interpreter example. 530 The advantages of repr vs. toString and some of the interpreter's features 531 will be demonstrated during this slide.</p> 529 532 </div> 530 533 <div class="slide" id="unreliable-operators"> … … 594 597 <form id="formNode"> 595 598 <input type="hidden" name="foo" value="1" /> 596 <input type=" hidden" name="bar" value="2" />599 <input type="text" name="bar" value="2" /> 597 600 </form> 598 601 </pre> … … 648 651 <h1>Array Searching</h1> 649 652 <dl class="docutils"> 650 <dt>findValue(lst, value , start=0, end=lst.length):</dt>651 <dd>finds index of value (using compare)</dd>652 <dt>findIdentical(lst, value , start=0, end=lst.length):</dt>653 <dd>finds index of value (using ===)</dd>653 <dt>findValue(lst, value):</dt> 654 <dd>finds index of value</dd> 655 <dt>findIdentical(lst, value):</dt> 656 <dd>finds index of identival value</dd> 654 657 <dt>listMin(lst):</dt> 655 <dd>finds least item in lst (using compare)</dd>658 <dd>finds least item in lst</dd> 656 659 <dt>listMax(lst):</dt> 657 <dd>finds greatest item in lst (using compare)</dd>660 <dd>finds greatest item in lst</dd> 658 661 </dl> 659 662 </div> … … 664 667 <dd>new Array where predicate(lst[n]) is true</dd> 665 668 <dt>map(func, lst):</dt> 666 <dd>new Array of[func(lst[0]), func(lst[1]), ...]</dd>669 <dd>new Array, [func(lst[0]), func(lst[1]), ...]</dd> 667 670 <dt>keyComparator(key, ...):</dt> 668 <dd>new sort function that doescompare(a[key], b[key])</dd>671 <dd>new sort function, compare(a[key], b[key])</dd> 669 672 </dl> 670 673 </div> … … 687 690 <dt>list(iterable):</dt> 688 691 <dd>new Array</dd> 689 <dt>sorted(iterable , cmp=compare):</dt>690 <dd>sorted Array using cmp</dd>692 <dt>sorted(iterable):</dt> 693 <dd>sorted Array</dd> 691 694 <dt>sum(iterable, start=0):</dt> 692 695 <dd>Return start plus sum of items</dd> … … 777 780 <h1>Whitespace Assassins</h1> 778 781 <dl class="docutils"> 779 <dt>strip(str, chars="\s"):</dt> 782 <dt>lstrip(str):</dt> 783 <dd>strip only leading whitespace</dd> 784 <dt>rstrip(str):</dt> 785 <dd>strip only trailing whitespace</dd> 786 <dt>strip(str):</dt> 780 787 <dd>strip leading and trailing whitespace</dd> 781 <dt>lstrip(str, chars="\s"):</dt>782 <dd>strip only leading whitespace</dd>783 <dt>rstrip(str, chars="\s"):</dt>784 <dd>strip only trailing whitespace</dd>785 788 </dl> 786 789 </div> … … 865 868 <h1>Inline LoggingPane Example</h1> 866 869 <a href="javascript:MochiKit.LoggingPane.createLoggingPane(true)">Where's the LoggingPane?</a> 870 <p class="handout">In-line demo of the MochiKit LoggingPane.</p> 867 871 </div> 868 872 <div class="slide" id="mochikit-dom"> … … 953 957 </div> 954 958 <script type="text/javascript" src="ui/mochikit/examples/dominterpreter.js"></script> 959 <p class="handout">Another in-line interpreter demo, this time showing off MochiKit's DOM 960 support.</p> 955 961 </div> 956 962 <div class="slide" id="scraping-text"> … … 1198 1204 <h2 id="drag_monitor"></h2> 1199 1205 </div> 1206 <p class="handout">The slide's logo will be dragged during this slide, while displaying live 1207 pixel coordinates.</p> 1200 1208 </div> 1201 1209 <div class="slide" id="keyboard-events"> … … 1234 1242 </tr> 1235 1243 </table> 1244 <p class="handout">An in-line version of the key_events demo will be shown during this slide, 1245 showing capture of onkeypress, onkeydown, onkeyup events. Also shows 1246 the consistent naming of keys.</p> 1236 1247 </div> 1237 1248 <div class="slide" id="signal-anything"> presentations/2006/ajax_experience/slides.txt
r807 r810 95 95 :file: includes/interpreter.html 96 96 97 .. class:: handout 98 99 In-line demo of the MochiKit interpreter example. 100 The advantages of repr vs. toString and some of the interpreter's features 101 will be demonstrated during this slide. 102 97 103 98 104 Unreliable Operators … … 165 171 <form id="formNode"> 166 172 <input type="hidden" name="foo" value="1" /> 167 <input type=" hidden" name="bar" value="2" />173 <input type="text" name="bar" value="2" /> 168 174 </form> 169 175 … … 226 232 =============== 227 233 228 findValue(lst, value , start=0, end=lst.length):229 finds index of value (using compare)230 231 findIdentical(lst, value , start=0, end=lst.length):232 finds index of value (using ===)234 findValue(lst, value): 235 finds index of value 236 237 findIdentical(lst, value): 238 finds index of identival value 233 239 234 240 listMin(lst): 235 finds least item in lst (using compare)241 finds least item in lst 236 242 237 243 listMax(lst): 238 finds greatest item in lst (using compare)244 finds greatest item in lst 239 245 240 246 … … 246 252 247 253 map(func, lst): 248 new Array of[func(lst[0]), func(lst[1]), ...]254 new Array, [func(lst[0]), func(lst[1]), ...] 249 255 250 256 keyComparator(key, ...): 251 new sort function that doescompare(a[key], b[key])257 new sort function, compare(a[key], b[key]) 252 258 253 259 … … 273 279 new Array 274 280 275 sorted(iterable , cmp=compare):276 sorted Array using cmp281 sorted(iterable): 282 sorted Array 277 283 278 284 sum(iterable, start=0): … … 373 379 ==================== 374 380 375 strip(str, chars="\\s"): 381 lstrip(str): 382 strip only leading whitespace 383 384 rstrip(str): 385 strip only trailing whitespace 386 387 strip(str): 376 388 strip leading and trailing whitespace 377 378 lstrip(str, chars="\\s"):379 strip only leading whitespace380 381 rstrip(str, chars="\\s"):382 strip only trailing whitespace383 389 384 390 … … 473 479 :file: includes/logging_pane.html 474 480 481 .. class:: handout 482 483 In-line demo of the MochiKit LoggingPane. 475 484 476 485 MochiKit.DOM … … 559 568 .. raw:: html 560 569 :file: includes/dominterpreter.html 570 571 .. class:: handout 572 573 Another in-line interpreter demo, this time showing off MochiKit's DOM 574 support. 561 575 562 576 … … 823 837 :file: includes/draggable.html 824 838 839 .. class:: handout 840 841 The slide's logo will be dragged during this slide, while displaying live 842 pixel coordinates. 843 825 844 826 845 Keyboard Events … … 829 848 .. raw:: html 830 849 :file: includes/key_events.html 850 851 .. class:: handout 852 853 An in-line version of the key_events demo will be shown during this slide, 854 showing capture of onkeypress, onkeydown, onkeyup events. Also shows 855 the consistent naming of keys. 831 856 832 857
