Skip to content

Instantly share code, notes, and snippets.

Håvar Nøvik havarnov

Block or report user

Report or block havarnov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View relations.csv
We can't make this file beautiful and searchable because it's too large.
:START_ID,:END_ID,:TYPE
255126,CN_255127,CONDUCTING
255176,CN_255177,CONDUCTING
255268,CN_255269,CONDUCTING
255323,CN_255324,CONDUCTING
255654,CN_255655,CONDUCTING
256051,CN_256052,CONDUCTING
256475,CN_256476,CONDUCTING
256567,CN_256568,CONDUCTING
View nodes.csv
We can't make this file beautiful and searchable because it's too large.
conductingId:ID,:LABEL
255126,BusbarSection
255176,BusbarSection
255268,BusbarSection
255323,BusbarSection
255654,BusbarSection
256051,BusbarSection
256475,BusbarSection
256567,BusbarSection
View cn_c.csv
We can't make this file beautiful and searchable because it's too large.
ConnectivityNodeId,ConductingId
CN_255127,255126
CN_255177,255176
CN_255269,255268
CN_255324,255323
CN_255655,255654
CN_256052,256051
CN_256476,256475
CN_256568,256567
View res3.csv
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 4.
r_id,r_type,r_source,r_target,r_data,depth,visited,source_e,target_e,source_type,target_type
2efe837c-74a2-4b90-a9e5-fc6b3d982314,conducting,93466a23-c448-46e2-9c62-ac27c41f57c6,478d7002-4eea-4202-8a30-99ced47f9510,{},0,"""{2efe837c-74a2-4b90-a9e5-fc6b3d982314,6700da7e-98fd-4cfc-8cbe-4f1dc25822ad}""",bafc5c6c-51de-4c2e-b9fb-d66ee088bd9c,000145f8-8f60-4e83-a2cd-c3c358bfeabc,eSmart.Utility.Models.Conductor,eSmart.Utility.Models.UnknownEntity
6700da7e-98fd-4cfc-8cbe-4f1dc25822ad,conducting,e2174c41-2d61-4aeb-8039-eb1d79bf24df,478d7002-4eea-4202-8a30-99ced47f9510,{},0,"""{2efe837c-74a2-4b90-a9e5-fc6b3d982314,6700da7e-98fd-4cfc-8cbe-4f1dc25822ad}""",5b73c611-8bd5-46d3-89ba-2c5d58d28d8d,000145f8-8f60-4e83-a2cd-c3c358bfeabc,eSmart.Utility.Models.UnknownEntity,eSmart.Utility.Models.UnknownEntity
29035c88-fa5c-4a9c-baf3-ebad7cd40195,conducting,93466a23-c448-46e2-9c62-ac27c41f57c6,946e96ff-ea44-4a44-a738-5067504afaa2,{},1,"""{2efe837c-74a2-4b90-a9e5-fc6b3d982314,6700da7e-98fd-4cfc-8cbe-4f1dc25822ad,29035c88-fa5c-4a9c-b
View gist:92fd9a7e8a1dda351b31322bc564d8fb
r_id,r_type,r_source,r_target,r_data,depth,visited,source_e,target_e,type,type
2efe837c-74a2-4b90-a9e5-fc6b3d982314,conducting,93466a23-c448-46e2-9c62-ac27c41f57c6,478d7002-4eea-4202-8a30-99ced47f9510,{},0,"""{2efe837c-74a2-4b90-a9e5-fc6b3d982314,6700da7e-98fd-4cfc-8cbe-4f1dc25822ad}""",bafc5c6c-51de-4c2e-b9fb-d66ee088bd9c,000145f8-8f60-4e83-a2cd-c3c358bfeabc,eSmart.Utility.Models.Conductor,eSmart.Utility.Models.UnknownEntity
6700da7e-98fd-4cfc-8cbe-4f1dc25822ad,conducting,e2174c41-2d61-4aeb-8039-eb1d79bf24df,478d7002-4eea-4202-8a30-99ced47f9510,{},0,"""{2efe837c-74a2-4b90-a9e5-fc6b3d982314,6700da7e-98fd-4cfc-8cbe-4f1dc25822ad}""",5b73c611-8bd5-46d3-89ba-2c5d58d28d8d,000145f8-8f60-4e83-a2cd-c3c358bfeabc,eSmart.Utility.Models.UnknownEntity,eSmart.Utility.Models.UnknownEntity
29035c88-fa5c-4a9c-baf3-ebad7cd40195,conducting,93466a23-c448-46e2-9c62-ac27c41f57c6,946e96ff-ea44-4a44-a738-5067504afaa2,{},1,"""{2efe837c-74a2-4b90-a9e5-fc6b3d982314,6700da7e-98fd-4cfc-8cbe-4f1dc25822ad,29035c88-fa5c-4a9c-baf3-ebad7cd401
View ikke_tilstedet.csv
navn parti totalt antall votering ikke tilstedet (%)
Abrahamsen, Solveig Sundbø Høyre 1496 0.5387700534759359
Agdestein, Elin Rodum Høyre 1483 0.5266351989211059
Almeland, Grunde Venstre 1483 0.32838840188806473
Amundsen, Per-Willy Fremskrittspartiet 1496 0.6136363636363636
Andersen, Dag Terje Arbeiderpartiet 1496 0.10628342245989304
Andersen, Karin Sosialistisk Venstreparti 1496 0.2867647058823529
Arnstad, Marit Senterpartiet 1449 0.47342995169082125
Asheim, Henrik Høyre 1496 0.37566844919786097
Aukrust, Åsmund Arbeiderpartiet 1435 0.13937282229965156
View minikube_orleans.sh
# minikube https://kubernetes.io/docs/setup/minikube/
# enable hyper-v
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
# install minikube https://github.com/kubernetes/minikube/releases
# create hyper-v
# url https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/get-started/create-a-virtual-switch-for-hyper-v-virtual-machines
# named 'Primary Virtual Switch'
View resp.json
[
{
"relation": {
"guid": "a557b7f9-874f-e811-b091-40b034be34e4",
"source": "ba8711ab-ece6-4cfc-a173-c9e543e88ddf",
"target": "cf969ef2-1f6f-4c06-a27b-07c2aba5bfa8",
"label": "NetworkTopology"
},
"entity": {
"$type": "eSmart.Common.DataModel.BusinessObject.Asset.Asset, eSmart.Common.DataModel",
View cosmosdb.cs
// Here we find the Andersen family via its LastName
IQueryable<Family> familyQuery = this.client.CreateDocumentQuery<Family>(
UriFactory.CreateDocumentCollectionUri(databaseName, collectionName), queryOptions)
.Where(f => f.LastName == "Andersen");
You can’t perform that action at this time.