Mix.install([:req, :jason, :kino])
username = Kino.Input.text("Username") |> Kino.render()
import { useEffect, useRef } from 'react'; | |
const useInactivityTimeout = (timeoutInHours) => { | |
const timeoutInMillis = timeoutInHours * 60 * 60 * 1000; | |
const timer = useRef(null); | |
useEffect(() => { | |
if (navigator.userActivation) { | |
if(navigator.userActivation.isActive){ | |
if (timer.current) { |
defmodule OperationsTest do | |
use ExUnit.Case, async: true | |
def make_mod() do | |
String.to_atom("Elixir.Test#{System.unique_integer([:positive])}") | |
end | |
describe "operation/2" do | |
setup do | |
mod = make_mod() |
<!-- livebook:{"persist_outputs":true} --> | |
# Distribute | |
## Section | |
A small toy to show how you might, given a stream, do a "fan out", processing different elements in separate streams. Powered by simple primitives like `Stream.resource` and `spawn_link`. | |
```elixir | |
defmodule Distribute do |
import exec from 'k6/execution'; | |
import http from 'k6/http'; | |
import { AWSError, AWSConfig, SignatureV4, S3Client } from 'https://jslib.k6.io/aws/0.8.0/aws.js' | |
const bucketName = 'orange-cdn-west'; | |
export const options = { | |
ext: { | |
loadimpact: { |
{ | |
"basics": { | |
"name": "Jeremy Brayton", | |
"label": "Full Stack Web Developer", | |
"picture": "//www.gravatar.com/avatar/29f6930d58e253dcdd01e1984cd902c0?s=100&r=pg&d=mm", | |
"phone": "", | |
"website": "http://braytonium.com", | |
"summary": "Over 12 years as a full stack web developer, including 10 years as a systems administrator, specializing in multiple web platforms and technologies. Regularly evaluating workflow efficiency to increase productivity and quality throughout the team. Deciphering new methodologies to discover their fit in a developer's tool belt. Solving complex problems using concise code with an emphasis on being readable and intuitive.", | |
"location": { | |
"city": "Woodstock", |
{"version":1,"resource":"file:///Users/Shared/repositories/personal/elixir/dockyard_academy/blog/lib/blog_web/controllers/comment_controller.ex","entries":[{"id":"pNlm.ex","timestamp":1671533821731},{"id":"gRSl.ex","timestamp":1671533964154},{"id":"WZBi.ex","timestamp":1671736939274},{"id":"s3wc.ex","timestamp":1671736970459},{"id":"GWBD.ex","timestamp":1671737016998},{"id":"0sMU.ex","timestamp":1671737043990},{"id":"8I7E.ex","timestamp":1671737094286},{"id":"N5Uv.ex","timestamp":1671737117029},{"id":"z4Qg.ex","timestamp":1671737203685},{"id":"3SGZ.ex","timestamp":1671737219403},{"id":"tweM.ex","timestamp":1671737229416},{"id":"KBcA.ex","timestamp":1671737254263},{"id":"laOC.ex","timestamp":1671737318339},{"id":"1cML.ex","timestamp":1671737341455},{"id":"DDxd.ex","timestamp":1671737380283},{"id":"tqZ1.ex","timestamp":1671737411384},{"id":"sdeY.ex","timestamp":1671737441714},{"id":"2IW6.ex","timestamp":1671737467440},{"id":"kVBE.ex","timestamp":1671737482950},{"id":"CiiM.ex","timestamp":1671737540172},{"id":"k |
PASSWORD1 # Replace literal string 'PASSWORD1' with '***REMOVED***' (default) | |
PASSWORD2==>examplePass # replace with 'examplePass' instead | |
PASSWORD3==> # replace with the empty string | |
regex:password=\w+==>password= # Replace, using a regex | |
regex:\r(\n)==>$1 # Replace Windows newlines with Unix newlines |