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 | |
set -e | |
# Only run on normal commits, ignore pull requests | |
if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then | |
# Clone gh-pages branch into inst/web | |
git clone --branch gh-pages https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git inst/web | |
# Copy README | |
cp README.md inst/web | |
# Run staticdocs | |
Rscript -e 'library(staticdocs); library(methods); build_site(launch = FALSE)' |
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
#!/usr/bin/env Rscript | |
# | |
# Converts the mice dataset to a BED file that can be used with PLINK and | |
# BEDMatrix. | |
# | |
library(BGLR) | |
data(mice) |
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
#!/usr/bin/env Rscript | |
library(BGLR) | |
data(mice) | |
gzmice <- gzfile("mice.raw.gz", "w") | |
write.table(cbind(mice.pheno, mice.X), gzmice, row.names = F, quote = F) | |
close(gzmice) |
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
#include <errno.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int main(int argc, char **argv) { | |
// Get arguments | |
if (argc != 4) { | |
fprintf(stderr, "usage: %s nrows ncols filename\n", argv[0]); |
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
import os | |
import importlib | |
import rosidl_runtime_py | |
import json | |
def get_msg_type(type): | |
symbol = os.path.basename(type) | |
module = ".".join(os.path.split(os.path.dirname(type))) | |
return getattr(importlib.import_module(module), symbol) |
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
ros2 param load /mappings mappings2.yaml |
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
#!/usr/bin/env bash | |
# | |
# Reduce compilation time and size of dependencies by trimming most of the | |
# plugins unrelated to Lakehouses. Also increases the startup time of the | |
# Development Server. | |
# | |
# Catalogs in testing/trino-server-dev/etc/catalog need to be edited. | |
# | |
# Compile project with ./mvnw clean install -DskipTests | |
# |
OlderNewer