Skip to content

Instantly share code, notes, and snippets.

@LucaTNT
LucaTNT / gist:5540119
Created May 8, 2013 12:28
Custom XBMC keyboard.xml to be used with chinese USB infrared remote control that emulates a keyboard. Here it is: http://dx.com/p/multimedia-ir-remote-controller-with-usb-receiver-for-pc-1-cr2025-26368
<keymap>
<global>
<keyboard>
<!-- reload Keymap, n on the actual keyboard -->
<n>XBMC.Action(reloadkeymaps)</n>
<!-- Orange movie button brings to Movie list -->
<b mod="ctrl,alt">ActivateWindow(Videos,MovieTitles)</b>
<!-- Yellow TV button brings to TV Show list -->
@LucaTNT
LucaTNT / gist:5520296
Created May 5, 2013 09:34
Custom XBMC keyboard.xml to be used with Samsung CEC-capable TV and RaspBMC running on a Raspberry PI
<keymap>
<global>
<keyboard>
<n>XBMC.Action(reloadkeymaps)</n>
</keyboard>
<remote>
<four>ActivateWindow(filemanager)</four>
<five>ActivateWindow(home)</five>
<seven>ActivateWindow(Videos,MovieTitles)</seven>
<eight>ActivateWindow(Videos,TvShowTitles)</eight>
@LucaTNT
LucaTNT / casualtext.php
Created November 13, 2012 21:38
Generatore di frasi casuali
<?php
/* Casual Text
* Autore: Luca Zorzi
* Data: 13/11/2012 (originariamente risale circa al 2004-2005)
* Licenza: BSD
* Scopo: nessuno
* Funzionamento: inserire 4 file txt nella stessa cartella in cui risede questo script:
* nomi.txt dovrà contenere dei nomi, singolari
* verbi.txt dovrà contenere dei verbi TRANSITIVI, non vogliamo frasi come pisciare il cane oppure salire le valigie
* complementi.txt dovrà contenere dei complementi oggetti, che saranno generalmente altri nomi