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
| /** | |
| * getRealHeight( elem ) | |
| * Get the real height of the given element. | |
| */ | |
| getRealHeight | |
| = function ( elem ) { | |
| var D = YAHOO.util.Dom; | |
| var _pos = D.getStyle(elem, 'position'); | |
| var _vis = D.getStyle(elem, 'visibility'); | |
| var clipped = false; |
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
| "---------------------------------------------------------------------------- | |
| " Common settings | |
| colorscheme pablo | |
| set autoindent " Auto-indent on | |
| set nocompatible " Use vim addvance settings | |
| set tabstop=8 " Use 8 spaces for tabs | |
| set shiftwidth=4 " 4 spaces for autoindent | |
| set softtabstop=4 " Use soft tabs | |
| set expandtab " Use spaces instead of tabs | |
| set smartindent " Use smart indent |
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
| +--------------------------------+ | |
| | ableToBeFriend | | |
| | alias | | |
| | allowPrivateMessages | | |
| | avatar | | |
| | dateFormat | | |
| | department | | |
| | discussionLayout | | |
| | email | | |
| | firstDayOfWeek | |
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
| Perl | |
| 1-3 | |
| - Tell me what a regular expression is? | |
| - A pattern to match against a string | |
| - What is CPAN? | |
| - Comprehensive Perl Archive Network | |
| - Place for perl code, modules and scripts | |
| - What symbol is used for creating a hash? | |
| - my %hash = ( name => value ); | |
| - The % is the important bit |
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
| // Build inner walls | |
| var walls:Array = WALLS_BY_LEVEL[ number ]; | |
| for ( var i:int = 0; i < walls.length; i++ ) { | |
| var wall:Object = walls[i]; | |
| add( new Wall( wall.x, wall.y, wall.width, wall.height, wall.tile ) ); | |
| } | |
| // Build pies | |
| for ( var i:int = 0; i < 50; i++ ) { | |
| var pie:Pie = new Pie(); |
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
| The group giving away the free tanks only stays alive because it is staffed by volunteers, who are lined up at the edge of the street with bullhorns, trying to draw customers' attention to this incredible situation. A typical conversation goes something like this: | |
| Hacker with bullhorn: "Save your money! Accept one of our free tanks! It is invulnerable, and can drive across rocks and swamps at ninety miles an hour while getting a hundred miles to the gallon!" | |
| Prospective station wagon buyer: "I know what you say is true...but...er...I don't know how to maintain a tank!" | |
| Bullhorn: "You don't know how to maintain a station wagon either!" | |
| Buyer: "But this dealership has mechanics on staff. If something goes wrong with my station wagon, I can take a day off work, bring it here, and pay them to work on it while I sit in the waiting room for hours, listening to elevator music." |
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
| #!/usr/bin/env perl | |
| #------------------------------------------------------------------- | |
| # WebGUI is Copyright 2001-2009 Plain Black Corporation. | |
| #------------------------------------------------------------------- | |
| # Please read the legal notices (docs/legal.txt) and the license | |
| # (docs/license.txt) that came with this distribution before using | |
| # this software. | |
| #------------------------------------------------------------------- | |
| # http://www.plainblack.com [email protected] |
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
| eth0 Link encap:Ethernet HWaddr FE:FD:45:A4:D4:B1 | |
| inet addr:69.164.212.177 Bcast:69.164.212.255 Mask:255.255.255.0 | |
| inet6 addr: fe80::fcfd:45ff:fea4:d4b1/64 Scope:Link | |
| UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | |
| RX packets:37733468 errors:0 dropped:0 overruns:0 frame:0 | |
| TX packets:16444542 errors:0 dropped:0 overruns:0 carrier:0 | |
| collisions:0 txqueuelen:1000 | |
| RX bytes:336588174 (320.9 MiB) TX bytes:2151945110 (2.0 GiB) | |
| Interrupt:28 |
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
| diff --cc lib/WebGUI/Asset/Template.pm | |
| index 5807910,9c7dfeb..0000000 | |
| --- a/lib/WebGUI/Asset/Template.pm | |
| +++ b/lib/WebGUI/Asset/Template.pm | |
| @@@ -255,17 -538,58 +255,53 @@@ A parser class to use. Defaults to "Web | |
| sub getParser { | |
| my $class = shift; | |
| my $session = shift; | |
| - my $parser = shift; | |
| - |
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 Server( swfconduit.server.Server ): | |
| """ Maintain server-level persistence, database connections """ | |
| engine = "" | |
| db_session = "" | |
| session = Session | |
| session_by_user = {} | |
| """ Sessions keyed by user ID """ | |
| active_scenes = {} |