Opinions are like assholes, every one has got one.
This one is mine.
Punctuation is a bikeshed. Put your semicolons, whitespace, and commas where you like them.
.DS_Store | |
tmp/ |
.DS_Store | |
tmp/ |
using System; | |
using PlainElastic.Net; | |
using PlainElastic.Net.Queries; | |
using PlainElastic.Net.Serialization; | |
using PlainElastic.Net.Utils; | |
namespace FacetQuerySample | |
{ | |
class Item |
import time | |
import urllib2 | |
import json | |
from cartodb import CartoDBAPIKey, CartoDBException | |
from secret import API_KEY | |
URL = 'http://services.redbullstratos.com/LiveData/Get' | |
cl = CartoDBAPIKey(API_KEY, 'javi') |
// Set the CartoDB user account | |
var CartoDB = Backbone.CartoDB({ | |
user: viz2 | |
}); | |
// Create a model, here directly from SQL | |
// You can also do it with simply a table name and list of columns | |
var parksModel = CartoDB.CartoDBCollection.extend({ | |
sql: "SELECT name FROM nyc_parks ORDER BY ST_Area(the_geom) DESC LIMIT 10" | |
}); |
$(document).ready(function() { | |
// Support for AJAX loaded modal window. | |
// Focuses on first input textbox after it loads the window. | |
$('[data-toggle="modal"]').click(function(e) { | |
e.preventDefault(); | |
var href = $(this).attr('href'); | |
if (href.indexOf('#') == 0) { | |
$(href).modal('open'); | |
} else { |
marker.animate('rotate', [0], [-Math.PI * 2], { | |
easing: 'sine.inout' | |
}); | |
marker.animate('translate', [0, 0], [0, -40], { | |
easing: 'sine.in', | |
duration: 500, | |
complete: function() { | |
marker.animate('translate', [0, -40], [0, 0], { | |
duration: 500 |
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title></title> | |
<style> | |
ul { float:left; margin-right:20px; } | |
body { color:white; font-family:Helvetica, sans-serif; text-shadow:1px 1px 1px rgba(0,0,0,0.2); } | |
ul { width:512px; overflow:hidden; border-radius:6px; } |
<?php | |
/* | |
Plugin Name: WPSE 17728 | |
Plugin URI: http://wordpress.stackexchange.com/questions/17728/large-image-size-is-cropped-not-proportional | |
Description: Large image size is cropped, not proportional? | |
Author: jimilesku | |
*/ | |
add_filter( 'intermediate_image_sizes_advanced', 'wpse17728_intermediate_image_sizes_advanced' ); | |
function wpse17728_intermediate_image_sizes_advanced( $sizes ) |