ruby-build --definitionslistet aller ruby versionenrbenv versionslisted alle installierten ruby versionenrbenv versionzeigt aktuell verwendete ruby version anrbenv install 2.0.0.0-p195installiert eine ruby versionrbenv uninstall 2.0.0-p0deinstallation einer ruby versionrbenv local 2.0.0.0-p195setzt die ruby version und schreib diese in .ruby-version
See on http://nodejs.org/ for the latest node version (e.g. v0.10.5)
sudo apt-get install git-corecd ~mkdir tmpgit clone https://github.com/joyent/node.gitcd node
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| # | |
| # for use with ugol's pomodoro app (https://github.com/ugol/pomodoro) and tmux | |
| # use applescript to set the time | |
| # How to use it: | |
| # 1. Open preferences from the pomodoro app | |
| # 2. Choose script | |
| # 3. Set start, reset and end to: do shell script "/usr/local/bin/pomodoro reset" | |
| # 4. set every 1 min to: do shell script "/usr/local/bin/pomodoro decrease" |
This file contains hidden or 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
| komplexe Suchabfragen | |
| Folgendes Beispiel: | |
| Für den Airbus A380 gibt es besondere Anforderungen an den Flughafen, damit dieser Flugzeugtyp dort laden darfen. | |
| Attribut a380_allowed. | |
| Wir hätten alle Länder gelistet, die Flughäfen haben, auf denen der Airbus A380 landen darf. | |
| Das Problem besteht darin, dass das a380_allowed kein Attribut des Country-Model ist, denn |
This file contains hidden or 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
| body { | |
| background-color: #fff; | |
| color: #333; | |
| font-family: verdana, arial, helvetica, sans-serif; | |
| font-size: 13px; | |
| line-height: 18px; } | |
| p, ol, ul, td { | |
| font-family: verdana, arial, helvetica, sans-serif; | |
| font-size: 13px; |
This file contains hidden or 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
| Demo2::Application.routes.draw do | |
| get "bookmakrs/new" | |
| get "bookmakrs/edit" | |
| get 'hello' => "bookmarks#hello" | |
| get 'bookmarks/hello' => "bookmarks#hello" | |
| # statt der letzten Zeile geht auch einfach" | |
| get 'bookmarks/hello' | |
| end |
This file contains hidden or 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
| #source 'http://rubygems.org' | |
| source 'http://production.s3.rubygems.org/' | |
This file contains hidden or 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
| after 'deploy:update_code', 'deploy:bundle_install' | |
| namespace :deploy do | |
| task :bundle_install do | |
| run("cd #{release_path} && bundle install") | |
| end | |
| end |
This file contains hidden or 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' | |
| # remove xmlns="http://www.blinksale.com/api from xml document to work | |
| file_name = "blinksale-data.xml" | |
| file =File.open(file_name, 'r') |
This file contains hidden or 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
| module AddTopNavigation | |
| module ClassMethods | |
| def add_top_navigation( opts = {} ) | |
| before_filter opts do |controller| | |
| controller.send(:add_top_navigation, opts) | |
| end #before_filter | |
| end | |
| end | |