Max Schoening max

View gist:9983845
1 2 3 4 5 6 7 8 9 10
<!doctype html>
<meta charset="utf-8">
<title>Accordion</title>
 
<style>
selector.eventlistener {
// styling based on e.event
}
selector.eventlistener + selector {
View Dieter Styleguide
1 2 3 4 5
{
"colors": "https://gist.githubusercontent.com/max/9667173/raw/1726bb4bca38ace12fc005dd2a7a6b055f8942df/gistfile1.txt",
"fonts": "https://www.dropbox.com/sh/a83upqa7gy4low1/Yz3lhrWsvR",
"icons": "https://www.dropbox.com/sh/cbyv0kq5ja3f7lf/zamRZRrIQ8"
}
View gist:9667173
1 2 3 4 5 6 7 8 9 10
$blue: #00AFED;
$green: #A6FA62;
$yellow: #FFEB45;
$orange: #FFAA3F;
$red: #E65252;
 
$default-background-color: #1B1B24;
 
$default-text-color: #7A7A8A;
$highlight-text-color: #B0AEC8;
View gist:9451566

AngularJS vs Ember.js

I never had data to back up my hypothesis that AngularJS was going to overpower Ember.js despite its perceived inferiority. Here are some numbers:

Github

AngularJS Ember.js
Stars 21,345 9,557
Forks 6,636 2,041
View gist:7991528
1 2 3 4 5 6 7 8 9
## Retrospective (%@-7D%b %d %Y — %@-3D%b %d %Y)
 
### Good
 
### Bad
 
### Ugly
 
### Learnins'
View gist:6557616

When Ron told me about the Genius Bar, I asked, "So how big is it?" He said, "Five people in every store." "So you're going to take away 20% of the sales floor?" "Yeah." "What are we going to charge?" "Nothing." Most CFOs would say, "Are you fucking crazy?" But even as a financial guy at Apple, you have to have a reverence for the creative side of the business. You have to figure out ways to say yes.

http://www.fastcodesign.com/3016337/an-oral-history-of-apple-design-2004

View gist:6472731
1 2 3 4 5 6 7
.conversation-root + * {
display: none;
}
 
.conversation-module > li:after, .conversation-module > li:before {
display: none;
}
View gist:6458746
1 2 3 4 5 6 7 8
#!/usr/bin/env ruby -wKU
 
 
# A TextExpander snippet to make CloudApp's share URLs SSL friendly
# 1. Upload a file to CloudApp (http://cl.ly/image/2g0a3Q2G3g09)
# 2. Trigger this TextExpander snippet with the share URL in your clipboard
# 3. Have the share URL replaced with a Markdown image using an SSL URL
# (https://s3.amazonaws.com/f.cl.ly/items/1A2b1m1K1S1d442l202u/Image%202013-09-06%20at%2010.24.06%20AM.png)
View gist:6453089
1 2 3 4 5 6 7 8 9 10
@mixin page-heading() {
// Page headers include a background texture refactored into a reusable mixin
@include background-texture();
background: purple;
font-size: 16px;
}
 
@mixin primary-heading() {
color: red;
font-size: 24px;
View gist:6077009

Sometimes you just want to base 64 encode an image or a font file:

function 64enc() {
  openssl base64 -in $1 | awk -v ext="${1#*.}" '{ str1=str1 $0 }END{ print "background:url(data:image/"ext";base64,"str1");" }'|pbcopy
    echo "$1 encoded to clipboard"
}
Something went wrong with that request. Please try again.