View read_numerai_dataset_by_era.py
This file contains 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
import pyarrow.dataset as ds | |
def load(source_file: str, eras=None, features=None) -> pd.DataFrame: | |
source_file = str(source_file) | |
if eras is None: | |
eras = eras_from_file(source_file) | |
if features is None: | |
features = feature_names(source_file) |
View self-pipe-trick.c
This file contains 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
// compiles with: gcc -Wall -Werror -pedantic ./selfpipetrick.c -o selfpipetrick | |
// You can quit by suspending with Ctrl-Z and then sending a `kill -9` | |
#include <sys/signalfd.h> | |
#include <signal.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <stdio.h> | |
#include <fcntl.h> |
View signalfd.c
This file contains 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
// Error handling omitted for brevity | |
// compile with: gcc signalfd.c -o signalfd | |
#include <sys/signalfd.h> | |
#include <signal.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <poll.h> |
View Cargo.toml
This file contains 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] | |
name = "example" | |
version = "0.1.0" | |
authors = ["James Elford <james.p.elford@gmail.com>"] | |
edition = "2018" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
libc = "0.2" |
View Contailerfile
This file contains 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 registry.fedoraproject.org/f32/fedora-toolbox:latest | |
RUN set pipefail && \ | |
dnf update --all -y && \ | |
curl -sSLo "ringcentral_x86_64.rpm" "https://ringcentral.zoom.us/client/latest/ringcentral_x86_64.rpm" && \ | |
dnf localinstall -y "ringcentral_x86_64.rpm" && \ | |
dnf clean all | |
# build with `podman build -t ringcentral-image . | |
# init toolbox with `toolbox create -i ringcentral-image -c ringcentral |
View log.css
This file contains 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
#log { | |
max-height: 10em; | |
height: 10em; | |
overflow-y: scroll; | |
position: fixed; | |
right: 0; | |
top: 0; | |
View jmock_abstract_collecitons.java
This file contains 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
public class AppTest | |
{ | |
@Rule public JUnitRuleMockery context = new JUnitRuleMockery(); | |
public static interface ColGetter { | |
public abstract Col get(); | |
} | |
public static interface NonColGetter { | |
public abstract NonCol get(); |