Hi,
I just want to point out something with regards to supposed "duplication," which is:
##The method name does not matter.
For example, this step definition is perfectly valid:
[Given("I am writing a blog post")]
public void x(){
class Object | |
@@list = [] | |
def self.stuff | |
@@list | |
end | |
def self.inherited(base) | |
@@list << base | |
end | |
end |
params = {} | |
params[:to] = "[email protected]" | |
params[:subject] = "xxx" | |
params[:from] = "" | |
@@params = params | |
# need to add gem smoke_monster for this | |
items = [:to, :team, :from_email].to_objects { | |
[:blue, :red, :white, :black, :orange, :green, :yellow, :pink, :test].map do |color| |
// jQuery no-double-tap-zoom plugin | |
// Triple-licensed: Public Domain, MIT and WTFPL license - share and enjoy! | |
(function($) { | |
var IS_IOS = /iphone|ipad/i.test(navigator.userAgent); | |
$.fn.nodoubletapzoom = function() { | |
if (IS_IOS) | |
$(this).bind('touchstart', function preventZoom(e) { | |
var t2 = e.timeStamp |
using MvcTurbine.ComponentModel; | |
using MvcTurbine.Unity; | |
using MvcTurbine.Web; | |
namespace MvcMusicStore | |
{ | |
public class MvcApplication : TurbineApplication | |
{ | |
static MvcApplication() | |
{ |
class SessionView < ViewModel | |
def speakers | |
@subject.speakers.map {|s| SpeakerView.new(s)} | |
end | |
def begin_date_only | |
@subject.begin.strftime("%B %-d, %Y") | |
end | |
def period |
def current_club | |
club_id = current_member ? current_member.club_id : 1 | |
@club ||= Club.find(club_id) | |
end |
# the big picture... what data we're getting from where and its destination | |
@data_binding_hash = { | |
:@pSMSR_GRGR_ID=> [ :GRGR_ID, 'facets_field', DataType.STRING, DataSource.FACETS, '@pSMSR_GRGR_ID=""' , nil ], | |
:@pSMSR_SBSB_ID=> [ :SBSB_ID, 'facets_field', DataType.STRING, DataSource.FACETS, '@pSMSR_SBSB_ID=""' , nil ], | |
:@pSMSR_REL=> [ :patient_rel_code, 'rel_code', DataType.STRING, DataSource.LOOKUP, '@pSMSR_REL=""' , nil ], | |
:@pSMSR_SSN=> [ :MEME_SSN, 'facets_field', DataType.STRING, DataSource.FACETS, '@pSMSR_SSN=""' , nil ], | |
:@pSMSR_LNAME=> [ :SBSB_LAST_NAME, 'facets_field', DataType.STRING, DataSource.FACETS, '@pSMSR_LNAME=""' , nil ], | |
:@pSMSR_FNAME=> [ :SBSB_FIRST_NAME, 'facets_field', |
class DataType | |
[:STRING, :DATE, :UNKNOWN, :NUMERIC].each do |type| | |
self.instance_eval "def self.#{type};:#{type};end" | |
end | |
end |
Hi,
I just want to point out something with regards to supposed "duplication," which is:
##The method name does not matter.
For example, this step definition is perfectly valid:
[Given("I am writing a blog post")]
public void x(){
Five stages of database-driven development
1.) Denial: I'll build the perfect database to model the system!
2.) Anger: Argh, this is painful!
3.) Bargaining: I'll have to give-in and try something else here... (sshhhh, don't tell the others)
4.) Depression: The client changes keep coming!!!