Skip to content

Instantly share code, notes, and snippets.

View shlomihod's full-sized avatar

Shlomi Hod shlomihod

View GitHub Profile

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@dearaujoj
dearaujoj / remove_git_tag
Created October 22, 2013 10:02
git remove tag locally and remote
git tag -d TagName && git push origin :refs/tags/TagName
  • 🎨 when improving the format/structure of the code
  • 🚀 when improving performance
  • ✏️ when writing docs
  • 💡 new idea
  • 🚧 work in progress
  • ➕ when adding feature
  • ➖ when removing feature
  • 🔈 when adding logging
  • 🔇 when reducing logging
  • 🐛 when fixing a bug
@matthewmueller
matthewmueller / osx-for-hackers.sh
Last active April 21, 2024 03:30
OSX for Hackers (Mavericks/Yosemite)
# OSX for Hackers (Mavericks/Yosemite)
#
# Source: https://gist.github.com/brandonb927/3195465
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Ask for the administrator password upfront
@chebee7i
chebee7i / multinomialci.py
Created June 8, 2015 16:27
Multinomial Confidence Intervals
from __future__ import division
import numpy as np
def multinomial_ci(counts, alpha):
"""
Calculate a simultaneous (1-alpha) * 100 percent confidence interval.
Parameters
----------
@ghaiklor
ghaiklor / iterm-fish-fisherman-meslo-osx.md
Last active December 5, 2022 11:14
iTerm 2 + fish + fisherman + Material Design + Meslo
@domenic
domenic / redirecting-github-pages.md
Created February 10, 2017 19:28
Redirecting GitHub pages after a repository move

Redirecting GitHub Pages after a repository move

The problem

You have a repository, call it alice/repo. You would like to transfer it to the user bob, so it will become bob/repo.

However, you make heavy use of the GitHub Pages feature, so that people are often accessing https://alice.github.io/repo/. GitHub will helpfully redirect all of your repository stuff hosted on github.com after the move, but will not redirect the GitHub Pages hosted on github.io.

The solution

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@leferrad
leferrad / rbf_timestamp_features.py
Last active July 9, 2021 14:18
Feature extraction of timestamp based on RBF + polar coordinates of a clock
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""""""
import matplotlib
matplotlib.use("TkAgg")
from datetime import datetime as dt
import numpy as np
import scipy.ndimage as nd
from scipy.ndimage import gaussian_filter
import lucid.optvis.transform as transform
def mean_alpha():
def inner(T):
input_t = T("input")
return 1.0 - tf.reduce_mean(input_t[..., 3:])
return objectives.Objective(inner)