Skip to content

Instantly share code, notes, and snippets.

View clcneogeek325's full-sized avatar
😜

Mario Alberto Hernandez Hernandez clcneogeek325

😜
View GitHub Profile
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.stream.Collectors;
import java.util.Date;
import java.text.SimpleDateFormat;
public class DateDemo {
public static void main(String args[]) {
Date dNow = new Date( );
SimpleDateFormat ft =
<?php
$ch = curl_init("http://www.example.com/");
$fp = fopen("example_homepage.txt", "w");
curl_setopt($ch, CURLOPT_FILE, $fp);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_exec($ch);
curl_close($ch);
<?php
$post = array(
# Data Credentials
"user"=> "demo",
"passw"=> "demo",
);
$data = http_build_query($post);
$curl = curl_init();