Skip to content

Instantly share code, notes, and snippets.

View atomjoy's full-sized avatar

Atomjoy atomjoy

View GitHub Profile
@atomjoy
atomjoy / Seo-transition-words.js
Last active September 22, 2024 07:40
Transition words in website seo.
/* transition words */
const singleWords = [ "aby", "abym", "abyśmy", "abyś", "abyście", "acz", "aczkolwiek", "albowiem", "ale", "aliści",
"bo", "bowiem", "bynajmniej", "choć", "chociaż", "chociażby", "czyli", "dlatego", "dodatkowo", "dopóki", "dotychczas",
"faktycznie", "gdy", "gdyż", "jakkolwiek", "iż", "jednak", "jednakże", "jeśli", "kiedy", "lecz", "mianowicie", "mimo",
"np", "najpierw", "następnie", "natomiast", "ni", "niemniej", "niż", "notabene", "oczywiście", "ogółem",
"ostatecznie", "owszem", "podobnie", "podsumowując", "pokrótce", "pomimo", "ponadto", "ponieważ", "poprzednio",
"potem", "później", "przecież", "przeto", "przynajmniej", "raczej", "również", "rzeczywiście", "skoro", "także",
"też", "toteż", "tudzież", "tymczasem", "wedle", "według", "więc", "właściwie", "wobec", "wpierw", "wprawdzie",
"wreszcie", "wskutek", "wstępnie", "wszakże", "wszelako", "zamiast", "zanim", "zarówno", "zaś", "zatem", "zresztą",
@atomjoy
atomjoy / Seo-schema-tags.html
Last active September 23, 2024 10:45
Seo schema meta tags.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Page Title</title>
<!-- Search Engine Optimization -->
@atomjoy
atomjoy / Post-page-custom-fields.php
Last active July 2, 2025 13:13
Add custom post and page fields from the plugin in WordPress.
<?php
global $meta_boxes;
$prefix = 'test';
function add_post_meta_box() {
global $meta_boxes;
$post_type = ['post', 'page'];
if (is_admin()) {
@atomjoy
atomjoy / Cars-custom-post-type-brands-taxonomy.php
Last active September 23, 2024 12:33
Custom cars post type with brands taxonomy in WordPress.
<?php
// Cars post type brands taxonomy https://example.org/cars/brands/brand-name/
add_action('init', function () {
register_taxonomy(
'cars-brands',
['cars'],
[
'labels' => [
'name' => 'Brands',
@atomjoy
atomjoy / Docker-install.md
Created September 25, 2024 10:42
Docker install Windows 10

Docker install Windows 10

https://learn.microsoft.com/en-us/windows/wsl/install-manual

PowerShel as Administrator

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Install

@atomjoy
atomjoy / Prestashop-install-errors.md
Last active October 9, 2024 16:57
Jak zainstalować Prestashop z Xampp na Windows 10 (Błędy podczas instalacji presta shop z xampp).

Prestashop Xampp Win 10

Jak zainstalować Prestashop z Xampp na Windows 10 (Błędy podczas instalacji presta shop z xampp).

Xampp

Zmienne środowiskowe

Ssl error windows

@atomjoy
atomjoy / Rwd-html-email.html
Last active October 21, 2024 11:12
RWD html e-mail example.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>RWD Html Email</title>
<link href="https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&amp;display=swap" rel="stylesheet">
<style>
@atomjoy
atomjoy / Drivers.md
Created October 28, 2024 12:23
Huawei Laptop Drivers
@atomjoy
atomjoy / Email-html-signatures.md
Last active December 16, 2024 17:41
Podpisy e-mail w formacie HTML

Podpisy email html

  • Używaj tylko inline style w divach i odnośnikach a z box-sizing: content-box
  • Ramki border: do img tylko przez dodatkowy div (w Proton się powielają)
  • Koniecznie box-sizing: content-box i uwzględnianie paddingów i borderów (o2, wp i Yahoo)
  • Yahoo nie obsługuje box-sizing: border-box a Wp i o2 wymusza box-sizing: content-box (gryzie się)
  • Używać szrokości (width:) i wysokości (height:) w pikselach (px) pamiętać o borderach gdy są bez tabel
  • Nie działa height="" w tagach (wp, o2)
  • Nie działa img inline style height: width: (yahoo) dodać height="" i inline style (lub min-width/height, max-width/height)
  • Nie działa width: w procentach % (wp, o2, yahoo) bez box-sizing: content-box (uwzględnić border width trzeba)
@atomjoy
atomjoy / Code-to-json.js
Created January 17, 2025 14:45
Code to json
function jsonEscape(str) {
return str.replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t");
}
function jsonEscapeCode(str) {
return str.replace(/"/g, '\\"').replace(/'/g, "\'");
}
let code = jsonEscapeCode(`<?php
$name = "Benny's";