Skip to content

Instantly share code, notes, and snippets.

@Draiken
Draiken / books.coffee
Created March 2, 2012 20:49
books controller
class App.Controllers.Books extends Ember.Object
index: ->
@view = Ember.View.create
controller: this,
templateName: 'app/templates/books/index'
@view.append()
@Draiken
Draiken / compatible.java
Created February 14, 2012 14:29
market compatible
public boolean isCompatible() {
String ver = getOsVersion();
// If it's null, we're not sure, so let the market handle it
if (ver == null)
return true;
String[] versions = getOsVersion().split("/");
String lowestVersion = versions[0];
String droidVersion = Build.VERSION.RELEASE.substring(0, 3);
window.Collector =
Models: {}
Views: {}
Controllers: {}
Collections: {}
init: ->
new Collector.Controllers.Errors()
Backbone.history.start()
(function() {
var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) {
for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; }
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype; //errors_controller.js:5 Uncaught TypeError: Cannot read property 'prototype' of undefined
child.prototype = new ctor;
child.__super__ = parent.prototype;
return child;
};
Collector.Controllers.Errors = (function() {
class Collector.Controllers.Errors extends Backbone.Controller
routes: {
"errors" : "index",
"errors/:id" : "show"
}
index: ->
new Collector.Views.ErrorView(Collector.Collection.Errors.fetch())
run Todaela::Application
)}.to_app: org.jruby.exceptions.RaiseException: (TypeError) can't modify frozen array
at org.jruby.RubyArray.concat(org/jruby/RubyArray.java:1450) [jruby.jar:]
at #<Class:0x1310c08c7>.Plugin(/Users/draiken/.rvm/gems/jruby-1.6.2@toda-ela/gems/railties-3.0.10/lib/rails/plugin.rb:71) at org.jruby.RubyKernel.instance_exec(org/jruby/RubyKernel.java:2045) [jruby.jar:]
at rubyjit.run_7761DFB9328DE427D0E75A527B886E70C475D69F.run(/Users/draiken/.rvm/gems/jruby-1.6.2@toda-ela/gems/railties-3.0.10/lib/rails/initializable.rb:25)
at #<Class:0x16e339f21>.run_initializers(/Users/draiken/.rvm/gems/jruby-1.6.2@toda-ela/gems/railties-3.0.10/lib/rails/initializable.rb:50) at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1602) [jruby.jar:]
at Rails::Initializable.run_initializers(/Users/draiken/.rvm/gems/jruby-1.6.2@toda-ela/gems/railties-3.0.10/lib/rails/initializable.rb:49) at Rails::Application.initialize!(/Users/draiken/.rvm/gems/jruby-1.6.2@toda-ela/gems/railties-3.0.10/lib/rails/applicati
{"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"toda-ela-knob.yml\".jdbc.drivers.mysql" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"toda-ela-knob.yml\".jdbc.drivers.mysql: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver"}}}}
@Draiken
Draiken / log
Created November 9, 2011 17:04
» torquebox run
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /Users/draiken/.rvm/gems/jruby-1.6.2@toda-ela/gems/torquebox-server-2.x.incremental.605-java/jboss
JAVA: java
JAVA_OPTS: -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true
@Draiken
Draiken / toda-ela-knob.yml
Created November 9, 2011 17:02
application descriptor
application:
root: /Users/draiken/projects/rails/toda-ela
environment: {}
web:
context: /
@Draiken
Draiken / version.txt
Created November 1, 2011 15:34
Vim :version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Jul 5 2011 12:13:39)
MacOS X (unix) version
Included patches: 1-107
Compiled by draiken@draiken.local
Huge version with MacVim GUI. Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +conceal +cryptv -cscope +cursorbind +cursorshape
+dialog_con_gui +diff +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +float +folding -footer +fork() +fullscreen -gettext -hangul_input +iconv
+insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname +mouse +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm
-mouse_sysmouse +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg +odbeditor -osfiletype +path_extra +perl +persistent_undo +postscript +printer +profile +python -python3 +quickfix +reltime
+rightl