Skip to content

Instantly share code, notes, and snippets.

View Jursdotme's full-sized avatar

Rasmus Jürs Jursdotme

View GitHub Profile
.stretch-column .fl-col-content {
justify-content: space-between !important;
}
.stretch-column .fl-module,
.stretch-column .fl-module-content,
.stretch-column .fl-module-content > div {
height: 100%;
}
<?php
/**
* Get current subscriber list
*/
function bl_get_subs() {
global $wpdb;
$table_name = $wpdb->prefix . "mailpoet_subscribers";
$retrieve_data = $wpdb->get_results("SELECT * FROM $table_name");
@Jursdotme
Jursdotme / BlogPostsCard.vue
Created August 7, 2019 10:23
Vue component with apollo problem
<template>
<div>
<nuxt-link
v-for="post in posts"
:key="post.id"
:to="`/post/${post.id}`"
class="border-b pb-5 mt-5"
>
<h2 class="text-4xl">{{ post.title }}</h2>
<VueMarkdown id="content">{{ post.content }}</VueMarkdown>
@Jursdotme
Jursdotme / bookmarklet.js
Created August 19, 2019 09:49
Get results from ManageWP
function(){$( 'body' ).prepend( '<pre class='mylist'></pre>' );
var resultat = []
$( "'.website-name' ).each(function( index ) {
resultat.push($( this ).text());
});
var items = resultat;
var cList = $('.mylist');
items.map( (item,i ) => {
var li = $('<li/>')
@Jursdotme
Jursdotme / functions.php
Created December 20, 2023 10:20
Gutenberg custom blog style
<?php
add_action('init', 'jurs_register_block_styles');
function jurs_register_block_styles() {
register_block_style('core/paragraph', array(
'name' => 'lead',
'label' => __('Leading Paragraph', 'themeslug'),
'inline_style' => '.is-style-lead {
font-weight: bold;