Skip to content

Instantly share code, notes, and snippets.

View texchi2's full-sized avatar

Tex LH Chi texchi2

View GitHub Profile
@texchi2
texchi2 / medium-article_VSCode_AIcopilot.md
Last active March 9, 2025 16:10
Setting up a Remote AI Code Assistant: Ollama + Continue in VS Code

Setting up a Remote AI Code Assistant: Ollama + Continue in VS Code

Remote Development Setup with MacStudio Figure 1: Remote development setup with MacStudio as server and VS Code integration

A step-by-step guide to creating a powerful, private AI coding assistant using Ollama and Continue extension in VS Code, with remote server capabilities.

Introduction

@texchi2
texchi2 / _Nvim-R-Tmux.md
Created October 13, 2023 05:29 — forked from tgirke/_Nvim-R-Tmux.md
Nvim-R-Tmux: An Integrated Working Environment for R

Nvim-R-Tmux: Neovim-based IDE for R

!!! This Gist tutorial is deprecated. Its new version is available here !!!

This is some red text.

  • Author: Thomas Girke
  • Last update: 18-Nov-2020

@texchi2
texchi2 / addNewData.R
Created June 28, 2019 13:43 — forked from dfalster/addNewData.R
The function addNewData.R modifies a data frame with a lookup table. This is useful where you want to supplement data loaded from file with other data, e.g. to add details, change treatment names, or similar. The function readNewData is also included. This function runs some checks on the new table to ensure it has correct variable names and val…
##' Modifies 'data' by adding new values supplied in newDataFileName
##'
##' newDataFileName is expected to have columns
##' c(lookupVariable,lookupValue,newVariable,newValue,source)
##'
##' Within the column 'newVariable', replace values that
##' match 'lookupValue' within column 'lookupVariable' with the value
##' newValue'. If 'lookupVariable' is NA, then replace *all* elements
##' of 'newVariable' with the value 'newValue'.
##'