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
| <h2>{{ artist.name }}</h2> | |
| <div>{{ artist.bio }}</div> | |
| {% with_scope artist: artist._id %} | |
| {% assign comments = contents.comments %} | |
| {% if comments == empty %} |
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
| # autoload concerns | |
| module YourApp | |
| class Application < Rails::Application | |
| config.autoload_paths += %W( | |
| #{config.root}/app/controllers/concerns | |
| #{config.root}/app/models/concerns | |
| ) | |
| end | |
| 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
| <?php | |
| use Doctrine\ORM\EntityManager, | |
| Doctrine\ORM\Configuration, | |
| Doctrine\ORM\Mapping\ClassMetadata; | |
| /** | |
| * Active Entity trait | |
| * | |
| * Limitations: a class can only ever be assocaited with ONE active entity manager. Multiple entity managers |
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
| #!/bin/bash | |
| set -e | |
| REDMINE_URL="http://rubyforge.org/frs/download.php/75097/redmine-1.2.1.tar.gz" | |
| S3_ACCESS_KEY_ID="" | |
| S3_SECRET_ACCESS_KEY="" | |
| S3_BUCKET_NAME="" | |
| HEROKU_APP_NAME="" |
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
| { | |
| "use_simple_full_screen": false, | |
| // calculates indentation automatically when pressing enter | |
| "auto_indent": true, | |
| // sets the colors used within the text area (default) | |
| // see https://github.com/olivierlacan/monokaim to download | |
| // the customized Monokai I use. | |
| "color_scheme": "Packages/Color Scheme - Default/Monokaim.tmTheme", |
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
| #!/bin/sh | |
| # http://nathanvangheem.com/news/gunicorn-startup-script-for-django | |
| # Place the script in the file - /etc/init.d/gunicorn or whatever you'd like to call it | |
| # make it executable - chmod +x /etc/init.d/gunicorn | |
| # And finally, wire it up - update-rc.d gunicorn defaults | |
| ADDRESS='127.0.0.1' | |
| PYTHON="/opt/django/bin/python" | |
| GUNICORN="/opt/django/bin/gunicorn_django" |
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
| #!/usr/bin/env ruby | |
| require 'rubygems' | |
| require 'trollop' | |
| require 'vapir' | |
| def filename_for_url(url) | |
| url. | |
| downcase. | |
| gsub(/https?:\/\//,''). | |
| gsub(/\//, '_'). |
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://jqueryui.com/demos/datepicker/ | |
| # http://fgelinas.com/code/timepicker/ | |
| class DatetimeUiInput | |
| include Formtastic::Inputs::Base | |
| DATE_FORMAT = "%Y-%m-%d" | |
| TIME_FORMAT = "%H:%M" | |
| def to_html |
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
| surround :body, :for => 'layouts/spree_application', :name => 'wrap_body' do | |
| %Q{<div class="wrapper"> | |
| <div class="w1"> | |
| <div class="w2"> | |
| <div class="w3"> | |
| <div class="main"> | |
| <div id="header"> | |
| <h1><a href="http://depts.washington.edu/uwc4c/">University of Washington Center for Commercialization</a></h1><a href="http://www.washington.edu/" class="ad-w">UW</a> | |
| </div> | |
| <%= render_original %> |
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 -*- | |
| """ | |
| Created on 09/11/2011 | |
| @author: Carlo Pires <[email protected]> | |
| """ | |
| import tnetstring | |
| from werkzeug.contrib.sessions import SessionStore | |
| SESSION_TIMEOUT = 60*60*24*7 # 7 weeks in seconds |