Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Luca Fabbri keul

🏠
Working from home
View GitHub Profile
View github-nibble.js
// Copy/paste this in the console while on your GitHub profile page
(function () {
const RIGHT = 'right';
const LEFT = 'left';
const DOWN = 'down';
const UP = 'up';
let gameRunning = false;
class Nibble {
View index.html
<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 Jun 21, 2017 — forked from thet/upgrades.py
Plone / Zope Component Architecture: Unregister all broken persistent utilities
View upgrades.py
# -*- 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 Feb 11, 2017
PloneHelpCenter to Native
View phc_to_native.py
# -*- 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 Feb 12, 2014 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.
View css_resources.md

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 Feb 12, 2014 — forked from jookyboi/python_resources.md
Python-related modules and guides.
View python_resources.md

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 Feb 12, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.