Refactor
:my
=>
'code'
Codes
Refactorings
Popular
Best
Submit
Spam
Account
Logout
Login
JavaScript doesn't seem to be activated, expect things to be ugly and sloppy!
More Jobs
Recent
Simple For Loop
Toggle "Check all / Uncheck all" with jQuery
Parsing non-delimited text
Small Javascript Code
file upload validation
Capitalize directory name with LINQ
Connection Detection script
Before Filter URL Redirect if URL is messed with
Morse Code Encoder/Decoder
Source code analysis
Popular
Small Javascript Code
Simple For Loop
Parsing non-delimited text
Toggle "Check all / Uncheck all" with jQuery
Before Filter URL Redirect if URL is messed with
Morse Code Encoder/Decoder
file upload validation
Connection Detection script
Capitalize directory name with LINQ
Map fields array and data arrays into an array of hashes
Pastable version of
Curry
<div style="overflow:auto;border:solid 1px #ccc;background:#000;color:#F8F8F8"> <div class="section"> <pre style="float:left;margin:0 10px;border-right:0;color:#666;">1 2 3 4 5 6 7 8 9 10</pre> <pre class="sunburst"><span style="color:#99CF50;">function</span> <span style="color:#89BDFF;">curry</span>(<span style="color:#3E87E3;">fn, scope</span>) { <span style="color:#99CF50;">var</span> scope <span style="color:#E28964;">=</span> scope <span style="color:#E28964;">||</span> <span style="color:#9B859D;">window</span>; <span style="color:#99CF50;">var</span> args <span style="color:#E28964;">=</span> <span style="color:#9B859D;">Array</span>.<span style="color:#CF6A4C;">prototype</span>.slice.<span style="color:#DAD085;">call</span>(arguments, <span style="color:#3387CC;">2</span>) <span style="color:#E28964;">||</span> []; <span style="color:#E28964;">return</span> <span style="color:#99CF50;">function</span>() { fn.<span style="color:#DAD085;">apply</span>(scope, args); }; }; </pre> </div> </div> <a href="http://refactormycode.com/codes/94-curry" style="color:#fff" title="As seen on RefactorMyCode.com"><img alt="Small_logo" src="http://refactormycode.com/images/small_logo.gif" style="border:0" /></a>