Skip to content

Instantly share code, notes, and snippets.

View fattura elettronica.vba
Private Sub Comando0_Click()
Dim fSuccess As Boolean
Dim oDoc As MSXML2.DOMDocument
Dim oRoot As MSXML2.IXMLDOMNode ' Level 0 egh_eval
Dim oChild As MSXML2.IXMLDOMNode ' Level 1 eval_set
Dim oChildren As MSXML2.IXMLDOMNode ' Level 2 eval_id, eval_d, eval_e, eval_cred
Dim oChildrenChildren As MSXML2.IXMLDOMNode
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
# a script that create a docker container
echo "USAGE: [local_path]"
# check input parameters
if [ -z "$MYPATH" ]; then
echo "Error: local path is not set"
View nginx ssl docker
server {
listen 443;
ssl on;
ssl_certificate /home/xxxxx/certificati/letsencrypt/live/;
ssl_certificate_key /home/xxxx/certificati/letsencrypt/live/;
# Proxying the connections connections
pierangelo1982 /
Created Nov 8, 2016
java/android date time helper
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;
import android.util.Log;
* Utility class for parsing and formatting dates and times.
pierangelo1982 /
Last active Jul 6, 2016 — forked from dideler/
A python script for extracting email addresses from text files.You can pass it multiple files. It prints the email addresses to stdout, one address per line.For ease of use, remove the .py extension and place it in your $PATH (e.g. /usr/local/bin/) to run it like a built-in command.
#!/usr/bin/env python
# Extracts email addresses from one or more plain text files.
# Notes:
# - Does not save to file (pipe the output to a file if you want it saved).
# - Does not check for duplicates (which can easily be done in the terminal).
# (c) 2013 Dennis Ideler <>
View check_GPS_enable_android.txt
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
public class ExampleApp extends Activity {
/** Called when the activity is first created. */
protected void onCreate(Bundle savedInstanceState) {
LocationManager locationManager = (LocationManager) getSystemService(LOCATION_SERVICE);
if (locationManager.isProviderEnabled(LocationManager.GPS_PROVIDER)){
View Json_POST-to_Rail_with_Volley.txt
try {
RequestQueue requestQueue = Volley.newRequestQueue(this);
String URL = "http://...";
// Prepares POST data...
JSONObject jsonBody = new JSONObject();
jsonBody.put("TakeoffID", "2");
jsonBody.put("ViewPhoto1", "image base64 content");
jsonBody.put("ViewPhoto2", "image base64 content");
// "OrderLineid": "964"...
View rails_paperclip_aws_S3.txt
create a file named aws.yml in config folder (config/aws.yml)
and insert your aws data bucket.
pierangelo1982 / simpleadaptor
Last active Aug 29, 2015 — forked from oceantear/simpleadaptor
How to use Bitmap in listview
View simpleadaptor
package com.sadaptor;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import android.os.Bundle;
import android.os.Environment;
You can’t perform that action at this time.