Skip to content

Instantly share code, notes, and snippets.

@michellemhey
michellemhey / gist:11404129
Last active August 29, 2015 14:00
this is the code thats supposed to go in the file
def index
respond_to do |format|
format.text do
headers["Content-Type"] = "text/plain"
headers["Content-disposition"] = 'attachment; filename="users.txt"'
erroneous_call_to_proc = false
self.response_body = proc { |response, output|
unless erroneous_call_to_proc
User.find_each do |u|
output.write "#{u.name} #{u.email}\n"
@michellemhey
michellemhey / gist:11404086
Last active August 29, 2015 14:00
This is the file I'm apparently supposed to add the code
# encoding: utf-8
# http://www.sebgrosjean.com/en/news/2012/1
require 'csv' # adds a .to_csv method to Array instances
class Array
BOM = "\xEF\xBB\xBF" #Byte Order Mark UTF-8
alias old_to_csv to_csv #keep reference to original to_csv method
<footer role="contentinfo">
<div class="footer-top">
<div class="footer-container">
<div class="footer-col-first">
<h5>Our Services</h5>
<ul class="footer-list">
<li>Urgent Care</li>
<li>Well Care</li>
<li>Physicals</li>
<li>Health Tests</li>
@michellemhey
michellemhey / urgentteam.info
Created October 18, 2013 15:07
urgentteam.info page
name = urgentteam
description = Hi im urgentteam based on mothership - you should really rename me :)
screenshot = screenshot.png
engine = phptemplate
core = 7.x
php = 5.2
base theme = mothership
;-------------- F E A T U R E S -------------
features[] = logo
@michellemhey
michellemhey / page--front.tpl.php
Created October 18, 2013 15:06
page--front.tpl.php for urgentteam
<?php
//kpr(get_defined_vars());
//kpr($theme_hook_suggestions);
//template naming
//page--[CONTENT TYPE].tpl.php
?>
<?php if( theme_get_setting('mothership_poorthemers_helper') ){ ?>
<!-- page.tpl.php-->
<?php } ?>
@michellemhey
michellemhey / page.tpl.php
Created October 18, 2013 15:04
page.tpl.php for urgentteam
<?php
//kpr(get_defined_vars());
//kpr($theme_hook_suggestions);
//template naming
//page--[CONTENT TYPE].tpl.php
?>
<?php if( theme_get_setting('mothership_poorthemers_helper') ){ ?>
<!-- page.tpl.php-->
<?php } ?>