├── .rvmrc
├── .gitignore
├── Gemfile
├── images
└── nerdz.png
├── .travis.yml
├── LICENSE
├── questions
├── culture
│ ├── which-programming-language-doesn-t-exist.json
│ └── wann-hatte-facebook-seinen-borsengang.json
├── bitwise_or.json
├── bitwise_and.json
├── nil.json
├── nilclass.json
├── quo.json
├── what_s_4_2.json
├── release_date.json
├── roses.json
├── nodetype_of_text_node.json
├── best_language.json
├── nil_id.json
├── return_value_or.json
├── half_a_byte.json
├── hexadecimal_code.json
├── rails_first_shown.json
├── absolute_superclass_1.9.json
├── collect_alternative.json
├── size_t_header.json
├── what_do_string.json
├── base_object.json
├── bind.json
├── fps.json
├── last_directory.json
├── mutable_data_type.json
├── ranges_three_dots.json
├── strict_doctype.json
├── the_cake.json
├── img_tag.json
├── kanji_converter.json
├── oreilly_Camel.json
├── rest_about.json
├── symbols.json
├── club_mate_caffeine.json
├── date_format_month.json
├── oreilly_Cow.json
├── oreilly_Salmon.json
├── spaceship_operator.json
├── active_record_base.json
├── array_pipe.json
├── class_inheritance.json
├── global_variable_character.json
├── oreilly_Insects.json
├── oreilly_Rat.json
├── HTCPCP.json
├── array_ampersand.json
├── equality.json
├── folders.json
├── how_is_ruby_licensed.json
├── how_many_gems.json
├── jquery_sizzle.json
├── oreilly_Antelope.json
├── oreilly_Octopus.json
├── oreilly_Rhinocerous.json
├── pluralize_person.json
├── rails_inventor.json
├── screen_image_resolution.json
├── symbol_string_ids.json
├── chrome_v8.json
├── constants.json
├── falsy.json
├── json.json
├── monadsvsmonoids.json
├── new_lambda_constructing_syntax.json
├── oreilly_Pidgeon.json
├── run_time_of_bst.json
├── weakref.json
├── all_ur_base.json
├── answer_to_everything.json
├── attribute_selectors.json
├── prefix_last_command.json
├── unless_wtf.json
├── who_created_jquery.json
├── 2_seconds.json
├── fastest_sorting_algorithm.json
├── invited-php.json
├── media.json
├── mixins_are_what.json
├── new_lambda_calling_syntax.json
├── nyan.json
├── string_v_strings.h
├── what_do_array.json
├── binary.json
├── method_used_for_comparisons.json
├── what_s_typeof_null.json
├── absolute_superclass_1.8.json
├── array_all_but_the_first.json
├── array_all_but_the_last.json
├── laziness.json
├── optional_html_tags.json
├── png.json
├── comparsion.json
├── controller_action.json
├── divmod.json
├── enumerable.json
├── kernel-sprintf.json
├── negative_look_ahead.json
├── numeric_types.json
├── typeof_arguments.json
├── backticks_in_ruby.json
├── string_clean_whitespace.json
├── when_life_gives_you_lemons.json
├── which_character_in_star_trek_se.json
├── min_max_quantifier.json
├── rspec_controller_render_views.json
├── symbol_identity_01.json
├── z-index_property.json
├── array_all_but_the_first_and_last .json
├── float_left.json
├── lazy.json
├── map_parseInt.json
├── position_fixed_support.json
├── symbol_identity_02.json
├── symbol_identity_03.json
├── matz.json
├── monads.json
├── array_get_and remove_last_element.json
├── encoding.json
├── where_are_the_characters_of_daw.json
├── array_get_and remove_first_element.json
├── inherit_from_how_many.json
├── instance_exec.json
├── sum_things_up.json
├── to_which_year_marty_mcfly_wants.json
├── what_is_a_traditional_vulcan_sa.json
├── about_ruby.json
├── ps_save_for_web.json
├── rake_about.json
├── rest.json
├── array_to_csv_string.json
├── regex_globals.json
├── same_origin_policy.json
├── simple_format.json
├── what_is_a_mixin.json
├── who_is_the_first_character_to_b.json
├── garbarge_collector_in_19.json
├── how_do_you_specify_html5_doctyp.json
├── rack.json
├── ruby_parser.json
├── string_object_coercion_internals.json
├── trace_something_in_as3.json
├── what_does_gil_stands_for.json
├── asset_pipeline_in_rails_3.json
├── hash_with_indifferent_access.json
├── haskell_name.json
├── square_numbers_in_list.json
├── kernel.json
├── who_created_python.json
├── whos_mustache_is_awesome.json
├── array_splat.json
├── how_to_delete_variable_python.json
├── kernel-sprintf-2.json
├── sort_algorithm_dances.json
├── bindtypesignature.json
├── gorby.json
├── last_cmd_sub.json
├── name_of_python_module_rep.json
├── position_property.json
├── r_correlation.json
├── sinatra.json
├── all_the.json
├── fun_with_brackets.json
├── how_many_pypi_packages.json
├── monoids.json
├── which_is_not_a_python_framework.json
├── who_invented_node_js.json
├── private_method_in_ruby.json
├── emails.json
├── how_to_indent_python.json
├── the_difference_between_and_operators.json
├── list_comprehension_python.json
├── which_version_of_ecmascript_doe.json
├── new_database.json
├── what_did_matz_say_about_ruby.json
├── prime.json
├── what_does_negate_regexp_operator_do.json
├── about_haskell.json
├── protected_method_in_ruby.json
├── r_vector.json
├── ruby_goto.json
├── valid_function_expression.json
├── fptr.json
├── how_do_you_use_multiple_box_sha.json
├── ook_ook.json
├── background_image.json
├── jsonp.json
├── how_to_concatenate_list_python.json
├── how_to_open_python_main.json
├── prediction_gates.json
├── r_variance.json
├── how_can_you_access_the_data_pas.json
├── fizzbuzz.json
├── what_is_node_js.json
├── mixins_in_call_chain.json
├── yo_dawg.json
├── creatures.json
└── identity_map_in_rails_3.json
├── validate_all.rb
├── tools
└── qbuilder.rb
├── README.markdown
├── creator
└── schema
└── question.json
/.rvmrc:
--------------------------------------------------------------------------------
1 | rvm use --create ruby-1.9.3-rc1-perf@nerdpursuit
2 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | Gemfile.lock
2 | vendor/
3 | .DS_Store
4 | .bundle/
5 | .*.swp
6 |
--------------------------------------------------------------------------------
/Gemfile:
--------------------------------------------------------------------------------
1 | source :rubygems
2 | gem 'json'
3 | gem 'json-schema'
4 | gem 'minitest'
5 |
--------------------------------------------------------------------------------
/images/nerdz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nerds/NerdPursuit/master/images/nerdz.png
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 |
2 | rvm:
3 | - 1.9.2
4 |
5 | script: 'bundle exec ruby validate_all.rb'
6 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Creative Commons
2 | Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
3 | http://creativecommons.org/licenses/by-sa/3.0/
4 |
--------------------------------------------------------------------------------
/questions/culture/which-programming-language-doesn-t-exist.json:
--------------------------------------------------------------------------------
1 | {"question":{"category":"culture","sub_category":"culture","nerd_level":1,"text":"Which programming language doesn't exist","a1":"Pizza","a2":"Pazza","a3":"Pronto","a4":"Quattro formaggi","right_answer":"a1","creator":"koos","creator_twitter":"koos","creator_github":"koos","created_at":"2012-05-01"}}
--------------------------------------------------------------------------------
/questions/bitwise_or.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "What's the output of 5 | 2?",
6 | "a1": "0",
7 | "a2": "1",
8 | "a3": "5",
9 | "a4": "7",
10 | "right_answer": "a4",
11 | "created_at": "2011-06-07",
12 | "creator": "Paul"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/bitwise_and.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "What's the output of 5 & 2?",
6 | "a1": "0",
7 | "a2": "1",
8 | "a3": "2",
9 | "a4": "4",
10 | "right_answer": "a1",
11 | "created_at": "2011-06-07",
12 | "creator": "Paul"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/culture/wann-hatte-facebook-seinen-borsengang.json:
--------------------------------------------------------------------------------
1 | {"question":{"category":"startup & founding","sub_category":"culture","nerd_level":1,"text":"Wann hatte Facebook seinen B\u00f6rsengang","a1":"18.05.2012","a2":"17.05.2012","a3":"16.05.2012","a4":"15.05.2012","right_answer":"a1","creator":"Jan","creator_twitter":"koos","creator_github":"koos","created_at":"2012-05-22"}}
--------------------------------------------------------------------------------
/questions/nil.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text":"What does nil.nil? return?",
6 | "a1": "true",
7 | "a2": "nil",
8 | "a3": "false",
9 | "a4": "null",
10 | "right_answer":"a1",
11 | "created_at": "2011-06-06",
12 | "creator": "juliancheal"
13 | }
14 | }
--------------------------------------------------------------------------------
/questions/nilclass.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text":"How many instances does NilClass have?",
6 | "a1": "1",
7 | "a2": "2",
8 | "a3": "5",
9 | "a4": "8",
10 | "right_answer":"a1",
11 | "created_at": "2011-06-07",
12 | "creator": "Paul"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/quo.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 2,
5 | "text": "What will 1.quo(2) return",
6 | "a1": "1/2",
7 | "a2": "1/4",
8 | "a3": "1/8",
9 | "a4": "1/1",
10 | "right_answer": "a1",
11 | "created_at": "2011-06-06",
12 | "creator": "juliancheal"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/what_s_4_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "sub_category": "javascript",
4 | "category": "backend",
5 | "nerd_level": 1,
6 | "text": "What's '4' + 2?",
7 | "creator": "Marcin Bunsch",
8 | "created_at": "2011-06-12",
9 | "right_answer": "a1",
10 | "a1": "'42'",
11 | "a2": "402",
12 | "a3": "6",
13 | "a4": "0"
14 | }
15 | }
--------------------------------------------------------------------------------
/questions/release_date.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "css",
3 | "category": "frontend",
4 | "nerd_level": 1,
5 | "text":"When was the release date of CSS1?",
6 | "a1": "1994",
7 | "a2": "1995",
8 | "a3": "1996",
9 | "a4": "1997",
10 | "right_answer":"a3",
11 | "created_at": "2011-06-07",
12 | "creator": "Jost"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/roses.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "css",
3 | "category": "frontend",
4 | "nerd_level": 3,
5 | "text":"Roses are #FF0000, violets are?",
6 | "a1": "#F0F0F0",
7 | "a2": "#359926",
8 | "a3": "#0000FF",
9 | "a4": "#D7D415",
10 | "right_answer":"a3",
11 | "created_at": "2011-06-07",
12 | "creator": "Philipp"
13 | }
14 | }
--------------------------------------------------------------------------------
/questions/nodetype_of_text_node.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "javascript",
3 | "category": "backend",
4 | "nerd_level": 3,
5 | "text": "What's the nodeType value of text nodes?",
6 | "a1": "1",
7 | "a2": "2",
8 | "a3": "3",
9 | "a4": "4",
10 | "right_answer": "a3",
11 | "created_at": "2011-08-14",
12 | "creator": "Marco"
13 | }
14 | }
--------------------------------------------------------------------------------
/questions/best_language.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "culture",
4 | "nerd_level": 1,
5 | "text":"What is the best programing language ever?",
6 | "a1": "C#",
7 | "a2": "Ruby",
8 | "a3": "Java",
9 | "a4": "LOLCODE",
10 | "right_answer":"a2",
11 | "created_at": "2011-06-06",
12 | "creator": "juliancheal"
13 | }
14 | }
--------------------------------------------------------------------------------
/questions/nil_id.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "sub_category": "ruby",
4 | "category": "backend",
5 | "right_answer": "a3",
6 | "nerd_level": 5,
7 | "text": "What is the result of nil.id ?",
8 | "a1": "NoMethodError",
9 | "a2": "nil",
10 | "a3": "4",
11 | "a4": "0",
12 | "creator": "nbartlomiej",
13 | "created_at": "2011-06-14"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/return_value_or.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "What is the return value of nil || 'a' ?",
6 | "a1": "true",
7 | "a2": "false",
8 | "a3": "nil",
9 | "a4": "'a'",
10 | "right_answer": "a4",
11 | "created_at": "2011-06-07",
12 | "creator": "Paul"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/half_a_byte.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "data",
3 | "category": "backend",
4 | "nerd_level": 2,
5 | "text": "What is the name for half a byte?",
6 | "a1": "a Nibble",
7 | "a2": "0x04",
8 | "a3": "a habyte",
9 | "a4": "a word",
10 | "right_answer": "a1",
11 | "created_at": "2011-09-15",
12 | "creator": "kragniz"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/hexadecimal_code.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "css",
3 | "category": "frontend",
4 | "nerd_level": 2,
5 | "text":"What is the hexadecimal code for red?",
6 | "a1": "ff0000",
7 | "a2": "00ff00",
8 | "a3": "0000ff",
9 | "a4": "f0000f",
10 | "right_answer":"a1",
11 | "created_at": "2011-06-07",
12 | "creator": "Jost"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/rails_first_shown.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "rails",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text":"When was Rails first shown to the public?",
6 | "a1": "2003",
7 | "a2": "2004",
8 | "a3": "2005",
9 | "a4": "2006",
10 | "right_answer":"a2",
11 | "created_at": "2011-06-07",
12 | "creator": "Jost"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/absolute_superclass_1.9.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "What is the return value of nil || 'a'?",
6 | "a1": "true",
7 | "a2": "nil",
8 | "a3": "'a'",
9 | "a4": "false",
10 | "right_answer": "a3",
11 | "created_at": "2011-06-07",
12 | "creator": "Paul"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/collect_alternative.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text":"Which method can be used instead of 'collect' ",
6 | "a1": "scan",
7 | "a2": "chomp",
8 | "a3": "map",
9 | "a4": "select",
10 | "right_answer":"a3",
11 | "created_at": "2011-06-07",
12 | "creator": "kangguru"
13 | }
14 | }
--------------------------------------------------------------------------------
/questions/size_t_header.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "sub_category": "C",
4 | "category": "programming",
5 | "created_at": "2012-03-15",
6 | "right_answer": "a1",
7 | "creator": "a2800276",
8 | "nerd_level": 1,
9 | "text": "Where is `size_t` defined?",
10 | "a1": "stddef.h",
11 | "a2": "stdarg.h",
12 | "a3": "stdlib.h",
13 | "a4": "stdio.h"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/what_do_string.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 2,
5 | "text":"What is the result of \"hello\".tr_s('l','r')?",
6 | "a1": "hero",
7 | "a2": "helrlro",
8 | "a3": "herro",
9 | "a4": "heo",
10 | "right_answer":"a1",
11 | "created_at": "2011-06-07",
12 | "creator": "Jost"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/base_object.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "What is the absolute superclass in Ruby 1.9?",
6 | "a1": "Super",
7 | "a2": "Object",
8 | "a3": "Mother",
9 | "a4": "BasicObject",
10 | "right_answer": "a4",
11 | "created_at": "2011-06-07",
12 | "creator": "Paul"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/bind.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "nerd_level": 4,
4 | "text": "How do you pronounce '>>='?",
5 | "a1": "bind",
6 | "a2": "monad",
7 | "a3": "monoid",
8 | "a4": "shiftshiftequals",
9 | "right_answer": "a1",
10 | "creator": "Steve Klabnik",
11 | "created_at": "2012-03-24",
12 | "sub_category": "haskell",
13 | "category": "programming"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/fps.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "flash",
3 | "category": "frontend",
4 | "nerd_level": 1,
5 | "text":"The default setting for frames per second in flash is?",
6 | "a1": "8 fps",
7 | "a2": "12 fps",
8 | "a3": "24 fps",
9 | "a4": "36 fps",
10 | "right_answer":"a2",
11 | "created_at": "2011-06-08",
12 | "creator": "StephanP"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/last_directory.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "bash",
3 | "category": "backend",
4 | "nerd_level": 3,
5 | "text": "How to switch back to the previous directory?",
6 | "a1": "cd ...",
7 | "a2": "cd -P",
8 | "a3": "cd -last",
9 | "a4": "cd -",
10 | "right_answer": "a4",
11 | "created_at": "2011-06-25",
12 | "creator": "swilke"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/mutable_data_type.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "python",
3 | "category": "backend",
4 | "nerd_level": 2,
5 | "text": "Which of the following data types are mutable?",
6 | "a1": "str",
7 | "a2": "tuple",
8 | "a3": "list",
9 | "a4": "bool",
10 | "right_answer": "a3",
11 | "created_at": "2011-09-29",
12 | "creator": "kragniz"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/ranges_three_dots.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "What's the output of (1...5).to_a?",
6 | "a1": "NoMethodError",
7 | "a2": "[1,2,3,4]",
8 | "a3": "[1,2,3,4,5]",
9 | "a4": "[]",
10 | "right_answer": "a2",
11 | "created_at": "2011-06-07",
12 | "creator": "Paul"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/strict_doctype.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "html",
3 | "category": "frontend",
4 | "nerd_level": 2,
5 | "text":"Attribute that is not allowed in Strict DOCTYPE",
6 | "a1": "bgcolor",
7 | "a2": "name",
8 | "a3": "align",
9 | "a4": "border",
10 | "right_answer":"a1",
11 | "created_at": "2011-06-14",
12 | "creator": "Barto"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/the_cake.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "nerd_level": 1,
4 | "text": "The cake...",
5 | "a1": "is moist",
6 | "creator": "Mike Poltyn",
7 | "a2": "is delicious",
8 | "a3": "was crushed by a giant robot",
9 | "created_at": "2011-06-15",
10 | "a4": "is a lie",
11 | "sub_category": "culture",
12 | "category": "culture",
13 | "right_answer": "a4"
14 | }
15 | }
--------------------------------------------------------------------------------
/questions/img_tag.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "html",
3 | "category": "frontend",
4 | "nerd_level": 1,
5 | "text":"Which attribute can not be forgotten for the tag?",
6 | "a1": "title",
7 | "a2": "border",
8 | "a3": "alt",
9 | "a4": "width & height",
10 | "right_answer":"a3",
11 | "created_at": "2011-06-14",
12 | "creator": "Barto"
13 | }
14 | }
--------------------------------------------------------------------------------
/questions/kanji_converter.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 5,
5 | "text": "Which Ruby module can be used to convert Kanji into UTF-8",
6 | "a1": "NKF",
7 | "a2": "KFT",
8 | "a3": "PHP",
9 | "a4": "ROR",
10 | "right_answer": "a1",
11 | "created_at": "2011-06-06",
12 | "creator": "juliancheal"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/oreilly_Camel.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "category": "culture",
4 | "right_answer": "a1",
5 | "sub_category": "culture",
6 | "creator": "a2800276",
7 | "nerd_level": 1,
8 | "a2": "Insects",
9 | "text": "Which Oreilly Animal is associated with Perl?",
10 | "a3": "Cow",
11 | "a4": "Rat",
12 | "a1": "Camel",
13 | "created_at": "2012-03-10"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/rest_about.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "nerd_level": 1,
4 | "text": "Who developed REST?",
5 | "a1": "DHH",
6 | "a2": "Guido Van Rossum",
7 | "a3": "Peter Norvig",
8 | "a4": "Roy Fielding",
9 | "right_answer": "a4",
10 | "creator": "Steve Klabnik",
11 | "created_at": "2012-03-24",
12 | "sub_category": "api",
13 | "category": "programming"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/symbols.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "What are Ruby symbols?",
6 | "a1": "Hash Keys.",
7 | "a2": "Immutable strings.",
8 | "a3": "Ruby pointers.",
9 | "a4": "Ruby's Array index.",
10 | "right_answer": "a2",
11 | "created_at": "2011-06-07",
12 | "creator": "Paul"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/club_mate_caffeine.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "culture",
3 | "category": "culture",
4 | "nerd_level": 2,
5 | "text":"How much caffeine does Club Mate contain (per 100ml)?",
6 | "a1": "15 mg",
7 | "a2": "20 mg",
8 | "a3": "25 mg",
9 | "a4": "30 mg",
10 | "right_answer":"a2",
11 | "created_at": "2011-06-07",
12 | "creator": "jhilden"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/date_format_month.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 2,
5 | "text": "Which placeholder in date formatting renders the full month name",
6 | "a1": "%B",
7 | "a2": "%m",
8 | "a3": "%M",
9 | "a4": "%mm",
10 | "right_answer": "a1",
11 | "created_at": "2011-05-14",
12 | "creator": "Schorsch"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/oreilly_Cow.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "category": "culture",
4 | "right_answer": "a1",
5 | "sub_category": "culture",
6 | "creator": "a2800276",
7 | "nerd_level": 1,
8 | "a2": "Insects",
9 | "text": "Which Oreilly Animal is associated with C?",
10 | "a3": "Salmon",
11 | "a4": "Rhinocerous",
12 | "a1": "Cow",
13 | "created_at": "2012-03-10"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/oreilly_Salmon.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "category": "culture",
4 | "right_answer": "a1",
5 | "sub_category": "culture",
6 | "creator": "a2800276",
7 | "nerd_level": 1,
8 | "a2": "Rat",
9 | "text": "Which Oreilly Animal is associated with CSS?",
10 | "a3": "Insects",
11 | "a4": "Antelope",
12 | "a1": "Salmon",
13 | "created_at": "2012-03-10"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/spaceship_operator.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "sub_category": "ruby",
4 | "category": "backend",
5 | "right_answer": "a2",
6 | "nerd_level": 4,
7 | "text": "What is the spaceship operator?",
8 | "a1": "=||=",
9 | "a2": "<=>",
10 | "a3": "[] (two square brackets)",
11 | "a4": "(=)",
12 | "creator": "nbartlomiej",
13 | "created_at": "2011-06-14"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/active_record_base.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "From which class do all active record objects descend?",
6 | "a1": "MySql",
7 | "a2": "Object",
8 | "a3": "SuperClass",
9 | "a4": "Base",
10 | "right_answer": "a4",
11 | "created_at": "2011-05-24",
12 | "creator": "Schorsch"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/array_pipe.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "What's the output of [1, 2, 3] | [3, 4, 5]?",
6 | "a1": "[1, 2, 4, 5]",
7 | "a2": "[1, 2, 3, 3, 4, 5]",
8 | "a3": "[3]",
9 | "a4": "[1, 2, 3, 4, 5]",
10 | "right_answer": "a4",
11 | "created_at": "2011-06-07",
12 | "creator": "Paul"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/class_inheritance.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "From how many classes can a ruby class directly descend/inherit.",
6 | "a1": "three",
7 | "a2": "none",
8 | "a3": "two",
9 | "a4": "one",
10 | "right_answer": "a4",
11 | "created_at": "2011-05-24",
12 | "creator": "Schorsch"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/global_variable_character.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 2,
5 | "text":"What character is used to denote a Global Variable?",
6 | "a1": "VAR",
7 | "a2": "$var",
8 | "a3": "@@var",
9 | "a4": "@var",
10 | "right_answer":"a2",
11 | "created_at": "2011-06-06",
12 | "creator": "juliancheal"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/oreilly_Insects.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "category": "culture",
4 | "right_answer": "a1",
5 | "sub_category": "culture",
6 | "creator": "a2800276",
7 | "nerd_level": 1,
8 | "a2": "Javascript",
9 | "text": "Insects are associated with which O'Reilly books?",
10 | "a3": "BGP",
11 | "a4": "Perl",
12 | "a1": "Oracle",
13 | "created_at": "2012-03-10"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/oreilly_Rat.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "category": "culture",
4 | "right_answer": "a1",
5 | "sub_category": "culture",
6 | "creator": "a2800276",
7 | "nerd_level": 1,
8 | "a2": "Python",
9 | "text": "Which Oreilly Animal is on the cover of 'Learning Python'?",
10 | "a3": "Cow",
11 | "a4": "Octopus",
12 | "a1": "Rat",
13 | "created_at": "2012-03-10"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/HTCPCP.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "http",
3 | "category": "backend",
4 | "nerd_level": 5,
5 | "text":"What does the HTCPCP response 418 stand for?",
6 | "a1": "Not acceptable",
7 | "a2": "I'm a teapot",
8 | "a3": "HTCPCP? Nice try.",
9 | "a4": "Permanently moved.",
10 | "right_answer":"a2",
11 | "created_at": "2011-06-07",
12 | "creator": "Philipp"
13 | }
14 | }
--------------------------------------------------------------------------------
/questions/array_ampersand.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "What's the output of [1, 2, 3] & [3, 4, 5]?",
6 | "a1": "[1, 2, 4, 5]",
7 | "a2": "[1, 2, 3, 3, 4, 5]",
8 | "a3": "[3]",
9 | "a4": "[1, 2, 3, 4, 5]",
10 | "right_answer": "a3",
11 | "created_at": "2011-06-07",
12 | "creator": "Paul"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/equality.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text":"If val = 42 which of the following will produce false",
6 | "a1": "val.eql?(42.0)",
7 | "a2": "val.equal?(42)",
8 | "a3": "val == 42.0",
9 | "a4": "0 == 0",
10 | "right_answer":"a1",
11 | "created_at": "2011-06-06",
12 | "creator": "juliancheal"
13 | }
14 | }
--------------------------------------------------------------------------------
/questions/folders.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "rails",
3 | "category": "backend",
4 | "nerd_level": 2,
5 | "text":"How many top-level folders are created in a new Ruby on Rails 3.0 app e.g.: rails new blog ?",
6 | "a1": "10",
7 | "a2": "11",
8 | "a3": "12",
9 | "a4": "13",
10 | "right_answer":"a2",
11 | "created_at": "2011-06-07",
12 | "creator": "Jost"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/how_is_ruby_licensed.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "nerd_level": 1,
4 | "sub_category": "ruby",
5 | "category": "culture",
6 | "text": "How is Ruby licensed?",
7 | "a1": "Microsoft EULA",
8 | "a2": "PHP License",
9 | "a3": "Ruby/GPL License",
10 | "a4": "MIT",
11 | "right_answer": "a3",
12 | "created_at": "2011-09-08",
13 | "creator": "Michał Łomnicki"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/how_many_gems.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "culture",
4 | "nerd_level": 2,
5 | "text":"How many gems can you download at Rubygems.org on June 2011?",
6 | "a1": "ca 15000",
7 | "a2": "ca 20000",
8 | "a3": "ca 25000",
9 | "a4": "ca 30000",
10 | "right_answer":"a3",
11 | "created_at": "2011-06-07",
12 | "creator": "Jost"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/jquery_sizzle.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "javascript",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "What is the name of the css selector engine in jQuery.",
6 | "a1": "hot-css",
7 | "a2": "sizzle",
8 | "a3": "css-find",
9 | "a4": "drizzle",
10 | "right_answer": "a2",
11 | "created_at": "2011-05-16",
12 | "creator": "Schorsch"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/oreilly_Antelope.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "category": "culture",
4 | "right_answer": "a1",
5 | "sub_category": "culture",
6 | "creator": "a2800276",
7 | "nerd_level": 1,
8 | "a2": "C",
9 | "text": "The Antelope is associated with which O'Reilly books?",
10 | "a3": "Ethernet",
11 | "a4": "Javascript",
12 | "a1": "BGP",
13 | "created_at": "2012-03-10"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/oreilly_Octopus.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "category": "culture",
4 | "right_answer": "a1",
5 | "sub_category": "culture",
6 | "creator": "a2800276",
7 | "nerd_level": 1,
8 | "a2": "Pidgeon",
9 | "text": "Which Oreilly Animal is associated with Ethernet?",
10 | "a3": "Antelope",
11 | "a4": "Cow",
12 | "a1": "Octopus",
13 | "created_at": "2012-03-10"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/oreilly_Rhinocerous.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "category": "culture",
4 | "right_answer": "a1",
5 | "sub_category": "culture",
6 | "creator": "a2800276",
7 | "nerd_level": 1,
8 | "a2": "C",
9 | "text": "The Rhinocerous is associated with which O'Reilly books?",
10 | "a3": "Perl",
11 | "a4": "CSS",
12 | "a1": "Javascript",
13 | "created_at": "2012-03-10"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/pluralize_person.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "rails",
3 | "category": "backend",
4 | "nerd_level": 3,
5 | "text": "What's the output of pluralize(2, 'person') ?",
6 | "a1": "personperson",
7 | "a2": "2 persons",
8 | "a3": "2 people",
9 | "a4": "2 users",
10 | "right_answer": "a3",
11 | "created_at": "2011-06-07",
12 | "creator": "tmschndr"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/rails_inventor.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "culture",
3 | "category": "culture",
4 | "nerd_level": 1,
5 | "text":"Who invented Ruby on Rails?",
6 | "a1": "The Hanson Brothers",
7 | "a2": "David Heinemeier Hansson",
8 | "a3": "Han Solo",
9 | "a4": "Hans Wurst",
10 | "right_answer":"a2",
11 | "created_at": "2011-06-07",
12 | "creator": "jhilden"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/screen_image_resolution.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "graphics",
3 | "category": "design",
4 | "nerd_level": 1,
5 | "text": "Which image resolution should be used for screen layouts/images?",
6 | "a1": "150",
7 | "a2": "96",
8 | "a3": "100",
9 | "a4": "72",
10 | "right_answer": "a4",
11 | "created_at": "2011-05-24",
12 | "creator": "Schorsch"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/symbol_string_ids.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "Where is a.id == b.id?",
6 | "a1": "a = 'xy'; b = 'xy'",
7 | "a2": "a = :xy; b = :xy",
8 | "a3": "a = 'xy'; b = :xy",
9 | "a4": "a = :xy; b= 'xy'",
10 | "right_answer": "a2",
11 | "created_at": "2011-06-07",
12 | "creator": "Paul"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/chrome_v8.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "javascript",
3 | "category": "frontend",
4 | "nerd_level": 1,
5 | "text": "What is the name of the javascript engine in google chrome.",
6 | "a1": "V8",
7 | "a2": "SquirrelFish",
8 | "a3": "SpiderMonkey",
9 | "a4": "Rhine",
10 | "right_answer": "a1",
11 | "created_at": "2011-05-16",
12 | "creator": "Schorsch"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/constants.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 2,
5 | "text":"Which of the following will call the constant Bar from class Foo ?",
6 | "a1": "Foo.Bar()",
7 | "a2": "Foo.Bar",
8 | "a3": "Foo::Bar()",
9 | "a4": "Foo::Bar",
10 | "right_answer":"a4",
11 | "created_at": "2011-06-06",
12 | "creator": "juliancheal"
13 | }
14 | }
--------------------------------------------------------------------------------
/questions/falsy.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "Which of these are the only falsy entities in Ruby?",
6 | "a1": "0, false, and nil",
7 | "a2": "empty and false",
8 | "a3": "Only false",
9 | "a4": "false and nil",
10 | "right_answer": "a4",
11 | "created_at": "2011-06-07",
12 | "creator": "Paul"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/json.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "javascript",
3 | "category": "backend",
4 | "nerd_level": 4,
5 | "text":"Which one is correct JSON?",
6 | "a1": "\"name\" : 'Answer'",
7 | "a2": "\"name\" : \"Answer\"",
8 | "a3": "'name' : 'Answer'",
9 | "a4": "'name' : \"Answer\"",
10 | "right_answer":"a2",
11 | "created_at": "2011-06-07",
12 | "creator": "Philipp"
13 | }
14 | }
--------------------------------------------------------------------------------
/questions/monadsvsmonoids.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "nerd_level": 5,
4 | "text": "Are monads monoids?",
5 | "a1": "Yes",
6 | "a2": "No",
7 | "a3": "Sometimes yes, sometimes no",
8 | "a4": "Always both a1 and a2",
9 | "right_answer": "a1",
10 | "creator": "Steve Klabnik",
11 | "created_at": "2012-03-24",
12 | "sub_category": "haskell",
13 | "category": "programming"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/new_lambda_constructing_syntax.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 3,
5 | "text":"What is the new literal for constructing lambda's in ruby 1.9?",
6 | "a1": "l()",
7 | "a2": "new {}",
8 | "a3": "->",
9 | "a4": "<-",
10 | "right_answer": "a3",
11 | "created_at": "2011-06-06",
12 | "creator": "mkorfmann"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/oreilly_Pidgeon.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "category": "culture",
4 | "right_answer": "a1",
5 | "sub_category": "culture",
6 | "creator": "a2800276",
7 | "nerd_level": 1,
8 | "a2": "Camel",
9 | "text": "Which Oreilly Animal is associated with Lex & Yacc?",
10 | "a3": "Rhinocerous",
11 | "a4": "Octopus",
12 | "a1": "Pidgeon",
13 | "created_at": "2012-03-10"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/run_time_of_bst.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "algorithms",
3 | "category": "backend",
4 | "nerd_level": 2,
5 | "text": "What's the average run time of a search in a Binary Search Tree?",
6 | "a1": "O(n)",
7 | "a2": "O(n log n)",
8 | "a3": "O(log n)",
9 | "a4": "O(1)",
10 | "right_answer":"a3",
11 | "created_at": "2011-06-20",
12 | "creator": "eray"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/weakref.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 4,
5 | "text": "Which library lets Ruby garbage collect an object, that is still being referenced",
6 | "a1": "Weakref",
7 | "a2": "Ref",
8 | "a3": "Heap",
9 | "a4": "Malloc",
10 | "right_answer": "a1",
11 | "created_at": "2011-06-06",
12 | "creator": "juliancheal"
13 | }
14 | }
--------------------------------------------------------------------------------
/questions/all_ur_base.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "culture",
3 | "category": "culture",
4 | "nerd_level": 2,
5 | "text":"Know your meme: Who said 'All your base are belong to us' originally?",
6 | "a1": "Mechanic",
7 | "a2": "Captain",
8 | "a3": "Operator",
9 | "a4": "Cats",
10 | "right_answer":"a4",
11 | "created_at": "2011-06-07",
12 | "creator": "tmschndr"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/answer_to_everything.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "culture",
3 | "category": "culture",
4 | "nerd_level": 1,
5 | "text":"What is the answer to the ultimate question of life, the universe, and everything?",
6 | "a1": "0",
7 | "a2": "23",
8 | "a3": "42",
9 | "a4": "1337",
10 | "right_answer":"a3",
11 | "created_at": "2011-06-07",
12 | "creator": "jhilden"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/attribute_selectors.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "css",
3 | "category": "frontend",
4 | "nerd_level": 4,
5 | "text":"How would you style all links to PDF files via CSS?",
6 | "a1": "[href*=.pdf]",
7 | "a2": "[href?=.pdf]",
8 | "a3": "[href$=.pdf]",
9 | "a4": "[href^=.pdf]",
10 | "right_answer":"a3",
11 | "created_at": "2011-06-07",
12 | "creator": "Philipp"
13 | }
14 | }
--------------------------------------------------------------------------------
/questions/prefix_last_command.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "bash",
3 | "category": "backend",
4 | "nerd_level": 2,
5 | "text":"How to prefix the last command with for example 'sudo'?",
6 | "a1": "sudo ^",
7 | "a2": "sudo $LAST_COMMAND",
8 | "a3": "sudo !!",
9 | "a4": "su -",
10 | "right_answer": "a3",
11 | "created_at": "2011-06-06",
12 | "creator": "mkorfmann"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/unless_wtf.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text":"(1..4).reverse_each {|i| puts i unless i.equal?(i**i) } # Which of the following will not be printed?",
6 | "a1": "1",
7 | "a2": "2",
8 | "a3": "3",
9 | "a4": "4",
10 | "right_answer":"a1",
11 | "created_at": "2011-06-06",
12 | "creator": "juliancheal"
13 | }
14 | }
--------------------------------------------------------------------------------
/questions/who_created_jquery.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "category": "backend",
4 | "sub_category": "javascript",
5 | "nerd_level": 1,
6 | "text": "Who created jQuery?",
7 | "creator": "Marcin Bunsch",
8 | "created_at": "2011-06-12",
9 | "right_answer": "a2",
10 | "a1": "Douglas Crockford",
11 | "a2": "John Resig",
12 | "a3": "Sam Stephenson",
13 | "a4": "David Chelimsky"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/2_seconds.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "nerd_level": 1,
4 | "text": "In Rails, what is the class of an object created with this statement: 2.seconds",
5 | "a1": "Duration",
6 | "creator": "Mike Poltyn",
7 | "a2": "DateTime",
8 | "a3": "Fixnum",
9 | "created_at": "2011-06-15",
10 | "a4": "Time",
11 | "sub_category": "ruby",
12 | "category": "backend",
13 | "right_answer": "a3"
14 | }
15 | }
--------------------------------------------------------------------------------
/questions/fastest_sorting_algorithm.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "algorithms",
3 | "category": "backend",
4 | "nerd_level": 3,
5 | "text":"Which one is the fastest sorting algorithm?",
6 | "a1": "Selection Sort",
7 | "a2": "Quick Sort",
8 | "a3": "Merge Sort",
9 | "a4": "All the same",
10 | "right_answer":"a3",
11 | "created_at": "2011-06-20",
12 | "creator": "eray"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/invited-php.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "php",
3 | "category": "culture",
4 | "nerd_level": 1,
5 | "text":"When php was invented?",
6 | "a1": "2001",
7 | "a2": "2003",
8 | "a3": "1995",
9 | "a4": "1999",
10 | "right_answer":"a3",
11 | "created_at": "2011-07-16",
12 | "creator": "Jan Kus",
13 | "creator_github": "koos",
14 | "creator_twitter": "koos"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/questions/media.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "css",
3 | "category": "frontend",
4 | "nerd_level": 3,
5 | "text":"What would you use to write device- or screen-size specific css?",
6 | "a1": "Javascript",
7 | "a2": "black magic",
8 | "a3": "@media queries",
9 | "a4": "Application Scaling",
10 | "right_answer":"a3",
11 | "created_at": "2011-06-07",
12 | "creator": "Philipp"
13 | }
14 | }
--------------------------------------------------------------------------------
/questions/mixins_are_what.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "sub_category": "ruby",
4 | "category": "backend",
5 | "right_answer": "a1",
6 | "nerd_level": 3,
7 | "text": "Mixins are an example of what design pattern?",
8 | "a1": "inheritance",
9 | "a2": "template method",
10 | "a3": "composition",
11 | "a4": "singleton",
12 | "creator": "nbartlomiej",
13 | "created_at": "2011-06-14"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/new_lambda_calling_syntax.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 3,
5 | "text":"How to call a lambda, assigned to a variable named foo in ruby 1.9?",
6 | "a1": "foo()",
7 | "a2": "foo.()",
8 | "a3": "->foo",
9 | "a4": "call foo",
10 | "right_answer": "a2",
11 | "created_at": "2011-06-06",
12 | "creator": "mkorfmann"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/nyan.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "culture",
3 | "category": "culture",
4 | "nerd_level": 1,
5 | "text": "Nyan…",
6 | "a1": "dog!",
7 | "a2": "cat!",
8 | "a3": "mouse!",
9 | "a4": "unicorn!",
10 | "right_answer": "a2",
11 | "created_at": "2012-04-29",
12 | "creator": "Felix @thegcat",
13 | "creator_github": "thegcat",
14 | "creator_twitter": "thegcat"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/questions/string_v_strings.h:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "sub_category": "C",
4 | "category": "programming",
5 | "created_at": "2012-03-15",
6 | "right_answer": "a1",
7 | "creator": "a2800276",
8 | "nerd_level": 1,
9 | "text": "Which of the following functions is NOT defined in `string.h`",
10 | "a1": "strncasecmp",
11 | "a2": "strncmp",
12 | "a3": "strncat",
13 | "a4": "memccpy"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/what_do_array.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 2,
5 | "text":"What is the result of [1,2,3] * 3?",
6 | "a1": "[[1,2,3], [1,2,3], [1,2,3]]",
7 | "a2": "[1, 2, 3, 1, 2, 3, 1, 2, 3]",
8 | "a3": "[3, 6, 9]",
9 | "a4": "[1, 8, 27]",
10 | "right_answer":"a2",
11 | "created_at": "2011-06-07",
12 | "creator": "Jost"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/binary.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 3,
5 | "text":"what is the result of 11 ^ 3",
6 | "a1": "7",
7 | "a2": "8",
8 | "a3": "9",
9 | "a4": "14",
10 | "right_answer":"a2",
11 | "created_at": "2012-04-28",
12 | "creator": "Daniel Harrington",
13 | "creator_github": "rubiii",
14 | "creator_twitter": "rubiii"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/questions/method_used_for_comparisons.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "nerd_level": 2,
4 | "sub_category": "ruby",
5 | "category": "backend",
6 | "text": "Which method is used for comparisions in case ... when statement?",
7 | "a1": "==",
8 | "a2": "===",
9 | "a3": "equal?",
10 | "a4": "=~",
11 | "right_answer": "a2",
12 | "created_at": "2011-09-08",
13 | "creator": "Michał Łomnicki"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/what_s_typeof_null.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "text": "What's typeof null?",
4 | "creator": "Jörn Zaefferer",
5 | "a1": "'object'",
6 | "a2": "'instance'",
7 | "a3": "'class'",
8 | "a4": "'william shatner'",
9 | "right_answer": "a1",
10 | "created_at": "2011-06-13",
11 | "sub_category": "javascript",
12 | "category": "backend",
13 | "right_answer": "a1",
14 | "nerd_level": 1
15 | }
16 | }
--------------------------------------------------------------------------------
/questions/absolute_superclass_1.8.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "ruby",
3 | "category": "backend",
4 | "nerd_level": 1,
5 | "text": "What is the absolute superclass, the mother of all classes, in Ruby 1.8?",
6 | "a1": "MotherClass",
7 | "a2": "Object",
8 | "a3": "Lilith",
9 | "a4": "Base-Object",
10 | "right_answer": "a2",
11 | "created_at": "2011-06-07",
12 | "creator": "Paul"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/questions/array_all_but_the_first.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "nerd_level": 2,
4 | "text": "How to get all but the first element of an array.",
5 | "a1": "ary.first",
6 | "a2": "ary[1..-1]",
7 | "a3": "ary.size-1",
8 | "a4": "ary[1...-1]",
9 | "sub_category": "ruby",
10 | "category": "backend",
11 | "right_answer": "a2",
12 | "creator": "Georg Leciejewski",
13 | "created_at": "2011-06-23"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/array_all_but_the_last.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "nerd_level": 2,
4 | "text": "How to get all but the last element of an array.",
5 | "a1": "ary[0..-1]",
6 | "a2": "ary.pop",
7 | "a3": "ary.size-1",
8 | "a4": "ary[0...-1]",
9 | "category": "backend",
10 | "sub_category": "ruby",
11 | "right_answer": "a4",
12 | "creator": "Georg Leciejewski",
13 | "created_at": "2011-06-20"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/laziness.json:
--------------------------------------------------------------------------------
1 | {
2 | "question": {
3 | "nerd_level": 3,
4 | "text": "How many elements are in this list: list <- [1..] ?",
5 | "a1": "Zero",
6 | "a2": "Infinity",
7 | "a3": "As many as you ask it for",
8 | "a4": "a1 and a3",
9 | "right_answer": "a4",
10 | "creator": "Steve Klabnik",
11 | "created_at": "2012-03-24",
12 | "sub_category": "haskell",
13 | "category": "programming"
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/questions/optional_html_tags.json:
--------------------------------------------------------------------------------
1 | { "question" : {
2 | "sub_category": "html",
3 | "category": "frontend",
4 | "nerd_level": 2,
5 | "text":"Which one of these tags is not specified as optional according to the HTML 4.01 Strict DTD?",
6 | "a1": "",
7 | "a2": "",
8 | "a3": "
<%= auto_link(text) %>
", 7 | "a2": "<%= simple_format(text) %>
", 8 | "a3": "<%= highlight(text, word) %>
", 9 | "a4": "<%= truncate(text) %>
", 10 | "right_answer": "a2", 11 | "created_at": "2011-06-07", 12 | "creator": "tmschndr" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/what_is_a_mixin.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 1, 4 | "sub_category": "ruby", 5 | "category": "backend", 6 | "text": "What is a mixin?", 7 | "a1": "A nickname of a Ruby creator", 8 | "a2": "A successor of HTTP protocol", 9 | "a3": "An implementation which may be shared across multiple classes", 10 | "a4": "A class", 11 | "right_answer": "a3", 12 | "creator": "Michał Łomnicki", 13 | "created_at": "2011-09-08" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/who_is_the_first_character_to_b.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "culture", 4 | "nerd_level": 2, 5 | "text": "Who is the first character to be chased by Mad Max in the first movie?", 6 | "a1": "Johnny", 7 | "a2": "Nightcrawler", 8 | "a3": "Toecutter", 9 | "a4": "Nightrider", 10 | "creator": "Mike Poltyn", 11 | "created_at": "2011-06-14", 12 | "sub_category": "culture", 13 | "right_answer": "a4", 14 | "id": "" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/garbarge_collector_in_19.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 3, 4 | "text": "Which garbage collecting technique is used by Ruby1.9/YARV?", 5 | "a1": "Reference counting", 6 | "a2": "Generational GC", 7 | "a3": "Mark and sweep", 8 | "a4": "Memory is managed by a programmer", 9 | "right_answer": "a3", 10 | "sub_category": "ruby", 11 | "category": "backend", 12 | "creator": "Michał Łomnicki", 13 | "created_at": "2011-09-08" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/how_do_you_specify_html5_doctyp.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "frontend", 4 | "sub_category": "html", 5 | "nerd_level": 2, 6 | "text": "How do you specify HTML5 doctype?", 7 | "creator": "Philipp Brumm", 8 | "created_at": "2011-06-14", 9 | "right_answer": "a1", 10 | "a1": "", 11 | "a2": "", 12 | "a3": "", 13 | "a4": "" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/rack.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 1, 5 | "text": "What is rack?", 6 | "a1": "Boobs!", 7 | "a2": "A webserver interface", 8 | "a3": "A storage interface", 9 | "a4": "A linked list implementation", 10 | "right_answer": "a2", 11 | "created_at": "2012-04-29", 12 | "creator": "Felix @thegcat", 13 | "creator_github": "thegcat", 14 | "creator_twitter": "thegcat" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/ruby_parser.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 4, 5 | "text":"foo = :nups if false; foo", 6 | "a1": "foo is :nups", 7 | "a2": "foo is undefined", 8 | "a3": "raises a NameError", 9 | "a4": "foo is nil", 10 | "right_answer":"a4", 11 | "created_at": "2012-04-28", 12 | "creator": "Daniel Harrington", 13 | "creator_github": "rubiii", 14 | "creator_twitter": "rubiii" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/string_object_coercion_internals.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "javascript", 3 | "category": "backend", 4 | "nerd_level": 4, 5 | "text": "Which of these methods is an object run through first on type coercion with a string?", 6 | "a1": "toString", 7 | "a2": "toObject", 8 | "a3": "toPrimitive", 9 | "a4": "valueOf", 10 | "right_answer": "a3", 11 | "created_at": "2011-06-19", 12 | "creator": "Christoph Werner @gonsfx" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/trace_something_in_as3.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "flash", 3 | "category": "backend", 4 | "nerd_level": 1, 5 | "text":"Which action script 3 command will print 'hello world' in the flash console?", 6 | "a1": "print('hello world')", 7 | "a2": "puts => 'hello world'", 8 | "a3": "'hello world'.print", 9 | "a4": "trace('hello world')", 10 | "right_answer":"a4", 11 | "created_at": "2011-06-08", 12 | "creator": "StephanP" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/what_does_gil_stands_for.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 2, 4 | "sub_category": "ruby", 5 | "category": "backend", 6 | "text": "What does GIL stands for?", 7 | "a1": "The name of a Ruby dialect for embedded devices", 8 | "a2": "Game Illegaly Loaded", 9 | "a3": "Global Interpreter Lock", 10 | "a4": "Got Infinitive Length", 11 | "right_answer": "a3", 12 | "creator": "Michał Łomnicki", 13 | "created_at": "2011-09-08" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/asset_pipeline_in_rails_3.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "rails", 3 | "category": "backend", 4 | "nerd_level": 3, 5 | "text": "Rails 3.1 introduced:", 6 | "a1": "The asset pipeline", 7 | "a2": "The asset derrick", 8 | "a3": "DataMapper", 9 | "a4": "Sinatra", 10 | "right_answer": "a1", 11 | "created_at": "2012-04-29", 12 | "creator": "Felix @thegcat", 13 | "creator_github": "thegcat", 14 | "creator_twitter": "thegcat" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/hash_with_indifferent_access.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 1, 5 | "text": "Which hash can be accessed by string and symbolized keys", 6 | "a1": "Any ruby hash", 7 | "a2": "Hash with symbolized strings", 8 | "a3": "Hash with indifferent access", 9 | "a4": "Hash with stringified symbols", 10 | "right_answer":"a3", 11 | "created_at": "2011-04-03", 12 | "creator": "Schorsch" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/haskell_name.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "haskell", 3 | "category": "programming", 4 | "nerd_level": 2, 5 | "text":"Haskell is named after?", 6 | "a1": "Haskell Carlson", 7 | "a2": "General Haskell", 8 | "a3": "Haskell Curry", 9 | "a4": "H.A. Skell", 10 | "right_answer":"a3", 11 | "created_at": "2012-04-29", 12 | "creator": "Lucas Dohmen", 13 | "creator_github": "moonglum", 14 | "creator_twitter": "moonbeamlabs" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/square_numbers_in_list.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "python", 3 | "category": "backend", 4 | "nerd_level": 2, 5 | "text": "Which one of these statements squares all the numbers in the list l?", 6 | "a1": "l.sq_each()", 7 | "a2": "[l[i]**2 for i in range(len(l))]", 8 | "a3": "[n** * for n in l]", 9 | "a4": "lambda l: [n**n for n in l]", 10 | "right_answer": "a2", 11 | "created_at": "2011-09-15", 12 | "creator": "kragniz" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/kernel.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 2, 5 | "text": "What is Kernel?", 6 | "a1": "The thing holding your OS together, sometimes a bit panicky.", 7 | "a2": "The parent class of Base-Object, as of Ruby 1.9.", 8 | "a3": "A module mixed into Object.", 9 | "a4": "A module mixed into BasicObject.", 10 | "right_answer": "a3", 11 | "created_at": "2011-06-07", 12 | "creator": "Paul" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/who_created_python.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "backend", 4 | "sub_category": "python", 5 | "right_answer": "a2", 6 | "nerd_level": 1, 7 | "text": "Who created Python?", 8 | "a1": "Vinton Cerf", 9 | "a2": "Guido van Rossum", 10 | "a3": "Dennis Ritchie", 11 | "a4": "Ruben Boersma", 12 | "creator": "Marian Steinbach", 13 | "creator_github": "marians", 14 | "creator_twitter": "MarianSteinbach", 15 | "created_at": "2012-03-09" 16 | } 17 | } -------------------------------------------------------------------------------- /questions/whos_mustache_is_awesome.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "culture", 4 | "nerd_level": 4, 5 | "text": "Who has an awesome mustache?", 6 | "a1": "Sven Fuchs", 7 | "a2": "Corey Haines", 8 | "a3": "Aaron Patterson", 9 | "a4": "Monty Burns", 10 | "right_answer": "a1", 11 | "created_at": "2012-04-29", 12 | "creator": "Felix @thegcat", 13 | "creator_github": "thegcat", 14 | "creator_twitter": "thegcat" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/array_splat.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 1, 5 | "text": "What is the correct way to pass [arg1, arg2] as an argument to User.send(:my_method)?", 6 | "a1": "User.send(:my_method, a)", 7 | "a2": "User.send(:my_method, &a)", 8 | "a3": "User.send(:my_method, @a)", 9 | "a4": "User.send(:my_method, *a)", 10 | "right_answer": "a4", 11 | "created_at": "2011-06-07", 12 | "creator": "Paul" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/how_to_delete_variable_python.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "backend", 4 | "sub_category": "python", 5 | "right_answer": "a3", 6 | "nerd_level": 1, 7 | "text": "How to remove variable a from memory?", 8 | "a1": "a = None", 9 | "a2": "unset a", 10 | "a3": "del a", 11 | "a4": "a.unset()", 12 | "creator": "Marian Steinbach", 13 | "creator_github": "marians", 14 | "creator_twitter": "MarianSteinbach", 15 | "created_at": "2012-03-09" 16 | } 17 | } -------------------------------------------------------------------------------- /questions/kernel-sprintf-2.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 3, 5 | "text": "What's the output of '%-020s' % 'dude is here'?", 6 | "a1": "dude is here", 7 | "a2": "dude is here ", 8 | "a3": " dude is here", 9 | "a4": "dude is", 10 | "right_answer": "a2", 11 | "created_at": "2011-06-08", 12 | "creator": "Jan Kus", 13 | "creator_github": "koos", 14 | "creator_twitter": "koos" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/sort_algorithm_dances.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "culture", 3 | "category": "culture", 4 | "nerd_level": 5, 5 | "text": "The sort algorithms as folk dances were recorded in:", 6 | "a1": "Hungary", 7 | "a2": "Romania", 8 | "a3": "Bulgaria", 9 | "a4": "Moldova", 10 | "right_answer": "a2", 11 | "created_at": "2012-04-30", 12 | "creator": "Felix @thegcat", 13 | "creator_github": "thegcat", 14 | "creator_twitter": "thegcat" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/bindtypesignature.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 5, 4 | "text": "What is the type signature of '>>='?", 5 | "a1": "(>>=) :: m a -> (a -> b) -> b", 6 | "a2": "(>>=) :: m a -> (a -> m b) -> m", 7 | "a3": "(>>=) :: m a -> (b -> m b) -> m b", 8 | "a4": "(>>=) :: m a -> (a -> m b) -> m b", 9 | "right_answer": "a4", 10 | "creator": "Steve Klabnik", 11 | "created_at": "2012-03-24", 12 | "sub_category": "haskell", 13 | "category": "programming" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/gorby.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "culture", 4 | "nerd_level": 5, 5 | "text": "Gorbachev Thunderhorse is", 6 | "a1": "@tendermeat's dog", 7 | "a2": "@tenderlove's cat", 8 | "a3": "a USSR rock idol", 9 | "a4": "a lightning fast string parser", 10 | "right_answer": "a2", 11 | "created_at": "2012-04-29", 12 | "creator": "Felix @thegcat", 13 | "creator_github": "thegcat", 14 | "creator_twitter": "thegcat" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/last_cmd_sub.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "bash", 3 | "category": "backend", 4 | "nerd_level": 2, 5 | "text":"How to call the last command after substituting some text?", 6 | "a1": "^old_substring^new_substring^", 7 | "a2": "/old_substring/new_substring/", 8 | "a3": "sbl 'old_substring/new_substring'", 9 | "a4": "subl 'old_substring/new_substring'", 10 | "right_answer": "a1", 11 | "created_at": "2011-06-06", 12 | "creator": "mkorfmann" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/name_of_python_module_rep.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "backend", 4 | "sub_category": "python", 5 | "right_answer": "a3", 6 | "nerd_level": 2, 7 | "text": "What is the correct name of the Python module repository?", 8 | "a1": "PypI", 9 | "a2": "PIPI", 10 | "a3": "PyPI", 11 | "a4": "PiPy", 12 | "creator": "Marian Steinbach", 13 | "creator_github": "marians", 14 | "creator_twitter": "MarianSteinbach", 15 | "created_at": "2012-03-09" 16 | } 17 | } -------------------------------------------------------------------------------- /questions/position_property.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "sub_category": "css", 4 | "category": "frontend", 5 | "nerd_level": 2, 6 | "text": "What is the right property for attribute 'position' to have the element always in the relative position to the browser frames even if page is scrolled?", 7 | "a1": "stable", 8 | "a2": "fixed", 9 | "a3": "absolute", 10 | "a4": "relative", 11 | "right_answer":"a2", 12 | "created_at": "2011-06-08", 13 | "creator": "Barto" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/r_correlation.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "category": "programming", 3 | "sub_category": "data", 4 | "nerd_level": 2, 5 | "text":"How can you compute (in R) the correlation coefficient of the vectors A and B?", 6 | "a1": "corr(A,B);", 7 | "a2": "cor(A+B)", 8 | "a3": "cor(A,B)", 9 | "a4": "cor(A:B)", 10 | "right_answer":"a3", 11 | "created_at": "2012-04-29", 12 | "creator": "DonSchado", 13 | "creator_twitter": "donschado", 14 | "creator_github": "donschado" 15 | } 16 | } -------------------------------------------------------------------------------- /questions/sinatra.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 2, 5 | "text": "Who is the current maintainer of Sinatra?", 6 | "a1": "Konstantin Haase", 7 | "a2": "Werner von Schmidt", 8 | "a3": "Guido van Rossum", 9 | "a4": "Aaron Petersen", 10 | "right_answer": "a1", 11 | "created_at": "2012-04-29", 12 | "creator": "Felix @thegcat", 13 | "creator_github": "thegcat", 14 | "creator_twitter": "thegcat" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/all_the.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "category": "culture", 3 | "sub_category": "culture", 4 | "nerd_level": 2, 5 | "text":"Which meme picture is appropriate for FIX ALL THE BUGS?", 6 | "a1": "Success Kid", 7 | "a2": "Trollface", 8 | "a3": "Stick Figure with Broom", 9 | "a4": "Fry from Futurama", 10 | "right_answer":"a3", 11 | "created_at": "2011-06-07", 12 | "creator": "moonglum", 13 | "creator_twitter": "moonbeamlabs", 14 | "creator_github": "moonglum" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/fun_with_brackets.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "javascript", 3 | "category": "backend", 4 | "nerd_level": 5, 5 | "text": "Which of this expressions has value 11?", 6 | "a1": "+[++[+[]][+[]]+[]+[++[+[]][+[]]]]", 7 | "a2": "+[++[+[]][+[]]+[]+[]+[]]", 8 | "a3": "[[]+[]+[][+[]]][+[]][++[+[]][+[]]]", 9 | "a4": "+[++[+[]][+[]]+[]+[++[+[]][[]]]]", 10 | "right_answer": "a1", 11 | "created_at": "2011-06-19", 12 | "creator": "Christoph Werner @gonsfx" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/how_many_pypi_packages.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "backend", 4 | "sub_category": "python", 5 | "right_answer": "a4", 6 | "nerd_level": 2, 7 | "text": "How many packages are there in the PyPI repository?", 8 | "a1": "About 5K", 9 | "a2": "About 8K", 10 | "a3": "About 14K", 11 | "a4": "About 20K", 12 | "creator": "Marian Steinbach", 13 | "creator_github": "marians", 14 | "creator_twitter": "MarianSteinbach", 15 | "created_at": "2012-03-09" 16 | } 17 | } -------------------------------------------------------------------------------- /questions/monoids.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 5, 4 | "text": "What is a monoid?", 5 | "a1": "A burrito", 6 | "a2": "A trigometric structure with bind and mplus", 7 | "a3": "An algebraic structure with a single associative binary operation & an identity element.", 8 | "a4": "A way of doing I/O.", 9 | "right_answer": "a3", 10 | "creator": "Steve Klabnik", 11 | "created_at": "2012-03-24", 12 | "sub_category": "haskell", 13 | "category": "programming" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/which_is_not_a_python_framework.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "backend", 4 | "sub_category": "python", 5 | "right_answer": "a1", 6 | "nerd_level": 1, 7 | "text": "Which one is not a popular Python web framework?", 8 | "a1": "Gringo", 9 | "a2": "CherryPy", 10 | "a3": "web.py", 11 | "a4": "Django", 12 | "creator": "Marian Steinbach", 13 | "creator_github": "marians", 14 | "creator_twitter": "MarianSteinbach", 15 | "created_at": "2012-03-09" 16 | } 17 | } -------------------------------------------------------------------------------- /questions/who_invented_node_js.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "backend", 4 | "sub_category": "javascript", 5 | "right_answer": "a2", 6 | "nerd_level": 2, 7 | "text": "Who invented node.js?", 8 | "a1": "Salvatore Sanfilippo", 9 | "a2": "Ryan Dahl", 10 | "a3": "David Heinemeier-Hansson", 11 | "a4": "John Resig", 12 | "creator": "Sascha Gehlich", 13 | "creator_github": "saschagehlich", 14 | "creator_twitter": "rattazong", 15 | "created_at": "2012-01-15" 16 | } 17 | } -------------------------------------------------------------------------------- /questions/private_method_in_ruby.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 4, 4 | "sub_category": "ruby", 5 | "category": "backend", 6 | "text": "A private method in Ruby ...", 7 | "a1": "May be called only on explicit self receiver", 8 | "a2": "May be called on any receiver", 9 | "a3": "May be called only on implicit self receiver", 10 | "a4": "May not be called at all", 11 | "right_answer": "a3", 12 | "created_at": "2011-09-08", 13 | "creator": "Michał Łomnicki" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/emails.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "regex", 3 | "category": "backend", 4 | "nerd_level": 5, 5 | "text": "Which one works as email validator?", 6 | "a1": "/[\\w.!\\$%+-].@[\\w-]+(?\\.[\\w-]+)+/", 7 | "a2": "/[\\w.!#\\$%+-]+@[\\w-]+(?:\\.[\\w-]+)+/", 8 | "a3": "/[\\w.+!#\\$%+]+@[\\w-]+(?\\.[\\w-]+)+/", 9 | "a4": "None, you shouldn't validate emails with a regular expression.", 10 | "right_answer": "a4", 11 | "created_at": "2011-06-07", 12 | "creator": "tmschndr" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/how_to_indent_python.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "backend", 4 | "sub_category": "python", 5 | "right_answer": "a3", 6 | "nerd_level": 2, 7 | "text": "How should code be indented according to PEP 8?", 8 | "a1": "One tab", 9 | "a2": "Two spaces", 10 | "a3": "Four spaces", 11 | "a4": "Either one tab or four spaces", 12 | "creator": "Marian Steinbach", 13 | "creator_github": "marians", 14 | "creator_twitter": "MarianSteinbach", 15 | "created_at": "2012-03-09" 16 | } 17 | } -------------------------------------------------------------------------------- /questions/the_difference_between_and_operators.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 3, 4 | "text": "What is the difference between && and \"and\" operators?", 5 | "a1": "They are exactly the same", 6 | "a2": "\"and\" operator is added by Rails", 7 | "a3": "&& has a higher precedence", 8 | "a4": "&& is deprecated in ruby 1.9", 9 | "right_answer": "a3", 10 | "creator": "Michał Łomnicki", 11 | "created_at": "2011-09-08", 12 | "sub_category": "ruby", 13 | "category": "backend" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/list_comprehension_python.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "backend", 4 | "sub_category": "python", 5 | "right_answer": "a3", 6 | "nerd_level": 1, 7 | "text": "Which one is valid list comprehension?", 8 | "a1": "[while n in foo: foo[n]]", 9 | "a2": "[n while n in foo]", 10 | "a3": "[n for n in foo]", 11 | "a4": "[n for foo]", 12 | "creator": "Marian Steinbach", 13 | "creator_github": "marians", 14 | "creator_twitter": "MarianSteinbach", 15 | "created_at": "2012-03-09" 16 | } 17 | } -------------------------------------------------------------------------------- /questions/which_version_of_ecmascript_doe.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "frontend", 4 | "sub_category": "javascript", 5 | "right_answer": "a2", 6 | "nerd_level": 3, 7 | "text": "Which version of ECMAScript does the V8 engine use?", 8 | "a1": "ECMAScript 3", 9 | "a2": "ECMAScript 5.1", 10 | "a3": "ECMAScript 5", 11 | "a4": "ECMAScript 4", 12 | "creator": "Sascha Gehlich", 13 | "creator_github": "saschagehlich", 14 | "creator_twitter": "rattazong", 15 | "created_at": "2012-01-15" 16 | } 17 | } -------------------------------------------------------------------------------- /questions/new_database.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "couchdb", 3 | "category": "backend", 4 | "nerd_level": 2, 5 | "text":"How to create a couchdb collection called 'nerds' with curl", 6 | "a1": "curl -X PUT http://localhost:5984/nerds", 7 | "a2": "curl -X HEAD http://localhost:5984/nerds", 8 | "a3": "curl -X GET http://localhost:5984/nerds", 9 | "a4": "curl -X DELETE http://localhost:5984/nerds", 10 | "right_answer": "a1", 11 | "created_at": "2011-06-21", 12 | "creator": "kangguru" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/what_did_matz_say_about_ruby.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 1, 4 | "sub_category": "ruby", 5 | "category": "backend", 6 | "text": "What did Matz say about Ruby?", 7 | "a1": "It should be abandoned because PHP 5.3 is damn good", 8 | "a2": "It was created to implement JAVA", 9 | "a3": "It was created to upset Bill Gates", 10 | "a4": "It was created for programmer productivity and fun", 11 | "right_answer": "a4", 12 | "created_at": "2011-09-08", 13 | "creator": "Michał Łomnicki" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/prime.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "regex", 3 | "category": "backend", 4 | "nerd_level": 5, 5 | "text": "This regex is normally used to determine if a number is not prime: /^1?$|^(1+?)\\1+$/, but it is broken, how to fix it? The number has the format /1{number}/.", 6 | "a1": "/^1?$|^(11+?)\\1+$/", 7 | "a2": "/^1?$|^(21+?)\\1+$/", 8 | "a3": "/^1?$|^(31+?)\\1+$/", 9 | "a4": "/^1?$|^(41+?)\\1+$/", 10 | "right_answer": "a1", 11 | "created_at": "2011-06-07", 12 | "creator": "mkorfmann" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/what_does_negate_regexp_operator_do.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 1, 4 | "text": "What does !~ operator do?", 5 | "a1": "Performs bitwise XOR on its arguments", 6 | "a2": "Returns the index of the first character matching the regexp", 7 | "a3": "Returns false if the arguments match", 8 | "a4": "Returns true if the arguments match", 9 | "right_answer": "a3", 10 | "created_at": "2011-09-08", 11 | "sub_category": "ruby", 12 | "category": "backend", 13 | "creator": "Michał Łomnicki" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/about_haskell.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "haskell", 3 | "category": "programming", 4 | "nerd_level": 1, 5 | "text":"What is Haskell?", 6 | "a1": "An object oriented language", 7 | "a2": "A functional programming language", 8 | "a3": "A logical programming language", 9 | "a4": "An imperative programming language", 10 | "right_answer":"a2", 11 | "created_at": "2012-04-29", 12 | "creator": "Lucas Dohmen", 13 | "creator_github": "moonglum", 14 | "creator_twitter": "moonbeamlabs" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/protected_method_in_ruby.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 2, 4 | "sub_category": "ruby", 5 | "category": "backend", 6 | "text": "A protected method in ruby ...", 7 | "a1": "is just a syntactic sugar", 8 | "a2": "may be called only on an explicit self receiver", 9 | "a3": "may be called only on a receiver of the same class as self", 10 | "a4": "may be called only on an implicit self receiver", 11 | "right_answer": "a3", 12 | "created_at": "2011-09-08", 13 | "creator": "Michał Łomnicki" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/r_vector.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "category": "programming", 3 | "sub_category": "data", 4 | "nerd_level": 1, 5 | "text":"Do you speak R? What's the result of 'x <- c(1,2,3)'?", 6 | "a1": "nothing... the syntax is not valid", 7 | "a2": "three variables from x1 to x3", 8 | "a3": "x = 6 (the sum of the digits)", 9 | "a4": "creates a vector x", 10 | "right_answer":"a4", 11 | "created_at": "2012-04-29", 12 | "creator": "DonSchado", 13 | "creator_twitter": "donschado", 14 | "creator_github": "donschado" 15 | } 16 | } -------------------------------------------------------------------------------- /questions/ruby_goto.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 3, 5 | "text": "Does ruby support goto statements?", 6 | "a1": "No", 7 | "a2": "Only on Christmas Days with a full moon", 8 | "a3": "Only on YARV compiled with the joke option set", 9 | "a4": "lolwhat goto? gtfo now, kthxbye!", 10 | "right_answer": "a3", 11 | "created_at": "2012-04-29", 12 | "creator": "Felix @thegcat", 13 | "creator_github": "thegcat", 14 | "creator_twitter": "thegcat" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/valid_function_expression.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "javascript", 3 | "category": "backend", 4 | "nerd_level": 4, 5 | "text": "Which of these Immediately-Invoked Function Expressions won't give you a NERD-ALERT?", 6 | "a1": "~function(){ alert('NERD'); }();", 7 | "a2": "0, function(){ alert('NERD'); }();", 8 | "a3": ";function(){ alert('NERD'); }();", 9 | "a4": "true && function(){ alert('NERD'); }();", 10 | "right_answer": "a3", 11 | "created_at": "2011-08-14", 12 | "creator": "Marco" 13 | } 14 | } -------------------------------------------------------------------------------- /questions/fptr.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "sub_category": "C", 4 | "category": "programming", 5 | "created_at": "2012-03-18", 6 | "right_answer": "a1", 7 | "creator": "a2800276", 8 | "nerd_level": 1, 9 | "text": "Which of the following is a pointer to a function that returns an int and may be passed functions like `strlen` as an argument ?", 10 | "a1": "int (*bla)(size_t(*blub)(const char *s));", 11 | "a2": "fptr bl = __fptr__(int, strlen);", 12 | "a3": "int (fptr)(*strlen f);", 13 | "a4": "int *ftpr = &strlen" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/how_do_you_use_multiple_box_sha.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "frontend", 4 | "sub_category": "css", 5 | "nerd_level": 1, 6 | "text": "How do you use multiple box-shadows?", 7 | "creator": "Philipp Brumm", 8 | "created_at": "2011-06-14", 9 | "right_answer": "a3", 10 | "a1": "Specify multiple box-shadow declarations with a space", 11 | "a2": "Seperate multiple shadow values with a space", 12 | "a3": "Seperate multiple shadow values with a comma", 13 | "a4": "Specify multiple box-shadow declarations" 14 | } 15 | } -------------------------------------------------------------------------------- /questions/ook_ook.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "sub_category": "culture", 4 | "category": "culture", 5 | "nerd_level": 5, 6 | "text": "Ook. Ook?", 7 | "creator": "Philipp Brumm", 8 | "created_at": "2011-06-14", 9 | "right_answer": "a4", 10 | "a1": "Increment the array cell pointed at by the Memory Pointer.", 11 | "a2": "Move to the matching Ook! if the value in Memory Pointer is non-zero.", 12 | "a3": "Move the Memory Pointer to the previous array cell.", 13 | "a4": "Move the Memory Pointer to the next array cell." 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/background_image.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "sub_category": "css", 4 | "category": "frontend", 5 | "nerd_level": 3, 6 | "text": "Why it's better to use