- Use React
- Utilize Redux or similar store
- Feel free to use any CSS frameworks you wish (eg bootstrap)
- Please post your answers to a JSBin
- Don't take longer than an hour or two to code this
- Be prepared to talk through your code
- Have fun with it and feel free to be creative
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "bundler/inline" | |
gemfile do | |
source "https://rubygems.org" | |
gem "activerecord", require: "active_record" | |
gem "activejob", require: "active_job" | |
gem "sqlite3" | |
gem "searchkick", git: "https://github.com/ankane/searchkick.git" | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
# Original from http://snippets.dzone.com/posts/show/4468 by MichaelBoutros | |
# | |
# Optimized version which uses to_yaml for content creation and checks | |
# that models are ActiveRecord::Base models before trying to fetch | |
# them from database. | |
namespace :db do | |
namespace :fixtures do | |
desc "Dumps all models into fixtures." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/inputrc - global inputrc for libreadline | |
# See readline(3readline) and `info rluserman' for more information. | |
# Be 8 bit clean. | |
set input-meta on | |
set output-meta on | |
# To allow the use of 8bit-characters like the german umlauts, uncomment | |
# the line below. However this makes the meta key not work as a meta key, | |
# which is annoying to those which don't need to type in 8-bit characters. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <unistd.h> | |
#include <csignal> | |
#include <sys/select.h> | |
using namespace std; | |
void signalHandler( int signum ) { | |
cout << "Interrupt signal (" << signum << ") received.\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"name": "The #1 Show", | |
"summary": "<p>The <a href=\"http://staging.screwattack.com/community/tags/1\">#1</a> Show is a show about everything... except video games. We have enough shows for that. A show that was conceived after arguing while in a backyard pool over the best cereals, this is the end result... but is still a work in progress.</p>", | |
"seasons": [ | |
{ | |
"slug": "the-1-show-season", | |
"title": "", | |
"show_episodes": [ | |
{ |
Please post your answers to a JSBin within a week of receiving this test. Feel free to use whichever compiled-to-JS language you want (Coffeescript, ES6/Babel, vanilla Javascript, etc..), but be prepared to explain what your code compiles down to in plain ol' Javascript if you do.
- Create a Vehicle class with
getName
andsetName
methods which manipulate aname
property on its class instances. - Write a getter/setter for
wheels
andseats
using the get/set keywords if your language of choice supports them (pro-tip: it probably does). - Create Car and Motorcycle classes which extend from Vehicle and set the number of seats/wheels appropriately.
- Instances should be properly inherit from your class, so
myCarInstance instanceof Car
should returntrue
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/inputrc - global inputrc for libreadline | |
# See readline(3readline) and `info rluserman' for more information. | |
# Be 8 bit clean. | |
set input-meta on | |
set output-meta on | |
# To allow the use of 8bit-characters like the german umlauts, uncomment | |
# the line below. However this makes the meta key not work as a meta key, | |
# which is annoying to those which don't need to type in 8-bit characters. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fix routes with /'s that are switched to %2F in > rails 4.1.1 | |
# put in config/initializers/ | |
module ActionDispatch | |
module Journey | |
class Router | |
class Utils | |
class UriEncoder | |
def escape_segment(segment) | |
# dont jack up URLs and turn the /'s into %2F's | |
URI.decode(escape(segment, SEGMENT)) |
NewerOlder