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 'nokogiri' | |
require 'open-uri' | |
require 'digest/md5' | |
require 'fastercsv' | |
require 'json' | |
require 'curb' | |
require 'pp' | |
data = [] |
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
public DynamicToggleButton() { | |
super("de.hpi3d.tracing.ui.dynamicToggleButton"); | |
comServ = (ICommandService) PlatformUI.getWorkbench() | |
.getService(ICommandService.class); | |
contextServ = (IContextService) PlatformUI | |
.getWorkbench().getService(IContextService.class); | |
ContextHelper.addListener(new ITracingContextListener() { | |
public void handleEvent(TracingContextEvent event) { | |
Type type = event.getType(); |
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
<menuContribution | |
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions"> | |
<toolbar | |
id="de.hpi3d.tracing.ui.toggleTracingToolbar"> | |
<dynamic | |
class="de.hpi3d.tracing.ui.handlers.DynamicToggleButton" | |
id="de.hpi3d.tracing.ui.dynamicToggleButton"> | |
<visibleWhen | |
checkEnabled="false"> | |
<with |
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
sudo mkdir /usr/local | |
sudo chown -R `whoami` /usr/local | |
curl -L http://github.com/mxcl/homebrew/tarball/master | tar xz --strip 1 -C /usr/local |
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
# This is SO gonna be my future resume! I sure am impressed, Mr. Grigorik. | |
class Student < ActiveRecord::Base | |
has_one :passion, :conditions => "project.type = 'web'" | |
has_many :skills, :through => :practice | |
has_many :relevant_courses, :through => :university, :include => :group_work | |
has_and_belongs_to_many :projects, :through => :github, :foreign_key => "github.com/username" | |
validates_presence_of :agile_team | |
validates_presence_of :innovation | |
validates_presence_of :learning_opportinities |
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
d = BkAccount.find(:first, :conditions => {:name => "Kasse"}) | |
c = BkAccount.find(:first, :conditions => {:name => "Budget 1"}) | |
record = Record.new(:credit => c, | |
:debit => d, | |
:amount => 100) | |
record.description= "BüroPapier" | |
record.commit!() | |
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
/home/jmueller/.cruise/projects/accounting/work/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:212:in `log': Mysql::Error: Table 'autobahnerp_accounting_test.bk_accounts' doesn't exist: SHOW FIELDS FROM `bk_accounts` (ActiveRecord::StatementInvalid) | |
from /home/jmueller/.cruise/projects/accounting/work/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:320:in `execute' | |
from /home/jmueller/.cruise/projects/accounting/work/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:466:in `columns' | |
from /home/jmueller/.cruise/projects/accounting/work/vendor/rails/activerecord/lib/active_record/base.rb:1271:in `columns' | |
from ./spec/models/allmodels_spec.rb:69 | |
from /usr/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:183:in `module_eval' | |
from /usr/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spec/example/example_group_methods.rb:183:in `subclass' | |
from /usr/lib/ruby/gems/1.8/gems/rspec-1.2.9/lib/spe |
NewerOlder