Skip to content

Instantly share code, notes, and snippets.

@koenbok
Created June 25, 2015 09:34
Show Gist options
  • Select an option

  • Save koenbok/b6f23bb0cd50be178e38 to your computer and use it in GitHub Desktop.

Select an option

Save koenbok/b6f23bb0cd50be178e38 to your computer and use it in GitHub Desktop.
Framer Syntax Test
a = "######dssdaadsdsa" ####
# Strings
test?("s", "s") # comma should be white
'abc'
"""
Hello
"""
# Regex
a = /^#([A-Fa-f0-9]{3}$)|([A-Fa-f0-9]{6}$)/.test "a"
/^#([A-Fa-f0-9]{3}$)|([A-Fa-f0-9]{6}$)/.test "a"
a = "#ddddd##########" ######dfddddddd
a = "#ddddd#################" ######dfddddddddddddd
# Comparators
1 == 2
2 < 3
4 <= 6
12 isnt 44
# Language
for item in [1, 1, 1]
123
for k, v of {a:1}
123
for k, v of [1..test]
123
# Properties
koen.aap
test.aap
# Operators
9 + 8 - 7 / 6 * 5
# Comments
koen = 1 # nop
lala = "test #{koen} abc"
lala = "test #{koen} abc" # koko
lala = "#4444 #eeeee" #eeee
# Define a set of states with names (the original state is 'default')
# Define a set of ""things
test = """
<iframe width="#{1}" height="#{2}" src="https://www.youtube.com/embed/mqk9Fw8FKLY" frameborder="0" allowfullscreen></iframe>
"""
###
Hello
###
###
dsssdds
###
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment