Skip to content

Instantly share code, notes, and snippets.

View alex-wdmg's full-sized avatar
💭
Pfff

Alexsander Vyshnyvetskyy alex-wdmg

💭
Pfff
View GitHub Profile
@alex-wdmg
alex-wdmg / HTTPResource.py
Last active December 29, 2020 21:33 — forked from QuiteClose/HTTPResource.py
Using Python's socket module to send HTTP requests and receive the response.
#!/bin/env python
# expects python3
################################################################################
import argparse
import socket
import sys
################################################################################
@alex-wdmg
alex-wdmg / wp_breadcrumbs.php
Last active April 12, 2024 06:21 — forked from Dimox/dimox_breadcrumbs.php
A custom WordPress nav walker class to implement the Bootstrap 4 breadcrumbs style in a custom theme using the WordPress.
<?php
/**
* WP Bootstrap Breadcrumbs
*
* @package WP-Bootstrap-Breadcrumbs
*
* Description: A custom WordPress nav walker class to implement the Bootstrap 4 breadcrumbs style in a custom theme using the WordPress.
* Author: Dimox - @Dimox, Alexsander Vyshnyvetskyy - @alex-wdmg
* Version: 1.1.0
* Author URI: https://github.com/Dimox
@alex-wdmg
alex-wdmg / myPlugin.js
Created October 31, 2020 11:49
JS Plugin Boilerplate
// Create an immediately invoked functional expression to wrap our code
(function() {
// Define our constructor
this.myPlugin = function() {
// Create global element references
this.element = null;
// Define option defaults
@alex-wdmg
alex-wdmg / umd-boilerplate.js
Last active October 29, 2020 15:54 — forked from cferdinandi/umd-script-boilerplate.js
A simple boilerplate for UMD JS modules.
(function (root, factory) {
if (typeof define === 'function' && define.amd)
define([], factory(root));
else if (typeof exports === 'object')
module.exports = factory(root);
else
root.myPlugin = factory(root);
})(typeof global !== "undefined" ? global : this.window || this.global, function (root) {