This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nano ~/.bash_profile | |
if [ -r ~/.bashrc ]; then | |
source ~/.bashrc | |
fi | |
nano ~/.bashrc | |
# Alias for sail up | |
alias sail='bash vendor/bin/sail' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
<!DOCTYPE html> | |
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> | |
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> | |
<!--[if IE 8]><html class="no-js lt-ie9" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<!-- Global Metas --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const shelf = [ | |
"blueberry pie", | |
"apple tart", | |
"meat pie", | |
"apple pie", | |
"banana bread", | |
"pumpkin pie", | |
"apple crumble", | |
"donuts" | |
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let total = numbers.reduce((accumulator, number) => { | |
return accumulator += number; | |
}, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const numbers = [1,3,5,10,20]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function longest(s1, s2) { | |
const allLetters = s1 + s2; | |
const distinctLetters = allLetters.split('').reduce((distinctLetters, currentLetter) => { | |
distinctLetters[currentLetter] = true; | |
return distinctLetters; | |
}, {}); | |
const letters = Object.keys(distinctLetters); | |
return letters.sort().join(''); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = "xyaabbbccccdefww" | |
b = "xxxxyyyyabklmopq" | |
longest(a, b) -> "abcdefklmopqwxy" | |
a = "abcdefghijklmnopqrstuvwxyz" | |
longest(a, a) -> "abcdefghijklmnopqrstuvwxyz" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let apples = shelf.reduce((accumulator, number) => { | |
if(number.includes("apple")) { | |
return accumulator += 1; | |
} else { | |
return accumulator;} | |
}, 0); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"bg_image": | |
"https://images.unsplash.com/photo-1546924635-8a0e468028b0?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1500&q=80" | |
}, | |
{ | |
"bg_image": | |
"https://images.unsplash.com/photo-1546165388-7b9d5231867e?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1502&q=80" | |
}, | |
{ | |
"bg_image": |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"fruits": [ | |
{ | |
"orange": "<svg class='sv' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' version='1.1' id='Capa_1' x='0px' y='0px' viewBox='0 0 512 512' style='enable-background:new 0 0 512 512;' xml:space='preserve'><path style='fill:#FFA800;' d='M256,91.687c-115.879,0-210.156,94.274-210.156,210.156C45.843,417.723,140.121,512,256,512 s210.157-94.277,210.157-210.156C466.156,185.961,371.879,91.687,256,91.687z'/> <path style='fill:#FE9700;' d='M256,91.687c-11.928,0-23.609,1.051-35,2.969c99.271,16.719,175.156,103.235,175.156,207.188 S320.272,492.309,221,509.031c11.391,1.918,23.072,2.969,35,2.969c115.879,0,210.157-94.277,210.157-210.156 C466.156,185.961,371.879,91.687,256,91.687z'/> <path style='fill:#006837;' d='M256,159.419c-6.617,0.001-12.805-4.135-15.106-10.734C207.543,53.082,255.012,6.362,257.051,4.419 c6.402-6.1,16.527-5.852,22.621,0.539c6.059,6.355,5.855,16.396-0.422,22.506c-1.703,1.724-34.203,35.971-8.144,110.682 c2.914,8.343-1.492,17.467-9.836,20.377C259.527,159.131, |
NewerOlder