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
| alert(1); |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 2 columns, instead of 1 in line 1.
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
| Before,After | |
| ``` | |
| window.intercomSettings = { | |
| email: “[email protected]”, | |
| favorite_color: “blue”, | |
| pricing_plan: “gold” | |
| }; | |
| ```, | |
| ``` | |
| window.intercomEncryptedPayload = ‘ |
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
| <html> | |
| <body> | |
| <script>alert(1);</script> | |
| </body> | |
| </html> |
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
| alert(1); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| value = %MyModule.Bar{} | |
| result = MyModule.case value, [ | |
| Foo: fn(x) -> x + 1 end | |
| ] | |
| # This fails at build time with: | |
| # case macro not exhaustive.\nGiven [\"Foo\"].\nPossible: [\"Bar\", \"Foo\"]. |
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
| value = %MyModule.Bar{} | |
| result = MyModule.case value, [ | |
| Foo: fn(x) -> x + 1 end, | |
| Bar: fn(x) -> x.val <> " there" end | |
| ] | |
| # assert result == "hey there" |
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
| %MyModule.Foo{a: 1} |
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
| defmodule MyModule do | |
| ADT.define foo(a: 0) | bar(val: "hey") | |
| end |
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
| > m1 = Mail.new("To: [email protected]\r\nSubject: Yo!\r\n\r\nHello there") | |
| > m2 = Mail.new("To: [email protected]\r\nMessage-ID: <[email protected]>\r\nSubject: Yo!\r\n\r\nHello there") | |
| > message_id = m2.header[:message_id].value | |
| "<[email protected]>" | |
| > m1 == m2 | |
| true | |
| > message_id == m2.header[:message_id].value | |
| false |
NewerOlder