fork(2) download
  1. require 'yaml'
  2.  
  3. yaml = <<eot
  4. # Greyscale
  5. lighter-grey: &lighter-grey
  6.   "#DDDDDD"
  7. light-grey: &light-grey
  8.   "#CCCCCC"
  9. grey: &grey
  10.   "#B3B3B3"
  11. dark-grey: &dark-grey
  12.   "#757575"
  13. darker-grey: &darker-grey
  14.   "#353535"
  15.  
  16. # Yellow
  17. lighter-yellow: &lighter-yellow
  18.   "#FFE67D"
  19. light-yellow: &light-yellow
  20.   "#FFDE54"
  21. yellow: &yellow
  22.   "#F6CF2C"
  23. dark-yellow: &dark-yellow
  24.   "#D3AC0A"
  25. darker-yellow: &darker-yellow
  26.   "#A68600"
  27.  
  28. # Green
  29. lighter-green: &lighter-green
  30.   "#D2F679"
  31. light-green: &light-green
  32.   "#C3F250"
  33. green: &green
  34.   "#B1E829"
  35. dark-green: &dark-green
  36.   "#90C709"
  37. darker-green: &darker-green
  38.   "#709D00"
  39.  
  40. # Orange
  41. lighter-orange: &lighter-orange
  42.   "#FFB37D"
  43. light-orange: &light-orange
  44.   "#FF9B54"
  45. orange: &orange
  46.   "#F6802C"
  47. dark-orange: &dark-orange
  48.   "#D35D0A"
  49. darker-orange: &darker-orange
  50.   "#A64500"
  51.  
  52. # Cyan
  53. lighter-cyan: &lighter-cyan
  54.   "#5FC2B5"
  55. light-cyan: &light-cyan
  56.   "#37A898"
  57. cyan: &cyan
  58.   "#1C9A89"
  59. dark-cyan: &dark-cyan
  60.   "#068473"
  61. darker-cyan: &darker-cyan
  62.   "#00685A"
  63.  
  64. # Magenta
  65. lighter-magenta: &lighter-magenta
  66.   "#DA6BB3"
  67. light-magenta: &light-magenta
  68.   "#CA439A"
  69. magenta: &magenta
  70.   "#BE2287"
  71. dark-magenta: &dark-magenta
  72.   "#A3086D"
  73. darker-magenta: &darker-magenta
  74.   "#800054"
  75.  
  76. # Brown
  77. lighter-brown: &lighter-brown
  78.   "#DAA263"
  79. light-brown: &light-brown
  80.   "#B67936"
  81. brown: &brown
  82.   "#925818"
  83. dark-brown: &dark-brown
  84.   "#6A3901"
  85. darker-brown: &darker-brown
  86.   "#422300"
  87.  
  88. # { Semantic colors
  89.  
  90. default-fg: *darker-grey &default-fg
  91. eot
  92.  
  93. p YAML.load(yaml)
Runtime error #stdin #stdout #stderr 0.04s 9208KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
/usr/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): did not find expected key while parsing a block mapping at line 2 column 1 (Psych::SyntaxError)
	from /usr/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
	from /usr/lib/ruby/1.9.1/psych.rb:151:in `parse'
	from /usr/lib/ruby/1.9.1/psych.rb:127:in `load'
	from prog.rb:93:in `<main>'