This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import zipfile | |
# Define the starting directory where to search for zip files | |
start_dir = r"C:\path\to\your\folder" | |
# Define the destination directory where to extract all the zip files | |
destination_dir = r"C:\path\to\your\destination\folder" | |
# Ensure that the destination directory exists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.7; | |
import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol"; | |
/** | |
* @title MockV3Aggregator | |
* @notice Based on the FluxAggregator contract | |
* @notice Use this contract when you need to test | |
* other contract's ability to read data from an |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <float.h> | |
#include <math.h> | |
#include <string.h> | |
#include <stdbool.h> | |
#define length 1000 | |
#define file "xml.txt" | |
//Export |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.io.FileNotFoundException; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.nio.charset.Charset; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.List; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN:VCALENDAR | |
VERSION:2.0 | |
PRODID:-//lanyrd.com//Lanyrd//EN | |
X-ORIGINAL-URL:http://lanyrd.com/topics/nodejs/nodejs.ics | |
X-WR-CALNAME;CHARSET=utf-8:Node.js conferences | |
METHOD:PUBLISH | |
X-MS-OLK-FORCEINSPECTOROPEN:TRUE | |
BEGIN:VEVENT | |
SUMMARY;CHARSET=utf-8:NearForm's Building Production Node.js Systems | |
LOCATION;CHARSET=utf-8:Dublin\, Ireland |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"/> | |
</head> | |
<body> | |
<label for="latInput">Latitude</label> | |
<input id="latInput"/> | |
<label for="lngInput">Longitude</label> | |
<input id="lngInput"/> | |
<div id="map"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%*************************** | |
% Gestion d'un AVL en Prolog | |
%*************************** | |
%*************************** | |
% INSA TOULOUSE - P.ESQUIROL | |
% mars 2015 | |
%*************************** | |
%************************* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Declare task | |
task hello { | |
doLast { | |
println "Hello world !" | |
} | |
} | |
// Dynamic creation of a task | |
task helloShorcut << { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xquery version "3.0"; | |
element Partie2 { | |
element FilmsQueJoueSigourneyWeaver { | |
for $x in doc("Films.xml")//film | |
where data($x//acteur) = "Sigourney Weaver" | |
return element titre {$x//titre} | |
}, | |
element InfoRealisateursFilmAlien { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Steps to configure this server to send mail via gmail relay | |
1. Download postfix and required packages | |
sudo apt-get install postfix mailutils libsasl2-2 ca-certificates libsasl2-modules | |
2. Configure gmail as relay host : in /etc/postfix/main.cf | |
relayhost = [smtp.gmail.com]:587 | |
smtpd_sasl_auth_enable = yes | |
smtp_sasl_auth_enable = yes | |
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd | |
smtp_sasl_security_options = noanonymous |
NewerOlder