Public Gists by lawrencepit

Gravatar
Wed Aug 12 04:54:13 -0700 2009
1
<meta content='text/javascript' http-equiv='Content-Script-Type'>
Gravatar
Fri Jun 05 04:32:51 -0700 2009
1
2
3
if (!String.prototype.template)
{
  /**
Gravatar
Sun May 24 17:13:24 -0700 2009
1
2
3
  create_table "groups_people", :id => false, :force => true do |t|
    t.integer "group_id", :null => false
    t.integer "person_id", :null => false
Gravatar
Thu May 07 17:26:35 -0700 2009
1
2
3
# Chuck this in config/initializers for view-first validations
ActionView::Base.default_form_builder.class_eval do
  def error(field)
Gravatar
Fri Jan 30 13:47:34 -0800 2009
1
2
3
##
# Calendar helper with proper events
# http://www.cuppadev.co.uk/webdev/making-a-real-calendar-in-rails/
Gravatar
Wed Jan 28 17:03:20 -0800 2009
1
2
3
loop1() ->
  receive
    Other ->
Gravatar
Wed Jan 21 01:07:38 -0800 2009
1
2
3
# Consider:
 
def parse(*options)
Gravatar
Fri Nov 07 01:47:16 -0800 2008
1
2
3
MysqlError: Duplicate entry '9-1' for key 1 (mysql_error_code=0001)
        from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.9.7/lib/dm-core/adapters/data_objects_adapter.rb:92:in `execute_non_query'
        from /usr/local/lib/ruby/gems/1.8/gems/dm-core-0.9.7/lib/dm-core/adapters/data_objects_adapter.rb:92:in `execute'
Gravatar
Tue Oct 28 21:17:20 -0700 2008
1
2
3
Wed, 29 Oct 2008 04:25:11 GMT ~ debug ~ DROP TABLE IF EXISTS "articles"
Wed, 29 Oct 2008 04:25:11 GMT ~ debug ~ PRAGMA table_info('articles')
Wed, 29 Oct 2008 04:25:11 GMT ~ debug ~ SELECT sqlite_version(*)
Gravatar
Tue Oct 28 20:16:48 -0700 2008
1
2
3
Basically 8 times this:
 
8)
Gravatar
Mon Oct 27 15:15:42 -0700 2008
1
2
3
mysql> desc doctors
    -> ;
+------------+-------------+------+-----+---------+----------------+
Gravatar
Thu Sep 11 19:30:50 -0700 2008
1
2
3
- view :greeting do
  %div
    whatever you want
Gravatar
Thu Aug 21 17:50:10 -0700 2008
1
2
3
// haml style:
 
- view :workspace_container1, :class => 'workspace_container', :top => 40, :left => 0 do
Gravatar
Sat Aug 16 19:33:27 -0700 2008
1
2
3
/ SPROUTCORE DEFAULT INDEX TEMPLATE
/ This template provide provides a basic wrapper for a SproutCore client.
/ Most of the time, it will be sufficient for your own needs. However, if
Gravatar
Fri Aug 15 20:08:13 -0700 2008
1
2
3
function main() {
  SC.page.awake() ;