Skip to content

Instantly share code, notes, and snippets.

View helloIAmPau's full-sized avatar
👾
git commit -m 'setting status'

Pasquale Boemio helloIAmPau

👾
git commit -m 'setting status'
View GitHub Profile
@helloIAmPau
helloIAmPau / incremental-dom-template.js
Created June 26, 2018 23:38
Experimenting with incremental-dom framework. This is a parser that converts an HTML template into an incremental-dom template. This supports loops and conditions too.
var htmlparser = require("htmlparser2");
let spaces = 0;
const nodes = {
'dom-loop': function(name, attribs) {
return `for(const current of ${ attribs.items.trim().slice(2, -1).trim() }) {`;
},
'dom-if': function(name, attribs) {
return `if(${ attribs.test.trim().slice(2, -1).trim() }) {`;
},
@helloIAmPau
helloIAmPau / linux.profile
Last active August 29, 2015 14:15
Linux Profile for TexLive installation
# texlive.profile written on Sun Nov 30 13:02:13 2014 UTC
# It will NOT be updated and reflects only the
# installation profile at installation time.
selected_scheme scheme-custom
TEXDIR /home/travis/build/helloIAmPau/curriculum-vitae/tl
TEXMFCONFIG ~/.texlive2014/texmf-config
TEXMFHOME ~/texmf
TEXMFLOCAL /home/travis/build/helloIAmPau/curriculum-vitae/texmf-local
TEXMFSYSCONFIG /home/travis/build/helloIAmPau/curriculum-vitae/texmf-config
TEXMFSYSVAR /home/travis/build/helloIAmPau/curriculum-vitae/texmf-var
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
@helloIAmPau
helloIAmPau / gist:9991579
Created April 5, 2014 12:52
One-shot random string in javascript
Math.random().toString(36).replace('0.','')
#!/bin/bash
function scimark {
echo "downloading scimark"
mkdir -p ./benchmarks
curl http://math.nist.gov/scimark2/scimark2lib.zip > ./benchmarks/sci.zip
cd ./benchmarks
unzip sci.zip
echo "ready to run: 3"
sleep 1
@helloIAmPau
helloIAmPau / Vagrantfile
Created January 1, 2014 23:49
Vagrant file deploying a mongodb server
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
$INSTALL_MONGO = <<SCRIPT
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/debian-sysvinit dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
@helloIAmPau
helloIAmPau / Vagrantfile
Last active November 26, 2021 01:36
Vagrant file deploying a redis server
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
$INSTALL_REDIS = <<SCRIPT
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y redis-server
@helloIAmPau
helloIAmPau / getDots
Last active December 27, 2015 17:19
dotFiles installer
#!/bin/bash
if [ `uname` == "Darwin" ]; then
VIM=/Applications/MacVim.app/Contents/MacOS/Vim;
else
VIM=vim;
fi
echo "Going to tmp folder..."
cd /tmp
@helloIAmPau
helloIAmPau / depot.rb
Created August 4, 2013 06:27
The depot tools formula
require 'formula'
class Depot < Formula
homepage 'https://sites.google.com/a/chromium.org/dev/developers/how-tos/depottools'
url 'https://chromium.googlesource.com/chromium/tools/depot_tools.git'
sha1 ''
def install
prefix.install Dir['*']
end
114
1) La modellazione dei processi gestionali avviene sui tre livelli architetturali nell'ordine:
-aziendale, di processo, di attivita'
-funzionale, di processo, di attivita'
-aziendale, di attivita', di elementi funzionali
2) Gli indici sono i dati:
-aggregati
-le chiavi di accesso
-anagrafici
3) Un Extends indica che: