View Steelhouse-Interview.js
/**
* JavaScript code for Steelhouse coding exercise.
* Any CSS is provided in the upper CSS directory.
*/
'use strict';
/**
Write a function that takes a single argument, lines, which is a list of
strings. Each element of lines is a line of prose from some passage. You will
return a list of strings that is read "downward", as opposed to left-to-right.
View Steelhouse-Interview.js
/**
* JavaScript code for Steelhouse coding exercise.
* Any CSS is provided in the upper CSS directory.
*/
'use strict';
/**
Write a function that takes a single argument, lines, which is a list of
strings. Each element of lines is a line of prose from some passage. You will
return a list of strings that is read "downward", as opposed to left-to-right.
View JS-Quiz-Solutions.js
// Please save all your work in https://jsfiddle.net/
// Return the link to your work
// Answer five out of the seven questions
// Use test data when provided, however your functions should work with any similiarly structured data
// Use any additional libraries you like
// 1: Refactor this function to make it scalable.
var goto = function(evt, where, project, scenario, item, id){
if (evt && evt.stopPropagation){ evt.stopPropagation(); }
View viewReporting.js
(function($){
'use strict';
var $appRoot, auth, APIs, app = {},
tmpl = com.marketshare.optimizer.template,
reportCategoryKeys = 'nav-report-categories',
ns = 'com.marketshare.optimizer.view.viewReporting';
function updateNavigation(event) {
var $itemsHolder,
View PrototypeChain.js
if (![].unique) {
Array.prototype.unique = function() {
var n = {}, r = [], i = 0, l = this.length;
for (; i < l; i++) {
if (this[i] && !n[this[i]]) {
n[this[i]] = true;
r.push(this[i]);
}
}
return r;
View osx-for-hackers.sh
#!/bin/sh
# Alot of these configs have been taken from the various places
# on the web, most from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
View Login-w-Cookie.js
View bookmarklets.js
/**
CanIUse.com Helper - prompt for a keyword then display the correct caniuse.com page.
Save this as a bookmark in the Bookmark Bar for quick access to CanIUse.com pages.
NOTE: Use the minified version below for the URL of the bookmark.
**/
/** Minified:
* javascript:q=prompt("Search CanIUse.com for?")||0;q&&(location=encodeURI("http://caniuse.com/#search="+q));
**/
var query = window.prompt('Search CanIUse.com for?') || false;
if (query) location.href = 'http://caniuse.com/#search=' + encodeURIComponent(query);
View si.js
MS = Sharecize = {
d3: d3,
DOM: {
$view: $('#MS-container'),
$content: $('section#content'),
$console: $('aside#console > div')
},
Writer: function (DOM) {
if (!DOM) DOM = Sharecize.DOM.$content;
if (!DOM.jquery) DOM = $(DOM);
View index.html
<form>
<input name="username" placeholder="username" />
<input name="password" type="password" placeholder="password" />
</form>