Skip to content

Instantly share code, notes, and snippets.

View freaktechnik's full-sized avatar
🚞
I like trains

Martin Giger freaktechnik

🚞
I like trains
View GitHub Profile
@freaktechnik
freaktechnik / EQPresetsInterfacesDraft.idl
Last active August 29, 2015 13:56
Nightingale Equalizer Presets API Draft
// The content of this file is subject to change
// Nightingale Equalizer Presets Backend Infrastructure draft
interface sbIMediacoreMultibandEqualizer : nsISupports
{
...
attribute AString currentPresetName;
};
@freaktechnik
freaktechnik / Makefile
Created February 15, 2014 23:18
Nightingale make install
ifeq (, $(filter linux, $(OSTYPE)))
$(error Installing using make is currently not supported on your operating system)
endif
$(CP) $(DISTDIR) /usr/lib/nightingale
ln -s /usr/lib/nightingale/nightingale /usr/bin/nightingale
xdg-icon-ressource install --novendor --size 512 $(DISTDIR)/chrome/icons/default/default.xpm nightingale
xdg-desktop-menu install --novendor $(TOPSRCDIR)/debian/nightingale.desktop
@freaktechnik
freaktechnik / gist:e05a083e59932c99887e
Last active August 29, 2015 14:02
KnownEQPresetsBugs
  • Saved EQ presets don't change name when the locale of the application changes
  • Current eq preset name incorrect after locale change
@freaktechnik
freaktechnik / LICENSE
Created June 8, 2014 22:06
NGale logo license
The Nightingale logo can be used without any permission for works directly related to Nightingale. Usage for any other purposes, including distribution with a fork of Nightingale, are not allowed.
diff --git a/debian/control b/debian/control
index 5677472..c3949f1 100644
--- a/debian/control
+++ b/debian/control
@@ -32,6 +32,8 @@ Architecture: any
Depends:
${shlibs:Depends},
${misc:Depends},
+ gstreamer0.10-plugins-base
+Recommends:
$index = 0;
if(count($this->randomTileWeight) > 0) {
$index = $this->randomTileWeight[array_rand($this->randomTileWeight)];
$this->randomTileWeight = array_filter($this->randomTileWeight, function($item) {
return $item != $index;
});
}
@freaktechnik
freaktechnik / test.js
Last active August 29, 2015 14:20
node-firefox-marketplace minimal test script
var client = new MarketplaceClient("mykey", "mysecret", "development");
client.validatePackage("mines.zip").then(function(result) {
console.log("Result: ", result);
}, function(error) {
console.error(error);
});
var string = self.options.myString;
window.addEventListener("load", function() {
//DOM specific stuff here
});
@freaktechnik
freaktechnik / content-script.js
Last active August 18, 2016 20:03
the l10n get function for content scripts.
function _(id) {
// I'm using self here, but replace it with addon, in case you're loading your content script directly in your html file for a panel
return new Promise((resolve) => {
self.port.once("translated", resolve);
});
self.port.emit("translate", id);
}
// Example usage:
_("anerror").then((string) => {
tabs.open("about:home");
yield wait(tabs, "ready");
assert.ok(main.youtube_download_button.disabled == true);
yield utils.cleanUI();