This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Disable the Block Editor on all pages, except specific pages | |
add_filter('use_block_editor_for_post', '__return_false', 5); | |
add_filter('use_block_editor_for_post', function($can_edit, $post) { | |
// Conditionally allow the block editor per-page | |
if (empty($post->ID)) return $can_edit; | |
if (get_post_meta($post->ID, 'use_block_editor', true) == true) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<MetaNow> | |
<Type><![CDATA[%code0%]]></Type> | |
<StartTimestamp><![CDATA[%time0%]]></StartTimestamp> | |
<Duration><![CDATA[%duration0%]]></Duration> | |
<Title><![CDATA[%title0%]]></Title> | |
<Artist><![CDATA[%artist0%]]></Artist> | |
<Album><![CDATA[%album0%]]></Album> | |
<Filename><![CDATA[%file0%]]></Filename> | |
</MetaNow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<MetaNow> | |
<Type><![CDATA[<!--BSICATEGORY-->]]></Type> | |
<StartTimestamp><![CDATA[<!--BSIDATE--> <!--BSITIME-->]]></StartTimestamp> | |
<Duration><![CDATA[<!--BSILENGTH-->]]></Duration> | |
<Title><![CDATA[<!--BSITITLE-->]]></Title> | |
<Artist><![CDATA[<!--BSIARTIST-->]]></Artist> | |
<Album><![CDATA[<!--BSIALBUM-->]]></Album> | |
<Filename><![CDATA[<!--BSICURRENTFILE-->]]></Filename> | |
</MetaNow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requires https://github.com/anthonyeden/Livewire-Routing-Protocol-Client | |
import time | |
from LWRPClient import LWRPClient | |
# Connect to audio node | |
LWRP_Audio = LWRPClient("192.168.1.5", 93) | |
LWRP_Audio.login() | |
# Connect to GPIO node | |
LWRP_Logic = LWRPClient("192.168.1.5", 93) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
st = 300; | |
t = st - time; | |
c = timeToTimecode(t); | |
c = c.substring(4,8) | |
c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from apiclient.discovery import build | |
from oauth2client.service_account import ServiceAccountCredentials | |
import httplib2 | |
VIEW_ID = 'ga:123456789' | |
def get_service(api_name, api_version, scope, key_file_location, | |
service_account_email): | |
"""Get a service that communicates to a Google API. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter('the_content', function($content) { | |
return str_replace(array("<iframe", "</iframe>"), array('<div class="iframe-container"><iframe', "</iframe></div>"), $content); | |
}); | |
add_filter('embed_oembed_html', function ($html, $url, $attr, $post_id) { | |
if(strpos($html, 'youtube.com') !== false || strpos($html, 'youtu.be') !== false){ | |
return '<div class="embed-responsive embed-responsive-16by9">' . $html . '</div>'; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-AppxPackage -allusers *messaging* | Remove-AppxPackage | |
Get-AppxPackage -allusers *WindowsMaps* | Remove-AppxPackage | |
Get-AppxPackage -allusers *bing* | Remove-AppxPackage | |
Get-AppxPackage -allusers *zune* | Remove-AppxPackage | |
get-appxpackage -allusers *officehub* | remove-appxpackage | |
get-appxpackage -allusers *skype* | remove-appxpackage | |
get-appxpackage -allusers *people* | remove-appxpackage | |
get-appxpackage -allusers *solitaire* | remove-appxpackage | |
get-appxpackage -allusers *xbox* | remove-appxpackage | |
Get-AppxPackage -allusers *windowscommunicationsapps* | Remove-AppxPackage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- ------------------------------------------------------------------ | |
-- MetaData Filter. Copyright (C) 2011 Tls Corporation | |
-- Author: Ioan L. Rus | |
-- | |
-- Lines that start with two dashes (like this line) are comments. | |
-- | |
-- Metadata filters are written in a very simple programming | |
-- language named Lua. Additional information about the language | |
-- and it's syntax can be found at http://www.lua.org. | |
-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This script is designed to export all music from a specific Zetta category to a text file, ready for Powergold to import. | |
Written by Anthony Eden (https://mediarealm.com.au/) | |
""" | |
import os | |
import sys | |
import json | |
import pypyodbc | |
import io |