├── .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": "", 9 | "a4": "<body>", 10 | "right_answer":"a3", 11 | "created_at": "2011-08-14", 12 | "creator": "Marco" 13 | } 14 | } -------------------------------------------------------------------------------- /questions/png.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "graphics", 3 | "category": "design", 4 | "nerd_level": 1, 5 | "text": "What are the advantages of PNGs?", 6 | "a1": "alpha-channel and lossless compression", 7 | "a2": "sciptable animations", 8 | "a3": "tiny filesize", 9 | "a4": "zip compression", 10 | "right_answer": "a1", 11 | "created_at": "2011-06-07", 12 | "creator": "Philipp" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/comparsion.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 2, 5 | "text": "What is the result of 'a' == ('b' || 'a')", 6 | "a1": "a", 7 | "a2": "b", 8 | "a3": "true", 9 | "a4": "false", 10 | "right_answer": "a4", 11 | "created_at": "2011-06-08", 12 | "creator": "Jan Kus", 13 | "creator_github": "koos", 14 | "creator_twitter": "koos" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/controller_action.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "rails", 3 | "category": "backend", 4 | "nerd_level": 1, 5 | "text":"How many controller actions are created when scaffolding a model e.g. rails generate scaffold User name:string ?", 6 | "a1": "6", 7 | "a2": "7", 8 | "a3": "8", 9 | "a4": "9", 10 | "right_answer":"a2", 11 | "created_at": "2011-06-07", 12 | "creator": "Jost" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/divmod.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 3, 5 | "text": "What is the output of 13456.divmod(100)[0]?", 6 | "a1": "1345", 7 | "a2": "134", 8 | "a3": "13", 9 | "a4": "56", 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/enumerable.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 1, 5 | "text": "Which module is included in Hash and Array to faciliate traversal and searching.", 6 | "a1": "Searchable", 7 | "a2": "Enumerable", 8 | "a3": "Traversable", 9 | "a4": "Mapable", 10 | "right_answer": "a2", 11 | "created_at": "2011-05-24", 12 | "creator": "Schorsch" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/kernel-sprintf.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 3, 5 | "text": "What's the output of '%02i' % 0?", 6 | "a1": "00", 7 | "a2": " ", 8 | "a3": "0", 9 | "a4": "an error", 10 | "right_answer": "a1", 11 | "created_at": "2011-06-08", 12 | "creator": "Jan Kus", 13 | "creator_github": "koos", 14 | "creator_twitter": "koos" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/negative_look_ahead.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "regex", 3 | "category": "backend", 4 | "nerd_level": 3, 5 | "text": "Which regex will match 'foobaz' and 'fooboz' but not 'foobar'", 6 | "a1": "/foo[^bar]/", 7 | "a2": "/foo(?!bar)/", 8 | "a3": "/foo(?:bar)/", 9 | "a4": "/foo(?!=bar)/", 10 | "right_answer": "a2", 11 | "created_at": "2011-06-07", 12 | "creator": "mkorfmann" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/numeric_types.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 1, 5 | "text":"Which of the following is of type Bignum?", 6 | "a1": "0.1234567890987654321", 7 | "a2": "1**234567890987654321", 8 | "a3": "0x1234567890987654321", 9 | "a4": "-1234567890987654321", 10 | "right_answer":"a3", 11 | "created_at": "2011-06-06", 12 | "creator": "juliancheal" 13 | } 14 | } -------------------------------------------------------------------------------- /questions/typeof_arguments.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "javascript", 3 | "category": "backend", 4 | "nerd_level": 3, 5 | "text": "Whats the value of (function() { return typeof arguments; })()?", 6 | "a1": "array", 7 | "a2": "object", 8 | "a3": "undefined", 9 | "a4": "arguments", 10 | "right_answer": "a2", 11 | "created_at": "2011-06-19", 12 | "creator": "Christoph Werner @gonsfx" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/backticks_in_ruby.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "sub_category": "ruby", 4 | "category": "backend", 5 | "right_answer": "a3", 6 | "nerd_level": 4, 7 | "text": "Backticks ` in ruby", 8 | "a1": "are a shortcut to send method", 9 | "a2": "do nothing", 10 | "a3": "allow to execute a system command", 11 | "a4": "raise SyntaxError", 12 | "creator": "nbartlomiej", 13 | "created_at": "2011-06-14" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/string_clean_whitespace.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 2, 4 | "text": "How to remove leading and trailing whitespace from a string.", 5 | "a1": "str.clean", 6 | "a2": "str.spit", 7 | "a3": "str.split", 8 | "a4": "str.strip", 9 | "sub_category": "ruby", 10 | "category": "backend", 11 | "right_answer": "a4", 12 | "creator": "Georg Leciejewski", 13 | "created_at": "2011-06-27" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/when_life_gives_you_lemons.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 2, 4 | "text": "When life gives you lemons...", 5 | "a1": "call Caroline!", 6 | "creator": "Mike Poltyn", 7 | "a2": "burn a house down with combustive lemons!", 8 | "a3": "make lemonade!", 9 | "a4": "fooo!", 10 | "created_at": "2011-06-15", 11 | "sub_category": "culture", 12 | "category": "culture", 13 | "right_answer": "a2" 14 | } 15 | } -------------------------------------------------------------------------------- /questions/which_character_in_star_trek_se.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 1, 4 | "text": "Which character in Star Trek series always dies first?", 5 | "a1": "Blue Suit", 6 | "creator": "Mike Poltyn", 7 | "a2": "Red Suit", 8 | "created_at": "2011-06-14", 9 | "a3": "Cpt. Picard", 10 | "category": "culture", 11 | "sub_category": "culture", 12 | "a4": "Yellow Suit", 13 | "right_answer": "a2" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/min_max_quantifier.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "regex", 3 | "category": "backend", 4 | "nerd_level": 2, 5 | "text": "Which regex will match 'blaaa' with the number of 'a' ' s at the end ranging from 2 to 5", 6 | "a1": "bla{2..5}", 7 | "a2": "bla{2-5}", 8 | "a3": "bla{2,5}", 9 | "a4": "bla[2-5]", 10 | "right_answer": "a3", 11 | "created_at": "2011-06-07", 12 | "creator": "mkorfmann" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/rspec_controller_render_views.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 3, 5 | "text": "Which command makes a rails controller spec also render the views?", 6 | "a1": "render_views", 7 | "a2": "views_render", 8 | "a3": "render_json", 9 | "a4": "soap-xml", 10 | "right_answer": "a1", 11 | "created_at": "2011-05-14", 12 | "creator": "Schorsch" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/symbol_identity_01.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 1, 5 | "text": "What are the outputs for a == b and a.equal?(b) with a = 'xy' and b = a?", 6 | "a1": "true and false", 7 | "a2": "true and true", 8 | "a3": "false and false", 9 | "a4": "false and true", 10 | "right_answer": "a2", 11 | "created_at": "2011-06-07", 12 | "creator": "Paul" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/z-index_property.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "category": "frontend", 3 | "sub_category": "css", 4 | "nerd_level": 1, 5 | "text":"Which property is used to control the order of overlapping elements, e.g. to show them on top?", 6 | "a1": "show-top", 7 | "a2": "z-index", 8 | "a3": "front-index", 9 | "a4": "y-index", 10 | "right_answer":"a2", 11 | "created_at": "2011-05-24", 12 | "creator": "Schorsch" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/array_all_but_the_first_and_last .json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 3, 4 | "text": "How to get all but the first and last elements of an array.", 5 | "a1": "ary[1...-1]", 6 | "a2": "ary.pop", 7 | "a3": "ary[1..-1]", 8 | "a4": "ary.size-2", 9 | "sub_category": "ruby", 10 | "category": "backend", 11 | "right_answer": "a1", 12 | "creator": "Georg Leciejewski", 13 | "created_at": "2011-06-23" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/float_left.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "css", 3 | "category": "frontend", 4 | "nerd_level": 4, 5 | "text":"How to remove the gaps between <li> elements that have been set to display: inline-block?", 6 | "a1": "width: 100%", 7 | "a2": "float: left", 8 | "a3": "float: right", 9 | "a4": "display: inline", 10 | "right_answer":"a2", 11 | "created_at": "2011-06-07", 12 | "creator": "Philipp" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/lazy.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "regex", 3 | "category": "backend", 4 | "nerd_level": 3, 5 | "text": "Which regex will capture everything between the first pair of square brackets: '[a,b,c][1]'", 6 | "a1": "/\\[(.*)\\]/", 7 | "a2": "/\\[(.+)\\]/", 8 | "a3": "/\\[(.*?)\\]/", 9 | "a4": "/\\{.*?\\}/", 10 | "right_answer": "a3", 11 | "created_at": "2011-06-07", 12 | "creator": "mkorfmann" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/map_parseInt.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "sub_category": "javascript", 4 | "category": "programming", 5 | "nerd_level": 2, 6 | "text": "What does `['3','2','1','0'].map(parseInt)` evaluate to?", 7 | "creator": "a2800276", 8 | "created_at": "2011-10-09", 9 | "right_answer": "a2", 10 | "a1": "['3', '2', '1', '0']", 11 | "a2": "[3, NaN, 1, 0]", 12 | "a3": "[3,2,1,0]", 13 | "a4": "[3, NaN, 1, NaN]" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/position_fixed_support.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "css", 3 | "category": "frontend", 4 | "nerd_level": 2, 5 | "text":"Which of the following browsers does not support css position:fixed?", 6 | "a1": "Firefox 4", 7 | "a2": "Internet Explorer 7", 8 | "a3": "Mobile Safari iOS4", 9 | "a4": "Opera 5 Mini", 10 | "right_answer":"a3", 11 | "created_at": "2011-06-08", 12 | "creator": "StephanP" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/symbol_identity_02.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 1, 5 | "text": "What are the outputs for a == b and a.equal?(b) with a = 'xy' and b = 'xy'?", 6 | "a1": "true and false", 7 | "a2": "true and true", 8 | "a3": "false and false", 9 | "a4": "false and true", 10 | "right_answer": "a1", 11 | "created_at": "2011-06-07", 12 | "creator": "Paul" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/symbol_identity_03.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 1, 5 | "text": "What are the outputs for a == b and a.equal?(b) with a = :xy and b = :xy?", 6 | "a1": "true and false", 7 | "a2": "true and true", 8 | "a3": "false and false", 9 | "a4": "false and true", 10 | "right_answer": "a2", 11 | "created_at": "2011-06-07", 12 | "creator": "Paul" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/matz.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "culture", 4 | "nerd_level": 1, 5 | "text":"When Matz joined Heroku?", 6 | "a1": "12th June 2008", 7 | "a2": "12th July 2011", 8 | "a3": "12th June 2011", 9 | "a4": "12th June 2010", 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/monads.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 5, 4 | "text": "What is a monad?", 5 | "a1": "A burrito", 6 | "a2": "A monoid in the category of endofunctors.", 7 | "a3": "Impossible to understand", 8 | "a4": "The only functional way to do I/O.", 9 | "right_answer": "a2", 10 | "creator": "Steve Klabnik", 11 | "created_at": "2012-03-24", 12 | "sub_category": "haskell", 13 | "category": "programming" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/array_get_and remove_last_element.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 1, 4 | "text": "How to get and remove the last element of an array.", 5 | "a1": "[1,2,3].pop", 6 | "a2": "[1,2,3].last", 7 | "a3": "[1,2,3].shift", 8 | "a4": "[1,2,3].index(3)", 9 | "sub_category": "ruby", 10 | "category": "backend", 11 | "right_answer": "a1", 12 | "creator": "Georg Leciejewski", 13 | "created_at": "2011-06-23" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/encoding.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 3, 4 | "text": "Which UTF-8 character is NOT a real, defined character?", 5 | "a1": "Love Hotel", 6 | "a2": "Roasted sweet potato", 7 | "a3": "Chinese symbol for the internet", 8 | "a4": "A steaming pile of poo", 9 | "category": "design", 10 | "sub_category": "encoding", 11 | "right_answer": "a3", 12 | "created_at": "2012-03-10", 13 | "creator": "marcgreenstock" 14 | } 15 | } -------------------------------------------------------------------------------- /questions/where_are_the_characters_of_daw.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 2, 4 | "text": "Where are the characters of Dawn of the Dead hiding for most of the time?", 5 | "a1": "Theme park", 6 | "a2": "Hospital", 7 | "a3": "The Mall", 8 | "a4": "New Orleans", 9 | "creator": "Mike Poltyn", 10 | "created_at": "2011-06-14", 11 | "sub_category": "culture", 12 | "category": "culture", 13 | "right_answer": "a3" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/array_get_and remove_first_element.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 1, 4 | "text": "How to get and remove the first element of an array.", 5 | "a1": "[1,2,3].pop", 6 | "a2": "[1,2,3].shift", 7 | "a3": "[1,2,3].first", 8 | "a4": "[1,2,3].index(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/inherit_from_how_many.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 2, 5 | "text": "Up to how many classes can a ruby class inherit from?", 6 | "a1": "1", 7 | "a2": "2", 8 | "a3": "42", 9 | "a4": "∞", 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/instance_exec.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 3, 5 | "text":"What's the name of the method, which has the same behaviour as instance_eval but allows passing arguments?", 6 | "a1": "instance_exec", 7 | "a2": "exec_instance", 8 | "a3": "exe_win_32.dll", 9 | "a4": "send", 10 | "right_answer":"a1", 11 | "created_at": "2011-06-06", 12 | "creator": "mkorfmann" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/sum_things_up.json: -------------------------------------------------------------------------------- 1 | { 2 | "question" : { 3 | "sub_category": "ruby", 4 | "category": "backend", 5 | "nerd_level": 1, 6 | "text":"Which one will sum up an array of numbers?", 7 | "a1": "[1,2,3].sum", 8 | "a2": "[1,2,3].flatten!.inject(&:+)", 9 | "a3": "[1,2,3].reduce{|remainder,n| remainder + n}", 10 | "a4": "[1,2,3].sum(&:add)", 11 | "right_answer":"a3", 12 | "created_at": "2011-06-09", 13 | "creator": "kangguru" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/to_which_year_marty_mcfly_wants.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 1, 4 | "text": "To which year does Marty McFly want to go back to in the Back to The Future series?", 5 | "a1": "1674", 6 | "creator": "Mike Poltyn", 7 | "a2": "2015", 8 | "a3": "1885", 9 | "created_at": "2011-06-14", 10 | "a4": "1985", 11 | "sub_category": "culture", 12 | "category": "culture", 13 | "right_answer": "a4", 14 | "id": "" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/what_is_a_traditional_vulcan_sa.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 2, 4 | "text": "What is a traditional Vulcan salute?", 5 | "a1": "Live long and prosper", 6 | "creator": "Mike Poltyn", 7 | "a2": "Live fast and die young", 8 | "a3": "Live free and die hard", 9 | "created_at": "2011-06-15", 10 | "a4": "Live long and healthy", 11 | "sub_category": "culture", 12 | "category": "culture", 13 | "right_answer": "a1" 14 | } 15 | } -------------------------------------------------------------------------------- /questions/about_ruby.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 1, 5 | "text":"Who invented Ruby?", 6 | "a1": "Yukihiro Matsumoto", 7 | "a2": "David Heinemeier Hansson", 8 | "a3": "Rasmus Lerdorf", 9 | "a4": "Ransom E. Olds", 10 | "right_answer":"a1", 11 | "created_at": "2011-05-09", 12 | "creator": "Jan Kus", 13 | "creator_github": "koos", 14 | "creator_twitter": "koos" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/ps_save_for_web.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "graphics", 3 | "category": "design", 4 | "nerd_level": 1, 5 | "text": "What is the photoshop shortcut to save a web-optimized version of an image (Win/Mac)", 6 | "a1": "Ctrl-S", 7 | "a2": "Alt-S, Apple-S", 8 | "a3": "Alt-Ctrl-Shift-S, Apple-Ctrl-Shift-S", 9 | "a4": "Shift-S", 10 | "right_answer": "a3", 11 | "created_at": "2011-05-24", 12 | "creator": "Schorsch" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/rake_about.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "rails", 3 | "category": "backend", 4 | "nerd_level": 2, 5 | "text":"What does rake about do?", 6 | "a1": "Shows the README of the rails app", 7 | "a2": "Shows the Author of the rails app", 8 | "a3": "Show rake gem version", 9 | "a4": "Show rails framework version and the environment", 10 | "right_answer":"a4", 11 | "created_at": "2011-06-07", 12 | "creator": "Jost" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/rest.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 1, 4 | "text": "What does 'REST' stand for?", 5 | "a1": "Rails Enterprise Statistics Transformation", 6 | "a2": "REady STate", 7 | "a3": "REpresentational State Transfer", 8 | "a4": "Ruby Enterprise Substitutiona Tool", 9 | "right_answer": "a3", 10 | "creator": "Steve Klabnik", 11 | "created_at": "2012-03-24", 12 | "sub_category": "api", 13 | "category": "programming" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/array_to_csv_string.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 1, 4 | "text": "How to convert an array into a comma seperated string.", 5 | "a1": "[1,2,3].csv_merge", 6 | "a2": "[1,2,3].collapse(',')", 7 | "a3": "[1,2,3].join(',')", 8 | "a4": "[1,2,3].glue.with(',')", 9 | "sub_category": "ruby", 10 | "category": "backend", 11 | "right_answer": "a3", 12 | "creator": "Georg Leciejewski", 13 | "created_at": "2011-06-20" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/regex_globals.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 2, 5 | "text":"'hola_senor' =~ /(.*)_(.*)/", 6 | "a1": "$0 is 'hola'", 7 | "a2": "$1 is 'hola'", 8 | "a3": "$2 is 'hola'", 9 | "a4": "$3 is 'senor'", 10 | "right_answer":"a1", 11 | "created_at": "2012-04-28", 12 | "creator": "Daniel Harrington", 13 | "creator_github": "rubiii", 14 | "creator_twitter": "rubiii" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /questions/same_origin_policy.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "javascript", 3 | "category": "backend", 4 | "nerd_level": 4, 5 | "text":"Why can't you just request files from external servers via XMLHttpRequest in a web-browser?", 6 | "a1": "XSS", 7 | "a2": "Cross-Site Scripting", 8 | "a3": "Cross-Domain Scripting", 9 | "a4": "Same Origin Policy", 10 | "right_answer":"a4", 11 | "created_at": "2011-06-07", 12 | "creator": "Philipp" 13 | } 14 | } -------------------------------------------------------------------------------- /questions/simple_format.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "rails", 3 | "category": "frontend", 4 | "nerd_level": 2, 5 | "text": "Which one produces invalid HTML?", 6 | "a1": "<p><%= auto_link(text) %></p>", 7 | "a2": "<p><%= simple_format(text) %></p>", 8 | "a3": "<p><%= highlight(text, word) %></p>", 9 | "a4": "<p><%= truncate(text) %></p>", 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": "<!DOCTYPE HTML>", 11 | "a2": "<!DOCTYPE HTML5>", 12 | "a3": "<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 5//EN\\>", 13 | "a4": "<!DOCTYPE NEW HTML 5>" 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 <img.. /> tag instead of background whenever it's possible?", 7 | "a1": "Easier to manage images in dev mode.", 8 | "a2": "Actually it's not. Better to use bg images.", 9 | "a3": "Background images are not printable.", 10 | "a4": "<img> tag's are easier to style as a inline elements.", 11 | "right_answer":"a3", 12 | "created_at": "2011-06-08", 13 | "creator": "Barto" 14 | } 15 | } -------------------------------------------------------------------------------- /questions/jsonp.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "javascript", 3 | "category": "backend", 4 | "nerd_level": 4, 5 | "text":"What does \"jsonp=?\" or similar statements do?", 6 | "a1": "Treat the incoming JSON data as JSONP", 7 | "a2": "Tell the server to return JSONP data", 8 | "a3": "Tell the server to return JSONP data and wrap it in a dynamic callback", 9 | "a4": "Tell the server to return JSONP data and wrap it in a '?' callback", 10 | "right_answer":"a2", 11 | "created_at": "2011-06-07", 12 | "creator": "Philipp" 13 | } 14 | } -------------------------------------------------------------------------------- /questions/how_to_concatenate_list_python.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "backend", 4 | "sub_category": "python", 5 | "right_answer": "a1", 6 | "nerd_level": 2, 7 | "text": "How can a comma-seperated string be created from the list [a,b]?", 8 | "a1": "\",\".join([a, b])", 9 | "a2": "[a, b].join(\",\")", 10 | "a3": "implode([a, b], \",\")", 11 | "a4": "[a, b].concat(\",\")", 12 | "creator": "Marian Steinbach", 13 | "creator_github": "marians", 14 | "creator_twitter": "MarianSteinbach", 15 | "created_at": "2012-03-09" 16 | } 17 | } -------------------------------------------------------------------------------- /questions/how_to_open_python_main.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "backend", 4 | "sub_category": "python", 5 | "right_answer": "a4", 6 | "nerd_level": 2, 7 | "text": "How is the `main` routine idiomatically defined in Python?", 8 | "a1": "if name == main:", 9 | "a2": "if _name_ == _main_", 10 | "a3": "if _name_ == \"_main_\":", 11 | "a4": "if __name__ == \"__main__\":", 12 | "creator": "Marian Steinbach", 13 | "creator_github": "marians", 14 | "creator_twitter": "MarianSteinbach", 15 | "created_at": "2012-03-09" 16 | } 17 | } -------------------------------------------------------------------------------- /questions/prediction_gates.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "culture", 3 | "category": "culture", 4 | "nerd_level": 2, 5 | "text":"Which totally true prediction comes from Bill Gates in 2004", 6 | "a1": "Computers in the future may weigh no more than 1.5 tons", 7 | "a2": "Computer viruses are an urban legend", 8 | "a3": "Two years from now, spam will be solved", 9 | "a4": "In 2031, lawyers will be commonly a part of most development teams", 10 | "right_answer":"a3", 11 | "created_at": "2011-06-08", 12 | "creator": "StephanP" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/r_variance.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "category": "programming", 3 | "sub_category": "data", 4 | "nerd_level": 3, 5 | "text":"Do you speak R? Given you have an vector Y. What's the result of 'var(Y)'?", 6 | "a1": "Deletes Y and set it as empty variable", 7 | "a2": "Calculates sample variance", 8 | "a3": "Y is in global scope", 9 | "a4": "There is no var function in R", 10 | "right_answer":"a2", 11 | "created_at": "2012-04-29", 12 | "creator": "DonSchado", 13 | "creator_twitter": "donschado", 14 | "creator_github": "donschado" 15 | } 16 | } -------------------------------------------------------------------------------- /questions/how_can_you_access_the_data_pas.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 5, 4 | "text": "How can you access the data passed in with window.history.pushState(data, \"Title\", \"/new-url\") via window.onpopstate event?", 5 | "creator": "Mike Połtyn", 6 | "a1": "function () { this }", 7 | "a2": "function () { this.state }", 8 | "a3": "function (data) { data.state }", 9 | "a4": "function (data) { data }", 10 | "created_at": "2011-06-14", 11 | "sub_category": "javascript", 12 | "category": "backend", 13 | "right_answer": "a3" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/fizzbuzz.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 4, 4 | "text": "Which code gives proper FizzBuzz solution?", 5 | "a1": "(1..100).map {|i| ['fizzbuzz', nil, nil, 'fizz', nil, 'buzz'][i % 6] || i }", 6 | "a2": "(1..100).map {|i| (i%5).zero? ? \"Fizz\" : (i%3).zero? ? \"Buzz\" : i }", 7 | "a3": "(1..100).map {|i| ['fizzbuzz', 'fizz', 'buzz', i][[i%15,i%3,i%5,0].index(0)] }", 8 | "a4": "All of the above", 9 | "creator": "Mike Poltyn", 10 | "created_at": "2011-06-15", 11 | "sub_category": "ruby", 12 | "category": "backend", 13 | "right_answer": "a3" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/what_is_node_js.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "category": "backend", 4 | "sub_category": "javascript", 5 | "right_answer": "a1", 6 | "nerd_level": 1, 7 | "text": "What is node.js?", 8 | "a1": "A server-side javascript framework based on V8", 9 | "a2": "A jQuery plugin for visualizing network nodes", 10 | "a3": "The first .js top-level domain ever", 11 | "a4": "A network configuration file created by Google Chrome", 12 | "creator": "Sascha Gehlich", 13 | "creator_github": "saschagehlich", 14 | "creator_twitter": "rattazong", 15 | "created_at": "2012-01-15" 16 | } 17 | } -------------------------------------------------------------------------------- /questions/mixins_in_call_chain.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "ruby", 3 | "category": "backend", 4 | "nerd_level": 4, 5 | "text": "Where in the call chain do included modules get inserted?", 6 | "a1": "Before the class", 7 | "a2": "Directly after the class (before other modules)", 8 | "a3": "Directly before the superclass (after other modules)", 9 | "a4": "At the very end of the call chain", 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/yo_dawg.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "category": "culture", 3 | "sub_category": "culture", 4 | "nerd_level": 2, 5 | "text":"Yo dawg, I herd you like ...", 6 | "a1": "music, so I put a tape in your pants so you can listen while you sleep!", 7 | "a2": "cars, so I put a car in your car so you can drive while you drive!", 8 | "a3": "cheating, so I put a bread in your bag so you can run while you eat!", 9 | "a4": "drinking, so I put a hat in your pocket so you can listen while you dance!", 10 | "right_answer":"a2", 11 | "created_at": "2011-06-07", 12 | "creator": "tmschndr" 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /questions/creatures.json: -------------------------------------------------------------------------------- 1 | { 2 | "question": { 3 | "nerd_level": 3, 4 | "sub_category": "culture", 5 | "category": "culture", 6 | "text": "The title of the c64 classic CREATURES stands for...", 7 | "a1": "Crafty Reasonable External Abbreviations Top Ugly Resident Evil Speedboats", 8 | "a2": "Creatures Rule Earth And The Terror Unleashes Raging Evil Slime", 9 | "a3": "Cylons Reach Earth And The Universe Riots Each Star", 10 | "a4": "Clyde Radcliff Exterminates All The Unfriendly Repulsive Earthridden Slime", 11 | "right_answer": "a4", 12 | "created_at": "2012-04-29", 13 | "creator": "Tobias Eilert" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /questions/identity_map_in_rails_3.json: -------------------------------------------------------------------------------- 1 | { "question" : { 2 | "sub_category": "rails", 3 | "category": "backend", 4 | "nerd_level": 4, 5 | "text": "The Identity Map introduced to ActiveRecord in Rails 3.1:", 6 | "a1": "Adds a standard way to store user identities", 7 | "a2": "Allows for easy multi-tenant Web Apps", 8 | "a3": "Provides an interface to system keychains", 9 | "a4": "Keeps a map of instantiated records to avoid refetching them again", 10 | "right_answer": "a4", 11 | "created_at": "2012-05-03", 12 | "creator": "Felix @thegcat", 13 | "creator_github": "thegcat", 14 | "creator_twitter": "thegcat" 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /validate_all.rb: -------------------------------------------------------------------------------- 1 | #encoding: UTF-8 2 | require 'minitest/autorun' 3 | require 'json-schema' 4 | require 'json' 5 | 6 | SCHEMA_FILE = File.join(File.dirname(File.expand_path(__FILE__)) , 'schema', 'question.json') 7 | QUESTIONS_PATH = File.join(File.dirname(File.expand_path(__FILE__)) , 'questions') 8 | schema = File.open(SCHEMA_FILE) { |f| JSON.parse(f.read) } 9 | 10 | describe 'question' do 11 | Dir["#{QUESTIONS_PATH}/**/*\.*"].each do |file| 12 | it "#{file.sub(/(\..*$)/,'').sub(/^#{QUESTIONS_PATH}/,'')} contains valid json" do 13 | 14 | 15 | begin 16 | json_str = File.open(file) { |f| f.read } 17 | # force_encoding only available in ruby 1.9.2 18 | question = JSON.parse( json_str.respond_to?(:force_encoding ) ? json_str.force_encoding('UTF-8') : json_str)['question'] 19 | JSON::Validator.validate!(schema, question, :version=> :draft3 ) 20 | rescue JSON::Schema::ValidationError => schema_error 21 | assertion = false, schema_error.message + "\nIn: #{file}\n[#{question['creator']}, please fix this and send another pull request!]" 22 | rescue JSON::ParserError => parser_error 23 | assertion = false, parser_error.message 24 | else 25 | assertion = true 26 | end 27 | 28 | assert *assertion 29 | end 30 | end 31 | end 32 | -------------------------------------------------------------------------------- /tools/qbuilder.rb: -------------------------------------------------------------------------------- 1 | # Takes a file containing the actual question and 2 | # answer, one per line: 3 | # 4 | # Where is `size_t` defined? 5 | # stddef.h 6 | # stdarg.h 7 | # stdlib.h 8 | # stdio.h 9 | # programming 10 | # C 11 | # 1 12 | # 13 | # (the last 3 lines are category, sub_category(wtf?) and optional 'nerd_level') 14 | # 15 | # These are merged w/ personal data taken from ~/.nerdpursuit 16 | # and the very ornate jsonschema format is generated. 17 | # 18 | 19 | def read_ini 20 | iNI = %w{creator creator_twitter creator_github nerd_level} 21 | ini = {} 22 | ini["created_at"] = Time.new.strftime("%Y-%m-%d") 23 | ini["right_answer"] = "a1" 24 | begin 25 | _ini = File.readlines("#{ENV["HOME"]}/.nerdpursuit") 26 | _ini.each_with_index{|l, i| 27 | key = iNI[i] 28 | ini[key] = l.strip if l.strip != "" 29 | } 30 | rescue 31 | puts $! 32 | puts $!.backtrace 33 | # create_ini # TODO 34 | STDERR.puts "please create a `~/.nerdpursuit` file containing values for:" 35 | STDERR.puts "creator" 36 | STDERR.puts "creator_twitter (optional)" 37 | STDERR.puts "creator_github (optional)" 38 | STDERR.puts "nerd_level (optional)" 39 | 40 | exit 1 41 | end 42 | @ini = ini 43 | end 44 | 45 | def die msg 46 | STDERR.puts msg 47 | exit 1 48 | end 49 | 50 | def make_q lns 51 | h = {} 52 | flds = %w{text a1 a2 a3 a4 category sub_category nerd_level} 53 | lns.each_with_index {|l,i| 54 | die "empty line #{i}" if l.strip! == "" 55 | h[flds[i]] = l 56 | } 57 | q = @ini.merge(h) 58 | q["nerd_level"] = q["nerd_level"].to_i if q["nerd_level"] 59 | require 'json' 60 | JSON.pretty_generate({:question => q}) 61 | end 62 | 63 | if $0 == __FILE__ 64 | read_ini 65 | fn = ARGV[0] 66 | ln = File.readlines(fn) 67 | puts make_q ln 68 | 69 | end 70 | -------------------------------------------------------------------------------- /README.markdown: -------------------------------------------------------------------------------- 1 | [![Build Status](https://travis-ci.org/Nerds/NerdPursuit.png?branch=master)](https://travis-ci.org/Nerds/NerdPursuit) 2 | 3 | ## NerdPursuit 4 | 5 | Everybody loves question & answer games, but none of those let nerdism 6 | shine. This repo gathers nerd-questions, so everybody can play geeky 7 | questions-answer games and check the nerd level of your buddies. 8 | 9 | ## Participate 10 | 11 | Simply fork this repo, add your questions and send us a pull request. 12 | Comment commits and pull requests or create a ticket. 13 | 14 | Thanks to marcinbunsch, who created a commandline interface to create new 15 | questions(he hates writing json). Start it with: 16 | 17 | ./creator [sub_category] 18 | 19 | ## Tech 20 | 21 | Questions are submitted as JSON, with one question per file and MUST 22 | align with our [JSON-Schema](https://github.com/Nerds/NerdPursuit/blob/master/schema/question.json). We have setup travis-ci which automatically 23 | tests all questions. 24 | 25 | You should run the tests before sending us a pull-request: 26 | 27 | bundle install 28 | bundle exec ruby validate_all.rb 29 | 30 | ## How to Play 31 | 32 | The first game is out, go check it at: 33 | 34 | http://hackerspursuit.com 35 | 36 | Presented by 9elements & Railslove it is also [available on github](https://github.com/9elements/hackerspursuit) 37 | 38 | Got another use-case? Show us your game, recruitment test, print-api, nerd-captcha or whatever you came up with. 39 | 40 | 41 | ## License 42 | <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Dataset" property="dct:title" rel="dct:type">Nerdpursuit</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.<br />Based on a work at <a xmlns:dct="http://purl.org/dc/terms/" href="https://github.com/Nerds/NerdPursuit" rel="dct:source">github.com</a>. 43 | -------------------------------------------------------------------------------- /creator: -------------------------------------------------------------------------------- 1 | # 2 | # TODO fix the creator 3 | # 4 | # #!/usr/bin/env ruby 5 | # require 'rubygems' 6 | # require 'bundler/setup' 7 | # require 'json' 8 | 9 | # category = ARGV.shift 10 | 11 | # # Helper method, idea stolen from higline 12 | # def ask(prompt) 13 | # print prompt 14 | # gets.chomp 15 | # end 16 | 17 | # # Helper method for exiting the program with a status code of 1 and a message 18 | # def die(message) 19 | # puts message 20 | # exit 1 21 | # end 22 | 23 | # die("No category given! Run creator with ./creator [category]") if !category or category.empty? 24 | 25 | # die("No such category. Create a '#{category}' folder in questions to add it.") if !File.exists?("questions/#{category}") 26 | 27 | # question = ask("New question for #{category}: ") 28 | # correct_answer = ask("Correct answer: ") 29 | 30 | # # Get all wrong answers 31 | # iterator = 0 32 | # answers = [correct_answer] 33 | # begin 34 | # iterator += 1 35 | # wrong_answer = ask("Wrong answer ##{iterator} (leave empty to continue): ") 36 | # answers.push wrong_answer if wrong_answer != '' 37 | # end while wrong_answer != '' and iterator < 3 38 | 39 | # level = ask("Nerd level (1-5): ").to_i 40 | 41 | # # Handle edge cases 42 | # level = 5 if level > 5 43 | # level = 1 if level < 1 44 | 45 | # # Extract the creator from git 46 | # creator = `git config --get user.name`.chomp 47 | 48 | # # Shuffle the answers and find the index of the correct one 49 | # answers.shuffle! 50 | # correct_index = answers.index(correct_answer) 51 | 52 | # # Construct the hash that will be converted to JSON 53 | # data = { 54 | # :category => category, 55 | # :nerd_level => level, 56 | # :text => question, 57 | # :creator => creator, 58 | # :created_at => Time.now.strftime('%Y-%m-%d'), 59 | # :right_answer => "a#{correct_index + 1}" 60 | # } 61 | 62 | # # Add the answers to the result hash 63 | # answers.each_with_index do |answer, index| 64 | # data["a#{index+1}"] = answer 65 | # end 66 | 67 | # json = JSON.pretty_generate({ :question => data }) 68 | 69 | # filename = question.downcase[0..30].gsub(/[^a-z0-9]+/i, '_').sub(/_+$/, '') + '.json' 70 | # File.open("questions/#{category}/#{filename}", "w") do |file| 71 | # file.write(json) 72 | # end unless filename == '.json' 73 | 74 | -------------------------------------------------------------------------------- /schema/question.json: -------------------------------------------------------------------------------- 1 | { 2 | "type": "object", 3 | "title": "Question", 4 | "description":"A question", 5 | "name": "Question", 6 | "properties":{ 7 | "category":{ 8 | "type":"string", 9 | "description":"The questions main sub_category", 10 | "maxLength": 30, 11 | "enum": ["programming", "culture", "backend", "frontend", "design", "startup & founding", "social" ], 12 | "required":true 13 | }, 14 | "sub_category":{ 15 | "type":"string", 16 | "description":"The questions main sub_category", 17 | "maxLength": 30, 18 | "enum": ["algorithms", "api", "bash", "C", "couchdb","css", "culture", "data", "encoding", "flash", "graphics", "haskell", "html","http","javascript", "php", "python","rails","ruby","regex" ], 19 | "required":true 20 | }, 21 | "nerd_level":{ 22 | "type":"number", 23 | "description":"Difficulty level, 0=easy -> 5=supernerdy.", 24 | "minimum": 0, 25 | "maximum": 5, 26 | "required":true 27 | }, 28 | "text":{ 29 | "type":"string", 30 | "description":"The question", 31 | "maxLength": 160, 32 | "required":true 33 | }, 34 | "a1":{ 35 | "type":"string", 36 | "description":"An answer", 37 | "maxLength": 100, 38 | "required":true 39 | }, 40 | "a2":{ 41 | "type":"string", 42 | "description":"Second multiple choice answer", 43 | "maxLength": 100, 44 | "required":true 45 | }, 46 | "a3":{ 47 | "type":"string", 48 | "description":"Third multiple choice answer", 49 | "maxLength": 100, 50 | "required":true 51 | }, 52 | "a4":{ 53 | "type":"string", 54 | "description":"Fourth multiple choice answer", 55 | "maxLength": 100, 56 | "required":true 57 | }, 58 | "right_answer":{ 59 | "type":"string", 60 | "description":"The right answer, defaults to first answer if no multiple choice is given", 61 | "enum": ["a1","a2","a3","a4"], 62 | "default": "a1" 63 | }, 64 | "created_at": { 65 | "description": "Date the question was created. Never changes afterwards YYYY-MM-DD", 66 | "format":"date", 67 | "readonly":true, 68 | "type":"string" 69 | }, 70 | "creator": { 71 | "description": "Name of the person who supplied the question", 72 | "readonly":true, 73 | "type":"string", 74 | "required":true 75 | }, 76 | "creator_twitter": { 77 | "description": "Twitter handle of the person who supplied the question", 78 | "readonly":true, 79 | "type":"string" 80 | }, 81 | "creator_github": { 82 | "description": "Github username of the person who supplied the question", 83 | "readonly":true, 84 | "type":"string" 85 | } 86 | } 87 | } 88 | --------------------------------------------------------------------------------