Skip to content

Instantly share code, notes, and snippets.

View max's full-sized avatar
🏔️

Max Schoening max

🏔️
View GitHub Profile
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script>
<script>
$(function() {
$(".app").click(function(e) {
if (e.which == 1 && !e.metaKey && !e.shiftKey) {
window.location = $(this).find("h2 a").attr("href");
}
});
});
// ## Grid
@siteWidth: (@gridColumns * @gridColumnWidth) + (@gridGutterWidth * @gridColumns);
.columns(@columnSpan: 1) {
float: left;
margin: 0 @gridGutterWidth / 2;
width: (@gridColumnWidth * @columnSpan) + (@gridGutterWidth * (@columnSpan - 1));
}
/*
Heroku fonts used all over.
We can't serve fonts from S3 because of cross domain policies.
https://developer.mozilla.org/en/HTTP_access_control
*/
@font-face {

Border Radius for Gecko

Declaring border-radius for specific corners is not the same in Webkit and Mozilla. That's why you get this in Firefox. Here's a good tool to help you with that (be sure to sort the attributes according to our CSS guide).

Best Practices that kill us in the long run

Things like this are best practices that will kill us in the long run because it's no obvious why you did this:

#apps-processes .sidebar .delta,
Two raindrops you can give away exclusively:
[Autoupload Folder](http://nckplsn.me/3Q2k3j14432T0O3J3219)
To set the folder:
`defaults write com.linebreak.Cloud.AutouploadFolder CLAutouploadPath '/Users/Max/Desktop/Test'`
---
*, html, body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, label, fieldset, input, p, blockquote, th, td {
margin:0;
padding:0
}
.example {
-moz-box-shadow: 0 1px 1px rgba(0, 0, 0, .5), 0 1px 1px rgba(255, 255, 255, .5) inset;
-webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, .5), 0 1px 1px rgba(255, 255, 255, .5) inset;
box-shadow: 0 1px 1px rgba(0, 0, 0, .5), 0 1px 1px rgba(255, 255, 255, .5) inset;
}
<!--
This template is surrounded by a li added by the Backbone view before it's
inserted into the DOM. I'm not a big fan of how that works as I'd rather
define the entire view here. Once I'm more familiar with Backbone, I'll
revisit the issue.
-->
<form action="/items/{{id}}" method="post">
<input name="_method" type="hidden" value="put" />
<?php
function get_content_url($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept: application/json"));
$json = curl_exec($ch);
curl_close($ch);
/* =IE7 & IE8 hax
---------------------------------------------- */
#heroku-header {
min-width/*\**/: 991px\9;
}
/* ------------------------------------------- */