Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.07884746789932251</real> | |
<key>Green Component</key> | |
<real>0.081504985690116882</real> |
# coding: utf-8 | |
# This sample code shows how to create a timeseries based on date periods to calculate | |
# the frequency that an event occurs in a hour. | |
# Links: | |
# - https://pandas.pydata.org/docs/reference/api/pandas.date_range.html | |
# - https://pandas.pydata.org/docs/getting_started/intro_tutorials/09_timeseries.html?highlight=resample#resample-a-time-series-to-another-frequency | |
import pandas as pd | |
import numpy as np |
document.querySelectorAll('input[type=number]').forEach(input => { | |
input.addEventListener('change', (e) => { | |
const value = e.target.value | |
const props = e.srcElement.attributes | |
console.log(`${props.min.value} ${props.max.value} ${value}`) | |
if (value <= props.min.value || value >= props.max.value) { | |
alert('valor muito baixo') | |
} | |
}) | |
}) |
to displayError() | |
display dialog "The script encountered a problem." | |
end displayError | |
set rightNow to (get current date) | |
set hoursNow to hours of rightNow | |
try | |
repeat while true | |
#display dialog hoursNow | |
if (hoursNow > 17) then |
try | |
repeat while true | |
say "Drink water now" | |
delay 300 | |
end repeat | |
end try |
# coding: utf-8 | |
d = date(2022, 2, 22) | |
d1 = date(2022, 3, 4) | |
abs(d-d1).days |
function Stop(r) { | |
function Reason () { throw new Error(r) } | |
return Reason | |
} | |
function StopChain(r, fn) { | |
return fn(r) | |
} | |
const error = StopChain('NOT_FOUND', Stop) |
--- | |
format_version: 1.1.0 | |
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git | |
trigger_map: | |
- push_branch: "*" | |
workflow: tests | |
workflows: | |
_tests_setup: | |
steps: | |
- activate-ssh-key: {} |
// Example of pipeline process written in kotlin | |
fun multiplyIt(x:Int): Int { | |
println(x * 2) | |
return x * 2 | |
} | |
fun plusTwo(x: Int): Int { | |
println(x + 2) | |
return x + 2 | |
} |
Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math