Skip to content

Instantly share code, notes, and snippets.

View jpsullivan's full-sized avatar

Josh Sullivan jpsullivan

  • Microsoft
  • Virginia
View GitHub Profile
This file has been truncated, but you can view the full file.
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/

Keybase proof

I hereby claim:

  • I am jpsullivan on github.
  • I am jpsullivan (https://keybase.io/jpsullivan) on keybase.
  • I have a public key ASDPpo_t3g6EL-OUD5P2NLWITJP4e3kBc_-HsklTOjA0sgo

To claim this, I am signing this object:

<form class="w-full max-w-sm">
<div class="md:flex md:items-center mb-6">
<div class="md:w-1/3">
<label class="block text-gray-500 font-bold md:text-right mb-1 md:mb-0 pr-4" for="inline-full-name">
Full Name
</label>
</div>
<div class="md:w-2/3">
<input class="bg-gray-200 appearance-none border-2 border-gray-200 rounded w-full py-2 px-4 text-gray-700 leading-tight focus:outline-none focus:bg-white focus:border-purple-500" id="inline-full-name" type="text" value="Jane Doe">
</div>
@jpsullivan
jpsullivan / package.json
Created June 25, 2017 17:02
eslint integration w/ commits and tests
{
"name": "ThousandFaces",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"pretest": "npm run lint",
"precommit": "lint-staged"
},
"lint-staged": {
@jpsullivan
jpsullivan / gist:15b1a7d13306e7b3c5b0
Created July 17, 2015 15:10
javascript functions
$('.dropdown-toggle').click(function() {
$('.dropdown-menu').toggle();
});
or ...
var toggleDropdown = function () {
$('.dropdown-menu').toggle();
};
@jpsullivan
jpsullivan / .NET Runtime Error
Last active August 29, 2015 14:24
Love [Windows] Crash Details
Application: Love [Fullscreen].exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: exception code c0000005, exception address 0F2F032D
Stack:
var user = prompt("As you walk through a forest, you come across a Buckethead on the ground, woozy from hunger. Do you APPROACH, RUN AWAY, or CALL OUT?").toUpperCase();
switch(user) {
case 'APPROACH':
var offended = prompt("Are you offended by her state of attire? (YES or NO)?").toUpperCase();
var foodTho = prompt("Do you give her food? (YES or NO)?").toUpperCase();
if(offended === 'NO' || foodTho === 'YES') {
console.log("You only need one of the two! She leaps up and befriends you with enthusiasm!");
} else {
console.log("wow, a busybody AND a tightwad. You're kind of a jerk. Its okay Buckethead becomes your friend anyway, whether you want it or not.");
@jpsullivan
jpsullivan / gist:24c6fbe528fa93a72ecf
Created July 7, 2015 16:24
JS - Switch with breaks
var user = "approach";
switch(user) {
case 'approach':
console.log('1');
break;
case 'does':
console.log('2');
break;
case 'threes':
console.log('3');
@jpsullivan
jpsullivan / gist:87f9bb6b8ee092f97f2b
Created July 7, 2015 16:23
JS - Switch with no breaks
var user = "approach";
switch(user) {
case 'approach':
console.log('1');
case 'does':
console.log('2');
case 'threes':
console.log('3');
}