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
-- VIEWS | |
USE Northwind | |
GO | |
CREATE VIEW dbo.ReportsTo AS ( | |
SELECT | |
m.FirstName + ' ' + m.LastName AS ManagerName, e.FirstName + ' ' + e.LastName AS EmployeeName | |
FROM | |
dbo.Employees AS e | |
JOIN | |
dbo.Employees AS m |
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
-- USE Northwind | |
-- comments out the query so it's not run | |
SELECT * FROM Northwind.dbo.Orders | |
SELECT * FROM dbo.Orders | |
SELECT * FROM Orders | |
SELECT CustomerID, OrderDate FROM Orders | |
SELECT OrderDate, CustomerID FROM Orders |
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 sdet; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; | |
import java.util.Optional; | |
import java.util.function.Predicate; | |
import java.util.stream.IntStream; | |
import java.util.stream.Stream; |
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
public class App { | |
public static final Scanner scan = new Scanner(System.in); | |
public static void main(String[] args) { | |
System.out.println(flip(CoinFlip.HEADS)); | |
boolean b = true; | |
while (b) { | |
try { | |
System.out.println("Enter a number:"); |
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 main; | |
import java.util.Optional; | |
public class Optionals { | |
public static void main(String[] args) { | |
// String isItNull = isItNull(); | |
// if (isItNull != null) { | |
// System.out.println(isItNull.length()); |
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 makeElement(eleType, appendTo, attributes) { | |
const element = document.createElement(eleType); | |
for (let attr in attributes) { | |
element[attr] = attributes[attr]; | |
} | |
appendTo.appendChild(element); | |
return element; | |
} |
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
<html> | |
<head></head> | |
<body> | |
<div id="bigOutput"></div> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.19.2/axios.js"></script> | |
<script src="./js/details.js"></script> | |
</body> |
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
<html> | |
<head> | |
</head> | |
<body> | |
<h1>Create Element</h1> | |
<input id='text' /> |
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
<html> | |
<head></head> | |
<body> | |
<input id="counter" value="0" type="number" /> | |
<button id="plus5">+5</button> | |
<button id="plus1" onclick="increment();">+</button><button id="minus1" onclick="decrement();">-</button> | |
<button id="minus5">-5</button> | |
<p id="myP">flfkdjhgdghdjgdfgndfkjg</p> |
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
h1 { | |
color: red; | |
} | |
h1.header { | |
color: green; | |
} | |
h1#home-heading { | |
color: yellow; |
NewerOlder