Skip to content

Instantly share code, notes, and snippets.

View esikmalazman's full-sized avatar
🏠
Working from home

Ikmal Azman esikmalazman

🏠
Working from home
View GitHub Profile
@esikmalazman
esikmalazman / README.md
Created June 15, 2022 12:46 — forked from IsaacXen/README.md
(Almost) Every WWDC videos download links for aria2c.
@esikmalazman
esikmalazman / ViewController.swift
Created June 11, 2022 11:17 — forked from yusuke024/ViewController.swift
Recording video with AVAssetWriter
import UIKit
import AVFoundation
class ViewController: UIViewController {
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
switch AVCaptureDevice.authorizationStatus(for: .video) {
case .notDetermined:
import Cocoa
import RealityKit
import Foundation
// Define input folder of the photographs
var inputFolderUrl = URL(fileURLWithPath: "/Users/esikmalazman/Desktop/MyFirst3DModels/LemonMeringuePie")
// Specify the output location & name for generated file
let modelName = URL(fileURLWithPath: "/Users/esikmalazman/Desktop/MyFirst3DModels/LemonPie.usdz")
// Create a request to produce 3D objects from photographs ()
var request = PhotogrammetrySession.Request.modelFile(url: inputFolderUrl, detail: .full, geometry: nil)

import Cocoa
import CreateML

// Get file path
let filePath = URL(fileURLWithPath:"/Users/user201215/Desktop/Sentiment-Analysis/twitter-sanders-apple3.csv")
// Convert csv to MLDataTable
let data = try MLDataTable(contentsOf: filePath)