Changeset 810

Show
Ignore:
Timestamp:
04/28/06 13:39:13 (2 years ago)
Author:
bob@redivi.com
Message:

handout

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • presentations/2006/ajax_experience/slides.html

    r808 r810  
    527527</div> 
    528528<script type="text/javascript" src="ui/mochikit/examples/interpreter.js"></script> 
     529<p class="handout">In-line demo of the MochiKit interpreter example. 
     530The advantages of repr vs. toString and some of the interpreter's features 
     531will be demonstrated during this slide.</p> 
    529532</div> 
    530533<div class="slide" id="unreliable-operators"> 
     
    594597&lt;form id=&quot;formNode&quot;&gt; 
    595598    &lt;input type=&quot;hidden&quot; name=&quot;foo&quot; value=&quot;1&quot; /&gt; 
    596     &lt;input type=&quot;hidden&quot; name=&quot;bar&quot; value=&quot;2&quot; /&gt; 
     599    &lt;input type=&quot;text&quot; name=&quot;bar&quot; value=&quot;2&quot; /&gt; 
    597600&lt;/form&gt; 
    598601</pre> 
     
    648651<h1>Array Searching</h1> 
    649652<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> 
    654657<dt>listMin(lst):</dt> 
    655 <dd>finds least item in lst (using compare)</dd> 
     658<dd>finds least item in lst</dd> 
    656659<dt>listMax(lst):</dt> 
    657 <dd>finds greatest item in lst (using compare)</dd> 
     660<dd>finds greatest item in lst</dd> 
    658661</dl> 
    659662</div> 
     
    664667<dd>new Array where predicate(lst[n]) is true</dd> 
    665668<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> 
    667670<dt>keyComparator(key, ...):</dt> 
    668 <dd>new sort function that does compare(a[key], b[key])</dd> 
     671<dd>new sort function, compare(a[key], b[key])</dd> 
    669672</dl> 
    670673</div> 
     
    687690<dt>list(iterable):</dt> 
    688691<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> 
    691694<dt>sum(iterable, start=0):</dt> 
    692695<dd>Return start plus sum of items</dd> 
     
    777780<h1>Whitespace Assassins</h1> 
    778781<dl class="docutils"> 
    779 <dt>strip(str, chars=&quot;\s&quot;):</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> 
    780787<dd>strip leading and trailing whitespace</dd> 
    781 <dt>lstrip(str, chars=&quot;\s&quot;):</dt> 
    782 <dd>strip only leading whitespace</dd> 
    783 <dt>rstrip(str, chars=&quot;\s&quot;):</dt> 
    784 <dd>strip only trailing whitespace</dd> 
    785788</dl> 
    786789</div> 
     
    865868<h1>Inline LoggingPane Example</h1> 
    866869<a href="javascript:MochiKit.LoggingPane.createLoggingPane(true)">Where's the LoggingPane?</a> 
     870<p class="handout">In-line demo of the MochiKit LoggingPane.</p> 
    867871</div> 
    868872<div class="slide" id="mochikit-dom"> 
     
    953957</div> 
    954958<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 
     960support.</p> 
    955961</div> 
    956962<div class="slide" id="scraping-text"> 
     
    11981204    <h2 id="drag_monitor"></h2> 
    11991205</div> 
     1206<p class="handout">The slide's logo will be dragged during this slide, while displaying live 
     1207pixel coordinates.</p> 
    12001208</div> 
    12011209<div class="slide" id="keyboard-events"> 
     
    12341242        </tr> 
    12351243    </table>     
     1244<p class="handout">An in-line version of the key_events demo will be shown during this slide, 
     1245showing capture of onkeypress, onkeydown, onkeyup events.  Also shows 
     1246the consistent naming of keys.</p> 
    12361247</div> 
    12371248<div class="slide" id="signal-anything"> 
  • presentations/2006/ajax_experience/slides.txt

    r807 r810  
    9595    :file: includes/interpreter.html 
    9696 
     97.. class:: handout 
     98 
     99In-line demo of the MochiKit interpreter example. 
     100The advantages of repr vs. toString and some of the interpreter's features 
     101will be demonstrated during this slide. 
     102 
    97103 
    98104Unreliable Operators 
     
    165171    <form id="formNode"> 
    166172        <input type="hidden" name="foo" value="1" /> 
    167         <input type="hidden" name="bar" value="2" /> 
     173        <input type="text" name="bar" value="2" /> 
    168174    </form> 
    169175 
     
    226232=============== 
    227233 
    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 ===) 
     234findValue(lst, value): 
     235    finds index of value 
     236 
     237findIdentical(lst, value): 
     238    finds index of identival value 
    233239 
    234240listMin(lst): 
    235     finds least item in lst (using compare) 
     241    finds least item in lst 
    236242 
    237243listMax(lst): 
    238     finds greatest item in lst (using compare) 
     244    finds greatest item in lst 
    239245 
    240246 
     
    246252 
    247253map(func, lst): 
    248     new Array of [func(lst[0]), func(lst[1]), ...] 
     254    new Array, [func(lst[0]), func(lst[1]), ...] 
    249255 
    250256keyComparator(key, ...): 
    251     new sort function that does compare(a[key], b[key]) 
     257    new sort function, compare(a[key], b[key]) 
    252258 
    253259 
     
    273279    new Array 
    274280 
    275 sorted(iterable, cmp=compare): 
    276     sorted Array using cmp 
     281sorted(iterable): 
     282    sorted Array 
    277283 
    278284sum(iterable, start=0): 
     
    373379==================== 
    374380 
    375 strip(str, chars="\\s"): 
     381lstrip(str): 
     382    strip only leading whitespace 
     383 
     384rstrip(str): 
     385    strip only trailing whitespace 
     386 
     387strip(str): 
    376388    strip leading and trailing whitespace 
    377  
    378 lstrip(str, chars="\\s"): 
    379     strip only leading whitespace 
    380  
    381 rstrip(str, chars="\\s"): 
    382     strip only trailing whitespace 
    383389 
    384390 
     
    473479    :file: includes/logging_pane.html 
    474480 
     481.. class:: handout 
     482 
     483In-line demo of the MochiKit LoggingPane. 
    475484 
    476485MochiKit.DOM 
     
    559568.. raw:: html 
    560569    :file: includes/dominterpreter.html 
     570 
     571.. class:: handout 
     572 
     573Another in-line interpreter demo, this time showing off MochiKit's DOM 
     574support. 
    561575 
    562576 
     
    823837    :file: includes/draggable.html 
    824838 
     839.. class:: handout 
     840 
     841The slide's logo will be dragged during this slide, while displaying live 
     842pixel coordinates. 
     843 
    825844 
    826845Keyboard Events 
     
    829848.. raw:: html 
    830849    :file: includes/key_events.html 
     850 
     851.. class:: handout 
     852 
     853An in-line version of the key_events demo will be shown during this slide, 
     854showing capture of onkeypress, onkeydown, onkeyup events.  Also shows 
     855the consistent naming of keys. 
    831856 
    832857