Skip to content

Instantly share code, notes, and snippets.

View jorgelbg's full-sized avatar
:octocat:
coding

Jorge Luis Betancourt jorgelbg

:octocat:
coding
View GitHub Profile
Alias /test "/var/www/test"
<Directory "/var/www/test">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<?php
class SmartSquareFilter extends AbstractImagickFilter
{
protected function doApply(\Imagick $im)
{
$target = $im->getImageGeometry();
if ($target['width'] === $target['height']) {
// return early if already square

Keybase proof

I hereby claim:

  • I am jorgelbg on github.
  • I am jorgelbg (https://keybase.io/jorgelbg) on keybase.
  • I have a public key whose fingerprint is AD39 A8A4 9ABF C3BF C75B 4549 4823 FD05 E8C3 8E51

To claim this, I am signing this object:

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>search as you type</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<style>
mimeType = MIME.forName(MimeUtil.cleanMimeType(contentType)).toString();
mimeType = MIME.getMimeType(url.toString()).toString();
String contentType = wContentType = datum.getMetaData().get(
new Text(Response.CONTENT_TYPE)).toString();
contentType = parse.getData().getMeta(Response.CONTENT_TYPE);
for (int i = 0; i < this.indexingFilters.length; i++) {
doc = this.indexingFilters[i].filter(doc, parse, url, datum, inlinks);
// break the loop if an indexing filter discards the doc
if (doc == null) return null;
}
Outlink[] outlinks = parse.getData().getOutlinks();
if (outlinks != null) {
for (Outlink outlink : outlinks) {
doc.add("outlinks", outlink.getToUrl());
}
}