Skip to content

Instantly share code, notes, and snippets.

@acoustep
acoustep / rock-and-roll-ember-interview-questions.md
Last active December 9, 2020 12:02 — forked from balinterdi/rock-and-roll-ember-interview-questions.md
The Rock & Roll with Ember band – Interview questions

These are the questions that can serve as a guide for the interview. You don't have to religiously adhere to them, though, so feel free to skip any or even come up with others you'd like to answer.

The easiest way for me to compose the interviews would be for you to fork this gist, add your name and your answers to the questions (right below each question) and send me the link to your gist.

  1. Could you introduce yourself in a few sentences?

My name is Mitch Stanley. I'm a full stack developer from the UK and I work for a web agency called isev.

  1. When and how did your Ember journey begin? How did you learn about the framework?
# src/actions/rss/show.cr
#...
xml ArticlesXmlSerializer.new(articles, {title: "Feed Name", description: "Here's the descr", path: request.path }).render
#...
# src/actions/xml_action.cr
abstract class XMLAction < Lucky::Action
private def xml(body : String)
Lucky::TextResponse.new(context, content_type: "text/xml; charset=utf-8", body: body, status: 200)
end

Keybase proof

I hereby claim:

  • I am acoustep on github.
  • I am mitchartemis (https://keybase.io/mitchartemis) on keybase.
  • I have a public key ASC8OJ2yZmjolsTJBF4I0a8U23Dvtx3DLkmXzYA7CdQ8mAo

To claim this, I am signing this object:

<snippet>
<content><![CDATA[
if(\$stmt = \$mysqli->prepare(${3:"${4}"}))
{
${5:\$stmt->bind_param('${6:i}', ${7});}
\$stmt->execute();
\$stmt->bind_result(${8});
\$stmt->fetch();
${9}
}
<snippet>
<content><![CDATA[
if(\$stmt = \$mysqli->prepare(${3:"${4}"}))
{
${5:\$stmt->bind_param('${6:i}', ${7});}
\$stmt->execute();
\$stmt->bind_result(${8});
while(\$stmt->fetch())
{
${9}
[{
"keys": ["alt+shift+left"],
"command": "set_layout",
"args":
{
"cols": [0.0, 0.7, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
<snippet>
<content><![CDATA[
\$('${1:body}')on.('${2:click}', function(${3}){
${4}
});
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>$9</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
<snippet>
<content><![CDATA[
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<title>${1}</title>
</head>
<body>
${2}
@acoustep
acoustep / slice_word.php
Created November 20, 2012 16:26
for slicing at to end of words
<?php
function slice_word($string, $chars=3)
{
//1 trim and get rid of html
//check if length more than required
//2 cut to certain length
//3 do normal array stuff but take off the last array unless only 1 or 2?
$string = trim(strip_tags($string));