This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# javascripts/iphoneTouchScroll.coffee | |
# | |
class iPhoneTouchScroll | |
constructor: -> | |
@clientHeight = 0 | |
@dataX = 0 | |
@dataY = 0 | |
@startX = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Usage | |
# | |
# **html** | |
# <a href="#" class="elem"> | |
# hoverTrigger | |
# <div class="pop"> | |
# In the pop | |
# </div> | |
# </a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# config/application.coffee | |
# | |
everyauth = require "everyauth" | |
class App extends Tower.Application | |
@configure -> | |
@use "favicon", Tower.publicPath + "/favicon.png" | |
@use "static", Tower.publicPath, maxAge: Tower.publicCacheDuration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# config/initializers/authentication.coffee | |
# | |
everyauth = require "everyauth" | |
# Facebook App ID from config/credentials.coffee | |
unless Tower.env is 'production' | |
Tower.config.credentials.facebook.key = Tower.config.credentials.facebook.development.key | |
Tower.config.credentials.facebook.secret = Tower.config.credentials.facebook.development.secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# app/models/user.coffee | |
# | |
class App.User extends Tower.Model | |
@field "id", type: "Id" | |
@field "name", type: "String," | |
@field "email", type: "String," | |
@field "userId", type: "String," | |
@timestamps() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# This gist contains both server side and client side scripts. | |
# | |
# Server: | |
# /server/rpc/auth.coffee | |
# /server/rpc/models/user.coffee | |
# | |
# Client: | |
# /client/code/modules/auth.coffee | |
# /client/code/app.coffee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* This gist contains /app.js and /config/index.js | |
*/ | |
// My SocketStream app | |
var http = require('http') | |
, ss = require('socketstream') | |
, express = require('express') | |
, everyauth = require('everyauth'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Life Game by CoffeeScript | |
# @author yusugomori | |
# @license http://yusugomori.com/license/mit The MIT License | |
# | |
# Usage: | |
# <body><div id="lifegame"></div></body> | |
# | |
# $ -> | |
# L = new Lifegame() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby -Ku | |
# -*- coding: utf-8 -*- | |
srand(0) | |
class BPNN | |
def initialize(ni, nh, no) | |
@ni = ni + 1 | |
@nh = nh | |
@no = no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
###! | |
* jquery.pinterest.js - placing your images with Pinterest look | |
* | |
* @version 1.0.0 | |
* @author yusugomori | |
* @license http://yusugomori.com/license/mit The MIT License | |
* | |
* More details on github: https://github.com/yusugomori/jQueryPinterest | |
### |