Skip to content

Instantly share code, notes, and snippets.

View takegue's full-sized avatar
🏠
Working from home

takegue takegue

🏠
Working from home
View GitHub Profile
@takegue
takegue / git-sparse-checkout-for-circleci.sh
Last active February 14, 2020 10:54 — forked from sumardi/gist:5559896
Subdirectory checkouts with Git sparse-checkout
#!/bin/bash -e
CIRCLE_WORKING_DIRECTORY="${CIRCLE_WORKING_DIRECTORY/#\~/$HOME}"
[[ ! -d $CIRCLE_WORKING_DIRECTORY ]] && mkdir -p $CIRCLE_WORKING_DIRECTORY
cd $CIRCLE_WORKING_DIRECTORY
git init
git remote add origin $CIRCLE_REPOSITORY_URL
git config core.sparsecheckout true
@takegue
takegue / zbell.zsh
Last active October 16, 2020 06:40 — forked from oknowton/zbell.zsh
#!/usr/bin/env zsh
# This script prints a bell character when a command finishes
# if it has been running for longer than $zbell_duration seconds.
# If there are programs that you know run long that you don't
# want to bell after, then add them to $zbell_ignore.
#
# This script uses only zsh builtins so its fast, there's no needless
# forking, and its only dependency is zsh and its standard modules
#
@takegue
takegue / mlp.py
Last active August 29, 2015 14:13 — forked from amueller/mlp.py
import numpy as np
import warnings
from itertools import cycle, izip
from sklearn.utils import gen_even_slices
from sklearn.utils import shuffle
from sklearn.base import BaseEstimator
from sklearn.base import ClassifierMixin
from sklearn.preprocessing import LabelBinarizer