Skip to content

Instantly share code, notes, and snippets.

exports.config = {
// Other options
before() {
browser.addCommand('displayText', function (text, duration = 3000) {
const textElId = `text-el-${Math.floor(Math.random() * 10000)}`
this.execute(function (id, text, duration) {
var textContainer = document.createElement("div");
textContainer.id = id;
@NicholasRoge
NicholasRoge / gist:c2cfe93da6b265593201
Last active June 8, 2018 09:22
C++11 Compliant Callback for Instantiation of Specified Types
#include <functional>
#include <vector>
#define snew NOTIFIER = new
/* Type Declarations */
template<typename Type>
class InstantiationObserver
{
friend class InstantiationNotifier;
$EXPORT_DIR = "$HOME\Desktop"
$EXPORT_FILENAME = "ClipboardContent.xml"
$CONTENT = [xml](Get-Clipboard)
$CONTENT_BYTE_COUNT = $CONTENT.Length
Write-Verbose "Writing $CONTENT_BYTE_COUNT bytes to '$EXPORT_DIR\$EXPORT_FILENAME'."
Write-Output $CONTENT > "$EXPORT_DIR\$EXPORT_FILENAME"