This file contains 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
import { Client } from "@notionhq/client" | |
export function main({ config, args }) { | |
// validate if config is provided | |
if (config["API Token"] === "") { | |
return { | |
response: "This action requires an API token." | |
} | |
} |
This file contains 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
layer.animate | |
x: 200 | |
y: 200 | |
options: | |
time: 1 | |
curve: "ease" |
This file contains 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
Framer.Info = | |
title: "Pinch and Zoom" | |
author: "Benjamin den Boer" | |
twitter: "benjaminnathan" | |
description: "A little grid of photos, you can scroll, | |
click and pinch to zoom." |
This file contains 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
midi = new MIDIComponent | |
control: 16 | |
min: 1 | |
max: 2 |
This file contains 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
# Initialize MIDI component | |
midi = new MIDIComponent | |
# Listen to value changes | |
midi.onValueChange (value, info) -> | |
print value, info |
This file contains 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
# Import file "cloud" | |
sketch = Framer.Importer.load("imported/cloud@1x") | |
# Set width and height, scale 2x | |
sketch.icon.width *= 2 | |
sketch.icon.height *= 2 |
This file contains 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
vr.orientationLayer = false |
This file contains 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
# instant change | |
vr.heading = 180 | |
# animated change | |
vr.animate | |
properties: | |
heading: 90 |
This file contains 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
# direct access through property | |
heading = vr.heading | |
# continues updates | |
vr.on Events.OrientationDidChange, (data) -> | |
heading = data.heading | |
elevation = data.elevation | |
tilt = data.tilt |
This file contains 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
layer = new VRLayer | |
heading: -30 | |
print layer.heading | |
# returns 330 |
NewerOlder