Skip to content

Instantly share code, notes, and snippets.

View tylucaskelley's full-sized avatar
🐢
turtle-y enough 4 the turtle club

Ty-Lucas Kelley tylucaskelley

🐢
turtle-y enough 4 the turtle club
View GitHub Profile

Keybase proof

I hereby claim:

  • I am tylucaskelley on github.
  • I am tylucaskelley (https://keybase.io/tylucaskelley) on keybase.
  • I have a public key ASB6IDPMcRH2TAMwfUwu2xHac6sLr0wOyMXeVSWoXpV9CQo

To claim this, I am signing this object:

@tylucaskelley
tylucaskelley / yikes
Created April 11, 2019 17:23
sorry justin
+ files=(~/.aliases ~/.exports ~/.functions ~/.git-prompt.sh ~/.env)
+ for file in "${files[@]}"
+ '[' -f /home/tylucaskelley/.aliases ']'
+ source /home/tylucaskelley/.aliases
++ alias vim=nvim
++ alias vi=nvim
++ alias 'sudo=sudo '
++ alias 'up=cd ..'
++ alias '~=cd ~'
++ alias -- '-=cd -'
@tylucaskelley
tylucaskelley / error.txt
Created April 11, 2019 16:29
build sadness
ERROR: nodejs-native-8.12.0-r0 do_compile: oe_runmake failed
ERROR: nodejs-native-8.12.0-r0 do_compile: Function failed: do_compile (log file is located at /home/tylucaskelley/Code/veo-oe/tmp/build-glibc/work/x86_64-linux/nodejs-native/8.12.0-r0/temp/log.do_compile.30036)
ERROR: Logfile of failure stored in: /home/tylucaskelley/Code/veo-oe/tmp/build-glibc/work/x86_64-linux/nodejs-native/8.12.0-r0/temp/log.do_compile.30036
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j4 BUILDTYPE=Release
| make -C out BUILDTYPE=Release V=1
| LD_LIBRARY_PATH=/home/tylucaskelley/Code/veo-oe/tmp/build-glibc/work/x86_64-linux/nodejs-native/8.12.0-r0/node-v8.12.0/out/Release/lib.host:/home/tylucaskelley/Code/veo-oe/tmp/build-glibc/work/x86_64-linux/nodejs-native/8.12.0-r0/node-v8.12.0/out/Release/lib.target:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH; cd ../.; mkdir -p /home/tylucaskelley/Code/veo-oe/tmp/build-glibc/work/x86_64-linux/nodejs-native/8.12.0-r0/node-v8.12.0/out/Release/obj/gen; python too
@tylucaskelley
tylucaskelley / .bashrc
Created March 22, 2019 18:52
Call `nvm use` automatically
function find-up() {
path=$(pwd)
while [[ "$path" != "" && ! -e "$path/$1" ]]; do
path=${path%/*}
done
echo "$path"
}
function cdnvm() {
cd "$@" || return;
@tylucaskelley
tylucaskelley / .gitbotrc
Created November 16, 2016 04:33
Sample Gitbot config file
hooks:
pre-commit:
- eslint
- npmtests
commit-msg:
- enforecaps
@tylucaskelley
tylucaskelley / sizzle-explanation.js
Last active October 12, 2015 00:46
Udacity jQuery Webcast: How Sizzle Works Internally
// 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.
@tylucaskelley
tylucaskelley / sizzle.js
Last active October 11, 2015 22:21
Udacity jQuery Webcast: When Does Sizzle Get Used?
$(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");
@tylucaskelley
tylucaskelley / selection.js
Last active October 11, 2015 21:46
Udacity jQuery Webcast: Examples of Using "$()"
$(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");
@tylucaskelley
tylucaskelley / utilities.js
Created October 11, 2015 21:04
Udacity jQuery Webcast: Examples of Using the "$" function
$(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
@tylucaskelley
tylucaskelley / cert.html
Created April 14, 2015 18:03
HubSpot Design Certification
<!-- 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 -->