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
--- untitled | |
+++ (clipboard) | |
@@ -12,12 +12,13 @@ | |
your athletes below 90% of max heart rate, set an alert that lets you | |
know when they go above this value.</p> --> | |
<p:panel id="drillsTable" widgetVar="alertsTable" rendered="#{!drillsSetupBean.editMode}"> | |
- <p:dataTable var="drill" value="#{drillsSetupBean.newObjectList}" selectionMode="single" rowKey="#{drill.id}"> | |
+ <p:dataTable var="drill" value="#{drillsSetupBean.newObjectList}" selectionMode="single" rowKey="#{drill.id}" styleClass="shadowed light"> | |
<p:column> | |
<f:facet name="header"> |
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
// | |
// NeroPopoverBackgroundView.m | |
// poc | |
// | |
// Created by Andrew Kolesnikov on 11/22/11. | |
// Copyright (c) 2011 Isobar. All rights reserved. | |
// | |
#import "NeroPopoverBackgroundView.h" |
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
$ 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 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 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 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 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 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 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 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 |