Write a function:
function solution(A);
that, given an array A
of N
integers, returns the smallest positive integer (greater than 0
) that does not occur in A
.
For example, given A = [1, 3, 6, 4, 1, 2]
, the function should return 5
.
EXAMPLE=deadbeef |
Write a function:
function solution(A);
that, given an array A
of N
integers, returns the smallest positive integer (greater than 0
) that does not occur in A
.
For example, given A = [1, 3, 6, 4, 1, 2]
, the function should return 5
.
/** | |
* Apache License | |
* Version 2.0, January 2004 | |
* http://www.apache.org/licenses/ | |
* | |
* TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION | |
* | |
* 1. Definitions. | |
* | |
* "License" shall mean the terms and conditions for use, reproduction, |
import { useMemoCache } from "./useMemoCache"; | |
export function useCallbackCache(fn, deps) { | |
return useMemoCache(() => fn, deps); | |
} |
<!DOCTYPE html> | |
<!-- saved from url=(0016)http://localhost --> | |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ms="urn:schemas-microsoft-com:xslt" xmlns:bat="http://schemas.microsoft.com/battery/2012" xmlns:js="http://microsoft.com/kernel"><head><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="ReportUtcOffset" content="-4:00"/><title>Battery report</title><style type="text/css"> | |
body { | |
font-family: Segoe UI Light; | |
letter-spacing: 0.02em; |
#!/usr/bin/env python | |
import random | |
import string | |
from passlib.hash import sha512_crypt | |
# random 16 character salt | |
the_largest_salt_possible=''.join(random.choice(string.ascii_lowercase) for i in range(16)) | |
# a large number of cycles to cop those pesky brutes |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Terminal=false | |
Name=DBeaver Community | |
GenericName=UniversaL Database Manager | |
Comment=Universal Database Manager and SQL Client. | |
Exec=sh -c "GTK_THEME='Arc' _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dswing.crossplatformlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel' dbeaver" | |
Icon=dbeaver | |
Categories=IDE |
Assuming the certbot
generated certificate, chain, and keys for the domain are located under
/etc/letsencrypt/live/domain.example/
You can generate the certificate file in PKCS#12 format by running the following
openssl pkcs12 -export -inkey /etc/letsencrypt/live/domain.example/privkey.pem -in /etc/letsencrypt/live/domain.example/cert.pem -certfile /etc/letsencrypt/live/domain.example/chain.pem -out certificate.p12
# Include in your .bashrc to access from the terminal | |
function gcoi() { | |
# Your Jira project tag | |
PROJ="MAV" | |
# Your projects branch naming convention | |
BRANCH_REGEX="(science|feature|bugfix|hotfix)/${PROJ}-${1}(|-.+)$" | |
# Get the provided issue number and validate it | |
OLD_IFS="${IFS}" | |
IFS='-' |