View index.js
var WHITE = 255;
var readimage = require("readimage");
var fs = require("fs");
var gm = require("gm");
var load = function (file, callback) {
var buffer = fs.readFileSync(file);
var stream = fs.createReadStream(file);
View AppTest.java
package foo.test;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.ResourceHandler;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.util.resource.Resource;
/** Steps to reproduce the issue:
*
* 1. Run the application
View pandoc-document
#!/bin/bash
# usage: pandoc-document [pandoc options]
wget --quiet -O document-A4.template https://gist.githubusercontent.com/seykron/9688447/raw/b52bcead0d78cef033a5eec5f92b5f9a4a8ca050/pandoc-document-template-A4.html
pandoc --template document-A4.template $@
View pandoc-document-template-A4.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>$title$</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="pandoc">
<style type="text/css">
body {
View gist:6732836

Frontend Developer Interview

General

  1. Are you on Github? If so, what are some examples of repos you follow (and who are you in there :).

  2. Can you describe your workflow when you create a web page?

  3. Explain what “Semantic HTML” means. Is this important? why?

View Widget.html
<!DOCTYPE html>
<html>
<head>
<title>Widget test</title>
</head>
<body>
<div id="js-toolbar-email">
<a class="js-action-edit" href="javascript:void(0)">Edit</a>
<a class="js-action-delete" href="javascript:void(0)">Delete</a>
View Rendering.html
<!DOCTYPE html>
<html>
<head>
<title>Rendering test</title>
</head>
<body>
<div id="js-toolbar">
<a class="js-action-edit" href="javascript:void(0)">Edit</a>
<a class="js-action-delete" href="javascript:void(0)">Delete</a>
View JsonPTest.js
var addScript = function (url) {
var script = document.createElement("SCRIPT");
var parentNode = document.getElementsByTagName("HEAD")[0];
script.async = true;
script.type = "text/javascript";
script.src = url;
script.addEventListener("load", function () {
parentNode.removeChild(script);
});
parentNode.appendChild(script);
View JavaScriptScopeTest.js
var logger = function (level) {
return function (message) {
console.log(level + " " + message);
};
};
var info = logger("INFO");
var debug = logger("DEBUG");
info("Information event");
debug("Debugging event");
View EventModelTest.html
<!DOCTYPE html>
<html>
<head>
<title>DOM Event Bubbling Test</title>
</head>
<body>
<div id="toolbar">
<a id="edit" href="#">Edit</a>
<a id="delete" href="#">Delete</a>