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
$ git commit # commit your changes like usual | |
$ rake version:bump:patch | |
$ rake gemspec # to update version to new version number, etc. | |
$ rake build # create the new gem package | |
# Commit the new gemspec file. | |
$ gem push pkg/<gemname_and_version>.gem # push to rubygems | |
$ git push # so that the githubs are all up to date! |
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 String #:nodoc: | |
def to_slug | |
self.gsub(/ /,"_").gsub(/&/,"and").gsub(/\?|\!|\#/,"").downcase | |
end | |
end | |
files = Dir.glob("*") | |
files.each { |f| File.rename(f, f.to_slug) } |
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
Deprecated ERb helper calls | |
Block helpers that use concat (e.g., form_for) should use <%= instead of <%. The current form will continue to work for now, but you will get deprecation warnings since this form will go away in the future. | |
More information: http://weblog.rubyonrails.org/ | |
The culprits: | |
- /Users/richie/Sites/funways/app/views/password_resets/edit.html.erb | |
- /Users/richie/Sites/funways/app/views/password_resets/new.html.erb | |
Deprecated constant(s) | |
Constants like RAILS_ENV, RAILS_ROOT, and RAILS_DEFAULT_LOGGER are now deprecated. |
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
#Abilities.rb:41 - Want some refactoring help | |
# | |
#Arbiters for a tournament can manage it | |
if user && !user.admin? | |
can [:read, :update, :destroy], Tournament, ['? in (select user_id from tournaments_users where tournament_id = tournaments.id) or tournaments.group_id in (select group_id from group_users where user_id = ? and role = \'Administrator\')', user.id, user.id] do |tournament| | |
tournament && (tournament.arbiters.include?(user) || | |
(tournament.group && tournament.group.administrators.include?(user))) | |
end | |
can [:manage], [Division, Round, Pairing, Entry] do |x| |
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
// | |
// LineupViewController.m | |
// FootyAssistant | |
// | |
// | |
#import "LineupViewController.h" | |
#import <QuartzCore/QuartzCore.h> | |
#import "AppScrollView.h" | |
#import "DataController.h" |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>The Ultimate Dr Who Powers Fan Page!!!!!!!!!!!!!!!!!!</title> | |
<link rel="stylesheet" href="stylesheets/screen.css" media="all" /> | |
<meta charset='utf-8'> | |
</head> | |
<body> | |
<div class="header"> |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
</head> | |
<body> | |
<div class="header"> | |
</div> | |
<div class="main"> |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset='utf-8'> | |
</head> | |
<body> | |
</body> | |
</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
Have you setup your laptop for the session? if not see instructions further.. | |
------------------------------------------------------------------------------ | |
Welcome! | |
Today we are going to make a basic website using some of the main components | |
of HTML with a little CSS to give you an idea. | |
As I want you focussed on writing good HTML and CSS, I don't want you | |
too fussed on the aesthetics(look and feel) and the actual content of the site. |
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://colorschemedesigner.com - Awesome web color design tool | |
http://validator.w3.org - W3C Markup Validation Checker | |
Wordpress | |
--------- | |
http://wordpress.stackexchange.com - Wordpress help |