References:
From man page: man apt_preferences
| /* | |
| * @return Retorna a cotação atual de um título específico do Tesouro Direto Junto com a taxa anual de retorno | |
| * @customfunction | |
| **/ | |
| function TESOURODIRETO(bondName) { | |
| let srcURL = "https://www.tesourodireto.com.br/json/br/com/b3/tesourodireto/service/api/treasurybondsinfo.json"; | |
| let jsonData = UrlFetchApp.fetch(srcURL); | |
| let parsedData = JSON.parse(jsonData.getContentText()).response; | |
| for(let bond of parsedData.TrsrBdTradgList) { |
References:
From man page: man apt_preferences
| import UIKit | |
| import CoreGraphics | |
| func imageFromPixelValues(pixelValues: [UInt8]?, width: Int, height: Int) -> CGImage? | |
| { | |
| var imageRef: CGImage? | |
| if pixelValues != nil { | |
| let imageDataPointer = UnsafeMutablePointer<UInt8>(pixelValues!) | |
| let colorSpaceRef = CGColorSpaceCreateDeviceGray() |
| foo | bar | baz | |
|---|---|---|---|
| a | 1 | ||
| b | 2 | ||
| c | |||
| 4 | |||
| e | 5 |