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
//Twitter: https://twitter.com/DamianCatanzaro | |
const html = "<html> \ | |
<head> \ | |
<style> \ | |
body { \ | |
margin: 0; \ | |
background-color: cyan; \ | |
width: 500px; \ | |
height: 500px; \ |
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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: deep-gray; icon-glyph: cloud; | |
// made by @morinagapltynm | |
// credit to @ImGamez for weatherline | |
// credit to @mzeryck for SFSymbol code | |
const API_KEY = Keychain.get("WEATHER_ORG_API_KEY"); | |
const lockLocation = true; | |
const locale = "id"; | |
const nowstring = "now"; |
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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: orange; icon-glyph: magic; | |
// made by @morinagapltynm | |
async function getSunData() { | |
let sunData = {} | |
for(s = 0; s < 2; s++){ | |
let date = today | |
if(s>0)date.setDate(date.getDate()+1); | |
let req = new Request("https://api.sunrise-sunset.org/json?lat="+LAT+"&lng="+LON+"&formatted=0&date="+date.getFullYear()+"-"+(date.getMonth()+1)+"-"+date.getDate()).loadJSON() |
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
// These three lines demonstrate how this code works. | |
let img = await Photos.fromLibrary() | |
let newImg = await processImage(img) | |
QuickLook.present(newImg) | |
// This function takes an image and returns a processed image. | |
async function processImage(image) { | |
const imageId = "imageId" | |
const canvasId = "canvasId" |
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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: deep-green; icon-glyph: sticky-note; | |
/* | |
################################# | |
####simple sticky note widget#### | |
################################# | |
please read below for usage!! | |
you must configure font size and |
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
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: light-gray; icon-glyph: magic; | |
// Variables used by Scriptable. | |
// These must be at the very top of the file. Do not edit. | |
// icon-color: deep-green; icon-glyph: user-md; | |
// change "country" to a value from https://coronavirus-19-api.herokuapp.com/countries/ | |
const country = "Indonesia" | |
const url = `https://coronavirus-19-api.herokuapp.com/countries/${country}` | |
const req = new Request(url) |