Skip to content

Instantly share code, notes, and snippets.

@abidibo
abidibo / greasemonkey_quora.js
Created February 25, 2016 09:51
greasemonkey quora script
// ==UserScript==
// @name quora
// @namespace quora
// @description quora, deletes topics layer
// @include http://www.quora.com*
// @include https://www.quora.com*
// @version 1
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @grant none
// ==/UserScript==
@abidibo
abidibo / README.md
Last active September 15, 2016 08:57
DRF + React js

React.js application development using DRF as REST API

Goal:

  • develop a REST API with django and django-rest-framework
  • develop a react.js frontend application served by django to consume the API
  • react code as STATIC files
  • npm to manage frontend dependencies
  • use a bundler to put all js code together and feed the browser
  • use ES6 specifications (translated into ES5 compilant code by babel)
@abidibo
abidibo / client.patch
Created April 6, 2016 13:50
dbgp 1.1 client eval patch
From 6dae68f6e58c5e71059fec226efea4447e7aaec0 Mon Sep 17 00:00:00 2001
From: abidibo <[email protected]>
Date: Wed, 6 Apr 2016 14:38:21 +0200
Subject: [PATCH] vim vdebug client eval patch
---
client.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/client.py b/client.py
<html>
<head>
<title>La mia campagna</title>
<meta charset="utf-8" />
<link href="https://fonts.googleapis.com/css?family=Fjalla+One|Josefin+Sans:100,300,300i,400,400i,600,700" rel="stylesheet">
</head>
<style>
body {
background: #f6f6f6;
font-family: 'Josefin Sans', sans-serif;
<html>
<head>
<title>La mia campagna</title>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Fjalla+One|Josefin+Sans:100,300,300i,400,400i,600,700" rel="stylesheet">
</head>
<style>
body {
background: #f6f6f6;
font-family: 'Josefin Sans', sans-serif;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="format-detection" content="telephone=no" /> <!-- disable auto telephone linking in iOS -->
<title>Newsletter #xxx</title>
<style type="text/css">
/* RESET STYLES */

ADMIN

  • django-suit
  • django-grappelli
  • django-otto-admin
  • django-baton

MENU

  • django-treenav

COMMENTS

@abidibo
abidibo / vim-cscope-ctags.md
Last active June 27, 2017 12:43
vim cscope, ctags

Ricerca all'interno del codice, cscope

Utilizzando il comando cscope è possibile creare uno screenshot della cartella di lavoro che permette di cercare al volo tutti i punti nei quali viene ad esempio utilizzata una certa funzione.

Scarica cscope

sudo apt-get install cscope

@abidibo
abidibo / node-dev-gotchas.md
Last active January 13, 2017 13:42
Node dev

Node Development gotchas

Init Project

npm init

Install packages

Production package (jQuery, react...)

@abidibo
abidibo / react-native-stuff.md
Last active July 13, 2017 10:36
React Native Stuff

Emulators

How to see the list of available emulators?

$ android list avd

How to start a virtual device from terminal (no need to open Android Studio)?

$ cd ~/Android/Sdk/emulator && ./emulator -avd EMULATOR_NAME -qemu -m 1024 -enable-kvm