Skip to content

Instantly share code, notes, and snippets.


adam-dziedzic adam-dziedzic

View GitHub Profile
adam-dziedzic /
Created Nov 19, 2020
Mappings between fine (classes) and coarse labels (superclasses) for CIFAR100.
import pprint as pp
fine_labels = [
'apple', # id 0
#!/bin/bash -e
# Copyright (c) 2014, Facebook, Inc.
# All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree. An additional grant
# of patent rights can be found in the PATENTS file in the same directory.
# Go to home directory
cd ~
# You can change what anaconda version you want at
curl -Ok
bash -b -p ~/anaconda
echo 'export PATH="~/anaconda/bin:$PATH"' >> ~/.bash_profile
stephenhardy / git-clearHistory
Created Apr 26, 2013
Steps to clear out the history of a git/github repository
View git-clearHistory
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin<YOUR ACCOUNT>/<YOUR REPOS>.git