Skip to content

Instantly share code, notes, and snippets.

@giupo
giupo / init.el
Created March 19, 2018 13:45
Emacs config
;; Added by Package.el. This must come before configurations of
;; installed packages. Don't delete this line. If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
(package-initialize)
(server-start)
(setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin"))
#!/usr/bin/env bash
PREFIX=`pwd`/repec
export CFLAGS="-I${PREFIX}/include"
export CXXFLAGS="-I${PREFIX}/include"
NCPU=`grep -c ^processor /proc/cpuinfo`
if [ ! -d "$(pwd)/pcre-8.4.1" ]; then
@giupo
giupo / ProgrammersOath.rst
Created August 24, 2017 10:05
Programmer's Oath

Programming Oath

  1. I will not produce harmful code.
  2. The code that I produce will always be my best work. I will not knowingly allow code that is defective either in behavior or structure to accumulate.
  3. I will produce, with each release, a quick, sure, and repeatable proof that every element of the code works as it should.
@giupo
giupo / concorso.org
Created July 29, 2017 15:57
Argomenti concorso

Concorso Expert (orientamento informatico, lettera E.) [0%]

  • [ ] La modellazione dei requisiti e le tecniche per l’analisi dei fabbisogni [0%]
  • [ ] I metodi dello sviluppo del software e la loro logica (es. prototipizzazione, metodi agili, rerverse engineering, ecc…) [0%]
  • [ ] Le metriche connesse allo sviluppo dellel applicazioni [0%]
  • [ ] Enteprise Application Integration: Service Oriented Architecture, web service [0%]
  • [ ] Metodologie di Project Management [0%]
  • [ ] Requisiti dell’architettura di sistemi: prestazioni, manutenibilita’, estendibilita’, scalabilita’, disponibilita’, affidabilita’, sicurezza, accessibilita’ [0%]
  • [ ] Sistemi operativi: principi di funzionamento, processi e gestione delle risorse. Tecnologie per la virtualizzazione [0%]
  • [ ] Architetture dei sistemi elaborativi: architetture centralizzate (mainframe o server-based) architetture distribuite (Grid, Cloud computing, High Performance Computing, peer-to-peer) [0%]
  • [ ] DBMS: progettazione logica e fisica delle basi di
@giupo
giupo / udpserver.py
Created April 4, 2017 07:46 — forked from jamiesun/udpserver.py
tornado UDP server
#!/usr/bin/env python
#coding=utf-8
import socket
import os
import errno
from tornado.ioloop import IOLoop
from tornado.platform.auto import set_close_exec
class UDPServer(object):
def __init__(self, io_loop=None):
Server di generazione: impresasemplice.it
vac.portuense@aslromad.it
#550 5.2.2 STOREDRV.Deliver: mailbox full. The following information should help identify the cause: "MapiExceptionShutoffQuotaExceeded:16.18969:B9000000, 17.27161:0000000094000000000000000000000000000000, 255.23226:00000000, 255.27962:FE000000, 255.17082:DD040000, 0.26937:0E000000, 4.21921:DD040000, 255.27962:FA000000, 255.1494:00000000, 255.26426:FE000000, 4.7588:0F010480, 4.6564:0F010480, 4.4740:05000780, 4.6276:05000780, 4.5721:DD040000, 4.6489:DD040000, 4.2199:DD040000, 4.17097:DD040000, 4.8620:DD040000, 255.1750:DD040000, 0.26849:DD040000, 255.21817:DD040000, 0.26297:DD040000, 4.16585:DD040000, 0.32441:DD040000, 4.1706:DD040000, 0.24761:DD040000, 4.20665:DD040000, 0.25785:DD040000, 4.29881:DD040000". ##
Intestazioni originali del messaggio:
Received: from COPIRN01.copdmz.local (10.32.123.165) by COPMMX01B03
(10.32.95.18) with Microsoft SMTP Server id 8.3.406.0; Tue, 1 Nov 2016
22:09:20 +0100
import tornado.web
import tornado.httpserver
import os
class PageOneHandler(tornado.web.RequestHandler):
def get(self):
self.write(str(self.application.configs) + "\n")
def post(self):
if (
if (is.na(z[[n]])==F ){z[[n]]>0.01 && z[[n]]==z[[n-1]] && z[[n]]!= z[[n-3]]}
else
{z[[n-1]]>0.01 && z[[n-1]]==z[[n-2]] && z[[n-1]]!= z[[n-4]]}
) {ck[[i]]=1} else {ck[[i]]=0}
;;; package -- init.el
;;; Commentary:
;;; Path for find and grep
;;; Code:
(when (or (eq system-type 'windows-nt) (eq system-type 'msdos))
(setenv "PATH" (concat "C:\\cygwin64\\bin" (getenv "PATH")))
(setq find-program "C:\\cygwin64\\bin\\find.exe"
grep-program "C:\\cygwin64\\bin\\grep.exe"))
## class creation
.classes <- c("year")
#' default Constructor of the S3 class
#'
#' @export
year <- function(x) {
structure(floor(x + .001*11/12) , class = .classes)
}
## coercion to year: always go via numeric