This file contains hidden or 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
| get %r{^/([a-zA-Z0-9_/-]+\.coffee)\.js} do |filename| | |
| content_type :js | |
| base_name = options.public + '/' + filename | |
| if File.exists? base_name | |
| haml File.open(base_name, 'r'){|f| f.read }, :layout => false | |
| else | |
| File.open(base_name + '.js', 'r'){|f| f.read } | |
| end | |
| end |
This file contains hidden or 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
| :coffeescript | |
| ready_handler = -> | |
| if GBrowserIsCompatible | |
| map = new GMap2 document.getElementById "map" | |
| map.setCenter new GLatLng(37.4419, -122.1419), 13 | |
| mapTypes = new GMapTypeControl | |
| map.addControl mapTypes | |
| map.addMapType G_PHYSICAL_MAP | |
| map.removeMapType G_SATELLITE_MAP | |
| map.addControl new GSmallZoomControl |
This file contains hidden or 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
| require "rubygems" | |
| require "dm-core" | |
| require "dm-tags" | |
| require "dm-validations" | |
| require "spec" | |
| class Contact | |
| include DataMapper::Resource | |
| property :id, Serial |
This file contains hidden or 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
| http://www.sendspace.com/file/yvxrme |
This file contains hidden or 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
| # | |
| # Helper | |
| # | |
| module ApplicationHelper | |
| # | |
| # DoubleClick tracking codes | |
| # | |
| def doubleclicksrc | |
| 'xxxxxx' |
This file contains hidden or 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
| echo 'export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH' > ~/.profile | |
| export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH |
This file contains hidden or 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
| # Gemfile | |
| gem 'dm-active_model', :git => 'https://github.com/datamapper/dm-active_model.git', :branch => 'master' | |
| gem 'dm-rails', :git => 'http://github.com/andrewkolesnikov/dm-rails.git', :branch => 'master' | |
| # $ bundle list | grep active | |
| * dm-active_model (1.1.1 5758780) | |
| $ git push heroku |
This file contains hidden or 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
| $ g df HEAD | |
| diff --git a/Gemfile b/Gemfile | |
| index 59c78aa..8d1e5cc 100644 | |
| --- a/Gemfile | |
| +++ b/Gemfile | |
| @@ -3,7 +3,7 @@ source 'http://rubygems.org' | |
| gem 'rails' | |
| gem 'will_paginate' | |
| gem 'aws-s3' | |
| -# gem 'dm-active_model', :git => 'https://github.com/datamapper/dm-active_model.git', :branch => 'master' |
This file contains hidden or 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
| $ grep active_model Gemfile.lock | |
| dm-active_model (~> 1.1.0) | |
| remote: https://github.com/datamapper/dm-active_model.git | |
| dm-active_model (1.1.1) | |
| dm-active_model! |
This file contains hidden or 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
| // | |
| // NeroPopoverBackgroundView.m | |
| // poc | |
| // | |
| // Created by Andrew Kolesnikov on 11/22/11. | |
| // Copyright (c) 2011 Isobar. All rights reserved. | |
| // | |
| #import "NeroPopoverBackgroundView.h" |
OlderNewer