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 React, { useEffect } from 'react'; | |
import bulmaCalendar from 'bulma-calendar/dist/js/bulma-calendar.min'; | |
import "~bulma-calendar/dist/css/bulma-calendar.min.css" | |
function Dob({ className }) { | |
useEffect(() => { | |
// Initialize all input of date type. | |
const calendars = bulmaCalendar.attach('[type="date"]', {}); | |
// Loop on each calendar initialized |
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
const axios = require('axios'); | |
const fs = require('fs'); | |
const url = <path_to_file> | |
axios({ | |
method: 'get', | |
url: url, | |
responseType:'stream' | |
}) | |
.then(res => { | |
res.data.pipe(fs.createWriteStream('new.zip')); |
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.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
public class HttpURLCon { | |
private final String USER_AGENT = "Mozilla/5.0"; | |
public static void main(String[] args) throws Exception { |