word
to your motha
1 |
class Bookmark | |
def test | |
"hello world!" | |
end | |
end |
This is my gist. | |
There are few like it. | |
It is life. | |
It has mastered me. | |
Without me gist is useless. | |
Without gist, I am useless. |
#include <stdio.h> | |
void main() { | |
puts("Bonjour"); | |
} |
Transcript show 'here we go again' | |
"Nice, I have thought that git would be perfect for such a thing. Now can it host my website?" |
This is gist. | |
There are many like it, but this one is mine. | |
It is my life. | |
I must master it as I must master my life. | |
Without me gist is useless. | |
Without gist, I am useless. | |
Indeed. |
class StaticAuthenticator | |
def authenticate(username, password) | |
case(username) | |
when 'nigel': return username, 'Nigel', 'Ramsay', ['QUALITYUSER', 'QUALITYSYSADMIN'] | |
when 'santosh': return username, 'Santosh', 'Mani', ['QUALITYUSER', 'QUALITYSYSADMIN'] | |
when 'user': return username, 'Quality', 'User', ['QUALITYUSER'] | |
when 'admin': return username, 'Quality', 'Sys Admin', ['QUALITYSYSADMIN'] | |
when 'somebody': return username, 'Objective', 'User', ['OBJECTIVE'] | |
when 'nobody': return username, 'Nobody', 'User', [] |
puts "found entry #{entry.dn}" | |
dn = entry[:dn] | |
first_name = entry[:givenName] ? entry[:givenName].first : '' | |
surname = entry[:sn] ? entry[:sn].first : '' | |
roles = entry[:secondaryclassname] |
Hello, world! |