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
# Pseudo-hilbert curve generator. Maps ordered items from an array (1D) to a rectangle (2D) | |
# in a way that best retains the distances between indexes of the initial array as euclidean distances in the rectangle | |
# | |
# Hilbert curves are only possible for powers of 2, so the gilbert() function instead tries to fit as many hilbert | |
# "blocks" together as possible. This is through a greedy approach and works well enough for my needs | |
# | |
# Free for any use, but let me know so I know someone found it useful :) | |
# | |
# AUTHOR : James Zingel (2022) |
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
Similar to kaggle | |
That being said, let's dive in. | |
DrivenData. | |
CROWDANALYTIX. | |
Signate. | |
Zindi. | |
Alibaba Cloud Tianchi. | |
Analytics Vidhya. | |
CodaLab. |
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
FROM ubuntu:20.04 | |
ENV DEBIAN_FRONTEND=noninteractive | |
ENV ISPC_VERSION="1.9.2" | |
ENV EMBREE2_VERSION="2.17.4" | |
ENV EMBREE3_VERSION="3.2.0" | |
RUN apt update | |
RUN apt -yq upgrade | |
RUN apt -yq install wget cmake g++ clang git libtbb-dev libglfw3-dev libopenmpi-dev alien unzip |
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
package enum_example | |
import ( | |
"bytes" | |
"encoding/json" | |
) | |
// TaskState represents the state of task, moving through Created, Running then Finished or Errorred | |
type TaskState int |
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
package main | |
import ( | |
"fmt" | |
"reflect" | |
"strings" | |
) | |
type Foo struct { | |
A int |
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
bin/spark-shell --packages com.databricks:spark-xml_2.11:0.5.0 | |
scala> import com.databricks.spark.xml._ | |
val df = spark.read.option("rowTag", "article").xml("/Users/anastasios/test/dblp.xml") | |
val df = spark.read.option("rowTag", "article").xml("/Users/anastasios/test/dblp/dblp.xml") |
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
#!/bin/bash | |
name=$RANDOM | |
url='http://localhost:9093/api/v1/alerts' | |
echo "firing up alert $name" | |
# change url o | |
curl -XPOST $url -d "[{ | |
\"status\": \"firing\", |
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
For the record (in case someone needs to do it again), these are the steps : | |
1. Make the change in build_boost.sh | |
2. Setup an account on quay.io <http://quay.io/> and link to your GitHub account | |
3. In quay.io <http://quay.io/>, Add a new repository using : | |
A. Link to GitHub repository push | |
B. Trigger build on changes to a specific branch (eg. myquay) of the repo (eq. pravindra/arrow) |
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
<!-- | |
If you wish to turn off checking for a section of code, you can put a comment in the source | |
before and after the section, with the following syntax: | |
// scalastyle:off | |
... // stuff that breaks the styles | |
// scalastyle:on | |
You can also disable only one rule, by specifying its rule id, as specified in: |
NewerOlder