This file contains 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
(ns beatstream.songs | |
(:require clojure.java.io) | |
(:import [org.jaudiotagger.audio AudioFileIO] | |
[org.jaudiotagger.tag FieldKey])) | |
(def music-path "/Users/ajk/Music/") | |
(defn get-song-files [directory] | |
(->> directory | |
clojure.java.io/file |
This file contains 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
fi: | |
viewer: | |
comment_on_twitter: 'Kommentoi Twitterissä' | |
older: 'Vanhemmat' | |
newer: 'Uudemmat' | |
feed: 'Syöte' | |
share: 'Jaa' | |
close: 'Sulje' | |
next_post: 'Seuraava artikkeli' | |
previous_post: 'Edellinen artikkeli' |
This file contains 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
// Converts pixels to EMs | |
// Usage: em(16) em(16px) em(16, 24) em(16px, 24px) em(16px, 1em) | |
@function strip-units($number) { | |
@return $number / ($number * 0 + 1); | |
} | |
@function em($pixels, $context: 16) { | |
$base: 16; | |
$value: strip-units($pixels); | |
$value_unit: unit($pixels); |
This file contains 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
#!/bin/bash | |
# | |
# ember - Ember.JS starter kit script | |
# Download this and place it into e.g. /usr/local/bin | |
# | |
# Original: https://github.com/Darep/dotfiles/blob/master/bin/ember | |
# | |
[ -z "$1" ] && echo "No argument supplied" && exit |
This file contains 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
buildData: function () { | |
var newData, data = api.getSongs(); | |
// Fix paths | |
var transformPath = this.transformPath.bind(this); | |
newData = data.map(function (row) { | |
row.path = transformSongPath(row.path); | |
return row; | |
}); |
This file contains 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
<!-- source/layouts/layout.html.erb --> | |
<ul class="nav-float products"> | |
<% for cat in data.products.main_categories do %> | |
<li> | |
<h4> | |
<% link_to cat.url do %> | |
<%= cat.name %> | |
<% end %> | |
</h4> | |
<ul> |
This file contains 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
// Breakpoints for responsive design ($cols are from Frameless Grid) | |
$breakpoint-1: $cols5; | |
$breakpoint-2: $cols7; | |
$breakpoint-3: $cols9; | |
@mixin breakpoint($point) { | |
@if $point == wide { | |
@media (min-width: $breakpoint-3) { @content; } | |
.oldie & { @content; } | |
} |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<title></title> | |
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="jquery.parseParams.js"></script> | |
</head> | |
<body> | |
<script> |
This file contains 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
// Breakpoints | |
$breakpoint-1: 320px; | |
$breakpoint-2: 601px; | |
$breakpoint-3: 801px; // Desktop min-width. Stuff starts to look like it's in the PSDs | |
$breakpoint-4: 1000px; // Typical desktop min-width | |
$breakpoint-5: 1201px; // Maximum width. Nothing should be happening beyond this point | |
$breakpoint-1-max-width: 460px; | |
$breakpoint-2-max-width: 580px; | |
$breakpoint-3-max-width: 999px; | |
$breakpoint-4-max-width: 1200px; |
This file contains 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
import Ember from 'ember'; | |
export default DS.ActiveModelAdapter.extend({ | |
host: 'https://output.jsbin.com', | |
namespace: 'zufarix', | |
buildURL: function (modelName, id, snapshot, requestType, query) { | |
var url = this._super(modelName, id, snapshot, requestType, query); | |
url = url.replace('colors/', '') + '.json'; | |
return url; |