Skip to content

Instantly share code, notes, and snippets.

View zeroeth's full-sized avatar
🤖
🐱 🤖 🐱 🤖

[0] zeroeth

🤖
🐱 🤖 🐱 🤖
View GitHub Profile
// called with
[self shape_tree:3 angle:current_rotation leaves:5];
// definition
- (void)shape_tree:(int)depth angle:(GLint)angle leaves:(int)leaves {
double offset = 360/leaves;
for (double i = 0; i <= 360; i+=offset) {
glPushMatrix();
glScalef(0.5, 0.5, 1.0);
#!/usr/bin/env ruby
require "config/environment"
Dir.glob("app/models/*rb") { |f|
require f
}
puts %{digraph x \{
has_many1 [shape=point]
has_many2 [shape=point]
has_many1 -> has_many2 [label="Has many", color=red]
8:14:07 PM zeroeth: yeah thats good
8:14:16 PM zeroeth: man, i might never see you again
8:14:51 PM pheonix: *sigh* kevin i feel terrible
8:15:02 PM pheonix: i'm really sorry but i'm scared
8:15:12 PM zeroeth: its ok.. i know where your comming from
8:15:28 PM pheonix: yah i know
8:15:43 PM pheonix: i was with him my first semester
8:15:46 PM pheonix: and it totally fucked up
8:15:57 PM pheonix: luckily my english teacher gave me a second chance
8:16:03 PM pheonix: i got to do my final paper again
/*
* call-seq:
* enum.all? [{|obj| block } ] => true or false
*
* Passes each element of the collection to the given block. The method
* returns <code>true</code> if the block never returns
* <code>false</code> or <code>nil</code>. If the block is not given,
* Ruby adds an implicit block of <code>{|obj| obj}</code> (that is
* <code>all?</code> will return <code>true</code> only if none of the
* collection members are <code>false</code> or <code>nil</code>.)
softtabstop 2
set tabstop=2
set smarttab
set shiftwidth=2
set autoindent
set expandtab
def login_as(user)
id = nil
if user
if user.kind_of? ActiveRecord::Base
id = user.id
else
id = users(user).id
end
end
User.any_instance.expects(:admin_edit=).once
class Bicycle
attr_reader :gears, :wheels, :seats
def intialize(gears = 1)
@wheels = 2
@seats = 1
@gears = gears
end
end
evaluation_branches:
select: ^(evaluations)
courseware:
select: (courseware)
fast_srids:
select: (fast_srids)
unrelated_example
files/test/*
!files/test/.gitignore
files/development/*
!files/development/.gitignore
files/production/*
!files/production/.gitignore