clarified butter
IndexTank http://indextank.com/
- free option for up to 100k documents
- their ruby client looks dead simple
- http://indextank.com/documentation/ruby-client
- start simple, but build something more complicated as you want
- good documentation
- more interesting gems
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
| @mixin pretty_button($font_size, $gradient_color) { | |
| $border:$font_size/2; | |
| span { | |
| font-size:$font_size; | |
| line-height:$font_size * 2; | |
| margin:$border; | |
| padding:$font_size/3+1px $font_size*1.5; | |
| position:relative; | |
| text-align:center; | |
| @include background-image(linear-gradient(top, $gradient_color, adjust-lightness($gradient_color, -15))); |
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
| a.download {display:none;} | |
| #status_ui {display:block !important;} | |
| div.welcomeMessage {display:none;} |
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
| Saturday | |
| hamburgers with sweet potato fries & corn on the cob | |
| Sunday | |
| BLT's | |
| Whole Sea Bass with Charred Serrano-Basil Vinaigrette, steamed broccoli & roasted potatoes | |
| Monday | |
| Stir-Fried Baby Bok choy & carrots with Garlic, served over lo-mien noodles |
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
| '## Silly setup stuff | |
| Dim conn | |
| Dim wsh | |
| Dim sPath | |
| Dim rs | |
| set wsh = CreateObject("wscript.shell") | |
| On Error Resume Next | |
| sPath = wsh.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Helios\Helios11\Paths\DPathClient") |
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
| /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/astaire-0.3.0/lib/astaire.rb:93:in `block in <module:DSL>': uninitialized constant ApplicationController::InlineTemplates (NameError) | |
| from /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta3/lib/active_support/concern.rb:17:in `class_eval' | |
| from /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta3/lib/active_support/concern.rb:17:in `append_features' | |
| from /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/astaire-0.3.0/lib/astaire/railtie.rb:4:in `include' | |
| from /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/astaire-0.3.0/lib/astaire/railtie.rb:4:in `block (2 levels) in <class:Rails>' | |
| from /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/astaire-0.3.0/lib/astaire/railtie.rb:4:in `class_eval' | |
| from /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/astaire-0.3.0/lib/astaire/railtie.rb:4:in `block in <class:Rails>' | |
| from /Users/jonmagic/.rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta3/lib/active_support/callbacks.rb:419:in |
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
| ➜ ~ perl decode.pl | |
| Global symbol "$encoded" requires explicit package name at decode.pl line 35. | |
| Execution of decode.pl aborted due to compilation errors. |
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
| # setup my filenames | |
| sent_filename = ARGV[0] | |
| billed_filename = ARGV[1] | |
| to_bill_filename = sent_filename.split('.')[0]+'_send_again.csv' | |
| # create my arrays | |
| sent_array = [] | |
| File.open(sent_filename, 'r').each_line { |line| sent_array << line } | |
| return_array = [] |
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 'helper' | |
| class Foo | |
| include MongoMapper::Document | |
| plugin Grip | |
| attachment :image | |
| attachment :pdf | |
| before_save :callback_for_fun |