Skip to content

Instantly share code, notes, and snippets.

View DavidePastore's full-sized avatar

Davide Pastore DavidePastore

View GitHub Profile
@DavidePastore
DavidePastore / reserved.xml
Created April 10, 2021 11:20
Updated version of reserved.xml of doc-it
<?xml version="1.0" encoding="utf-8"?>
<!-- EN Version: 5c8a92d1c5ab04b7895854172db0a6d257eca283 Maintainer: lucalzetta Status: ready -->
<!-- $Revision$ -->
<appendix xml:id="reserved" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>Lista delle parole riservate</title>
<para>
Quella che segue è una lista degli identificatori predefiniti in PHP. Nessuno
degli identificatori elencati qui può essere usato come identificatore in alcuno
dei vostri scripts senza essere esplicitamente annotato diversamente. Queste liste includono parole chiave e variabili predefinite,
@DavidePastore
DavidePastore / bootbox-dialog-v4-all.js
Last active August 21, 2016 12:00 — forked from makeusabrew/bootbox-dialog-v4-all.js
An attempt to demonstrate as many bootbox.dialog options as sanely possible in a single-file gist.
bootbox.dialog({
/**
* @required String|Element
*/
message: "I am a custom dialog",
/**
* @optional String|Element
* adds a header to the dialog and places this text in an h4
*/
@DavidePastore
DavidePastore / bb-html-form.js
Last active August 21, 2016 11:20 — forked from nahakiole/bb-html-form.js
Use buttons and improve the format
bootbox.dialog({
title: "This is a form in a modal.",
message: '<div class="row"> ' +
'<div class="col-md-12"> ' +
'<form class="form-horizontal"> ' +
'<div class="form-group"> ' +
'<label class="col-md-4 control-label" for="name">Name</label> ' +
'<div class="col-md-4"> ' +
'<input id="name" name="name" type="text" placeholder="Your name" class="form-control input-md"> ' +
'<span class="help-block">Here goes your name</span> </div> ' +
bootbox.dialog({
message: "I am a custom dialog",
title: "Custom title",
buttons: [
{
key: "success",
label: "Success!",
className: "btn-success",
callback: function() {
Example.show("great success");
@DavidePastore
DavidePastore / esercizio.cpp
Created October 25, 2013 21:02
Cosa produce il seguente codice c++?
#include <iostream>
using namespace std;
int main(){
int x,w;
cin>>x;
if (x==0)
{
w=1;
@DavidePastore
DavidePastore / supported_hosts.xml
Created October 20, 2013 15:42
Uploader configuration file.
<?xml version="1.0" encoding="utf-8"?>
<neembuuuploader>
<hosts>
<host support="false">
<name>AnonFiles</name>
<address>https://anonfiles.com/</address> <!-- Home Page -->
<private support="true"></private> <!-- Upload with private mode -->
<login support="false"></login>
<anonymous support="true"></anonymous> <!-- Upload without an account -->
<TOS address="https://anonfiles.com/en/terms"></TOS> <!-- Terms Of Service -->