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
upstream acoplet { | |
server 127.0.0.1:8000; | |
} | |
server { | |
listen 80; | |
server_name 127.0.0.1 live; | |
access_log /home/acoplet/www/acoplet/current/log/thin.log; | |
root /home/acoplet/www/acoplet/current/; | |
error_log /home/acoplet/www/acoplet/current/log/error.log; |
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
class GraphsController < ApplicationController | |
def ss_column3d | |
@graph = Ezgraphix::Graphic.new( "Column3D") | |
ds = Ezgraphix::Data::Dataset.new( :include_root => false ) | |
{:ruby => 1, :perl => 2, :smalltalk => 3}.each do |k,v| | |
ds << Ezgraphix::Data::Dataset::Set.new( v, :label => k) | |
end |
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
Balian:tests jpemberthy$ git clone [email protected]:sergiob/21standwonder.git | |
Initialize 21standwonder/.git | |
Initialized empty Git repository in /Users/jpemberthy/projects/rails_projects/tests/21standwonder/.git/ | |
remote: Counting objects: 259, done. | |
remote: Compressing objects: 100% (253/253), done. | |
remote: Total 259 (delta 119), reused 0 (delta 0) | |
Receiving objects: 100% (259/259), 5.08 MiB | 99 KiB/s, done. | |
Resolving deltas: 100% (119/119), done. | |
Balian:tests jpemberthy$ cd 21standwonder/ | |
Balian:21standwonder jpemberthy$ ls |
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
describe UsersController do | |
fixtures :users | |
include UserSpecHelper | |
it 'allows signup' do | |
lambda do | |
create_user | |
response.should be_redirect | |
end.should change(User, :count).by(1) | |
end |
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 File.expand_path(File.dirname(__FILE__) + '/../spec_helper') | |
require File.expand_path(File.dirname(__FILE__) + '/refactored_mocks') | |
describe TitlesController do | |
include ControllersSpecHelper | |
def mock_title(stubs={}) | |
@mock_title ||= mock_model(Title, stubs) |
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
Balian:matzruby jpemberthy$ git reset HEAD --hard | |
HEAD is now at 55270ab merge revision(s) 21749: | |
Balian:matzruby jpemberthy$ git ba | |
* 186 | |
master | |
origin/HEAD | |
origin/master | |
origin/mvm | |
origin/ruby_1_3 | |
origin/ruby_1_4 |
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
Balian:matzruby jpemberthy$ git ba | |
* master | |
origin/HEAD | |
origin/master | |
origin/mvm | |
origin/ruby_1_3 | |
origin/ruby_1_4 | |
origin/ruby_1_6 | |
origin/ruby_1_8 | |
origin/ruby_1_8_5 |
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
... | |
rubyspec/core/kernel/backtick_spec.rb E | |
rubyspec/core/kernel/binding_spec.rb E | |
rubyspec/core/kernel/block_given_spec.rb E | |
rubyspec/core/kernel/callcc_spec.rb E | |
rubyspec/core/kernel/caller_spec.rb E | |
rubyspec/core/kernel/case_compare_spec.rb E | |
rubyspec/core/kernel/catch_spec.rb E | |
rubyspec/core/kernel/chomp_spec.rb E | |
rubyspec/core/kernel/chop_spec.rb E |
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
<% form_remote_tag :url => portafolio_title_path(@title, @portafolio), :method => 'get', :html => {:class => 'form range_form', :style => 'display: none;', :method => 'get'} do %> |
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
function StripString(str : String){ | |
str = str.Trim(); | |
var strOrganized : String = ""; | |
var addSpace : boolean = true; | |
for(var i = 0; i < str.length; i++){ | |
if(str[i] == " "){ | |
if(addSpace){ | |
addSpace = false; | |
strOrganized += str[i]; | |
} |