Skip to content

Instantly share code, notes, and snippets.

d4rkie / mb.paste-a-date.user.js
Last active Feb 8, 2018
MusicBrainz: Paste-A-Date! (fixed for the new Relationship Editor)
View mb.paste-a-date.user.js
// ==UserScript==
// @name MusicBrainz: Paste-A-Date!
// @description This script adds a field after the existing date fields where you can paste a date and it will try to parse it.
// @version 2015-01-13
// @author nikki, d4rkie
// @grant none
// @include *://*
// @include *://*
// @include *://*
View D3CE-cdtext.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
d4rkie / config.rb
Created Mar 21, 2014
compass config. emulates a 5th output style I'd call "optimize"
View config.rb
# Require any additional compass plugins here.
if Sass::VERSION =~ /3.1/
raise "you should upgrade to Sass version 3.2"
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "/css"
sass_dir = "/scss"
d4rkie / unminify.rb
Last active Aug 29, 2015
simple method to "prettify" compressed CSS. useful with compass in config.rb
View unminify.rb
def unminify(filename)
raise "file not found #{filename}" unless File.exists? filename
text = [], 'r:UTF-8') do |f|
f.each_line do |line|
code = line
.split("\t").join(" ")
.gsub(/\s*{\s*/i, " {\n ")

Dependency Injections



Dependency injection is a software design pattern that allows the removal of hard-coded dependencies and makes it possible to change them, whether at run-time or compile-time. <-- japanese wiki page