The above grid shows the effect of fisheye distortion. Move the mouse to change the focal point.
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
// Prettier case statement, but can also return a value since it is an expression. | |
// | |
first_condition | |
? first_action() | |
: second_condition | |
? second_action() | |
: third_condition && can && (be || compound) | |
? ( | |
can(), |
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
chunkify(InList, BaseChunkSize) -> | |
%%io:format("length of list is ~p and chunk size is ~p ~n",[length(InList),BaseChunkSize]), | |
case byte_size(term_to_binary(InList)) of | |
Size when Size > BaseChunkSize -> | |
NumberOfChunksLikely = ((Size div BaseChunkSize) + 1), | |
ChunkThreshold = Size div NumberOfChunksLikely, | |
chunkify(InList, ChunkThreshold, [], 0, []); | |
_Else -> | |
[InList] | |
end. |
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
INLINE ATTACHMENT | |
{ | |
_attachments: { | |
"awesome.jpeg": { | |
content_type: "image/jpeg", | |
data: "base64 data goes here", | |
headers: { | |
"Access-Control-Allow-Origin": "*", | |
"Access-Control-Allow-Methods": "GET, POST, OPTIONS", |