Skip to content

Instantly share code, notes, and snippets.

View lasida's full-sized avatar
🎯
Focusing

Lasida lasida

🎯
Focusing
View GitHub Profile
@lasida
lasida / wp.editor.js
Created March 18, 2020 10:12
WP Editor API Javascript
// Init Value Editor
var editorID = 'editor-1';
// Init TextArea to WP Editor
wp.editor.initialize(
editorID , {
'tinymce': true,
'quicktags': true,
'mediaButtons' : true,
});
@lasida
lasida / class-template-page.php
Created April 29, 2021 11:26
Create Template Page WordPress
Class TemplatePage
{
public function __construct()
{
$this->templates = array();
if ( version_compare( floatval( get_bloginfo( 'version' ) ), '4.7', '<' ) ) {
add_filter('page_attributes_dropdown_pages_args',array( $this, 'register' ));
} else {
add_filter('theme_page_templates', array( $this, 'create' ));
}
$user = "lsdplugins";
$repo = "lsddonation-mynotif";
$api = " https://api.github.com/repos/$user/$repo/releases";
$headers = [
'Accept' => 'application/vnd.github.v3+json',
];
$payload = [
'timeout' => 30,
@lasida
lasida / config.kbd
Last active November 27, 2025 23:31
Omarchy Mouseless + Remap with Kanata
(defcfg
danger-enable-cmd yes
process-unmapped-keys yes
concurrent-tap-hold yes
linux-dev-names-include ("Keyboard K380 Keyboard")
)
;; -------------------------
;; SOURCE LAYOUT
;; -------------------------