Skip to content

Instantly share code, notes, and snippets.

View martino's full-sized avatar
🐘
happy

Martino Pizzol martino

🐘
happy
  • Spaziodati
  • Italy
View GitHub Profile
# vim:fileencoding=utf-8:ft=conf:foldmethod=marker
#: Fonts {{{
#: kitty has very powerful font management. You can configure
#: individual font faces and even specify special fonts for particular
#: characters.
# font_family monospace
# bold_font auto

Keybase proof

I hereby claim:

  • I am martino on github.
  • I am mpiz (https://keybase.io/mpiz) on keybase.
  • I have a public key ASAR5sxBdjyTm__jbTr1EPtP96RJFhaz2OmY8lHCv1P32go

To claim this, I am signing this object:

@martino
martino / gist:9807733
Created March 27, 2014 13:38
karma chrome without securitu
module.exports = function(config) {
config.set({
browsers: ['chrome_without_security'],
customLaunchers: {
chrome_without_security: {
base: 'Chrome',
flags: ['--web-security-disabled']
}
}
});
@martino
martino / gist:9225865
Created February 26, 2014 08:37
documents/occurrence.json?id=53517&occurrence=138317:15
{
excerpts: [
{
excerpt: "rincipesco vescovili l’emblema del Capitolo del Duomo, ma ripetevano nelle posizioni d’onore l’aquila di S. Venceslao, simbolo del Principato tridentino. Esisteva un emblema del Capitolo del <span class="occurrence">Duomo di Trento</span>? Un antico manoscritto della Contea del Tirolo (manoscritto secentesco già dell’archivio di P.N. di S. Pietro) rappresenterebbe come emblema del Capitolo del Duomo di Trento la figura stili",
occurrenceText: "Duomo di Trento",
page_number: 74,
offset: 138317
}
]
}
@martino
martino / gist:9225822
Created February 26, 2014 08:31
api/documents/47.json
{
document: {
id: "47-il-volto-di-trento-ita",
title: "Il Volto Di Trento Ita",
access: "private",
pages: 292,
description: "",
source: "",
created_at: "Tue, 10 Sep 2013 10:26:13 +0000",
updated_at: "Mon, 24 Feb 2014 10:41:59 +0000",
@martino
martino / gist:9225773
Created February 26, 2014 08:27
/api/entities.json?name=Cattedrale%20di%20san%20vigilio
[
{
id: 53517,
kind_urls: "http://dbpedia.org/ontology/Place,http://dbpedia.org/ontology/ReligiousBuilding,http://dbpedia.org/ontology/ArchitecturalStructure,http://dbpedia.org/ontology/Building",
relevance: 0.790335035540163,
urls: "http://it.wikipedia.org/wiki/Cattedrale_di_San_Vigilio",
occurrences: "2233:15,138317:15,138500:15,138544:27,205599:15,233929:26,262418:15,262621:15,266992:15,281469:15,283045:20,283775:15,284324:20,284864:16,286492:15,293274:20,294401:15,296767:15,299254:15,300029:15,302726:25,303021:15,375133:15,474209:15,555897:15,576604:16,576703:16,582014:21,582109:21",
kind: "place",
document_id: 47,
value: "Cattedrale di San Vigilio",
@martino
martino / gist:5559328
Created May 11, 2013 08:37
Remove jquery selector
// custom lightweight selector implementation
// nickname: dolla
window.$ = function(selector) {
return document.querySelector(selector);
};
window.$$ = function(selector) {
var items = {},
results = [],
@martino
martino / gist:4662949
Created January 29, 2013 09:22
Clear memcache cache
from django.core.cache import cache
# Flush!
cache._cache.flush_all()
@martino
martino / gist:2225600
Created March 28, 2012 11:50
jslint switch indent
function CreateNewSearchItem(itemType) {
var newItem = null, view = null;
switch (itemType) {
case 'image':
newItem = MediaBox.Models.ImageMediaItem;
view = MediaBox.Views.ImageSearchItem;
break;
case 'document':
newItem = MediaBox.Models.DocumentMediaItem;
view = MediaBox.Views.DocumentSearchItem;
<div class="hentry u-jayrosen_nyu share status" id="status_25729475291389952"> <span class="status-body"> <span class="entry-content">&quot;Getting a great hashtag in front of the right audience is more important than getting it in front of a big audience.&quot; <a href="http://jr.ly/6khc" class="tweet-url web" rel="nofollow" target="_blank">http://jr.ly/6khc</a></span> </span>
<p></p>
</div>