Skip to content

Instantly share code, notes, and snippets.

/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
@abidibo
abidibo / appdev.sh
Last active June 28, 2017 11:06
webdev and appdev scripts to automate startup dev screens and tools
#! /bin/bash
if [ -z "$1" ]; then
echo "Usage: . appdev [ProjectName]"
else
window=dev:0
project=$1
cd ~/Dev/mobile/${project}
tmux split-window -v
tmux split-window -h
tmux send-keys -t "2" 'npm run start' C-m
gource -s .06 -1920x1080 --auto-skip-seconds .1 --multi-sampling --stop-at-end --highlight-users --hide mouse,progress --file-idle-time 0 --max-files 0 --background-colour 222222 --font-size 22 --title "django-baton - dev" --output-ppm-stream - --output-framerate 30 | ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 4 -bf 0 out.mp4
@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
@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 / 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

ADMIN

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

MENU

  • django-treenav

COMMENTS

<!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 */
<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;