I implemented the code block and line highlighting in my blog. This blog post will serve as a litmus test for the CSS and JS that I have written for my blog.
Class TestingGarage {
public static void Main (String args[]) {
System.out.println("testing the css and js fixes");
}
}
Class TestingGarage {
public static void Main (String args[]) {
System.out.println("testing the css fixes");
}
}
original_string = "Python"
reversed_string = ""
for char in original_string:
reversed_string = char + reversed_string
print(reversed_string)
SELECT MAX(Salary) AS HighestSalary FROM Employee;
pm.test("Check a value in an array", () => {
const items = responseJson.data.items;
// Check if 'productCode' "XYZ" exists in any item in the array
const productExists = items.some(item => item.productCode === "XYZ");
pm.expect(productExists).to.be.true;
});
/* Header
----------------------------------------------- */
.header-outer {
background: transparent none repeat-x scroll 0 -400px;
_background-image: none;
}
.Header h1 {
font: normal normal 40px Georgia, Utopia, 'Palatino Linotype', Palatino, serif;
color: #000000;
text-shadow: 0 0 0 rgba(0, 0, 0, .2);
}
.Header h1 a {
color: #000000;
}
.Header .description {
font-size: 14px;
color: #000000;
}
.header-inner .Header .titlewrapper {
padding: 22px 0;
}
.header-inner .Header .descriptionwrapper {
padding: 0 0;
}
.header-outer {
background: transparent none repeat-x scroll 0 -400px;
_background-image: none;
}
.Header h1 {
font: normal normal 40px Georgia, Utopia, 'Palatino Linotype', Palatino, serif;
color: #000000;
text-shadow: 0 0 0 rgba(0, 0, 0, .2);
}
.Header h1 a {
color: #000000;
}
.Header .description {
font-size: 14px;
color: #000000;
}
.header-inner .Header .titlewrapper {
padding: 22px 0;
}
.header-inner .Header .descriptionwrapper {
padding: 0 0;
}
function login(user) {
if (!user) {
throw new Error("User required");
}
return true;
}
// comment
console.log("Hello");
/*
console.log("Hello");
*/
function login(user) {
if (!user) {
throw new Error("User required");
}
return true;
}
adb logcat -v threadtime | grep -E "FATAL|Exception|Crash|ANR"
adb logcat --pid=$(adb shell pidof com.example.app) -v threadtime
function login(user) {
if (!user) {
throw new Error("User required");
}
return true;
}
SELECT DISTINCT
Salary
FROM
Employee
ORDER BY
Salary DESC
LIMIT 1 OFFSET (N - 1); -- Replace N with the desired rank (e.g. 2 for the second highest)
curl -X PUT \
https://restful-booker.herokuapp.com/booking/1 \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Cookie: token=abc123' \
-d '{
"firstname" : "James",
"lastname" : "Brown",
"totalprice" : 111,
"depositpaid" : true,
"bookingdates" : {
"checkin" : "2018-01-01",
"checkout" : "2019-01-01"
},
"additionalneeds" : "Breakfast"
}'
curl -X PUT \
https://restful-booker.herokuapp.com/booking/1 \
-H 'Content-Type: text/xml' \
-H 'Accept: application/xml' \
-H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' \
-d '

