Skip to content

Instantly share code, notes, and snippets.

View hawkaa's full-sized avatar

Håkon Åmdal hawkaa

View GitHub Profile
{
"6c737a551f714a07cd828025424d7fd7": {
"renderMaterial": {
"opacity": 1.0,
"metalness": 0.0,
"roughness": 1.0,
"diffuse": -394759,
"emissive": -16777216,
"totalChildrenCount": 0,
"speckle_type": "Objects.Other.RenderMaterial",
from time import sleep
from ddtrace import tracer
from ddtrace.context import Context
from requests import get
import logging
import boto3
import json
logging.getLogger().setLevel(logging.INFO)
import Axios from "axios";
import { createWriteStream, mkdirSync, existsSync } from "fs";
import { dirname } from "path";
import { Stream } from "stream";
import { BBox } from "../core/geo/geojson";
import { SRS } from "../core/types";
import { transformBBox, reproject } from "../core/geo/affine";
import { green, gray } from "chalk";
export const copyTile = async (url: string, dest: string) => {
s [] = []
s (x : xs) =
let smallerSorted = s [ a | a <- xs, a <= x ]
biggerSorted = s [ a | a <- xs, a > x ]
in smallerSorted ++ [x] ++ biggerSorted
@hawkaa
hawkaa / flow.md
Created March 4, 2019 20:20
Flow Abstract

Title

Heterogeneous pipeline processing with Kubernetes and Google Cloud Pub/Sub.

Abstract

At Spacemaker, we are building a product for real estate developers and architects leveraging AI methodologies and massive computing power to maximize the potential of any building site. At the core of our platform's AI engine, we have CPU-intensive optimization and search algorithms, memory-demanding simulations, and GPU-optimized machine learning and computer graphics techniques

@hawkaa
hawkaa / README.md
Created February 12, 2018 07:58
Kursoppsett, Abakus 19. februar

Vi ønsker at deltakerne skal ha satt opp følgende i forkant av kurset:

@hawkaa
hawkaa / keybase.md
Last active September 6, 2016 09:01

Keybase proof

I hereby claim:

  • I am hawkaa on github.
  • I am hawk_aa (https://keybase.io/hawk_aa) on keybase.
  • I have a public key whose fingerprint is D709 891D E59F 876A BDF8 6C09 FD58 14CD 3510 D5C0

To claim this, I am signing this object:

MONTHS = ['Jan', 'Feb', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
def format_date(date_string):
date_splitted = date_string.split('/')
month = int(date_splitted[0])
day = int(date_splitted[1])
year = int(date_splitted[2])
# we now have read the data and put them in correct data type
# lets create the correct string
#include <mpi.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <limits.h>
#include "util.h"
#define NUM_BUCKETS 10