Skip to content

Instantly share code, notes, and snippets.

<style>
p {
border: solid 1px #DDDDDD;
border-bottom: 0;
margin-top: 25px;
text-align: center;
vertical-align: top;
}
</style>
<p>I am a paragraph.</p>
<p style="border-left-color: #DDDDDD; border-left-style: solid; border-right-color: #DDDDDD; border-right-style: solid; border-top-color: #DDDDDD; border-top-style: solid; border-width: 1px 1px 0; margin-top: 25px; text-align: center; vertical-align: top;">I am a paragraph.</p>
<p style="border-left-color: #DDDDDD; border-left-style: solid; border-right-color: #DDDDDD; border-right-style: solid; border-top-color: #DDDDDD; border-top-style: solid; border-width: 1px 1px 0; margin-top: 25px; text-align: center; vertical-align: top;">I am a paragraph.</p>
<p style="border-left-color: #DDDDDD; border-left-style: solid; border-right-color: #DDDDDD; border-right-style: solid; border-top-color: #DDDDDD; border-top-style: solid; border-width: 1px 1px 0; margin-top: 25px; text-align: center; vertical-align: top;">I am a paragraph.</p>
.page-our-members {
.member-grid {
width: 100%;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
grid-auto-flow: dense;
grid-gap: 20px;
figure {
<?php
if($_POST['token'] == $my_expected_token) {
$user_name = $_POST['user_name'];
echo "Hey, $user_name! You talk to your mother with that mouth?";
}
else {
// GTFO
}
?>
<?php
echo "I got your message, yo!";
?>
$('#parent').on("click", "#child", function() {});
// Only works for existing button.remove elements
$('#broken button.remove').on('click', function(){
$(this).remove();
});
// Works for existing button.remove elements, and new ones added dynamically
$('#working').on('click', 'button.remove', function(){
$(this).remove();
});
jQuery(document).ready(function() {
var cache_buster = Math.random();
var s = document.createElement("script");
s.type = "text/javascript";
s.src = "//domain.com/path/js/javascript.js?"+cache_buster;
jQuery("body").append(s);
});
SELECT * FROM promotion_translations
JOIN promotions ON promotions.id = promotion_translations.promotion_id
WHERE promotion_translations.id = YOUR_ID