¡@

Home 

javascript Programming Glossary: l1

How do I create bit array in Javascript?

http://stackoverflow.com/questions/6972717/how-do-i-create-bit-array-in-javascript

BitArray._getLen function bitArray1 bitArray2 smallest var l1 bitArray1.getLength var l2 bitArray2.getLength return l1 l2.. l1 bitArray1.getLength var l2 bitArray2.getLength return l1 l2 smallest l2 l1 smallest l2 l1 CREDIT TO @Daniel Baulig for.. var l2 bitArray2.getLength return l1 l2 smallest l2 l1 smallest l2 l1 CREDIT TO @Daniel Baulig for asking for the refactor..

How to drag a shape along a given path

http://stackoverflow.com/questions/7406021/how-to-drag-a-shape-along-a-given-path

opacity 1 gradSearch function l0 pt l0 l0 totLen var l1 l0 dist0 dist p.getPointAtLength l0 totLen pt dist1 searchDir.. totLen pt searchDir searchDl else searchDir searchDl l1 searchDir dist1 dist p.getPointAtLength l1 totLen pt while dist1.. searchDl l1 searchDir dist1 dist p.getPointAtLength l1 totLen pt while dist1 dist0 dist0 dist1 l1 searchDir dist1 dist..

JavaScript loop performance - Why is to decrement the iterator toward 0 faster than incrementing

http://stackoverflow.com/questions/3520688/javascript-loop-performance-why-is-to-decrement-the-iterator-toward-0-faster-t

for i 0 i n i .. body.. would generate move register 0 L1 compare register n jump if negative L2 body .. increment register.. n jump if negative L2 body .. increment register jump L1 L2 while the backward counting code for i n i 0 .. body .. would.. code for i n i 0 .. body .. would generate move register n L1 decrement and jump if negative register L2 .. body .. jump L1..

Getting the closest string match

http://stackoverflow.com/questions/5859561/getting-the-closest-string-match

ByRef S1 As String ByVal S2 As String As Long Dim L1 As Long L2 As Long D As Long 'Length of input strings and distance.. As Long 'cost of next Insertion Deletion and Substitution L1 Len S1 L2 Len S2 ReDim D 0 To L1 0 To L2 For i 0 To L1 D i 0.. Deletion and Substitution L1 Len S1 L2 Len S2 ReDim D 0 To L1 0 To L2 For i 0 To L1 D i 0 i Next i For j 0 To L2 D 0 j j Next..