Skip to content

Instantly share code, notes, and snippets.

View alvin-milton's full-sized avatar
🤠
yee haw

Alvin Milton alvin-milton

🤠
yee haw
  • New York
View GitHub Profile
@hqhow
hqhow / WordPress-coding-standard.md
Last active July 13, 2020 15:57
Write a WordPress Plugin - Checklist and Standards - HQHow.com

This collection on standards by HQHow.com

  • Escape, echo, sanitize,...validate input data
  • Every echo must include text-domain for the translation
  • If there's empty file, delete it
  • If there's the commented code, delete it on the production commit.
  • If you want to regist the resources file, like CSS or JS, you must pay attention to the - performance and how it will affect to user's site
  • For every output class name, they must have the plugin prefix, i.e InnoRef, the prefix should be inr-your-class-name
  • Try not to override the basic elements like a, b, strong, i....you will want to mantain the consistancy of the UI through out the website
  • If you want to call and run AJAX, you just do it via wp-ajax.php action, and must pay attention to logged in/out user case.
#! /usr/bin/env python3
from ns1 import NS1
import pprint
import subprocess
import keyboard
NS1_API_KEY = "<INSERT API KEY>"
ZONE_NAME = '<INSERT ZONE NAME>'
@itod
itod / split_keyboards.md
Last active April 11, 2025 08:38
Every "split" mechanical keyboard currently being sold that I know of
@rauchg
rauchg / README.md
Last active January 6, 2024 07:19
require-from-twitter
@yoavniran
yoavniran / ultimate-ut-cheat-sheet.md
Last active March 24, 2025 20:20
The Ultimate Unit Testing Cheat-sheet For Mocha, Chai, Sinon, and Jest
@ericelliott
ericelliott / essential-javascript-links.md
Last active March 22, 2025 17:28
Essential JavaScript Links
@alana-mullen
alana-mullen / Detect the last post in the WordPress loop
Last active May 29, 2023 16:50
Detect the last post in the WordPress loop
<?php if (($wp_query->current_post +1) == ($wp_query->post_count)) {
echo 'This is the last post';
} ?>
<?php if (($wp_query->current_post +1) != ($wp_query->post_count)) {
echo 'This is the not the last post';
} ?>