ABAP
{% def random n:1 %}
{% if n|equal 1|or (n|is_a "float") %}
{{|rand|times n}}
{% else %}
{{|rand|times n|round}}
{% end %}
{% end %}
ABAP
{% def random n:1 %}
{% if n|equal 1|or (n|is_a "float") %}
{{|rand|times n}}
{% else %}
{{|rand|times n|round}}
{% end %}
{% end %}
{ function j(string) { return string.join('') } } | |
template = | |
( | |
interpolation / | |
tag / | |
$(!interpolation !tag .) | |
)+ | |
ws = (" " / "\n")* |
text <- string:blob (object:object text:text | |
/ tag:tag text:text | |
% / open_tag:open_tag text:text | |
/ open_object:open_object text:text)? | |
blob <- (!open_object !open_tag .)* | |
object <- open_object:open_object space (argument:argument filters:filters / argument:argument)? space close_object:close_object | |
tag <- cond_if_tag / cond_unless_tag / cond_case_tag / assign_tag / comment_tag |
post = (url, body) -> | |
token = document.querySelector('meta[name="csrf-token"]').attributes.content.value | |
fetch("#{url}.json", | |
method: "POST" | |
mode: "cors" | |
cache: "no-cache" | |
credentials: "same-origin" | |
headers: | |
"Content-Type": "application/json" |
#!/usr/bin/env ruby | |
if ARGV.size != 1 || ARGV[0] !~ /#[0-9a-fA-F]{3,6}/ | |
abort "USAGE: hex-to-cterm HEX" | |
end | |
def hex_to_rgb(hex) | |
rgb = hex.gsub('#', '').chars | |
if rgb.size == 3 |
Blink | |
Blink>Bluetooth | |
Blink>CSS | |
Blink>Canvas | |
Blink>DOM | |
Blink>Network>FetchAPI | |
Blink>Paint | |
Blink>PerformanceAPIs | |
Blink>Scroll | |
Blink>Storage>FileSystem |
pi * r**2
(pi * rA**2) + (pi * rB**2)/2
pi * r**2 = (pi * rA**2) + (pi * rB**2)/2
r = sqrt(((pi * rA**2) + (pi * rB**2)/2)/2)
Error detected while processing function DistractFree#DistractFreeToggle[32]..<SNR>43_ | |
SaveRestore[30]..<SNR>43_ResetHi: | |
line 8: | |
E416: missing equal sign: cleared | |
E416: missing equal sign: cleared | |
E416: missing equal sign: cleared | |
------------- | |
:DistractFreeToggle Error detected while processing function DistractFree#DistractFreeToggle[32]..<SNR>39_SaveRestore[30]..<SNR>39_ResetHi: |