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 'entry' | |
Safeshare.controllers :entries do | |
helpers do | |
def get_entry(id) | |
entry = Entry[id] | |
error 404 unless entry | |
# Facebook acl for this entry |
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
function loadrvm { | |
[ -f ~/.rvm/scripts/rvm ] && { | |
source ~/.rvm/scripts/rvm | |
[ "$RVM_VERSION" ] || export RVM_VERSION='1.9.2' | |
rvm use $RVM_VERSION | |
return | |
} | |
echo "loadrvm: rvm not found" | |
} |
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
# -*- coding: utf-8 -*- | |
require 'koala' | |
class Safeshare < Padrino::Application | |
register SassInitializer | |
register Padrino::Rendering | |
register Padrino::Mailer | |
register Padrino::Helpers | |
use Rack::Parser |
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 'entry' | |
Safeshare.controllers :entries do | |
get :show, :map => '/entries/:id', :provides => :json, :priority => :low do | |
@entry = Entry[params[:id][1]] | |
error 404 unless @entry | |
# Facebook acl for this post | |
@entry_owner = false | |
if @entry.fb_owner_id |
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
d |
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
/Volumes/Projects/vinter/kilandmattor/kilandsmattor/app/code/core/Mage/Catalog/Model/Product.php:713 Kiland_Catalog_Model_Product_Type_Configurable_Price:getFinalPrice | |
/Volumes/Projects/vinter/kilandmattor/kilandsmattor/app/code/core/Mage/Sales/Model/Quote/Address/Total/Subtotal.php:115 Mage_Catalog_Model_Product:getFinalPrice | |
/Volumes/Projects/vinter/kilandmattor/kilandsmattor/app/code/core/Mage/Sales/Model/Quote/Address/Total/Subtotal.php:48 Mage_Sales_Model_Quote_Address_Total_Subtotal:_initItem | |
/Volumes/Projects/vinter/kilandmattor/kilandsmattor/app/code/core/Mage/Sales/Model/Quote/Address.php:945 Mage_Sales_Model_Quote_Address_Total_Subtotal:collect | |
/Volumes/Projects/vinter/kilandmattor/kilandsmattor/app/code/core/Mage/Sales/Model/Quote.php:1235 Mage_Sales_Model_Quote_Address:collectTotals | |
/Volumes/Projects/vinter/kilandmattor/kilandsmattor/app/code/core/Mage/Adminhtml/Model/Sales/Order/Create.php:1158 Mage_Sales_Model_Quote:collectTotals | |
/Volumes/Projects/vinter/kilandmattor/kilandsmattor/app/code/core/ |
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
# poker app in sinatra+sequel | |
require 'sinatra' | |
require 'sinatra/flash' | |
require 'sinatra/sequel' | |
require "sinatra/reloader" | |
set :database, 'sqlite::memory' | |
enable :sessions | |
enable :logging |
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
# poker app in sinatra+sequel | |
require 'sinatra' | |
require 'sinatra/flash' | |
require 'sinatra/sequel' | |
require "sinatra/reloader" | |
set :database, 'sqlite::memory' | |
enable :sessions | |
enable :logging |
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
# poker app in sinatra+sequel | |
require 'sinatra' | |
require 'sinatra/flash' | |
require 'sinatra/sequel' | |
require "sinatra/reloader" | |
set :database, 'sqlite::memory' | |
enable :sessions | |
enable :logging |
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
package controllers | |
import play.api._ | |
import play.api.mvc._ | |
import play.api.mvc.Results._ | |
import play.api.data._ | |
import play.api.data.Forms._ | |
import play.api.Play.current |