This file contains hidden or 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
animations { | |
bezier=easeOutQuint,0.23,1,0.32,1 | |
bezier=easeInOutCubic,0.65,0.05,0.36,1 | |
bezier=linear,0,0,1,1 | |
bezier=almostLinear,0.5,0.5,0.75,1.0 | |
bezier=quick,0.15,0,0.1,1 | |
animation=global, 1, 10, default | |
animation=border, 1, 5.39, easeOutQuint | |
animation=windows, 1, 4.79, easeOutQuint | |
animation=windowsIn, 1, 4.1, easeOutQuint, popin 87% |
This file contains hidden or 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
-- Sequence register.party_version_id_seq | |
CREATE SEQUENCE register.party_version_id_seq AS bigint; | |
-- Table: register.party | |
-- CREATE TABLE register.party ( | |
-- uuid uuid NOT NULL, | |
-- id int8 NOT NULL, | |
-- party_type register.party_type NOT NULL, |
This file contains hidden or 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
static PersonIdentifier GeneratePersonIdentifier(DateOnly dateComp, bool isDNumber) | |
{ | |
Vector256<ushort> k1weights = Vector256.Create((ushort)3, 7, 6, 1, 8, 9, 4, 5, 2, 0, 0, 0, 0, 0, 0, 0); | |
Vector256<ushort> k2weights = Vector256.Create((ushort)5, 4, 3, 2, 7, 6, 5, 4, 3, 2, 0, 0, 0, 0, 0, 0); | |
Span<ushort> k1_candidates = stackalloc ushort[4]; | |
var random = Random.Shared; | |
var dayOffset = isDNumber ? 40 : 0; | |
int written; |
This file contains hidden or 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
const HIGHEST_BIT_MASK: u32 = 1 << 31; | |
#[repr(C)] | |
#[derive(Portable)] | |
pub struct ArchivedHeaderName { | |
// if the highest bit is unset, this is a known header index | |
// else this is 10 bits of length followed by 21 bits of relative pointer | |
inner: u32_le, | |
} |
This file contains hidden or 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
#[repr(C)] | |
#[derive(Portable)] | |
struct ArchivedHttpResponse { | |
/// The body of the response. | |
body: ArchivedBox<[u8]>, | |
/// The headers of the response. | |
headers: ArchivedBox<[(ArchivedHeaderName, ArchivedBox<[u8]>)]>, | |
/// The status code of the response. |
This file contains hidden or 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
Show hidden characters
{ | |
// not part of the resource - just here to describe what kind of resource this is about | |
"_description": "Resurs som delegeres i 'biter'", | |
"actions": null, | |
"subResources": { | |
"create": { | |
"type": "write", // this is an enum used to determin what kind of icon to show in the UI | |
"name": { | |
"nb": "Opprett skjema", | |
"en": "Create form" |
This file contains hidden or 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
[ | |
{ | |
"id": "order-licence-plate", | |
"action": "order", | |
"resource": { | |
// urn:altinn:resouce er arvet, så den skippes | |
"urn:svv:area": "license-plates" | |
}, | |
"name": { | |
"no": "Bestill skilt", |
This file contains hidden or 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
{ | |
"rights": { | |
"required": [ | |
{ "...": "..." }, | |
{ "...": "..." } | |
], | |
"unwanted": [ | |
{ "...": "..." }, | |
{ "...": "..." } | |
] |
This file contains hidden or 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
SELECT | |
p.uuid p_uuid, | |
p.id p_id, | |
p.party_type p_party_type, | |
p.name p_name, | |
p.person_identifier p_person_identifier, | |
p.organization_identifier p_organization_identifier, | |
p.created p_created, | |
p.updated p_updated, | |
o.unit_status p_unit_status, |
This file contains hidden or 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
select | |
p.uuid p_uuid, | |
cp."uuid" cp_uuid, | |
co.unit_type, | |
p.id p_id, | |
p.party_type p_party_type, | |
p.name p_name, | |
p.person_identifier p_person_identifier, | |
p.organization_identifier p_organization_identifier, | |
p.created p_created, |