This file contains hidden or 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 with sharing class HttpFormDataHandler { | |
public static Blob createRequestBody(String boundary, Object request) { | |
String last4Bytes = ''; | |
List<String> requestBody = new List<String>(); | |
Map<String, Object> requestMap = (Map<String, Object>) JSON.deserializeUntyped( | |
JSON.serialize(request) | |
); | |
for (String key : requestMap.keySet()) { | |
try { |
This file contains hidden or 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
<?php | |
//https://codex.wordpress.org/Function_Reference/register_post_type | |
//https://developer.wordpress.org/resource/dashicons/ | |
$postTypes = [ | |
'Post Name' => [ | |
'menu_icon' => 'dashicons-businessman', | |
'menu_position' => 26, | |
'public' => true, | |
'rewrite' => ['slug' => 'name'], |
This file contains hidden or 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
javascript:(function () { | |
const | |
words = document.body.innerText.split(/\s+/), //get all words on the page. | |
filteredWords = words.filter(word => word.length >= 4).sort(), //filter out words smaller than 4 characters and sort alphabetically. | |
specialCharacters = /^[!@#$%^&*()_+\-=\[\]{};':"\\|,.<>\/?]*$/, //list of special characters to remove from words. | |
div = document.createElement('div'), //create a div to contain the tag presentation. | |
style = document.createElement('style'); //create a style tag to contain the tag presentation styling. | |
let frequency = {}; |