- WPMudev - WordPress Developer Super Cheat Sheet
- Build Your Own Blog - The Time Saving WordPress Cheat Sheet
This file contains 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
var text = "Email, Name, Role,\n" | |
$('div.content-group').first().find('tbody').children().each(function() { | |
var email = $(this).children()[1].innerText | |
var name = $(this).children()[2].innerText.replace('Invitation Expired Resend', '') | |
var role = $(this).children()[3].innerText | |
text += `${email}, ${name}, ${role}\n` | |
}) | |
var a = document.createElement("a"); |
This file contains 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
// Models File | |
// QuickSupportModels.swift | |
class QuickSupportModels { | |
... | |
enum CallSupport { | |
struct Request { | |
var viewController: UIViewController? | |
var supportPhoneNumber: String? | |
} |
This file contains 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
/* | |
* PROBLEM: Instapage 'says' it appends the URL Parameters into the links in the landing pages, | |
* but they actually did not. | |
* SOLUTION: This is the script made to auto append url parameters into links | |
* | |
* BEGIN ---> | |
*/ | |
$('body').ready(function() { | |
var appended_url; | |
### Reverse Proxy Begins ###
# redirect all '/sub_directory' request to '/sub_directory/' so that all static files are
# serve in the 'sub_directory' directory instead of the root directory
url.redirect = ("^/sub_directory$" => "/sub_directory/")
# start a proxy server at port 8001 to serve at the url exactly beginning with '/sub_directory/'
$HTTP["url"] =~ "^/sub_directory/+" {
proxy.server = ( "" => ("" => ( "host" => "127.0.0.1", "port" => 8001 )))
- Create new file with any name i.e.
script.zsh
#!/bin/zsh
[COMMANDS_HERE]
- Configure permissions
$ chmod 755 script.zsh
To Copy:
$ [COMMANDS] | pbcopy
To cd
into path
in clipboard:
$ cd $(pbpaste)
function ajax_request() {
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == [READY_STATE] && this.status == [HTTP_RESPONSE_CODE]) {
// do something
}
};
xhttp.open("GET", [REQUEST_PATH], true);
xhttp.send();