Skip to content

Instantly share code, notes, and snippets.

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
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
START,Fri Sep 11 10:05:13 +0000 UTC 2015
@egid
egid / ello.css
Last active August 29, 2015 14:07
/* 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 */
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
@egid
egid / less-mq-ie.less
Last active December 18, 2015 23:39
variation of https://github.com/less/less.js/issues/965#issuecomment-17483536 designed to duplicate the content of a media query for IE8
/*
Usage: the caller must have .content declared in its scope!
*/
.mobile() {
@media all and (min-width: 480px) {
.content;
}
.ie-lt-ie9 &{
.content;
}
@egid
egid / gist:5464041
Created April 25, 2013 23:23
Using flexbox to set up a collapsible field that can grow with available space.
<style>
* {
padding: 0;
margin:0;
line-height: 1em;
font-size: 16px;
}
.parent {
max-width: 100%;
background: #eee;
@egid
egid / KEXP-now-playing.js
Created April 10, 2013 20:58
Just a proof of concept to see if I could semi-quickly check to see what the current KEXP track was. The plan is to dig into how Alfred extensions work and see if I can make use of this. It currently can only parse the contents of [the KEXP.org mini playlist](http://kexp.org/playlist/miniplaylist).
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) {
@egid
egid / progressive-template.html
Last active November 14, 2023 14:28
Forking the toggled progressive disclosure template found at the Campaign Monitor 2-column layout (originally at http://www.campaignmonitor.com/guides/mobile/responsive/)
<!--
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 [email protected] - we might learn something, too!
Known bugs
----------