View progressive-template.html
<!-- | |
Progressive Disclosure Demo - Updated 15 August, 2012 by Ros | |
Thank you for taking a look under the hood of our progressive disclosure demo. Please note that this is a work in progress, so it's a tad messy and bound to change. | |
If you have any questions, feel free to pop a line to support@campaignmonitor.com - we might learn something, too! | |
Known bugs | |
---------- |
View less-mq-ie.less
/* | |
Usage: the caller must have .content declared in its scope! | |
*/ | |
.mobile() { | |
@media all and (min-width: 480px) { | |
.content; | |
} | |
.ie-lt-ie9 &{ | |
.content; | |
} |
View gist:5464041
<style> | |
* { | |
padding: 0; | |
margin:0; | |
line-height: 1em; | |
font-size: 16px; | |
} | |
.parent { | |
max-width: 100%; | |
background: #eee; |
View KEXP-now-playing.js
var getLiveTrack = function() { | |
// inefficiently get contents of first playlist element | |
var live = JSON.parse(document.getElementById('PlaylistItems').children[0].getAttribute('data-playlistitem').toString()) | |
// inefficiently output results | |
if (live.ArtistName && live.TrackName) { | |
console.log(live.ArtistName + ' - ' + live.TrackName); | |
} else if (live.ArtistName) { | |
console.log(live.ArtistName + ' - unknown track'); | |
} else if (live.TrackName) { |
View free -m && cat proc cpuinfo
pi@raspberrypi ~/stratux $ free -m | |
total used free shared buffers cached | |
Mem: 927 510 416 0 19 432 | |
-/+ buffers/cache: 58 868 | |
Swap: 99 0 99 | |
pi@raspberrypi ~/stratux $ cat /proc/cpuinfo | |
processor : 0 | |
model name : ARMv7 Processor rev 5 (v7l) | |
BogoMIPS : 38.40 | |
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm |
View logs_stratux-uat.log
This file has been truncated, but you can view the full file.
START,Fri Sep 11 10:05:13 +0000 UTC 2015 | |
START,Fri Sep 11 10:05:13 +0000 UTC 2015 | |
10248513746,-08a9cde343d1ed51ea1a0579126003207809df12c3da440bf2a4c2a0000530000000 | |
21471180825,-00a9cde343cf2351ea3a0559124801801c00 | |
26535130459,-08a9cde343cddf51ea3e0559124400a05809df12c3da440bfaa4c2a0000520000000 | |
37148074309,-00a9cde343cb5151ea46055912340380e800 | |
43582107692,-00a9cde343c9dd51ea6a059912080580e800 | |
45027840035,-00a9cde343c99151ea74059912000580a800 | |
START,Fri Sep 11 10:05:13 +0000 UTC 2015 |
View ello.css
/* Stylish rules for URLs on the domain Ello.co | |
* author @egid | |
*/ | |
/* get rid of whatever that awful monospace is */ | |
* { | |
font-family: 'Helvetica Neue', Arial, sans-serif; | |
} | |
/* reset their shitty reset */ |
View middleman-premailer-config.rb
require 'premailer' | |
### | |
# Helpers | |
### | |
# Integrated Premailer from https://github.com/RyanParsley/OMP-Generator/blob/master/config.rb | |
# Premailer API: http://premailer.dialect.ca/api | |
module PreMailer | |
class << self |