Skip to content

Instantly share code, notes, and snippets.

View jaywon's full-sized avatar

Jason Sewell jaywon

View GitHub Profile
@jaywon
jaywon / README.md
Last active August 29, 2015 14:23
Request for Change Order

###Change to Documented API Good morning team. As you know we've been planning to implement our vehicle inventory system as an Object Oriented system with many different types of vehicles all inheriting from our base Vehicle class. All we know right now, is that we are going to have things like a Car class, a Truck class, and a Minivan class.

However, we just got word that our front end developers don't really understand OOP and the concept of new() and object instantiation. They are primarily used to consuming API's and just requesting something and getting an object back.

###Your Task We will be carrying forward with our original plan of building our OOP architecture, but we need you to come up with a method to accept a string as input which will be the type of vehicle we want ("car", "truck", "minivan") but still return an instantiated instance of the type of object we have created as our OOP implementation.

I have no idea how this will work so we need you to mock up the OOP inheritance a

@jaywon
jaywon / README.md
Created June 24, 2015 18:36
Analytics Tracking

###Business Objective Good morning team! We just got a request from the new CMG(Chief Marketing Groovru) that he wants to start A/B testing every element across the entire site for user interaction. We are going to need you to create a script that can be included in an HTML page that tracks every click on a page and reports what element was clicked so that we know at a micro level how users are interacting with our new optimized, user-friendly, uber-engagement platform.

###Your Task Mock up a simple HTML page with a bunch of different elements on the page and create a script that tracks every single element clicked and the number of times it was clicked. We will worry about saving this to our analytics database later, we just need a way to prove that it works.

Thaaannnks :D

@jaywon
jaywon / README.md
Last active June 15, 2020 01:21
Better Buttons

The Ask

Good morning team! We have been asked to implement a better button for our marketing landing pages in the hopes it leads to more conversions. We currently do one off landing pages for inbound marketing to lead customers to our main brand site. The CEO is demanding that we increase our number of conversions this year and we want something a little more enticing to get users to click.

Your Challenge

Please mock up a simple app with a nice big blue button that when a user hovers over the button grows by 5px in all directions and changes from the dark blue we have on the site to...idk something..."warmer". We also are not sure of the color or sizes we will end up deciding on so the implementation needs to be flexible. Please mock up a prototype for us so we can sell more widgets!!

Any other styling is ok too since you guys are the web masters so impress us.

Thaaaannnks :D

@jaywon
jaywon / debedit.sh
Created July 20, 2015 08:17
Script for editing .deb package description
#!/bin/bash
if [[ -z "$1" ]]; then
echo "Syntax: $0 debfile"
exit 1
fi
DEBFILE="$1"
TMPDIR=`mktemp -d /tmp/deb.XXXXXXXXXX` || exit 1
OUTPUT=`basename "$DEBFILE" .deb`.modfied.deb
});
<head>
<title>post-me-up</title>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400italic,400' rel='stylesheet' type='text/css'>
</head>
<body>
<h1>Post It Here</h1>
{{> posterBoard}}
@jaywon
jaywon / command
Last active August 29, 2015 14:26
Ansible Mongo Aggregate Script Extract
ansible-playbook -i webservers roles/my-application/get-usernames-and-emails.yml --extra-vars "target=webserver1"
@jaywon
jaywon / batterymonitor.sh
Last active August 29, 2015 14:27
Monitor and notification script to show low battery when not using Unity or other desktop manager in Ubuntu
#!/bin/bash
while true
do
BATTERY_LEVEL=$(</sys/class/power_supply/BAT0/capacity)
if [ "$BATTERY_LEVEL" -lt "15" ]; then
notify-send -t 100 "Battery level is $BATTERY_LEVEL"
fi
sleep 100
done

Keybase proof

I hereby claim:

  • I am jaywon on github.
  • I am jaywon (https://keybase.io/jaywon) on keybase.
  • I have a public key whose fingerprint is 5D33 CFD2 E61A 1311 4B89 8FCA 6D4C DE30 B208 316F

To claim this, I am signing this object:

@jaywon
jaywon / README.md
Created September 1, 2015 18:51
Agents....Your Task...Because You Have To Accept It?

Good Morning Humans,

Congratulations on surviving the first day of your mission. Your morning challenge for today is as follows:

  1. ALL: Create an account on Medium.com and share your username in the chatroom.
  2. If you have not completed js-functions from yesterday please take your time this morning to continue to work on that exercise and don't hesitate to ask for TA assistance.
  3. For those of you that have completed yesterday's challenge, you must write a blog post on Medium about what you hope to accomplish in DevLeague on a personal level and one thing you've learned about yourself up to this point. (Feel free to have fun with it)
class Vehicle{
constructor(make, model, engine){
this._make = make;
this._model = model;
this._engine = engine;
}
}
class Camry{
constructor(color, numberOfDoors, options){