Skip to content

Instantly share code, notes, and snippets.

View leovolving's full-sized avatar

Leo Yockey leovolving

View GitHub Profile
@leovolving
leovolving / gist:83231a44a70cfc1ec5d4e80ab17b68e3
Created July 1, 2017 04:30
Static React Client - HospitAlert (Advanced Topics Assignment 1.1.5)
Name of app - HospitAlert
link to live static version - https://engineer-rotation-31830.netlify.com/home
link to repo on GitHub - https://github.com/Ljyockey/hospitalert-client
@leovolving
leovolving / gist:b1e4c6351c75ae13a64d34f9220b6596
Created July 3, 2017 00:34
HospitAlert Feedback and iteration - 1.1.6
The app won't work this month the way is supposed to without the ability to add friends.
I added a component for a friends page which features sections to view friends, add friends, and search for friends.
The data will be added to the Friends component once the API is setup.
@leovolving
leovolving / gist:7d1ec2475c4a480e5b5b96fd9a29e44c
Created July 24, 2017 01:28
HospitAlert - Final Feedback
When a friend is added on the status is changed, the li shows up without the name. Upon refresh, the name appears.
Issue ended up being an issue with the data being added to the state (resolved).
font size in <p> elements too small (resolved)
font-color in form placeholder is the same as the user's input (resolved)
@leovolving
leovolving / big-o.js
Last active July 25, 2017 01:52
Big O Drills
//Even or odd
function isEven(value){
if (value % 2 == 0){
return true;
}
else
return false;
}
//My answer: this function only takes a single input
//The runtime is O(1) (constant time)
L.J. Yockey
Full-Stack JavaScript Developer
Hi, I'm L.J.
I’m currently in the process of breaking out of Las Vegas and relocating to Los Angeles.
My escape route? Mostly JavaScript, with a little bit of MongoDB and SQL, 'cause I love me a full stack.
What was I doing in Las Vegas? The same thing that everyone does in Las Vegas:
I was looking for a fresh start and hoping to hit a jackpot. My jackpot happened to come in the form of learning Web Development.
One nonchalant suggestion from a coworker opened the door to lifelong learning and endless possibilities.
https://github.com/Ljyockey/portfolio
http://ljyockey.com/
Get rid of GIFs and make it so that text truncates at line break or X characters
-Did a height w/ overflow control. Removed GIFs
vertically align image in bio and stop text at ~”in the form of”
-Vertical align of image not needed now that text has been shortened
Make links to repos and live site same size
-removed link borders
@leovolving
leovolving / generators.js
Created August 23, 2017 17:38
Basic JS Generator
//I typically use promise chains to handle
//sync control but today I'm playing around with generators.
//View on Repl: https://repl.it/KWdA/1
function *myGen() {
var one = yield 1;
var two = yield 2;
var three = yield 3;
console.log(one, two, three);
}
def true_or_false(bool):
if bool == True:
return "This is a true statement!"
else:
return "This is a false statement!"
print true_or_false(False) # returns the else block
# prints 0-9
for x in range(10):
print x
# prints 1-10
for x in range(1, 11):
print x
# remember, we don't need to declare variables
# we can just assign them