Skip to content

Instantly share code, notes, and snippets.

@walidum
walidum / js.js
Last active August 27, 2021 15:18
function creatNote() {
var title = document.getElementById('input').value
var textContent = document.getElementById('textarea').value
var notes = document.getElementById('notes')
var card = document.createElement('div');
card.setAttribute('class', 'card')
notes.appendChild(card)
@import url('https://fonts.googleapis.com/css2?family=Style+Script&display=swap');
.welcome-container {
margin-top: 10rem;
width: 100%;
display: flex;
flex-direction: column;
}
.titles {
@walidum
walidum / autocomplete.java
Created August 17, 2021 20:49
This method demonstrates the programmatic approach to getting place predictions.
*
* This method demonstrates the programmatic approach to getting place predictions.
* The parameters in this request are currently biased to Kolkata, India.
*
* @param query the plus code query string (e.g. "GCG2+3M K")
*/
private void getPlacePredictions(String query) {
// The value of `locationBias` biases prediction results to the rectangular
// region provided (currently Kolkata). Modify these values to get results
// to another area. Make sure to pass in the appropriate value/s for
@walidum
walidum / index.html
Created August 7, 2021 11:39
indeed html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Indeed</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="navbar">
<div class="left-side">
@walidum
walidum / style.css
Created August 7, 2021 11:37
style.css
body {
margin: 0;
}
.navbar {
width: 100%;
height: 5vh;
display: flex;
justify-content: space-between;
box-shadow: 0 2px 1px -1px gray;
@walidum
walidum / index.html
Last active August 6, 2021 15:11
index.html login paypal
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Login</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="main">
<div class="card">
@walidum
walidum / style.css
Last active August 6, 2021 15:11
style.css
body {
margin: 0;
}
.main {
width: 100%;
height: 95vh;
background-color: #ffffff;
display: flex;
justify-content: center;
@walidum
walidum / index.html
Last active July 31, 2021 13:39
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<!-- un comment -->
<meta charset="UTF-8">
<title>HTML</title>
<link rel="icon" href="icon.png" />
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<meta name="description" content="The first cours --> HTML ">
@walidum
walidum / login.js
Created July 29, 2021 14:37
login.js
exports.login = (req, res) => {
const registrationdata = {
userName: req.body.UserName,
password: req.body.Password
};
if (req.body.UserName && req.body.Password) {
const config = {
headers: {Authorization: `DirectLogin username="${req.body.UserName}", password="${req.body.Password}", consumer_key="b2yn2ma5fqegtlgghvdpq0unlj5xdrja5wwoecon"`}
};
axios.post('https://ifcsandbox.openbankproject.com/my/logins/direct',
@walidum
walidum / JUnit5CustomExtensionTester.java
Created July 25, 2021 16:20
Testing the JUnit5CustomExtensionTester
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
@ExtendWith(JUnit5CustomExtension.class)
public class JUnit5CustomExtensionTester {
@Test
public void myCustomRuleTest() {
System.out.println("Call of a test method");
}
}