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.
<?php | |
/* | |
Plugin Name: On-Demand image resizer | |
Plugin URI: http://www.monkeyman.be | |
Description: Create and store images in different sizes on demand | |
Version: 1.0 | |
Author: Jan Fabry | |
This plugins monitors 404 requests to the uploads directory and created new images of a requested size. They are saved as new files in the upload directory, not cached somewhere, so future requests are served directly by the server. This allows you to eliminate the creation of intermediate image sizes [see monkeyman-virtual-intermediate-images] or resize images based on the size used in the editor [see monkeyman-resize-image-tags]. |
<?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 ) |
<!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; } |
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 |
$(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 { |
// 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" | |
}); |
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') |
using System; | |
using PlainElastic.Net; | |
using PlainElastic.Net.Queries; | |
using PlainElastic.Net.Serialization; | |
using PlainElastic.Net.Utils; | |
namespace FacetQuerySample | |
{ | |
class Item |
.DS_Store | |
tmp/ |