Skip to content

Commit 9034841

Browse files
Sebastian SlomskiSebastian Slomski
authored andcommitted
Updated Wanted Recipes and Authors file
1 parent ecf11db commit 9034841

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

authors.textile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ _The following people are totally rad and awesome because they have contributed
1111
* John Ford _jwford@gmail.com_
1212
* Steven Reid _steven @ reidnorthwest . com_
1313
* David Moulton _dave@themoultons.net_
14+
* Sebastian Slomski _sebastian@simple-systems.org_
1415
* ...You! What are you waiting for? Check out the <a href="/contributing">contributing</a> section and get cracking!
1516

1617

wanted-recipes.textile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ In the notes below, "JS" means the recipe is just a simple passthrough to an exi
1010

1111
h2. Syntax
1212

13-
* list comp gotcha: y = x for x in [1..3]; y # => 3; but y = (x for x in [1..3]); y # => [ 1, 2, 3 ]
1413
* Ensuring variables are closed over # with "do"
1514

1615
h2. Objects
17-
18-
* cloning an object (see http://stackoverflow.com/questions/122102/what-is-the-most-efficient-way-to-clone-a-javascript-object ) -- snag both the generic JS version, port to CS, also snag the jQuery version and port to CS+jQ.
16+
* Chaning the methods of an object
1917

2018
h2. Strings
2119

@@ -26,6 +24,7 @@ h2. Strings
2624
* Uppercasing a string # JS toUpperCase()
2725
* Lowercasing a string # JS toLowerCase()
2826
* Replacing substrings
27+
* Trimming whitespace from the end of a string
2928

3029
h2. Arrays
3130

@@ -46,13 +45,16 @@ evens.every even
4645
* Filtering arrays # [1..10.filter (x) -> x % 2 == 0 # => [ 2, 4, 6, 8, 10 ]
4746
* Detecting presence of matching items in an array # [1..10].some (x) -> x % 2 == 0 # => true
4847
* Processing an array item by item # [10..1].forEach (x) -> console.log x # => nothing;, but a countdown is displayed on the console
48+
* Creating a string from an array
49+
* Replace all duplicates of an array
4950

5051
h2. Dates and Times
5152

5253
* Calculating the phase of the moon
5354
* Holidays: Calculating Easter
5455
* Holidays: Calculating US Thanksgiving
5556
* Holidays: Calculating CA Thanksgiving
57+
* Number of days between two dates
5658

5759
h2. Math
5860

@@ -63,6 +65,7 @@ h2. Math
6365
* Logarithms # Math.log
6466
* Finding the base-n log # Math.log(num) / Math.log(base)
6567
* Exponents # Math.exp
68+
* Check if a creditcard is valid (checksum, Luhn algorithm)
6669

6770
h2. Functions
6871

@@ -105,18 +108,19 @@ console.log [1,2,3,4,5].map (x) ->
105108

106109
h2. jQuery
107110

108-
* Callback bindings # using => instead of ->
109111
* jQuery AJAX from CS
110112

111113
h2. Regular Expressions
112114

113115
* Searching for substrings # "foo bar baz".match(/ba./) # => [ 'bar', index: 4, input: 'foo bar baz' ]
114116
* Searching for substrings # "foo bar baz".search(/ba./) # => 4
115117
* Replacing substrings # "foo bar baz".replace( /ba./, 'foo') # => "foo foo baz"
118+
* Replace HTML tags with named HTML entities # <br/> => &lt;br/&gt;
116119

117120
h2. AJAX
118121

119122
* Getting data from a remote server # using raw XHTTPRequest instead of jQuery's $.ajax
120123

124+
h2. Design patterns
121125

122-
126+
* Singleton pattern

0 commit comments

Comments
 (0)