Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rattlion on github.
  • I am mattryan (https://keybase.io/mattryan) on keybase.
  • I have a public key ASCD0RhVnXnFthwSwpAFJ7gPbt1tSODMvNd2rx9tFSbL6Qo

To claim this, I am signing this object:

Take-Home Exercise

Thank you for taking the time to interview at Sweetgreen. To get a better idea of how you architect and build software, we'd like to give you an opportunity to complete a short exercise.

Specification

Build a simplified, browser version of Video Poker.

  1. The user may press the “Deal” button
  2. A new, 52 card deck, is created and shuffled (the deck doesn’t need to be represented in the UI)
@rattlion
rattlion / blog.md
Last active June 8, 2016 22:34
Your Dad Bot Is So Hot Right Now

Your Dad Bot Is So Hot Right Now

In early February a pair of engineers, David Sicher and Matt Ryan, took on the challenge of empowering users with minimal programming experience to get their hands dirty with AI technology. The "Designing Conversations: Rise of the Bots" meetup at Huge LA had over 60 people RSVP and a wait list almost equal in size. Austin Beer, an interaction designer, asked participants to consider treating their user experience and design challenges as a conversation. Austin guided attendees through an exercise that framed service interactions in terms of requests and responses, which is ultimately how attendees would think about their new AI buddies.

Slack Room

To distill the process of writing a live slackbot into a 3 hour workshop, David and Matt created a scaffolding that abstracts out the configuration of a custom slack integration

git remote rm origin
git remote add origin ssh://git@stash.hugeinc.com:7999/hulu/bowie.git
git fetch
git branch --set-upstream-to=origin/master
var style = {
transform: 'translateX(100%)';
}
translate(el, pageX, duration) {
var translation = `translateX(${pageX}%)`;
var transition = `all ${duration}ms`;
el.style.transition = transition;
el.style.transform = translation;
}

Question

Explaining a closure can be tough but people can memorize the answer from a book. This question tests if they actually understand it.

This questions asks the candidate to write some code to console.log the index of a <li> in a <ul>.

<ul>
  <li></li>
  <li></li>
<script type="text/javascript" charset="utf-8">
$('#sn-modal').on("sn-modal.show", function() {
console.log("show triggered")
});
$('#sn-modal').on("sn-modal.remove", function() {
console.log("remove triggered")
});
</script>
commands:
01_change_shell_to_zsh:
command: "chsh -s /bin/zsh ec2-user"
02_remove_default_vim:
command: "rm -rf /home/ec2-user/.vim"
03_install_dotfiles:
command: "git clone https://github.com/mrevd/dotfiles.git .dotfiles"
cwd: "/home/ec2-user"
test: "test ! -d /home/ec2-user/.dotfiles"
04_update:
class HomeViewController < UITabBarController
def loadView
super
list_view_controller = ListViewController.alloc.init
profile_view_controller = ProfileViewController.alloc.init
self.setViewControllers([list_view_controller,
profile_view_controller], animated:true)
end
end