This file contains hidden or 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
// moodle/media/player/videojs/classes/plugin.php | |
var styles = document.createElement("style"); | |
styles.innerHTML = "\ | |
.vjs-youtube .vjs-tech {\ | |
pointer-events: none !important; \ | |
}\ | |
.vjs-youtube .vjs-big-play-button { \ | |
position: absolute; \ | |
left: 50%; \ |
This file contains hidden or 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
<!-- : Begin batch script | |
@echo off | |
cscript //nologo "%~f0?.wsf" "%UserProfile%\Start Menu\Programs\Startup\%~n1.lnk" "%~f1" | |
exit /b | |
----- Begin wsf script ---> | |
<job> | |
<script language="JScript"> | |
var link = WScript.Arguments.Item(0); | |
var target = WScript.Arguments.Item(1); | |
var shell = WScript.CreateObject("WScript.Shell"); |
This file contains hidden or 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
const Path = require("path"); | |
const Module = require("module"); | |
const original = Module.prototype.require; | |
Module.prototype.require = function() { | |
if (arguments[0][0] === "~") { | |
arguments[0] = Path.join(__dirname, arguments[0].slice(1)); | |
} | |
return original.apply(this, arguments); | |
}; |
This file contains hidden or 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" encoding="UTF-8" standalone="yes"?> | |
<addon id="service.autoexec" name="Autoexec Service" version="1.0.0" provider-name="your username"> | |
<requires> | |
<import addon="xbmc.python" version="3.0.0"/> | |
</requires> | |
<extension point="xbmc.service" library="autoexec.py"> | |
</extension> | |
<extension point="xbmc.addon.metadata"> | |
<summary lang="en_GB">Automatically run python code when Kodi starts.</summary> | |
<description lang="en_GB">The Autoexec Service will automatically be run on Kodi startup.</description> |
This file contains hidden or 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
import xbmc | |
# 9000: main menu, 14000: favourites | |
# see: addons/skin.estuary/xml/Home.xml | |
xbmc.executebuiltin('SetFocus(9000,14000)') |
This file contains hidden or 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
<keymap> | |
<global> | |
<keyboard> | |
<up mod="longpress">action(reloadkeymaps)</up> | |
<down mod="longpress">reloadskin()</down> | |
<left mod="longpress">Notification(command,test)</left> | |
<right mod="longpress">Skin.ToggleDebug()</right> | |
</keyboard> | |
</global> | |
</keymap> |
This file contains hidden or 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
<advancedsettings> | |
<languagecodes> | |
<code> | |
<short>pb</short> | |
<long>Portuguese (Brazil)</long> | |
</code> | |
<code> | |
<short>pob</short> | |
<long>Portuguese (Brazil)</long> | |
</code> |
This file contains hidden or 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
using CookComputing.XmlRpc; | |
using System; | |
namespace XmlRpcClient | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var service = XmlRpcProxyGen.Create<ICalcService>(); |