Skip to content

Instantly share code, notes, and snippets.

View seunzone's full-sized avatar
🏠
Working from home

Seun D. F seunzone

🏠
Working from home
View GitHub Profile
@seunzone
seunzone / formsubmit.html
Created August 11, 2020 20:30
HTML Mail Sample
<form action="https://formsubmit.co/your@email.com" method="POST">
<input type="text" name="name" required>
<input type="email" name="email" required>
<input type="tel" name="phone" required>
<button type="submit">Send</button>
</form>
import { Selector } from 'testcafe';
const title = Selector('h4');
fixture('Test')
.page('http://localhost:5000');
test('Test', async (t) => {
await t
.expect(title.innerText).eql('My Todo List')
@seunzone
seunzone / js
Created May 27, 2019 19:09
testcafe
import { Selector } from 'testcafe';
const title = Selector('h4');
fixture('Test')
.page('http://localhost:5000');
test('Test', async (t) => {
await t
.expect(title.innerText).eql('My Todo List')
const maxChar = str => {
const myStr = str.toLowerCase();
const charMap = {};
let max = 0;
let maxChar = '';
for (let char of myStr) {
if (!charMap[char]) {
charMap[char] = 1;
} else {