Skip to content

Instantly share code, notes, and snippets.

View ocharles's full-sized avatar
🥳

Ollie Charles ocharles

🥳
View GitHub Profile
package MusicBrainz::Server::Data::Types;
use Moose::Util::TypeConstraints;
use MooseX::Types::Moose qw( Str Int );
use MooseX::Types::Structured qw( Dict Optional );
subtype 'DateHash'
=> as Dict[
year => Int,
month => Optional[Int],
jQuery.toggle = function(options)
{
var settings = {
on: function() { },
off: function() { },
on_graphic: '/static/images/release_editor/edit-on.png',
off_graphic: '/static/images/release_editor/edit-off.png',
initial: false,
};
jQuery.extend(settings, options);
var $input = $('<input>').appendTo(...);
var comp = new jQuery.myautocomplete($input, {
onSelection: callback
});
function callback()
{
this; // Would point to "comp" - the autocompleter above
this.id() // Return the selected Id
this.value() // Return the selected value
$idInput.trigger('select', [ result ]);
// Later
$rec.bind('select', function(e, result) {
// result is undefined?
})
$artist_id = $('<input type="text">').appendTo(artistCell)
.autocomplete().one('select', function(e, result) {
$artist_id.bind('select', function() { console.log('hmmm') });
});
* Things the release editor has to do...
*** Editing the release itself:
Data such as title, type, status, etc.
- [X] Edit date -- use a set of 3 inline fields (YYYY-MM-DD)
- [X] Edit country -- inline <select>
- [X] Edit barcode -- inline <input>
- [X] Edit packaging -- inline <select>
package MusicBraiz::Server::Edit::Types;
use strict;
use MooseX::Types::Moose qw( Maybe );
use MooseX::Types::Structured qw( Optional );
use Sub::Exporter -setup => { exports => ['Key'] };
sub Nullable { Optional[Maybe @_] }
1;
1 x Seba & Krazy, High priestess / Chameleon - Paradox Music, PM 014
(10037)
@ GBP 4.87 each (+ 15% Tax)
1 x Icicle & Switch, Looking away / Strange behaviour - Osiris Music,
OSMUK 005 (11316)
@ GBP 4.87 each (+ 15% Tax)
1 x Nucleus & Paradox, B boy ascendance / Zenith's core - Esoteric Music,
ESOTERIC 010 (11362)
alias "+uber" "say_team FREE HUGS!!1!1; +attack2"
alias "-uber" "-attack2"
bind "mouse2" "+uber"
---> Configuring libid3tag
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libid3tag/work/libid3tag-0.15.1b" && ./configure --prefix=/opt/local --disable-dependency-tracking " returned error 1
Command output: checking whether to build static libraries... yes
configure: creating libtool
---- SNIP ----
checking for compress2 in -lz... no
configure: error: libz was not found
*** You must first install zlib (libz) before you can build this package.
*** If zlib is already installed, you may need to use the LDFLAGS
*** environment variable to specify its installed location, e.g. -L<dir>.