I hereby claim:
- I am tylucaskelley on github.
- I am tylucaskelley (https://keybase.io/tylucaskelley) on keybase.
- I have a public key whose fingerprint is 202A A4D5 D060 A92F 7847 B598 1A02 5C19 B5AD F824
To claim this, I am signing this object:
alias ip="ifconfig | grep -Eo 'inet (addr:)?([0-9]*\.){3}[0-9]*' | grep -Eo '([0-9]*\.){3}[0-9]*' | grep -v '127.0.0.1'" |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist |
I hereby claim:
To claim this, I am signing this object:
defaults delete com.google.Chrome NSNavPanelExpandedSizeForOpenMode |
<!-- Begin: HubSpot Academy - HubSpot Design Certification Badge --> | |
<div class='cos-certification-badge'> | |
<a href='http://academy.hubspot.com/certification' title='HubSpot Inbound Marketing Certification'> | |
<img src='//app.hubspot.com/academy-certification/badge-image/69793c8d937743c180ce0c43c7be2d80/' /> | |
</a> | |
</div> | |
<!-- End: HubSpot Academy - HubSpot Design Certification Badge --> | |
$(document).ready(function() { // ensure jQuery is loaded before doing anything | |
// iterate over an array | |
$.each([1, 2, 3, 4], function(index, value) { | |
console.log( index + ": " + value ); | |
}); | |
// parse a JSON-formatted string and return a JS object | |
var obj = $.parseJSON('{ "first_name": "Ty-Lucas", "last_name": "Kelley" }'); | |
// get some JSON from an API |
$(document).ready(function() { // just like before, it's good practice to wrap your code in this callback function | |
// we can select elements by tag name | |
var $body = $("body"); | |
// this creates what is called a "jQuery object", which comes with a | |
// ton of convenience methods for DOM manipulation. Here's one: | |
$body.css("color", "white"); | |
// we can also look for elements using a combination of tag name, class, and ID | |
var $title = $("h1.title"); |
$(document).ready(function() { | |
// Sizzle is jQuery's internal library for DOM element selection. When does it actually get used? | |
// modern browser, i.e. Chrome, Firefox, Safari, IE 8+, Edge | |
$("#title"); // Nope! --> document.getElementById("title"); | |
$(".my-class") // Nope! --> document.getElementsByClassName("my-class"); | |
$("body > div.foo #element"); // Nope! --> document.querySelectorAll("body > div.foo #element"); |
// Let's say you give this to jQuery on a browser that doesn't support the selectors API | |
var $element = $(".title p"); | |
// First, Sizzle will break up the query into an array of selectors: | |
[".title", "p"] | |
// You might think that Sizzle will go left to right to find our elements! | |
// Actually, it does the opposite; Sizzle will first try to find all of the "a" tags, | |
// using it's "find" method. |
hooks: | |
pre-commit: | |
- eslint | |
- npmtests | |
commit-msg: | |
- enforecaps |