Skip to content

Instantly share code, notes, and snippets.

@jsuar
jsuar / d3 Packing Example
Created February 1, 2013 17:01
d3 packing example with squares and text.
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<style>
circle, rect {
stroke: #000;
fill-opacity: .1;
}
if ( !post_password_required() ) {
// Display your product
} else {
echo get_the_password_form();
}
// via https://wordpress.org/support/topic/protect-a-product-by-password
function password_visibility(){
$post = get_post();
@jsuar
jsuar / home-assistant-slack-test-script.yaml
Created January 17, 2025 03:22
Slack file upload test script for Home Assistant
sequence:
- data:
message: |
Test 1: Single channel plain text test message
target:
- "#test"
- "#test1"
data:
blocks: []
action: notify.slackworkspace