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 ListenWithMe = (function() { | |
// Add your own config here | |
var LASTFM_API_KEY = ""; | |
var LASTFM_USERNAME = ""; | |
// Element to inject the widget into | |
var $playerWrapper = document.getElementById('spotify-player-wrapper'); | |
return { | |
init: init | |
} |
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
/\*([\s\S]*?)\*/ |
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
<?php | |
//previous visits will hopefully have lang cookie set. if no cookie, try browser lang | |
$lang = (isset($_COOKIE["lang"])) ? $_COOKIE["lang"] : substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); | |
switch ($lang) { | |
case 'en': | |
header('Location: /en/'); | |
break; | |
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
// select by language, send it one or more comma separated quote-delimited locale codes | |
// assuming lang attribute is set on the html tag, like it should be! | |
// usage: @include if-lang("de") {} | |
// usage: @include if-lang("de", "en", "cn-ZH") {} | |
@mixin if-lang($locales...) { | |
@for $i from 1 through length($locales) { | |
html[lang=#{nth($locales, $i)}] & { | |
@content; | |
} |
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
// ---- | |
// libsass (v0.7.0) | |
// ---- | |
//interpolation bug in libsass example | |
$one: one; | |
$two: two; | |
.variabubble { |
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
// ---- | |
// libsass (v0.7.0) | |
// ---- | |
//interpolation bug in libsass example | |
$authors: Markus Huber, Jasmin Pakbeen, Richard Wiltshire, Ishaq Siddiqi, Mark Priest, Joe Rundle, Lucas Rouxdeluze, Adrien Cohen, Monira Lor, Max Stigliano; | |
// this on it's own works: | |
@each $name in $authors { |
NewerOlder