Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
65 lines (54 sloc) 998 Bytes
title pageSlug date
Temp Post
temp-post
2013-10-01

This is a test.

HTML

<h1>This is code</h1>
<script>
var i = 0;
function() {
    return true;
}
</script>
var stuff = {
    holas: 'whatup'
};

Ruby

class A < B; def self.create(object = User) object end end
class Zebra; def inspect; "X#{2 + self.object_id}" end end

module ABC::DEF
  include Comparable

  # @param test
  # @return [String] nothing
  def foo(test)
    Thread.new do |blockvar|
      ABC::DEF.reverse(:a_symbol, :'a symbol', :<=>, 'test' + test)
    end.join
  end

  def [](index) self[index] end
  def ==(other) other == self end
end

anIdentifier = an_identifier
Constant = 1
render action: :new

Python

@requires_authorization
def somefunc(param1='', param2=0):
    r'''A docstring'''
    if param1 > param2: # interesting
        print 'Gre\'ater'
    return (param2 - param1 + 1) or None

class SomeClass:
    pass

>>> message = '''interpreter
... prompt'''
Something went wrong with that request. Please try again.