Different services I can suggest when a non-tech friend or family member asks me how they can cheaply make a website and possibly use it to sell stuff online.
Website Hosting
| #!/usr/bin/env ruby | |
| # | |
| # Script: HipChat bot in Ruby | |
| # Author: Jordan Ritter <[email protected]> | |
| # | |
| unless `rvm-prompt i g`.chomp == "ree@xmpp" | |
| exec("rvm ree@xmpp ruby #{$0}") | |
| end |
Different services I can suggest when a non-tech friend or family member asks me how they can cheaply make a website and possibly use it to sell stuff online.
Website Hosting
| /* | |
| As of version 1.1.2, Propane will load and execute the contents of | |
| ~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
| immediately following the execution of its own enhancer.js file. | |
| You can use this mechanism to add your own customizations to Campfire | |
| in Propane. | |
| Below you'll find two customization examples. |
| [user] | |
| name = Ondrej Certik | |
| email = [email protected] | |
| [color] | |
| ui = auto | |
| interactive = true | |
| [alias] | |
| ci = commit |
| # Ensure AssetTagHelper has been loaded before we try to monkey-patch it. | |
| require 'action_view/helpers/asset_tag_helper' | |
| module ActionView::Helpers::AssetTagHelper | |
| # Insert the asset id in the filename, rather than in the query string. In | |
| # addition to looking nicer, this also keeps any other static file handlers | |
| # from preempting our Rack::StaticCache middleware, since these | |
| # version-numbered files don't actually exist on disk. | |
| def rewrite_asset_path(source) | |
| source.insert source.rindex('.'), "-#{rails_asset_id(source)}" |
This is a quick guide to OAuth2 support in GitHub for developers. This is still experimental and could change at any moment. This Gist will serve as a living document until it becomes finalized at Develop.GitHub.com.
OAuth2 is a protocol that lets external apps request authorization to private details in your GitHub account without getting your password. All developers need to register their application before getting started.
| import re | |
| # http://atomboy.isa-geek.com/plone/Members/acoil/programing/double-metaphone | |
| from metaphone import dm as double_metaphone | |
| # get the Redis connection | |
| from jellybean.core import redis | |
| import models | |
| # Words which should not be indexed |