Skip to content

Instantly share code, notes, and snippets.

View adrianleb's full-sized avatar
💭
Is this thing on?

Adrian le Bas adrianleb

💭
Is this thing on?
View GitHub Profile
did:3:bafyreiavonsnqt74xx3i4xnd6wjtey7zdsmjyexlf7a7rknl2wijqzhrsu

Keybase proof

I hereby claim:

  • I am adrianleb on github.
  • I am adrianleb (https://keybase.io/adrianleb) on keybase.
  • I have a public key whose fingerprint is 86A0 C44D 9F01 EECD D5F0 B6F7 BBEF 266E F48E 62D1

To claim this, I am signing this object:

@adrianleb
adrianleb / shuffler channels
Created May 1, 2014 14:00
channel names and their descriptions
indie/electronic/pop/etc... - genres
site:#{id} - site bundles channel
artist:#{id} - artist bundles channel
favorite:#{id} - user favorite channels
user:#{id} - user channel based on USER, ARTIST and SITE subscriptions from that user
@adrianleb
adrianleb / gist:10464694
Last active August 29, 2015 13:59
little function to find bad streams on an issue
Shuffler.router.currentView.issue.attributes.articles.forEach(function(a, i) {
a.parts.forEach(function (p, i) {
if(p.type) {
p.parts.forEach(function(cp, i) {
if (cp.type in ['stream_url', 'video_url']) {
if (cp.value === null || cp.value === undefined || !cp.value.length) {
console.log("Found a bad stream on article: ","http://wall.shuffler.fm/issues/10" + "/articles/" + a.id, p.type);
};
};
})
@adrianleb
adrianleb / git_workflow_bash
Last active December 26, 2015 18:39
simple git workflow bash script
develop() {
git checkout ${2:-development}
git commit -am $1
git pull origin ${2:-development}
git push origin ${2:-development}
if [[ $2 != master ]]
then
cap pre deploy
else
cap pro deploy
@adrianleb
adrianleb / normalized.html
Created March 7, 2012 21:49 — forked from scottkellum/normalized.html
pixel normalization
<!doctype html>
<html>
<head>
<!-- Encoding -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"></meta>
@adrianleb
adrianleb / dabblet.css
Created January 23, 2012 23:05
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body {
background:#222;
}
h1 {
text-align:center;