Skip to content

Instantly share code, notes, and snippets.

View jasperfrontend's full-sized avatar
🏠
Vue'ing

Jasper jasperfrontend

🏠
Vue'ing
View GitHub Profile
@jasperfrontend
jasperfrontend / laposta-redirect-to-page.js
Created November 12, 2024 14:27
Forward to a webpage after successful signup with Laposta Signup Basic WordPress
// Add this to wherever your theme accepts JavaScript.
document.addEventListener('DOMContentLoaded', function() {
const form = document.querySelector('form.lsb-form'); // DEFAULT LAPOSTA SIGN-UP FORM CLASS. CHANGE IF NEEDED
if (form) {
form.addEventListener('submit', function(e) {
e.preventDefault();
const formData = new FormData(form);
const params = new URLSearchParams();
@jasperfrontend
jasperfrontend / TTS.md
Created October 9, 2024 19:14
TTS list JasperSpins
using System;
using System.Collections.Generic;
public class CPHInline
{
public bool Execute()
{
// List of banned artists
List<string> bannedArtistsList = new List<string>
{
<?php
// My time shortcode [mytime timezone="Europe/Amsterdam" format="h:i A"]
// You can also edit the defaults on lines 7 & 8, then you can just use [mytime] to show your current time
add_shortcode( 'mytime', 'imw_my_time' );
function imw_my_time( $atts ) {
$atts = shortcode_atts( array(
'timezone' => 'Europe/Amsterdam',
'format' => 'h:i A'
), $atts, 'mytime' );
<?php
/*
Usage: [mytime]
Edit the timezone on line 8 to reflect your actual timezone.
Find your timezone: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones */
add_shortcode( 'mytime', 'ims_my_time' );
function ims_my_time( $atts ) {
$timezone = new DateTimeZone( 'Europe/Amsterdam' ); // edit this
$return = wp_date("h:i A", null, $timezone );
return $return;
/*
* Warzone single headshot fix
* This fix will apply to the latest and any previous versions of Warzone
* Simply read this fix and apply accordingly
*/
Stop playing the game.
@jasperfrontend
jasperfrontend / readme.md
Created April 30, 2020 13:02
Download an entire website with wget
wget \
     --recursive \
     --no-clobber \
     --page-requisites \
     --html-extension \
     --convert-links \
     --restrict-file-names=windows \
     --domains WEBSITE.nl \
 --no-parent \