Skip to content

Instantly share code, notes, and snippets.

View vimokumar's full-sized avatar
🎯
Focusing

Mohan Kumar vimokumar

🎯
Focusing
  • @made Media
  • San Francisco
View GitHub Profile
@techguybiswa
techguybiswa / WhatsAppAutomationScript.js
Created March 11, 2019 18:36
What's App Automated "New Year Wish" Script
let listOfRecentContacts = document.getElementsByClassName("_3j7s9");
console.log("listOfRecentContacts.length = " + listOfRecentContacts.length);
var eventToSwitchMessageBox = new MouseEvent('mousedown', {
bubbles: true,
});
let count =1;
let openMessageBox = setInterval(function(){
// if(count>listOfRecentContacts.length) {
if(count>5) {
console.log("Clearing interval with clearInterval...");
@drewjoh
drewjoh / example.php
Last active March 21, 2025 00:11 — forked from mloberg/example.php
A Simple Postmark PHP Class with Attachments
<?php
require("postmark.php");
$postmark = new Postmark("your-api-key","from-email","optional-reply-to-address");
$result = $postmark->to("[email protected]")
->subject("Email Subject")
->plain_message("This is a plain text message.")
->attachment('File.pdf', base64_encode(file_get_contents('sample.pdf')), 'application/pdf')