Permalink
Browse files

Initial Commit - stubbed out project

  • Loading branch information...
0 parents commit b7cee7075c1c0ab401a0b696d85f6be490259b16 Kevin Malakoff committed Jul 18, 2012
Showing with 2,685 additions and 0 deletions.
  1. +18 −0 .gitignore
  2. +22 −0 LICENSE
  3. +114 −0 README.md
  4. +679 −0 _.m.xcodeproj/project.pbxproj
  5. +50 −0 _/Categories/_+Arrays.h
  6. +34 −0 _/Categories/_+Arrays.m
  7. +37 −0 _/Categories/_+Chaining.h
  8. +34 −0 _/Categories/_+Chaining.m
  9. +55 −0 _/Categories/_+Collections.h
  10. +34 −0 _/Categories/_+Collections.m
  11. +46 −0 _/Categories/_+Functions.h
  12. +34 −0 _/Categories/_+Functions.m
  13. +60 −0 _/Categories/_+Objects.h
  14. +34 −0 _/Categories/_+Objects.m
  15. +43 −0 _/Categories/_+Utility.h
  16. +34 −0 _/Categories/_+Utility.m
  17. +48 −0 _/Underscore.h
  18. +50 −0 _/WrapperCategories/_Wrapper+Arrays.h
  19. +34 −0 _/WrapperCategories/_Wrapper+Arrays.m
  20. +37 −0 _/WrapperCategories/_Wrapper+Chaining.h
  21. +34 −0 _/WrapperCategories/_Wrapper+Chaining.m
  22. +55 −0 _/WrapperCategories/_Wrapper+Collections.h
  23. +34 −0 _/WrapperCategories/_Wrapper+Collections.m
  24. +34 −0 _/WrapperCategories/_Wrapper+Functions.h
  25. +46 −0 _/WrapperCategories/_Wrapper+Functions.m
  26. +34 −0 _/WrapperCategories/_Wrapper+Objects.h
  27. +60 −0 _/WrapperCategories/_Wrapper+Objects.m
  28. +34 −0 _/WrapperCategories/_Wrapper+Utility.h
  29. +43 −0 _/WrapperCategories/_Wrapper+Utility.m
  30. +7 −0 _/_-Prefix.pch
  31. +34 −0 _/_.h
  32. +34 −0 _/_.m
  33. +29 −0 _/_BlockTypes.h
  34. +34 −0 _/_Private/_Wrapper+Private.h
  35. +34 −0 _/_Private/_Wrapper+Private.m
  36. +34 −0 _/_Wrapper.h
  37. +34 −0 _/_Wrapper.m
  38. +13 −0 _Tests/Categories/_+ArraysTests.h
  39. +30 −0 _Tests/Categories/_+ArraysTests.m
  40. +13 −0 _Tests/Categories/_+ChainingTests.h
  41. +17 −0 _Tests/Categories/_+ChainingTests.m
  42. +13 −0 _Tests/Categories/_+CollectionsTests.h
  43. +35 −0 _Tests/Categories/_+CollectionsTests.m
  44. +13 −0 _Tests/Categories/_+FunctionsTests.h
  45. +26 −0 _Tests/Categories/_+FunctionsTests.m
  46. +13 −0 _Tests/Categories/_+ObjectsTests.h
  47. +40 −0 _Tests/Categories/_+ObjectsTests.m
  48. +13 −0 _Tests/Categories/_+UtilityTests.h
  49. +23 −0 _Tests/Categories/_+UtilityTests.m
  50. +13 −0 _Tests/WrapperCategories/_Wrapper+ArraysTests.h
  51. +30 −0 _Tests/WrapperCategories/_Wrapper+ArraysTests.m
  52. +13 −0 _Tests/WrapperCategories/_Wrapper+ChainingTests.h
  53. +17 −0 _Tests/WrapperCategories/_Wrapper+ChainingTests.m
  54. +13 −0 _Tests/WrapperCategories/_Wrapper+CollectionsTests.h
  55. +35 −0 _Tests/WrapperCategories/_Wrapper+CollectionsTests.m
  56. +13 −0 _Tests/WrapperCategories/_Wrapper+FunctionsTests.h
  57. +26 −0 _Tests/WrapperCategories/_Wrapper+FunctionsTests.m
  58. +13 −0 _Tests/WrapperCategories/_Wrapper+ObjectsTests.h
  59. +40 −0 _Tests/WrapperCategories/_Wrapper+ObjectsTests.m
  60. +13 −0 _Tests/WrapperCategories/_Wrapper+UtilityTests.h
  61. +23 −0 _Tests/WrapperCategories/_Wrapper+UtilityTests.m
  62. +22 −0 _Tests/_Tests-Info.plist
  63. +13 −0 _Tests/_Tests.h
  64. +13 −0 _Tests/_Tests.m
  65. +13 −0 _Tests/_WrapperTests.h
  66. +13 −0 _Tests/_WrapperTests.m
  67. +2 −0 _Tests/en.lproj/InfoPlist.strings
@@ -0,0 +1,18 @@
+# osx noise
+.DS_Store
+profile
+
+# xcode noise
+build/*
+*.mode1
+*.mode1v3
+*.mode2v3
+*.perspective
+*.perspectivev3
+*.pbxuser
+*.xcworkspace
+xcuserdata
+
+# svn & cvs
+.svn
+CVS
22 LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2012 Kevin Malakoff
+
+Permission is hereby granted, free of charge, to any person
+obtaining a copy of this software and associated documentation
+files (the "Software"), to deal in the Software without
+restriction, including without limitation the rights to use,
+copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following
+conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
114 README.md
@@ -0,0 +1,114 @@
+[![Build Status](https:secure.travis-ci.org/kmalakoff/_.m.png)](http:travis-ci.org/kmalakoff/_.m)
+
+````
+_.m
+````
+_.m is a port of Underscore.js to Objective-C
+
+
+Arrays
+------------
+
+first
+initial
+last
+rest
+compact
+flatten
+without
+union
+intersection
+difference
+uniq
+zip
+indexOf
+lastIndexOf
+range
+
+Chaining
+------------
+
+chain
+value
+
+Collections
+------------
+
+each
+map
+reduce
+reduceRight
+find
+filter
+reject
+all
+any
+include
+invoke
+pluck
+max
+min
+sortBy
+groupBy
+sortedIndex
+shuffle
+toArray
+size
+
+
+Functions
+------------
+
+bind
+bindAll
+memoize
+delay
+defer
+throttle
+debounce
+once
+after
+wrap
+compose
+
+Objects
+------------
+
+keys
+values
+functions
+extend
+pick
+defaults
+clone
+tap
+has
+isEqual
+isEmpty
+isElement
+isArray
+isObject
+isArguments
+isFunction
+isString
+isNumber
+isFinite
+isBoolean
+isDate
+isRegExp
+isNaN
+isNull
+isUndefined
+
+Utility
+------------
+
+noConflict
+identity
+times
+mixin
+uniqueId
+escape
+result
+template
+

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,50 @@
+//
+// _+Arrays.h
+// _.m
+//
+// Created by Kevin Malakoff on 7/18/12.
+// Copyright (c) 2012 Kevin Malakoff. All rights reserved.
+//
+// Permission is hereby granted, free of charge, to any person
+// obtaining a copy of this software and associated documentation
+// files (the "Software"), to deal in the Software without
+// restriction, including without limitation the rights to use,
+// copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the
+// Software is furnished to do so, subject to the following
+// conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+// OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#import "_.h"
+
+@interface _ (Arrays)
+
+//first
+//initial
+//last
+//rest
+//compact
+//flatten
+//without
+//union
+//intersection
+//difference
+//uniq
+//zip
+//indexOf
+//lastIndexOf
+//range
+
+@end
@@ -0,0 +1,34 @@
+//
+// _+Arrays.m
+// _.m
+//
+// Created by Kevin Malakoff on 7/18/12.
+// Copyright (c) 2012 Kevin Malakoff. All rights reserved.
+//
+// Permission is hereby granted, free of charge, to any person
+// obtaining a copy of this software and associated documentation
+// files (the "Software"), to deal in the Software without
+// restriction, including without limitation the rights to use,
+// copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the
+// Software is furnished to do so, subject to the following
+// conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+// OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#import "_+Arrays.h"
+
+@implementation _ (Arrays)
+
+@end
@@ -0,0 +1,37 @@
+//
+// _+Chaining.h
+// _.m
+//
+// Created by Kevin Malakoff on 7/18/12.
+// Copyright (c) 2012 Kevin Malakoff. All rights reserved.
+//
+// Permission is hereby granted, free of charge, to any person
+// obtaining a copy of this software and associated documentation
+// files (the "Software"), to deal in the Software without
+// restriction, including without limitation the rights to use,
+// copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the
+// Software is furnished to do so, subject to the following
+// conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+// OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#import "_.h"
+
+@interface _ (Chaining)
+
+//chain
+//value
+
+@end
@@ -0,0 +1,34 @@
+//
+// _+Chaining.m
+// _.m
+//
+// Created by Kevin Malakoff on 7/18/12.
+// Copyright (c) 2012 Kevin Malakoff. All rights reserved.
+//
+// Permission is hereby granted, free of charge, to any person
+// obtaining a copy of this software and associated documentation
+// files (the "Software"), to deal in the Software without
+// restriction, including without limitation the rights to use,
+// copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the
+// Software is furnished to do so, subject to the following
+// conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+// OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#import "_+Chaining.h"
+
+@implementation _ (Chaining)
+
+@end
@@ -0,0 +1,55 @@
+//
+// _+Collections.h
+// _.m
+//
+// Created by Kevin Malakoff on 7/18/12.
+// Copyright (c) 2012 Kevin Malakoff. All rights reserved.
+//
+// Permission is hereby granted, free of charge, to any person
+// obtaining a copy of this software and associated documentation
+// files (the "Software"), to deal in the Software without
+// restriction, including without limitation the rights to use,
+// copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the
+// Software is furnished to do so, subject to the following
+// conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+// OTHER DEALINGS IN THE SOFTWARE.
+//
+
+#import "_.h"
+
+@interface _ (Collections)
+
+//each
+//map
+//reduce
+//reduceRight
+//find
+//filter
+//reject
+//all
+//any
+//include
+//invoke
+//pluck
+//max
+//min
+//sortBy
+//groupBy
+//sortedIndex
+//shuffle
+//toArray
+//size
+
+@end
Oops, something went wrong.

0 comments on commit b7cee70

Please sign in to comment.