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 { |
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
// 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
<?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
/\*([\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
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
/// Function to get next map item | |
/// returns next map item or fallback value if map, key or next item does not exist | |
/// | |
/// @author Simon Koch, Toby Stokes | |
/// | |
/// @access public | |
/// | |
/// @param {Map} $map - Sass list map | |
/// @param {String} $key - List map key of the current item | |
/// @param {String} $fallback (false) - Fallback value if map, key or next item does not exist. If this is 'loop' then returns the first item in the list |
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
# replace [local.dev] with your domain | |
# You will still get ERR_CERT_COMMON_NAME_INVALID - but that can be solved by using the standard add to keychain and trust method | |
openssl req \ | |
-newkey rsa:2048 \ | |
-x509 \ | |
-nodes \ | |
-keyout server.key \ | |
-new \ | |
-out server.crt \ |
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
// line 27ish | |
// ID selectors are naughty! | |
// The :active state only applies if .active isn't | |
li.active .c-btn-filter, | |
li:not(.active) .c-btn-filter:active, | |
li:not(.active) .c-btn-filter:focus { | |
color: grey(80); |
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
Registered in England № 10455912, 60 Gray’s Inn Road, Unit G1, London, England, WC1X 8AQ. Homelyfe is a trading name of AG Lyfe Ltd (FCA Registration 775185), which is an appointed representative of Vibe MGA Management Ltd (FCA Registration 770419), which is authorised and regulated by the Financial Conduct Authority. |
OlderNewer