Skip to content

Commit 1b4140e

Browse files
committed
initial check-in
0 parents  commit 1b4140e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+18014
-0
lines changed

LICENSE.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# License
2+
3+
Copyright (c) 2012 Don Park
4+
5+
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:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
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.
10+
11+
## Helveticards
12+
13+
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).
14+
15+
Copyright (c) 2012 Zach Waugh - http://zachwaugh.com
16+
17+
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:
18+
19+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
20+
21+
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.
22+
23+
## Court Images
24+
25+
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.
26+
27+
Chris Aguilar
28+
mailto:conjurenation@gmail.com
29+
30+
This library is released under the GNU LESSER GENERAL PUBLIC LICENSE 3.0.
31+
32+
http://www.gnu.org/licenses/gpl.html
33+
http://www.gnu.org/copyleft/lesser.html
34+
35+
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.
36+
37+
## Script files
38+
39+
### FLIPPY jQuery plugin 1.0.1
40+
41+
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
42+
43+
- website: [http://guilhemmarty.com/flippy](http://guilhemmarty.com/flippy)
44+
- author: [Guilhem MARTY](bonjour@guilhemmarty.com)
45+
46+
### Backbone.js 0.9.2
47+
48+
(c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
49+
Backbone may be freely distributed under the MIT license.
50+
51+
- website: [http://backbonejs.org](http://backbonejs.org)
52+
53+
### Underscore.js 1.4.0
54+
55+
(c) 2009-2012 Jeremy Ashkenas, DocumentCloud Inc.
56+
Underscore may be freely distributed under the MIT license.
57+
58+
- website: [http://underscorejs.org](http://underscorejs.org)

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This project is a heavily modified version of Zack Waugh's [Helveticards](http://zachwaugh.com/helveticards/index.html) with three notable differences:
2+
3+
1. Cards are scalable.
4+
2. Card size may be specific to individual cards or set of cards.
5+
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.

app.coffee

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
2+
###
3+
Module dependencies.
4+
###
5+
express = require("express")
6+
app = module.exports = express.createServer()
7+
8+
# stylus = require('stylus')
9+
# nib = require('nib')
10+
11+
# Configuration
12+
app.configure ->
13+
app.set "views", __dirname + "/views"
14+
app.set "view engine", "jade"
15+
app.use express.bodyParser()
16+
app.use express.methodOverride()
17+
app.use app.router
18+
# app.use stylus.middleware
19+
# src: __dirname
20+
# compile: (str, path) ->
21+
# stylus(str).set('filename', path).set('compress', false).use(nib())
22+
app.use express.static(__dirname + "/public")
23+
24+
app.configure "development", ->
25+
app.use express.errorHandler(
26+
dumpExceptions: true
27+
showStack: true
28+
)
29+
30+
app.configure "production", ->
31+
app.use express.errorHandler()
32+
33+
34+
# Routes
35+
require('./routes/index').configure(null, app)
36+
37+
app.listen 3000, ->
38+
console.log "Express server listening on port %d in %s mode", app.address().port, app.settings.env
39+

assets/gray-scott.psd

195 KB
Binary file not shown.

fabfile.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
import os
2+
import time
3+
from fabric.api import *
4+
from fabric.contrib.console import confirm
5+
from fabric.contrib.project import rsync_project
6+
7+
def old():
8+
local("npm outdated")
9+
10+
def remove_compiled(in_type, out_type, dirs = "."):
11+
with settings(warn_only=True):
12+
with lcd("."):
13+
files = local(("find %s -name \*%s" % (dirs, in_type)), capture=True)
14+
lines = files.split('\n')
15+
for line in lines:
16+
if line.find("node_modules") == -1:
17+
path, ext = os.path.splitext(line)
18+
path += out_type
19+
if os.path.exists(path):
20+
local("rm %s" % path)
21+
22+
def clean():
23+
with settings(warn_only=True):
24+
remove_compiled(".coffee", ".js")
25+
remove_compiled(".styl", ".css")
26+
remove_compiled(".jade", ".html")
27+
28+
def build():
29+
with settings(warn_only=True):
30+
local("coffee -c *.coffee")
31+
local("coffee -c lib")
32+
local("coffee -c public")
33+
local("coffee -c routes")
34+
local("stylus public/css")
35+
local("jade public")
36+
37+
def dev():
38+
build()
39+
local("node app.js")
40+
41+
def dist():
42+
local("jade -P views/demo.jade")
43+
local("jade -P views/mixins/playingcards.jade")

package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "application-name"
3+
, "version": "0.0.1"
4+
, "private": true
5+
, "dependencies": {
6+
"aasm-js": "*"
7+
, "connect": "1.x"
8+
, "express": "2.x"
9+
, "jade": "*"
10+
}
11+
}

pokerhall.sublime-project

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"folders":
3+
[
4+
{
5+
"path": "/Users/don/dev/pokerhall"
6+
}
7+
]
8+
}

0 commit comments

Comments
 (0)