Skip to content

Instantly share code, notes, and snippets.

@isaac
isaac / uno
Created July 22, 2008 01:33 — forked from anonymous/uno
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");
}

Testing

word

to your motha

@jhund
jhund / gist:590
Created July 22, 2008 01:50
ST hello world
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?"
@kmarsh
kmarsh / gist:591
Created July 22, 2008 01:51 — forked from schacon/gist:1
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!