Skip to content

Instantly share code, notes, and snippets.

View Mativve's full-sized avatar
⌨️
Coding is my life.

Mateusz Świder Mativve

⌨️
Coding is my life.
  • Poland
  • 06:52 (UTC +02:00)
View GitHub Profile
@Mativve
Mativve / add-wordpress-settings-page.php
Created January 21, 2021 17:12 — forked from DavidWells/add-wordpress-settings-page.php
WordPress :: Add Settings Page with All Fields
<?php
/*
Plugin Name: Homepage Settings for BigBang
Plugin URI: http://www.inboundnow.com/
Description: Adds additional functionality to the big bang theme.
Author: David Wells
Author URI: http://www.inboundnow.com
*/
// Specify Hooks/Filters
@Mativve
Mativve / index.js
Created April 1, 2020 05:38
It's main file of electron filesystem.
const { app, BrowserWindow } = require('electron');
function createWindow (){
// Create the browser window.
const win = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
nodeIntegration: true
}
@Mativve
Mativve / index.html
Created April 1, 2020 05:37
It's part of filesystem in Electron
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Hello World!</title>
<meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline';" />
</head>
<body>
@Mativve
Mativve / watermarked.php
Created January 15, 2020 09:14
Wordpress Watermark system (use Regenerate Thumbnail after apply)
<?php
//
// Source: https://wordpress.org/support/article/debugging-in-wordpress/
//
function register_watermarked_size() {
add_theme_support( 'post-thumbnails' );
add_image_size( 'watermarked', 550, 550, true );
}