Skip to content

Instantly share code, notes, and snippets.

View berkorbay's full-sized avatar
🏄

Berk Orbay berkorbay

🏄
  • Tideseed
  • Istanbul, Turkey
  • 01:48 (UTC +03:00)
View GitHub Profile
@zhiyzuo
zhiyzuo / Install-Rattle-on-macOS.md
Last active May 17, 2020 12:17
A brief note on how to install rattle/RGtk2 on macOS
@berkorbay
berkorbay / annoying_problems.R
Last active January 21, 2019 08:18
write this to terminal if you have LC problems
## Rule 0: strings as factors!!!
options(stringsAsFactors=FALSE)
## To avoid quaint time zone issues, set to UTC if you are working on a single timezone
Sys.setenv(TZ="UTC")
## on_sys_locale_problems
sudo defaults write org.R-project.R force.LANG en_US.UTF-8 #Mac Terminal
Sys.setlocale("LC_ALL", 'en_US.UTF-8') #Linux R Console
Sys.setlocale(locale="Turkish_Turkey.1254") #Windows
@jenniferthompson
jenniferthompson / genericized_dd.Rmd
Last active November 11, 2023 23:56
Example structure for data dictionary + code used for derivation using RMarkdown. Creates three data tables and documents general + field-specific info.
---
title: "Example Data Dictionary"
author: "Jennifer Thompson"
date: "11/1/2018"
output:
html_document:
theme: yeti
code_folding: hide
---
@berkorbay
berkorbay / relative_import.md
Created January 19, 2023 14:45
Relative import methods in Python
  1. Best way is editable pip packages (reference)

pip install --editable /path/to/package

You need to include a minimal setup.py

from setuptools import setup, find_packages

setup(