Permalink
Browse files

initial check-in

  • Loading branch information...
0 parents commit 1b4140e3345ba68efa8fff068bc7080a83712143 @donpark committed Oct 7, 2012
Showing with 18,014 additions and 0 deletions.
  1. +58 −0 LICENSE.md
  2. +5 −0 README.md
  3. +39 −0 app.coffee
  4. BIN assets/gray-scott.psd
  5. +43 −0 fabfile.py
  6. +11 −0 package.json
  7. +8 −0 pokerhall.sublime-project
  8. +1,058 −0 public/bootstrap/css/bootstrap-responsive.css
  9. +9 −0 public/bootstrap/css/bootstrap-responsive.min.css
  10. +6,123 −0 public/bootstrap/css/bootstrap.css
  11. +9 −0 public/bootstrap/css/bootstrap.min.css
  12. BIN public/bootstrap/font/fontawesome-webfont.eot
  13. +255 −0 public/bootstrap/font/fontawesome-webfont.svg
  14. BIN public/bootstrap/font/fontawesome-webfont.ttf
  15. BIN public/bootstrap/font/fontawesome-webfont.woff
  16. BIN public/bootstrap/img/glyphicons-halflings-white.png
  17. BIN public/bootstrap/img/glyphicons-halflings.png
  18. +2,027 −0 public/bootstrap/js/bootstrap.js
  19. +6 −0 public/bootstrap/js/bootstrap.min.js
  20. +10 −0 public/css/demo.styl
  21. +173 −0 public/css/playingcards.styl
  22. BIN public/img/back.png
  23. BIN public/img/faces/face-jack-club.png
  24. BIN public/img/faces/face-jack-diamond.png
  25. BIN public/img/faces/face-jack-heart.png
  26. BIN public/img/faces/face-jack-spade.png
  27. BIN public/img/faces/face-king-club.png
  28. BIN public/img/faces/face-king-diamond.png
  29. BIN public/img/faces/face-king-heart.png
  30. BIN public/img/faces/face-king-spade.png
  31. BIN public/img/faces/face-queen-club.png
  32. BIN public/img/faces/face-queen-diamond.png
  33. BIN public/img/faces/face-queen-heart.png
  34. BIN public/img/faces/face-queen-spade.png
  35. +31 −0 public/js/demo.coffee
  36. +38 −0 public/js/lib/backbone-min.js
  37. +1,431 −0 public/js/lib/backbone.js
  38. +755 −0 public/js/lib/dat.color.js
  39. +26 −0 public/js/lib/dat.color.min.js
  40. +3,660 −0 public/js/lib/dat.gui.js
  41. +94 −0 public/js/lib/dat.gui.min.js
  42. +5 −0 public/js/lib/hogan-2.0.0.min.js
  43. +2 −0 public/js/lib/jquery-1.8.2.min.js
  44. +470 −0 public/js/lib/jquery.flippy.js
  45. +15 −0 public/js/lib/jquery.flippy.min.js
  46. +5 −0 public/js/lib/underscore-min.js
  47. +1,189 −0 public/js/lib/underscore.js
  48. +210 −0 public/js/playingcards.coffee
  49. +23 −0 public/js/polyfills.coffee
  50. +7 −0 routes/index.coffee
  51. +35 −0 views/demo.jade
  52. +15 −0 views/layout.jade
  53. +169 −0 views/mixins/playingcards.jade
@@ -0,0 +1,58 @@
+# License
+
+Copyright (c) 2012 Don Park
+
+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.
+
+## Helveticards
+
+CSS-based poker cards originate from Zack Waugh's [Helveticards](http://zachwaugh.com/helveticards/index.html) project which can be found at [Github](https://github.com/zachwaugh/Helveticards).
+
+Copyright (c) 2012 Zach Waugh - http://zachwaugh.com
+
+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.
+
+## Court Images
+
+Graphics on face cards are rendered using Chris Aguilar's [vectorized-playing-cards](http://code.google.com/p/vectorized-playing-cards/) SVG files. As I understand it, his work is hand-vectorized version of standard [Anglo-American court cards](http://www.madore.org/~david/misc/cards.html) which are in public domain except for back and Joker images which vary and are mostly still copyrighted and thus absent from Chris' work.
+
+Chris Aguilar
+mailto:conjurenation@gmail.com
+
+This library is released under the GNU LESSER GENERAL PUBLIC LICENSE 3.0.
+
+http://www.gnu.org/licenses/gpl.html
+http://www.gnu.org/copyleft/lesser.html
+
+Generally, this means the cards are free to use (commercially and non commercially) but must be properly attributed (see "README.txt" file) and (The library itself, not your project) re-distributed only under the same license.
+
+## Script files
+
+### FLIPPY jQuery plugin 1.0.1
+
+This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
+
+- website: [http://guilhemmarty.com/flippy](http://guilhemmarty.com/flippy)
+- author: [Guilhem MARTY](bonjour@guilhemmarty.com)
+
+### Backbone.js 0.9.2
+
+(c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
+Backbone may be freely distributed under the MIT license.
+
+- website: [http://backbonejs.org](http://backbonejs.org)
+
+### Underscore.js 1.4.0
+
+(c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
+Underscore may be freely distributed under the MIT license.
+
+- website: [http://underscorejs.org](http://underscorejs.org)
@@ -0,0 +1,5 @@
+This project is a heavily modified version of Zack Waugh's [Helveticards](http://zachwaugh.com/helveticards/index.html) with three notable differences:
+
+1. Cards are scalable.
+2. Card size may be specific to individual cards or set of cards.
+3. Face cards have standard Anglo-American court images rendered from Chris Aguilar's [vectorized-playing-cards](http://code.google.com/p/vectorized-playing-cards/) SVG files.
@@ -0,0 +1,39 @@
+
+###
+Module dependencies.
+###
+express = require("express")
+app = module.exports = express.createServer()
+
+# stylus = require('stylus')
+# nib = require('nib')
+
+# Configuration
+app.configure ->
+ app.set "views", __dirname + "/views"
+ app.set "view engine", "jade"
+ app.use express.bodyParser()
+ app.use express.methodOverride()
+ app.use app.router
+ # app.use stylus.middleware
+ # src: __dirname
+ # compile: (str, path) ->
+ # stylus(str).set('filename', path).set('compress', false).use(nib())
+ app.use express.static(__dirname + "/public")
+
+app.configure "development", ->
+ app.use express.errorHandler(
+ dumpExceptions: true
+ showStack: true
+ )
+
+app.configure "production", ->
+ app.use express.errorHandler()
+
+
+# Routes
+require('./routes/index').configure(null, app)
+
+app.listen 3000, ->
+ console.log "Express server listening on port %d in %s mode", app.address().port, app.settings.env
+
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,43 @@
+import os
+import time
+from fabric.api import *
+from fabric.contrib.console import confirm
+from fabric.contrib.project import rsync_project
+
+def old():
+ local("npm outdated")
+
+def remove_compiled(in_type, out_type, dirs = "."):
+ with settings(warn_only=True):
+ with lcd("."):
+ files = local(("find %s -name \*%s" % (dirs, in_type)), capture=True)
+ lines = files.split('\n')
+ for line in lines:
+ if line.find("node_modules") == -1:
+ path, ext = os.path.splitext(line)
+ path += out_type
+ if os.path.exists(path):
+ local("rm %s" % path)
+
+def clean():
+ with settings(warn_only=True):
+ remove_compiled(".coffee", ".js")
+ remove_compiled(".styl", ".css")
+ remove_compiled(".jade", ".html")
+
+def build():
+ with settings(warn_only=True):
+ local("coffee -c *.coffee")
+ local("coffee -c lib")
+ local("coffee -c public")
+ local("coffee -c routes")
+ local("stylus public/css")
+ local("jade public")
+
+def dev():
+ build()
+ local("node app.js")
+
+def dist():
+ local("jade -P views/demo.jade")
+ local("jade -P views/mixins/playingcards.jade")
@@ -0,0 +1,11 @@
+{
+ "name": "application-name"
+ , "version": "0.0.1"
+ , "private": true
+ , "dependencies": {
+ "aasm-js": "*"
+ , "connect": "1.x"
+ , "express": "2.x"
+ , "jade": "*"
+ }
+}
@@ -0,0 +1,8 @@
+{
+ "folders":
+ [
+ {
+ "path": "/Users/don/dev/pokerhall"
+ }
+ ]
+}
Oops, something went wrong.

0 comments on commit 1b4140e

Please sign in to comment.