Skip to content

Instantly share code, notes, and snippets.

View michaeljacobdavis's full-sized avatar

Mike Davis michaeljacobdavis

View GitHub Profile
@michaeljacobdavis
michaeljacobdavis / Getting a Job.md
Last active March 25, 2018 21:13
Career Advice

Getting a Job

  • Checkout what's out there
    • What are employers looking for?
    • Checkout linkedin and see if you can get intros
    • See if they host open houses or events
  • Meetup
    • Network
    • Learn something know
    • Meet cool people!
  • Github
module.exports = {
hello: 'hello',
blah: 'blah',
default: 'default'
}
defaults read > a
Open system preferences and change the setting to some other value than the default.
defaults read > b
Post diff a b here.
var RowActionsCell = ReactDataGridPlugins.Draggable.RowActionsCell;
var DraggableContainer = ReactDataGridPlugins.Draggable.Container;
var DropTargetRowContainer = ReactDataGridPlugins.Draggable.DropTargetRowContainer;
var Selectors = ReactDataGridPlugins.Data.Selectors;
var priorities = [{id:0, title : 'Critical'}, {id:1, title : 'High'}, {id:2, title : 'Medium'}, {id:3, title : 'Low'}]
var issueTypes = ['Bug', 'Improvement', 'Epic', 'Story'];
//helper to generate a random date
function randomDate(start, end) {

Requirements

  • Protect access to pages
  • Protect functionality

Questions

  • Can users have multiple roles? No
  • Are there custom permissions? No
  • Role inheritance? No
  • Server + client? Yes

Protected routes on the server. Protected routes on the client.

@michaeljacobdavis
michaeljacobdavis / setTimeout.js
Created February 29, 2016 23:20
What not to do
setTimeout(function () {
async.parallel(conditions, function (err) {
setTimeout(function () {
$('[lazo-cmp-container="lazo-layout-body"]').animate({
}, 500, function () {
setTimeout(function () {
}, 100);
});
}, 10);
});
var d3 = require('d3');
var internals = {};
module.exports = function ($parse, $compile) {
return {
restrict: 'E',
replace: false,
scope: {
data: '=chartData',
width: '=width',
@michaeljacobdavis
michaeljacobdavis / Questions.md
Last active August 29, 2015 14:19
Questions

Questions

  1. How good are you at foosball?
  2. What developer tools do you use and what are some things you like about them?
  3. Walk me through a Cross site scripting attack? Cross site request forgery?
  4. NPM? How does node resolve dependencies? require('foo');
  5. Walk me through binding a model to a text input?
  6. How do you learn a library?
  7. Whats the most recent one you've tried?
it('waits for delete to return before saving', function(done){
// Given
var options = {
model: new Backbone.Model({
modules: new Backbone.Collection([
new Model(),
new Model()
])
}),
success: function(){}