Back in Melbourne circa 2010/11, Jodie, Jared and I used to run a [monthly vegan mentoring group][vegan-month]. I have gone back through the mailing lists and collected much of the curriculum and information from the program into this single document, so that I can distribute it more widely. The program was designed not just to get you through the first month nutritionally, but to expose you to a variety of foods and ideas that may be new to you. It emphasises that veganism is a shift sideways, not a sacrifice.
This file contains 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 if (get_post_type( $post ) == 'post') ?> | |
<div style="margin-bottom:1em;"> | |
<h3 style="margin-bottom:.5em;">Categories</h3> | |
<div style="margin-left:5px; font-size: 88%;"> | |
<?php wp_list_categories('show_count=1&exclude=1&orderby=count&order=DESC&title_li=&style=none&after=<br />'); ?> | |
</div> | |
</div> | |
<div id="search"> | |
<form id="searchform" method="get" action="<?php bloginfo('home') ?>"> | |
<div> |
This file contains 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
<div style="white-space: nowrap;width:1200px;height:500px;overflow-y:hidden;overflow-x:auto;"> | |
<img src="http://farm4.static.flickr.com/3390/3332242134_80f4a27954_o.jpg" alt="Dancing" /> | |
<img src="http://farm4.static.flickr.com/3639/3332242252_b916d25fc4_o.jpg" alt="Adam and Halli" /> | |
<img src="http://farm4.static.flickr.com/3599/3331406725_4287a0072d_o.jpg" alt="Cory" /> | |
<img src="http://farm4.static.flickr.com/3612/3332266318_ea37c20d20_o.jpg" alt="Jesse and Jason" /> | |
<img src="http://farm4.static.flickr.com/3374/3331406825_dbcb4c727c_o.jpg" alt="Jeremy" /> | |
<img src="http://farm4.static.flickr.com/3297/3332242098_92f774e770_o.jpg" alt="Coffee and Tea" /> | |
<img src="http://farm4.static.flickr.com/3537/3332266296_d52af40af8_o.jpg" alt="Cheryl in trouble" /> | |
</div> |
This file contains 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
<div id="header"> | |
<!-- Add this new span | |
<span style="float:right;text-align:right;"> | |
<a href="#">Facebook</a> | |
<a href="#">Twitter</a> | |
<a href="#">Flickr</a> | |
</span> --> | |
<span class="logolink"> | |
<a href="http://216.198.218.183/~shepboyc"> | |
<img src="http://216.198.218.183/~shepboyc/wp-content/themes/TheProfessional/images/logo.png" alt="Logo" id="logo"/> |
This file contains 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
[ | |
['chap@gmail.com', 'http://google.com'], | |
['test@gmail.com', 'http://anotherlink.com'] | |
].each do |email_and_link| | |
SignedUser.create( | |
:email => email_and_link[0], | |
:link => email_and_link[1] | |
) | |
end |
This file contains 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 User < ActiveRecord::Base | |
def find_matches | |
User.where(:city => self.city) | |
# self == the user object you called this function on | |
end | |
end | |
class UsersController < ApplicationController | |
def match | |
@user = User.find(params[:id]) |
This file contains 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 User < ActiveRecord::Base | |
def find_matches | |
User.where(:mentor_or_mentee => self.looking_for) | |
end | |
def looking_for | |
self.mentor_or_mentee == 1 ? 2 : 1 | |
end | |
end |
This file contains 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
- ['Bronx', ['10451', '10452', '10453', '10454', '10455', '10456', '10457', '10458', '10459', '10460', '10461', '10462', '10463', '10464', '10465', '10466', '10467', '10468', '10469', '10470', '10471', '10472', '10473', '10474', '10475', '10499']] | |
- ['Bronx: East', ['10461', '10462', '10464', '10465', '10466', '10467', '10469', '10472', '10473', '10475']] | |
- ['Bronx: South', ['10451', '10452', '10454', '10455', '10456', '10459', '10474']] | |
- ['Bronx: West', ['10453', '10457', '10458', '10460', '10463', '10468', '10470', '10471']] | |
- ['Brooklyn', ['11201', '11202', '11203', '11204', '11205', '11206', '11207', '11208', '11209', '11210', '11211', '11212', '11213', '11214', '11215', '11216', '11217', '11218', '11219', '11220', '11221', '11222', '11223', '11224', '11225', '11226', '11228', '11229', '11230', '11231', '11232', '11233', '11234', '11235', '11236', '11237', '11238', '11239', '11240', '11241', '11242', '11243', '11244', '11245', '11247', '11248', '11249', '11251', '11252', '11254', '11255', '11256']] | |
- ['B |
This file contains 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
<script>alert("i'm executing javascript!");</script> |
This file contains 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://moncefbelyamani.com/how-to-install-xcode-homebrew-git-rvm-ruby-on-mac/ | |
Other way to install rubies: | |
https://github.com/sstephenson/rbenv | |
https://github.com/sstephenson/ruby-build |
OlderNewer