This file contains hidden or 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
| # -------------------------------------------- | |
| # Script: renamer.ps1 | |
| # Author: Aveys | |
| # Desc: Renomme les fichiers photographique dans le format YYYY_MM_DD_HH_MM_SS.JPG | |
| # --------------------------------------------- | |
| function Get-FileMetaData | |
| { | |
| <# | |
| .SYNOPSIS |
This file contains hidden or 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
| ### colors | |
| RED="\e[0;31m" | |
| GREEN="\e[0;32m" | |
| CLR="\e[0m" | |
| echo "" | |
| ### check internet connectivity | |
| INTERNET_WGET=`wget -q --tries=10 --timeout=20 -O - http://google.com > /dev/null` | |
| INTERNET_STATUS="${RED}DOWN$CLR" |
This file contains hidden or 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.awt.*; | |
| import javax.swing.*; | |
| import java.awt.event.*; | |
| /********************************** | |
| This is the main class of a Java program to play a game based on hexagonal tiles. | |
| The mechanism of handling hexes is in the file hexmech.java. | |
| Written by: M.H. | |
| Date: December 2012 |
This file contains hidden or 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 sys | |
| import csv | |
| import cx_Oracle #Library cx_oracle needed | |
| connection = "String URL Connection" | |
| oracle = cx_Oracle.connect(connection) | |
| cur = oracle.cursor() | |
| # output the content of table in a csv file | |
| csv_file_dest = "<FILENAME>.csv" |