By customizing the display of D3’s brush component, you can make a single-handle slider. Or, by using custom resize handles, you can make a two-handled slider.
Updated from mbostock's original Smooth Slider to including snapping on round values.
| function camelToKebabCase(x) = std.asciiLower(std.native('regexSubst')('([A-Z])', x, '-$1')); |
By customizing the display of D3’s brush component, you can make a single-handle slider. Or, by using custom resize handles, you can make a two-handled slider.
Updated from mbostock's original Smooth Slider to including snapping on round values.
| # prefix option in the bundle is set to '__assets__' | |
| from django.views.generic.simple import redirect_to | |
| urlpatterns = patterns('', | |
| url(r'^__assets__/static/(?P<url>.*\.css)$', 'views.filter_css'), | |
| url(r'^__assets__/static/(?P<url>.*\.less)$', 'views.filter_css'), | |
| (r'^__assets__/static/(?P<rest>.*)$', redirect_to, {'url': '/static/%(rest)s'} ), | |
| ) |
| $ git clone https://github.com/playfire/django-debug-toolbar-user-panel.git | |
| Cloning into django-debug-toolbar-user-panel... | |
| remote: Counting objects: 122, done. | |
| remote: Compressing objects: 100% (107/107), done. | |
| remote: Total 122 (delta 51), reused 52 (delta 9) | |
| Receiving objects: 100% (122/122), 236.00 KiB, done. | |
| Resolving deltas: 100% (51/51), done. | |
| $ cd django-debug-toolbar-user-panel/ |
| public class MyWidget extends AppWidgetProvider { | |
| private static final String TAG = "My Widget"; | |
| @Override | |
| public void onReceive(Context context, Intent intent) { | |
| super.onReceive(context, intent); | |
| if (intent.getAction().equals("org.namespace.ACTION_1")) { | |
| Toast.makeText(context, "Action 1", Toast.LENGTH_SHORT).show(); |
| ;; CPerl-Mode | |
| ;;; cperl-mode is preferred to perl-mode | |
| (require 'cperl-mode) | |
| (setq cperl-hairy t) | |
| (autoload 'tt-mode "tt-mode") | |
| (setq auto-mode-alist | |
| (append '(("\\.tt$" . tt-mode)) auto-mode-alist )) |
| } | |
| } | |
| } // At this point, give up, and assume it's a sentence. | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } |
| Sun Feb 7 01:01:58 2010 : InitDb.pl starting | |
| $VAR1 = bless( { | |
| 'database' => bless( { | |
| 'database' => 'template1', | |
| 'password' => 'postgres', | |
| 'host' => 'localhost', | |
| 'username' => 'postgres' | |
| }, 'MusicBrainz::Server::Database' ) | |
| }, 'MusicBrainz::Server::Connector' ); | |
| Failed query: |
| Sat Feb 6 22:51:33 2010 : InitDb.pl starting | |
| Failed query: | |
| 'SET search_path TO 'musicbrainz'' | |
| () | |
| DBD::Pg::st execute failed: FEHLER: Schema »musicbrainz« existiert nicht at /home/nikolai/Daten/Projekte/Musicbrainz/musicbrainz-server/admin/../lib/Sql.pm line 102. | |
| at /home/nikolai/Daten/Projekte/Musicbrainz/musicbrainz-server/admin/../lib/MusicBrainz/Server/Connector.pm line 46 | |
| Sat Feb 6 22:51:33 2010 : InitDb.pl failed |
| === modified file 'picard/album.py' | |
| --- picard/album.py 2010-01-11 22:53:17 +0000 | |
| +++ picard/album.py 2010-02-01 23:27:56 +0000 | |
| @@ -353,6 +353,11 @@ | |
| self._after_load_callbacks.put(func) | |
| def update(self, update_tracks=True): | |
| + for track in self.tracks: | |
| + for file in track.linked_files: | |
| + file.update() |