Skip to content

Instantly share code, notes, and snippets.

View rxbynerd's full-sized avatar

@rubynerd rxbynerd

View GitHub Profile
@rxbynerd
rxbynerd / _gradients.css.scss
Created November 8, 2011 23:41 — forked from thbar/_gradients.css.scss
SCSS mixing for CSS3 gradients
@mixin gradient($from, $to) {
/* fallback/image non-cover color */
background-color: $from;
/* Firefox 3.6+ */
background-image: -moz-linear-gradient($from, $to);
/* Safari 4+, Chrome 1+ */
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from($from), to($to));
class Feelings
def bad
@bad
end
def bad=(bad)
@bad = bad
end
end
class Problems
@rxbynerd
rxbynerd / twenty.markdown
Created October 23, 2011 22:30
Twenty Reasons

Twenty Reasons why I should buy an iPhone 4S

  1. Reminders provide an easy way to quickly note down one-off tasks
  2. The calendar provides me with a a way to keep up with my mess of a timetable
  3. The calender is flexible enough to allow for throwing the entire thing in the toilet if I want to
  4. Having emails in my pocket means I don't take breaks out of my day to go and check them
  5. It provides me with a way to keep a track of physiotherapy appointments
  6. It provides me with a way to keep up with ortho appointments, and allows me to control them
  7. It gives me a fast way to liaise with parents as to meetings
  8. It can link into my college email system, meaning asking a teacher what I missed is not such a struggle
namespace :db do
desc "do active_record migrations"
task :migrate do
ActiveRecord::Base.logger = Logger.new(STDOUT)
ActiveRecord::Migration.verbose = true
ActiveRecord::Migrator.migrate("migrations")
end
end

This is a heading

This is a smaller heading

This is an even smaller heading

This is some normal text.

this is some empathized text

http://commondatastorage.googleapis.com/chromium-browser-continuous/index.html
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main (int argc, char* argv[]) {
if (argc < 2) {
printf("Needs an argument\n");
exit(1);
}

sections

  • statement of the problem
  • prospective users
  • interview/questions
  • Existing system
  • Problems with the existing system
  • Requirements for the new system
  • Example documents
  • DFD
#!/usr/local/bin/ruby
# Creates a new repo called ARGV[0]
@args = ARGV
@args.each_with_index{|o,i| puts "#{i} : #{o}"}
if not @args[1] =~ /(private|public)/
puts "invalid arguments: #{@args.inspect}"
exit(1)
pretty colour code for headers
#474747