Skip to content

Instantly share code, notes, and snippets.

View zaxbux's full-sized avatar
👨‍💻

Zach Schneider zaxbux

👨‍💻
View GitHub Profile
@zaxbux
zaxbux / SoftwareInputPanel.Button.cs
Created June 13, 2019 08:57
Toggle the visibility of the Soft Input Panel button on Windows CE Mobile
using System;
using System.Runtime.InteropServices;
/// <summary>
/// Toggle the visibility of the Soft Input Panel button
/// Source: http://beemobile4.net/support/technical-articles/windows-mobile-programming-tricks-on-net-compact-framework-12
/// </summary>
namespace SoftwareInputPanel
{
class Button
@zaxbux
zaxbux / 403.html
Created June 16, 2019 07:04
IE6 Style Error Pages (HTML5)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
background-color: #fff;
@zaxbux
zaxbux / example.js
Last active January 25, 2020 04:32
Modify request data before submit (October CMS Backend forms)
// Listen to AJAX setup event
// This event is fired before request is formed
// Allows the request data to override input values
// Useful for custom controls, input masks, etc
$(window).on('ajaxSetup', function (e, context) {
// Find the form and inputs from e.target (the submit button)
// Select specific forms and inputs by modifying $('form') and $('input')
$(e.target).closest('form').find('input').each(function() {
var inputName = $(this).attr('name'),
@zaxbux
zaxbux / Production.md
Created April 10, 2020 18:13
October CMS Settings

config/cms.php

return [

 	'disablePlugins' => [
		'October.Demo', // The demo plugin is re-installed with every update, this keeps it permanently disabled
	],

];
@zaxbux
zaxbux / readme.md
Created August 19, 2020 04:24
Developing a Windows Screensaver
@zaxbux
zaxbux / readme.md
Created December 30, 2020 02:26
Text Shadow Plugin for Tailwind CSS

Tailwind CSS text-shadow Plugin

This plugin adds some utility classes for the text-shadow css property.

Examples

Default

<h1 class="text-shadow">Example</h1>
@zaxbux
zaxbux / chan_pjsip--X-UCM--Headers.c
Last active August 26, 2022 03:21
Grandstream GRP26xx SIP Integration
/*! \brief Add "X-UCM-AudioRecord" header and "X-UCM-CallPark" header to outgoing message
*
* if the right is allow callee or allow both, add the header in Invite message;
if the right is allow caller or allow both, add the header in 200 for Invite message
*
* \param req The request/response to which we will add the header
*/
void add_feature_map_header(pjsip_tx_data *tdata, int outgoing_call)
{
char audio_record_code[12] = {0};
@zaxbux
zaxbux / winter-cms-ajax-readme.md
Created April 13, 2021 08:20
Winter CMS AJAX Framework

Winter AJAX Framework

This is some basic documentation on how the Winter CMS AJAX framework currently works.

Headers

Name Purpose Values
X-Requested-With Tells Winter/Laravel/Symfony that the request is an "AJAX Request". XMLHttpRequest
X-WINTER-REQUEST-HANDLER Tells Winter which AJAX handler method to use on the controller/component. modules/backend/classes/Controller.php#L435 Component handler: component::onEvent; Generic handler: onEvent (Note: the onAjax handler name will always return null)
@zaxbux
zaxbux / readme.md
Last active April 29, 2022 02:44
TypeScript for Matomo JavaScript Tracker Client (piwik.js/matomo.js)
@zaxbux
zaxbux / readme.md
Last active August 17, 2023 15:32
Windows System Colours (by OS)

Colors

Windows

Window

Color of the background of the client area of a window.

WindowFrame