Skip to content

Instantly share code, notes, and snippets.

View keul's full-sized avatar
🏠
Working from home

Luca Fabbri keul

🏠
Working from home
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Quick Start - Leaflet</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
// Copy/paste this in the console while on your GitHub profile page
// See https://blog.keul.it/whats-stopping-you-from-coding-like-this/
(function () {
const RIGHT = 'right';
const LEFT = 'left';
const DOWN = 'down';
const UP = 'up';
let gameRunning = false;
@keul
keul / index.html
Created October 22, 2017 22:03
RLdXEE
<div class="main dark-bk">
<div class="grid-container full-size light-bk fontf">
<div class="grid-x margin-1 show-for-small-only">
<div class="cell">
<h1 class="main-title upper">
Yoox<br>
Net-A-Porter<br>
Group
</h1>
</div>
@keul
keul / upgrades.py
Created June 21, 2017 07:23 — forked from thet/upgrades.py
Plone / Zope Component Architecture: Unregister all broken persistent utilities
# -*- coding: utf-8 -*-
from zope.component.hooks import getSite
import logging
log = logging.getLogger(__name__)
def unregister_broken_persistent_components(context):
portal = getSite()
sm = portal.getSiteManager()
@keul
keul / phc_to_native.py
Created February 11, 2017 11:17
PloneHelpCenter to Native
# -*- coding: utf-8 -*-
import transaction
from Products.CMFCore.interfaces import IContentish
print "Migrating PHC"
site = app.portale
phc = site.unrestrictedTraverse('qms/documentazione-sistema-integrato')
@keul
keul / css_resources.md
Created February 12, 2014 11:44 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@keul
keul / python_resources.md
Created February 12, 2014 11:44 — forked from jookyboi/python_resources.md
Python-related modules and guides.

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides

@keul
keul / 0_reuse_code.js
Created February 12, 2014 11:43
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console