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
| 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], |
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
| 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); |
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
| 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 |
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
| $idInput.trigger('select', [ result ]); | |
| // Later | |
| $rec.bind('select', function(e, result) { | |
| // result is undefined? | |
| }) |
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
| $artist_id = $('<input type="text">').appendTo(artistCell) | |
| .autocomplete().one('select', function(e, result) { | |
| $artist_id.bind('select', function() { console.log('hmmm') }); | |
| }); |
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
| * 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> |
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
| 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; |
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
| 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) |
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
| alias "+uber" "say_team FREE HUGS!!1!1; +attack2" | |
| alias "-uber" "-attack2" | |
| bind "mouse2" "+uber" |
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
| ---> 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>. |