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
######################### | |
### Set a remote repo ### | |
######################### | |
# via ssh | |
> mkdir projectdir.git | |
> cd projectdir.git | |
> git init --bare | |
or use http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way |
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 ActiveRecord | |
class BaseWithoutTable < Base | |
self.abstract_class = true | |
# def create_or_update | |
# errors.empty? | |
# end | |
# def initialize(attributes = nil) | |
# super |
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
# This file is used by Rack-based servers to start the application. | |
require ::File.expand_path('../config/environment', __FILE__) | |
WEBDAV_MOUNT_PATH = '/webdav' | |
app = Rack::Builder.new { | |
map WEBDAV_MOUNT_PATH + '/' do | |
run DAV4Rack::Handler.new( | |
:root => Rails.root.to_s, |
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
# This file is used by Rack-based servers to start the application. | |
require ::File.expand_path('../config/environment', __FILE__) | |
use ActionDispatch::Static | |
use Rack::Lock | |
use ActiveSupport::Cache::Strategy::LocalCache | |
use Rack::Runtime | |
use Rails::Rack::Logger | |
use ActionDispatch::ShowExceptions |
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 'sinatra' | |
get '/' do | |
haml :index | |
end | |
enable :inline_templates | |
enable :run |
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
http://craftyjs.com/ | |
http://easeljs.com/ | |
http://gamejs.org/ | |
https://github.com/biilly/doodle-js | |
https://github.com/fairfieldt/xcjs | |
https://github.com/batiste/sprite.js | |
https://github.com/mrdoob/three.js | |
https://github.com/ysimonson/canvas.js | |
https://github.com/davebalmer/jo |
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
########### | |
### MVC ### | |
########### | |
https://github.com/documentcloud/backbone | |
https://github.com/paulca/eyeballs.js | |
https://github.com/ahe/choco | |
https://github.com/maccman/superapp | |
http://www.sproutcore.com/ | |
http://javascriptmvc.com/ |
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
# Plugs into AS authorization | |
require 'active_support/concern' | |
require 'active_scaffold/bridges/bridge' | |
module ActiveScaffold | |
module CancanBridge | |
module Core | |
extend ActiveSupport::Concern |
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
class Campaign < ActiveRecord::Base | |
has_many :subscriptions | |
has_many :territories, :through => :subscriptions | |
... | |
def self.authorized_for?(options = {}) | |
return true if options[:column].present? | |
super(options) | |
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
# config/initializers/as_i92.rb | |
# ======================================================================== | |
# resolution for https://github.com/vhochstein/active_scaffold/issues/92 # | |
# currently monkeypatching the bug, to be deleted on official fix # | |
# ======================================================================== | |
module ActiveScaffold::Actions | |
module Update | |
protected |
OlderNewer