What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-28 10:49:08
connect azure databricks to azure data lake
configs = {"fs.azure.account.auth.type": "OAuth", "fs.azure.account.oauth.provider.type": "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider", "fs.azure.account.oauth2.client.id":... Add solution -
Other 2021-10-28 03:18:14
fs.access doens' do anything
import {promises as fs} from "fs"; import * as oldfs from "fs"; (async function() { // fs.stat has higher level abstraction const stat = await fs.stat(__dirname); console.log(stat.isDirectory()); console.log(stat.isFil... Add solution -
-
Java 2021-10-25 18:45:06
java write on hdfs
Configuration configuration = new Configuration(); configuration.set("fs.defaultFS", "hdfs://localhost:9000"); FileSystem fileSystem = FileSystem.get(configuration); //Create a path String fileName = "my_text.txt"; // using &... Add solution -
Swift 2021-10-25 15:29:11
swift pdf thumbnail
import PDFKit func pdfThumbnail(url: URL, width: CGFloat = 240) -> UIImage? { guard let data = try? Data(contentsOf: url), let page = PDFDocument(data: data)?.page(at: 0) else { return nil } let pageSize = page.bounds(for: .mediaBox) le... Add solution -
Javascript 2021-10-24 18:27:17
json to xlsx
// Import XLSX CDN <script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.17.0/xlsx.min.js" integrity="sha512-WaHZ16+n6qSSVxDii8MZGmFlnro3iZdJa/hb1XKraoMx1/HVILhLdAX22ypk4lT/8+t4XMYcjzCDwfvZ1CAJgw==" crossorigin="anonym... Add solution -
-
C++ 2021-10-20 03:25:06
depth first search graph
############### #The Algorithm (In English): # 1) Pick any node. # 2) If it is unvisited, mark it as visited and recur on all its # adjacent nodes. # 3) Repeat until all the nodes are visited, or the node to be # searched is found. # The grap... Add solution
Best helpers
Ranking is empty