Skip to content

Instantly share code, notes, and snippets.

View shinneuro's full-sized avatar

Minho Shin shinneuro

View GitHub Profile
@mhucka
mhucka / gist:59e785a315d813d14cd0258b89a2fcac
Last active March 27, 2025 19:29
Stop the Adobe Creative Cloud app from auto-launching on login on macOS
#!/bin/bash
# =============================================================================
# @file GitHub gist
# @brief stop Adobe Creative Cloud app from auto-launching on login on macOS
# @author Michael Hucka <mhucka@caltech.edu>
# @created 2021-08-12
# @website https://gist.github.com/mhucka/59e785a315d813d14cd0258b89a2fcac
#
# I find Adobe Creative Cloud absolutely infuriating. It installs auto
# launchers that are not in the user's login app list, and the services are
@alexlicohen
alexlicohen / BIDS_to_datalad.sh
Last active February 14, 2023 07:59
[Adding Datalad to BIDS dir] Shell commands to add Datalad subdatasets #cohenlab #shell #datalad #BIDS
#!/bin/bash
# in study dir:
# Create superdataset
datalad create -c text2git --force
for i in `ls -d sub-*`; do
if [ ! -d "${i}/.git" ]; then
# Create and register the subdataset
datalad create -c text2git --force -d . $i
@jeremybise
jeremybise / baseof.html
Last active August 3, 2025 13:34
Google Fonts via config with Hugo
<!-- Wherever your head tag is located, add the new partial -->
<head>
{{ partial "google-fonts" . }}
</head>
@ericmjl
ericmjl / ds-project-organization.md
Last active October 9, 2025 19:02
How to organize your Python data science project

UPDATE: I have baked the ideas in this file inside a Python CLI tool called pyds-cli. Please find it here: https://github.com/ericmjl/pyds-cli

How to organize your Python data science project

Having done a number of data projects over the years, and having seen a number of them up on GitHub, I've come to see that there's a wide range in terms of how "readable" a project is. I'd like to share some practices that I have come to adopt in my projects, which I hope will bring some organization to your projects.

Disclaimer: I'm hoping nobody takes this to be "the definitive guide" to organizing a data project; rather, I hope you, the reader, find useful tips that you can adapt to your own projects.

Disclaimer 2: What I’m writing below is primarily geared towards Python language users. Some ideas may be transferable to other languages; others may not be so. Please feel free to remix whatever you see here!

@cboettig
cboettig / knitr_defaults.R
Last active November 30, 2022 09:16
My common knitr defaults
# My preferred defaults (may be changed in individual chunks)
opts_chunk$set(tidy=FALSE, warning=FALSE, message=FALSE, cache=TRUE,
comment=NA, verbose=TRUE, fig.width=6, fig.height=4)
# Name the cache path and fig.path based on filename...
opts_chunk$set(fig.path = paste("figure/",
gsub(".Rmd", "", knitr:::knit_concord$get('infile')),
"-", sep=""),
cache.path = paste(gsub(".Rmd", "", knitr:::knit_concord$get('infile') ),
"/", sep=""))