A test
Submitted by Sam Rose on Mon, 12/29/2008 - 08:12
Some Python:
# Function defined outside the class def f1(self, x, y): return min(x, x+y) class C: f = f1 def g(self): return 'hello world' h = g
Some ruby:
# Ruby knows what you # mean, even if you # want to do math on # an entire Array cities = %w[ London Oslo Paris Amsterdam Berlin ] visited = %w[Berlin Oslo] puts "I still need " + "to visit the " + "following cities:", cities - visited
Some php:
Some mxml:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Array id="sampleArray"> <mx:String>Sample Label 1</mx:String> <mx:String>Sample Label 2</mx:String> </mx:Array> <mx:Panel title="Example Panel"> <mx:ComboBox dataProvider="{sampleArray}"></mx:ComboBox> </mx:Panel> </mx:Application>
Some Perl:
package OddMuse; use strict; use CGI; use CGI::Carp qw(fatalsToBrowser); use vars qw($VERSION); local $| = 1; # Do not buffer output (localized for mod_perl) $VERSION=(split(/ +/, q{$Revision: 1.878 $}))[1]; # for MakeMaker # Options: use vars qw($RssLicense $RssCacheHours @RcDays $TempDir $LockDir $DataDir $KeepDir $PageDir $RcOldFile $IndexFile $BannedContent $NoEditFile $BannedHosts $ConfigFile $FullUrl $SiteName $HomePage $LogoUrl $RcDefault $RssDir $IndentLimit $RecentTop $RecentLink $EditAllowed $UseDiff $KeepDays $KeepMajor $EmbedWiki $BracketText $UseConfig $UseLookup $AdminPass $EditPass $NetworkFile $BracketWiki $FreeLinks $WikiLinks $SummaryHours $FreeLinkPattern $RCName $RunCGI $ShowEdits $LinkPattern $RssExclude $InterLinkPattern $MaxPost $UseGrep $UrlPattern $UrlProtocols $ImageExtensions $InterSitePattern $FS $CookieName $SiteBase $StyleSheet $NotFoundPg $FooterNote $NewText $EditNote $HttpCharset $UserGotoBar $VisitorFile $RcFile %Smilies %SpecialDays $InterWikiMoniker $SiteDescription $RssImageUrl $ReadMe $RssRights $BannedCanRead $SurgeProtection $TopLinkBar $LanguageLimit $SurgeProtectionTime $SurgeProtectionViews $DeletedPage %Languages $InterMap $ValidatorLink %LockOnCreation @CssList $RssStyleSheet @MyRules %CookieParameters @UserGotoBarPages $NewComment $HtmlHeaders $StyleSheetPage $ConfigPage $ScriptName @MyMacros $CommentsPrefix @UploadTypes $AllNetworkFiles $UsePathInfo $UploadAllowed $LastUpdate $PageCluster %PlainTextPages $RssInterwikiTranslate $UseCache $Counter $ModuleDir $FullUrlPattern $SummaryDefaultLength $FreeInterLinkPattern %InvisibleCookieParameters %AdminPages @MyAdminCode @MyInitVariables @MyMaintenance $UseQuestionmark $JournalLimit $LockExpiration $RssStrip %LockExpires @IndexOptions @Debugging @MyFooters $DocumentHeader);
- Sam Rose's blog
- Login to post comments
