Skip to content

Instantly share code, notes, and snippets.

Rasmus Jürs Jursdotme

Block or report user

Report or block Jursdotme

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Jursdotme
Jursdotme / bookmarklet.js
Created Aug 19, 2019
Get results from ManageWP
View bookmarklet.js
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 / BlogPostsCard.vue
Created Aug 7, 2019
Vue component with apollo problem
View BlogPostsCard.vue
<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>
View mailpoet-rest-api.php
<?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");
View BB Stretch Columns.css
.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%;
}
@Jursdotme
Jursdotme / GTM-K7B2CN6_v18.json
Last active Mar 8, 2018
Inzite Tag manager template
View GTM-K7B2CN6_v18.json
{
"exportFormatVersion": 2,
"exportTime": "2018-03-07 15:14:39",
"containerVersion": {
"path": "accounts/2288261640/containers/8196307/versions/18",
"accountId": "2288261640",
"containerId": "8196307",
"containerVersionId": "18",
"container": {
"path": "accounts/2288261640/containers/8196307",
@Jursdotme
Jursdotme / shortcode.php
Created Feb 14, 2018
Mailpoet bulk subscribe
View shortcode.php
// Add Shortcode
function mailpoet_bulk_subscribe_func()
{
ob_start(); ?>
<form action="?submit=true" method="POST">
<input name="email" type="text" required placeholder="Email address">
<input name="first_name" type="text" placeholder="First name">
<input name="last_name" type="text" placeholder="Last name">
View gist:467f912a7bc5b3adf6025fdf54a8ddd1
function renderProductList(boolHighlighted)
intAmount = 0 '0 equals all(*)
intRows = 75
strFields = "i.ID,i.ItemName,i.Image,i.ParentID, i.Highlighted, i.NetPrice, i.Colli, i.UnitOfMeasure, i.ItemName2"
strOrder = "Order By i.ItemName"
strSearch = ""
intPageNum = 1
intCategory = 0
intLastPage = 0 '0 Gets the last page as intLastPage
@Jursdotme
Jursdotme / inzite-mu.php
Created Oct 16, 2017
Wordpress Must Use Plugin template
View inzite-mu.php
<?php
/*
Plugin Name: Inzite Must Use plugin
Plugin URI: http://jurs.me
Description: Extra functions.
Version: 1.0.0
Author: Rasmus Jürs
Author URI: http://jurs.me
License: GPL
*/
View bb-negative-margin.js
jQuery(document).ready(function() {
jQuery(window).on('resize', function() {
jQuery('#negative-margin').css('margin-top', jQuery('#negative-margin').outerHeight() * -1 + 'px');
})
.trigger('resize');
});
@Jursdotme
Jursdotme / style.css
Last active Sep 27, 2017
FD font rettelse
View style.css
html body, h1, h2 ,h3 ,h4 ,h5 ,h6 {
font-family: "Trebuchet MS", "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", sans-serif !important;
}
You can’t perform that action at this time.