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
<template> | |
<h1>Random Dad Jokes</h1> | |
<p v-if="loading">Loading...</p> | |
<p v-else>{{ joke }}</p> | |
</template> | |
<script> | |
export default { | |
name: "App", | |
data() { |
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
<template> | |
<h1>User Details</h1> | |
<p><strong>ID:</strong>{{user.id}}</p> | |
<p><strong>Name:</strong>{{user.name}}</p> | |
<p><strong>Username:</strong>{{user.username}}</p> | |
<p><strong>Email:</strong>{{user.email}}</p> | |
<select v-model="selectedId"> | |
<option v-for="n in 10" :key="n">{{n}}</option> |
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
{ | |
// settings | |
"extensions.autoCheckUpdates": true, | |
"workbench.settings.editor": "json", | |
// theme | |
"workbench.colorTheme": "SynthWave '84", | |
// editor | |
"editor.cursorSmoothCaretAnimation": true, | |
"editor.fontFamily": "Hack", | |
//"editor.fontFamily": "Cascadia Code", |
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
package dev.danvega.quickstart.controller; | |
import org.junit.jupiter.api.Test; | |
import org.junit.jupiter.api.extension.ExtendWith; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; | |
import org.springframework.test.context.junit.jupiter.SpringExtension; | |
import org.springframework.test.web.servlet.MockMvc; | |
import org.springframework.test.web.servlet.MvcResult; | |
import org.springframework.test.web.servlet.RequestBuilder; |
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
Array.from(document.querySelectorAll('._51xa > a:nth-child(2)')).forEach(button=>button.click()) | |
Array.from(document.querySelectorAll('.layerConfirm')).forEach(button=>button.click()) |
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
{ | |
// settings | |
"extensions.autoCheckUpdates": true, | |
"workbench.settings.editor": "json", | |
// theme | |
"workbench.colorTheme": "SynthWave '84", | |
"workbench.iconTheme": "vscode-icons", | |
// editor |
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
<template> | |
<div id="app"> | |
<h1>My Todo App</h1> | |
<todo-list :title="morning.title" :todos="morning.todos"></todo-list> | |
<todo-list :title="nightly.title" :todos="nightly.todos"></todo-list> | |
</div> | |
</template> | |
<script> | |
import TodoList from "@/components/TodoList"; |
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 assert = require('assert'); | |
// GIVEN AN ARRAY OF OBJECTS FIND THE LARGEST ID | |
const characters = [ | |
{ id: 1, first: "Tim", last: "Draper" }, | |
{ id: 17, first: "David", last: "Boies" }, | |
{ id: 199, first: "Tim", last: "Kemp" }, | |
{ id: 75, first: "Henry", last: "Mosley" }, | |
{ id: 444, first: "Elizabeth", last: "Holmes" }, | |
{ id: 95, first: "Donald", last: "Lucas" }, |
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
/** | |
* I will use our REST API to add a new comment | |
*/ | |
function addComment(form){ | |
const articleID = getId(); | |
const author = document.getElementById("author").value; | |
const comment = document.getElementById("comment").value; | |
fetch(baseApiURL + "/articles/" + articleID + "/comments", { | |
method: "POST", |
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 lessons = document.querySelectorAll('.lecture-name'); | |
let durations = []; | |
lessons.forEach((lesson) => { | |
const name = lesson.innerText; | |
const start = name.indexOf("("); | |
const end = name.indexOf(")"); | |
const time = name.substring(start + 1,end); | |
if( time != '' && time != undefined && time.indexOf(":") > 0 ) { |
NewerOlder