Changeset 811

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

terse

Files:

Legend:

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

    r810 r811  
    408408<li><a class="reference" href="#attributes" id="id49" name="id49">Attributes</a></li> 
    409409<li><a class="reference" href="#alternating" id="id50" name="id50">Alternating</a></li> 
    410 <li><a class="reference" href="#mochikit-interpreter-again" id="id51" name="id51">MochiKit Interpreter (Again)</a></li> 
     410<li><a class="reference" href="#interpreter-dom" id="id51" name="id51">Interpreter DOM</a></li> 
    411411<li><a class="reference" href="#scraping-text" id="id52" name="id52">Scraping Text</a></li> 
    412412<li><a class="reference" href="#forms" id="id53" name="id53">Forms</a></li> 
     
    596596<pre class="literal-block"> 
    597597&lt;form id=&quot;formNode&quot;&gt; 
    598     &lt;input type=&quot;hidden&quot; name=&quot;foo&quot; value=&quot;1&quot; /&gt; 
    599     &lt;input type=&quot;text&quot; name=&quot;bar&quot; value=&quot;2&quot; /&gt; 
     598  &lt;input type=&quot;hidden&quot; name=&quot;foo&quot; value=&quot;1&quot; /&gt; 
     599  &lt;input type=&quot;text&quot; name=&quot;bar&quot; value=&quot;2&quot; /&gt; 
    600600&lt;/form&gt; 
    601601</pre> 
     
    620620<dl class="docutils"> 
    621621<dt>keys(obj):</dt> 
    622 <dd>Array of every property on obj</dd> 
     622<dd>Array of obj's properties</dd> 
    623623<dt>items(obj):</dt> 
    624 <dd>Array of every [property, value] on obj</dd> 
     624<dd>Array of obj's [property, value]</dd> 
    625625</dl> 
    626626</div> 
     
    643643<dd>concatenates Arrays</dd> 
    644644<dt>extend(self, seq, skip=0):</dt> 
    645 <dd>extends a list in-place</dd> 
     645<dd>extends Array in-place</dd> 
    646646<dt>flattenArguments(args[, ...]):</dt> 
    647647<dd>recursively flatten arguments to single Array</dd> 
     
    654654<dd>finds index of value</dd> 
    655655<dt>findIdentical(lst, value):</dt> 
    656 <dd>finds index of identival value</dd> 
     656<dd>finds index of identical value</dd> 
    657657<dt>listMin(lst):</dt> 
    658658<dd>finds least item in lst</dd> 
     
    665665<dl class="docutils"> 
    666666<dt>filter(predicate, lst):</dt> 
    667 <dd>new Array where predicate(lst[n]) is true</dd> 
     667<dd>Array where predicate(lst[n])</dd> 
    668668<dt>map(func, lst):</dt> 
    669 <dd>new Array, [func(lst[0]), func(lst[1]), ...]</dd> 
    670 <dt>keyComparator(key, ...):</dt> 
    671 <dd>new sort function, compare(a[key], b[key])</dd> 
     669<dd>[func(lst[0]), ...]</dd> 
     670<dt>keyComparator(key):</dt> 
     671<dd>compare(a[key], b[key])</dd> 
    672672</dl> 
    673673</div> 
     
    726726<dd>n, n + 1, n + 2, ...</dd> 
    727727<dt>cycle(iterable):</dt> 
    728 <dd>while (true) { iterable[0], ..., iterable[N] }</dd> 
     728<dd>while (1) { iterable[0], ... }</dd> 
    729729<dt>repeat(item):</dt> 
    730730<dd>item, item, item, item, ...</dd> 
     
    774774<li>JavaScript has no sprintf</li> 
    775775<li>Thousands separators help readability</li> 
    776 <li>Based on Java's Number Format Pattern Syntax</li> 
     776<li>Java's Number Format Pattern Syntax</li> 
    777777</ul> 
    778778</div> 
     
    781781<dl class="docutils"> 
    782782<dt>lstrip(str):</dt> 
    783 <dd>strip only leading whitespace</dd> 
     783<dd>strip leading whitespace</dd> 
    784784<dt>rstrip(str):</dt> 
    785 <dd>strip only trailing whitespace</dd> 
     785<dd>strip trailing whitespace</dd> 
    786786<dt>strip(str):</dt> 
    787787<dd>strip leading and trailing whitespace</dd> 
     
    799799<p>Currency:</p> 
    800800<pre class="literal-block"> 
    801 &gt;&gt;&gt; dollarFormat = numberFormatter(&quot;$###,###.##&quot;) 
    802 &gt;&gt;&gt; dollarFormat(1234567.89) 
     801&gt;&gt;&gt; money = numberFormatter(&quot;$###,###.##&quot;) 
     802&gt;&gt;&gt; money(1234567.89) 
    803803&quot;$1,234,567.89&quot; 
    804804</pre> 
     
    808808<p>Percent:</p> 
    809809<pre class="literal-block"> 
    810 &gt;&gt;&gt; percentFormat = numberFormatter(&quot;###,###%&quot;) 
    811 &gt;&gt;&gt; percentFormat(123.45) 
     810&gt;&gt;&gt; percent = numberFormatter(&quot;###,###%&quot;) 
     811&gt;&gt;&gt; percent(123.45) 
    812812&quot;12,345%&quot; 
    813813</pre> 
     
    844844<p>Pop-up MochiKit.LoggingPane:</p> 
    845845<pre class="literal-block"> 
    846 javascript:MochiKit.Logging.logger.debuggingBookmarklet() 
     846javascript:logger.debuggingBookmarklet() 
    847847</pre> 
    848848</div> 
     
    944944</pre> 
    945945</div> 
    946 <div class="slide" id="mochikit-interpreter-again"> 
    947 <h1>MochiKit Interpreter (Again)</h1> 
     946<div class="slide" id="interpreter-dom"> 
     947<h1>Interpreter DOM</h1> 
    948948<div id="dominterpreter_example"> 
    949949    <form id="dominterpreter_form" autocomplete="off"> 
     
    991991<h1>Manipulating DOM</h1> 
    992992<dl class="docutils"> 
    993 <dt>appendChildNodes(parentNode, childNode...):</dt> 
     993<dt>appendChildNodes(parent, children...):</dt> 
    994994<dd>Add nodes via createDOM</dd> 
    995 <dt>replaceChildNodes(parentNode, childNode...):</dt> 
     995<dt>replaceChildNodes(parent, children...):</dt> 
    996996<dd>Remove all, then append</dd> 
    997997<dt>swapDOM(dest, src):</dt> 
     
    10051005<dd>node attribute attr=value</dd> 
    10061006<dt>updateNodeAttributes(node, attrs):</dt> 
    1007 <dd>Set the node attributes from object attrs</dd> 
     1007<dd>node attributes from object attrs</dd> 
    10081008</dl> 
    10091009</div> 
  • presentations/2006/ajax_experience/slides.txt

    r810 r811  
    170170 
    171171    <form id="formNode"> 
    172         <input type="hidden" name="foo" value="1" /> 
    173         <input type="text" name="bar" value="2" /> 
     172      <input type="hidden" name="foo" value="1" /> 
     173      <input type="text" name="bar" value="2" /> 
    174174    </form> 
    175175 
     
    195195 
    196196keys(obj): 
    197     Array of every property on obj 
     197    Array of obj's properties 
    198198 
    199199items(obj): 
    200     Array of every [property, value] on obj 
     200    Array of obj's [property, value] 
    201201 
    202202 
     
    223223 
    224224extend(self, seq, skip=0): 
    225     extends a list in-place 
     225    extends Array in-place 
    226226 
    227227flattenArguments(args[, ...]): 
     
    236236 
    237237findIdentical(lst, value): 
    238     finds index of identival value 
     238    finds index of identical value 
    239239 
    240240listMin(lst): 
     
    249249 
    250250filter(predicate, lst): 
    251     new Array where predicate(lst[n]) is true 
     251    Array where predicate(lst[n]) 
    252252 
    253253map(func, lst): 
    254     new Array, [func(lst[0]), func(lst[1]), ...] 
    255  
    256 keyComparator(key, ...): 
    257     new sort function, compare(a[key], b[key]) 
     254    [func(lst[0]), ...] 
     255 
     256keyComparator(key): 
     257    compare(a[key], b[key]) 
    258258 
    259259 
     
    319319 
    320320cycle(iterable): 
    321     while (true) { iterable[0], ..., iterable[N]
     321    while (1) { iterable[0], ...
    322322 
    323323repeat(item): 
     
    373373* JavaScript has no sprintf 
    374374* Thousands separators help readability 
    375 * Based on Java's Number Format Pattern Syntax 
     375* Java's Number Format Pattern Syntax 
    376376 
    377377 
     
    380380 
    381381lstrip(str): 
    382     strip only leading whitespace 
     382    strip leading whitespace 
    383383 
    384384rstrip(str): 
    385     strip only trailing whitespace 
     385    strip trailing whitespace 
    386386 
    387387strip(str): 
     
    401401Currency:: 
    402402 
    403     >>> dollarFormat = numberFormatter("$###,###.##") 
    404     >>> dollarFormat(1234567.89) 
     403    >>> money = numberFormatter("$###,###.##") 
     404    >>> money(1234567.89) 
    405405    "$1,234,567.89" 
    406406 
     
    411411Percent:: 
    412412 
    413     >>> percentFormat = numberFormatter("###,###%") 
    414     >>> percentFormat(123.45) 
     413    >>> percent = numberFormatter("###,###%") 
     414    >>> percent(123.45) 
    415415    "12,345%" 
    416416 
     
    450450Pop-up MochiKit.LoggingPane:: 
    451451 
    452     javascript:MochiKit.Logging.logger.debuggingBookmarklet() 
     452    javascript:logger.debuggingBookmarklet() 
    453453 
    454454 
     
    563563 
    564564 
    565 MochiKit Interpreter (Again) 
    566 ============================ 
     565Interpreter DOM 
     566=============== 
    567567 
    568568.. raw:: html 
     
    609609================ 
    610610 
    611 appendChildNodes(parentNode, childNode...): 
     611appendChildNodes(parent, children...): 
    612612    Add nodes via createDOM 
    613613 
    614 replaceChildNodes(parentNode, childNode...): 
     614replaceChildNodes(parent, children...): 
    615615    Remove all, then append 
    616616 
     
    626626 
    627627updateNodeAttributes(node, attrs): 
    628     Set the node attributes from object attrs 
     628    node attributes from object attrs 
    629629     
    630630