Skip to content

Instantly share code, notes, and snippets.

View lucas34's full-sized avatar

Lucas Nelaupe lucas34

View GitHub Profile
@lucas34
lucas34 / URL+Open.swift
Last active March 2, 2018 03:57
Open url on any Apple os
View URL+Open.swift
import Foundation
#if os(macOS)
import Cocoa
#endif
#if os(iOS) || os(tvOS)
extension URL {
public func canOpen() -> Bool {
@lucas34
lucas34 / fairprice_to_csv.py
Last active April 21, 2022 15:38
Convert FairPrice invoice to CSV
View fairprice_to_csv.py
import requests
import json
import pandas as pd
import sys
if len(sys.argv) != 3:
print("bearer token needed as argument")
exit(1)
headers = {"Authorization": sys.argv[1] + " " + sys.argv[2]}